@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Poppins, SANS-serif;
}

.container {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #273b6b, #5b1a79);
    padding: 10px;
    align-items: center;
    display: flex;
    user-select: none;
}


.to-do-app {
    width: 100%;
    max-width: 540px;
    background-color: #fff;
    margin: 100px auto 20px;
    padding: 40px 30px 70px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.589), 0px 4px 20px rgba(0, 0, 0, 0.486);
    position: relative;
}

.container .to-do-app span {
    position: absolute;
    right: 0;
    align-items: center;
    margin: 0 30px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    user-select: none;
    transition: all 0.5s ease;
}

.to-do-app h2 {
    color: #002765;
    display: flex;
    align-items: center;
    margin: 0 0 20px 0;
    text-transform: uppercase;

}

.to-do-app h2 img {
    width: 30px;
    margin: 0 0 0 10px;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #edeef0;
    border-radius: 30px;
    padding: 0 0 0 20px;
    margin: 0 0 25px 0;
}

input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 10px;
    font-size: 16px;
    font-weight: 400;
}

button {
    border: none;
    outline: none;
    padding: 16px 50px;
    background-color: #ff5945;
    color: #fff;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;

}

button:hover {
    background-color: rgb(248, 29, 0);
}

ul li {
    list-style: none;
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    padding: 12px 8px 12px 50px;
    user-select: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

ul li::before {
    content: '';
    position: absolute;
    background: url(img/unchecked.png);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    top: 13px;
    left: 8px;
}

ul li.checked {
    color: #555;
    text-decoration: line-through;
}

ul li.checked::before {
    background: url(img/checked.png);
    background-size: cover;
    background-position: center;

}

ul li span {
    position: absolute;
    right: 0px;
    top: 5px;
    font-size: 30px;
    width: 40px;
    height: 40px;
    color: #555;
    cursor: pointer;
    line-height: 40px;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 50%;

}

ul li span:hover {
    color: #ff5945;
    background-color: #edeef0;

}

@media (max-width: 450px) {

    .to-do-app {
        margin: 20px auto;
        padding: 20px;
        width: 95%;
    }

    button {
        padding: 12px 30px;
        font-size: 14px;
    }

    ul li {
        font-size: 18px;
    }
}



/* alert */
body.blocked {
    pointer-events: none;
    overflow: hidden;
    user-select: none;
}

body.blocked #custom-alert {
    pointer-events: auto;
}

.alert {
    display: none;
    position: fixed;
    top: 56%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.5s;
    width: 500px;
    margin: 0 auto;
    height: auto;
    z-index: 5555;
}

#close-btn {
    background-color: #721c24;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.5s;
}

#alert-message,
#close-btn {
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding: 20px;
}

#close-btn:hover {
    background-color: #f5c6cb;
    color: #721c24;
}


/* body.dark-mode .container {
    background: #2c2c2c;
}

body.dark-mode {
    background: #2c2c2c;
    color: #f4f4f4;
}

body.dark-mode .to-do-app {
    background-color: #3b3b3b;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.6), 0px 4px 20px rgba(0, 0, 0, 0.5);
}

body.dark-mode .to-do-app h2 {
    color: #f4f4f4;
}

body.dark-mode .row {
    background-color: #555;
}

body.dark-mode input {
    background: transparent;
    color: #f4f4f4;
}

body.dark-mode button {
    background-color: #ff7b47;
}

body.dark-mode ul li {
    color: #f4f4f4;
}

body.dark-mode ul li.checked {
    color: #bbb;
    text-decoration: line-through;
}

body.dark-mode #dark-mode-toggle {
    cursor: pointer;
    color: #f4f4f4;
}

body.dark-mode #dark-mode-toggle:hover {
    color: #ffeb3b;
} */