* {
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: 80%;
}
.box {
    background-color: #eee;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-radius: 30px;
    gap: 10px;
    width: 40%;
    margin: auto;

    min-height: 455px;
    transition: all 0.3s ease;

}
h1 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: #0000;

    text-align: center;
    font-size: 64px;
}
.container {
    display: flex;
    justify-content: center;
    gap: 5px;

}

#input {


    background-color: #eee;

    padding: 10px;
    border-radius: 10px;
    color: #333;
    border: 2px solid #667eea88;
    font-size: 1.4rem !important;
    transition: all 0.3s;
    font-size: 1rem;
    box-shadow: 0 0 10px #1232
}
#input:focus {
    outline: none;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 0 10px #1233
}
#agregar {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 16px 24px;
    font-weight: 600;
    color: #eee;
    font-size: 16px;
    transition: all 0.3s ease;
}
#agregar:hover {
    transform: translateY(-7px);
}
#agregar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
    pointer-events: none;
}
#agregar:hover::after {
    opacity: 0.1 !important;
}



.completed {
    text-decoration: line-through;
    opacity: 0.3 !important;
    filter: blur(0.5px);
}
ul {
    padding: 0;
}
li {
    padding: 10px 15px;
    animation: fadeRight 1s ease;
    border-radius: 10px ;
    display: flex;
    gap: 5px;
    color: #333;
    margin-top: 10px;
    align-items: center;
    transition: all 0.3s ease, opacity 0.2s ease-in;
    box-shadow: 0px 5px 15px #2221;
    text-wrap: wrap;
}
li:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 10px #6663;
}
.checkbox {
    width: 20px;
    height: 20px;
    border: none;
}
.eliminar {
    all: unset;
    background-color: #c22c;
    border: none;
    padding: 10px;
    margin-left: auto;
    color: #eee;
    font-size: 16px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: 0.3s ease;
}
.eliminar * {
    text-decoration: none !important;
}
.eliminar:hover {
    transform: scale(1.08);
    background-color: #c22d;
}


.empty-state {
    margin-top: 50px;
    padding: 40px 20px;
    text-align: center;
    font-size: 18px;
    color: #757575;
    display: none;
    font-size: 1.9rem;

}
.empty-state.show {
    display: block;
    animation: fadeIn 1s ease-out both;
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes fadeLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translatey(-60px);
    }
    to {
        opacity: 1;
        transform: translatey(0);
    }
}

@media (max-width: 1200px) {
    .box {
        width: 80%;
    }
}
@media (max-width: 720px) {
    .box {
        width: 100%;
        margin: 0;
        border-radius: 0;
        padding: 20px;
    }

    .container {
        flex-direction: column;

    }
    html {
        font-size: 20px;
    }
}
@media (max-width: 420px) {
    html {
        font-size: 16px;
    }
    h1 {
        font-size: 3.4rem;
    }
}