.elementodelista {
    display: flex;
    width: 150px;
    height: 40px;
    align-items: center;
    overflow: hidden;
    background: #EC7744;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3 );
    margin-top: 10px;
    min-height: 40px;
}

.elementodelista:hover {
    overflow-y: auto;
}

.elementodelista p {
    cursor: pointer;
    flex: 1;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.elementodelista:hover p {
    cursor: pointer;
    flex: 1;
    margin: 0;
    overflow-y: auto;
    height: 100%;
    overflow-wrap: break-word;
    white-space: normal;
}


.elementodelista p.completado {
    text-decoration: line-through;
    opacity: 0.6;
}

.boton {
    width: 15px;
    height: 15px;
    border-radius: 999%;
    cursor: pointer;
    min-width: 15px;
    min-height: 15px;
    color: crimson;
    background-color: crimson;
    flex-shrink: 0;
}

.miserrores {
    display: flex;
    width: 200px;
    height: 300px;
    max-height: 300px;
    overflow-y: scroll;
    flex-direction: column;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    margin: 0;
}



@keyframes entrada {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes salida {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
}to {
    opacity: 1;
    transform: translateY(0);
}

body {
    animation: pageEnter 0.5s ease-out;
}

.task-enter {
    animation: entrada 0.25s ease-out;
}

.task-exit {
    animation: salida 0.2s ease-in forwards;
}

#newtask {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #EC7744;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3 );
}

#newtask input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px;
    font-size: 16px;
    background: transparent;
    color: white;
}

#newtask input::placeholder {
    color: #adf182;
}

#newtask #addButton {
    margin-top: 0;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
} 

#navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    gap: 16px;
    background: #25629b;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3 );
    box-sizing: border-box;
    position: absolute;
    top: 0;
    z-index: 10;
}

#navbar span {
    color: #cdd3f4;
    font-size: 14px;
}

#rachaepica {
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
}

#rachaIcono {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

#rachaepicapanel {
    z-index: 30;
    display: none;
    position: absolute;
    top: 60px;
    right: 24px;
    background: #03387d;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3 );
    z-index: 20;
}

#rachaepicapanel.visible {
    display: block;
    animation: entrada 0.25s ease-out;
}

#rachaepicanumero {
    font-size: 40px;
    font-weight: bold;
    color: #EC7744;
    text-align: center;
}

#rachaepicatexto {
    text-align: center;
    color: #e1d6f8;
    font-size: 13px;
    margin-bottom: 12px;
}

.dias-semana {
    display: flex;
    gap: 10px;
}

.dia-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #EC7744;
    font-size: 12px;
    animation: entrada 0.3s ease-out backwards;
    animation-delay: 0ms;
}

.dia-circulo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.dia-circulo-activo {
    background: #EC7744;
}

.dia-letra-hoy {
    color: #cdd3f4;
    font-weight: bold;
}

#newtask input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px;
    font-size: 16px;
    font-family: "Bitcount Prop Single", system-ui;
}

#newtask #addButton {
    margin-top: 0%;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    background: #25629b;
    color: #e1d6f8;
    font-family: "Bitcount Prop Single", system-ui;
}

#calendario {
    position: relative;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

#calendarioIcono {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}


#calendariopanel {
    display: none;
    z-index: 30;
    position: absolute;
    top: 60px;
    right: 24px;
    background: #03387d;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3 );
    z-index: 20;
    width: 260px;
}

#calendariopanel.visible {
    display: block;
    animation: entrada 0.25s ease-out;
}

#calendarioheader button {
    background: none;
    border: none;
    color: #cdd3f4;
    font-size: 18px;
    cursor: pointer;
}

#calendarioDiasSemana {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    color: #cdd3f4;
    font-size: 12px;
    margin-bottom: 5px;
}

#calendarioGrid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

#calendarioGrid .dia {
    text-align: center;
    color: #cdd3f4;
    font-size: 13px;
    padding: 4px 0;
    border-radius: 50%;
    cursor: default;
}

#calendarioGrid .dia-circulo {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(205, 211, 244, 0.15);
    border: 1px solid rgba(205, 211, 244, 0.3);
}

#calendarioGrid .dia-circulo-activo {
    background: rgba(205, 211, 244, 0.35);
    border: 1px solid rgba(205, 211, 244, 0.5);
}

#calendarioGrid .dia.numero {
    color: #cdd3f4;
    font-size: 11px;
}

#calendarioGrid .dia.con-racha {
    background: #EC7744;
    color: white;
    font-weight: bold;
}

#calendarioGrid .dia.vacio {
    visibility: hidden;
}

#alertaIcono {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

#alerta:hover #alertaIcono,
#alertaIcono.activo {
    filter: grayscale(0%);
}

#alertapanel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 40;
    pointer-events: none;
    overflow: hidden;
}


#alertaHeader {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    justify-content: center;
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0;
    filter: grayscale(100%);
    transition: transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
}

#alertapanel.visible #alertaHeader {
    transform: translate(-50%, -50%); scale:(1);
    opacity: 1;
}

#alertapanel.solo-imagenes #alertaHeader {
    transform: translate(-50%, -50%); scale:(0.3);
    opacity: 0;
}

#alertaHeaderIcono {
    width: 120px;
    height: 120px;
}

#alertaContenido {
    position: absolute;
    inset: 0;
}

#alertaEva {
    position: absolute;
    bottom: 0;
    left: 4%;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
}

#alertapanel.visible #alertaEva {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

#alertaShinji  {
    position: absolute;
    bottom: 0;
    right: 4%;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease 0.25s, transform 0.5s ease 0.25s;
}

#alertapanel.solo-imagenes #alertaShinji {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;
}

#alertaEva img {
    max-height: 280px;
    width: auto;
}

#alertaShinji img {
    max-height: 220px;
    width: auto;
    border-radius: 8px;
}




