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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.container {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #040404, #180bc9);
    padding: 10px;
}

.todo-app {
    width: 90%;
    max-width: 540px;
    background: #FFF;
    margin: 100px auto 20px;
    padding: 40px 30px 70px;
    border-radius: 10px;
}

.todo-app h2 {
    color: #002765;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.todo-app i {
    width: 30px;
    margin-left: 10px;
}

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

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

button {
    border: none;
    outline: none;
    padding: 16px 50px;
    background: #ff5945;
    color: #FFF;
    font-size: 16px;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.5s ease;
}

button:hover {
    opacity: 0.9;
}

ul li {
    list-style: none;
    font-size: 17px;
    padding: 12px 8px 12px 50px;
    user-select: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

ul li::before {
    content: '';
    height: 28px;
    width: 28px;
    position: absolute;
    border-radius: 50%;
    background-image: url(../images/circle-regular-24\ \(2\).png);
    background-size: cover;

    background-position: center;
    top: 12px;
    left: 8px;
}

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

.checked::before {
    background-image: url(../images/check-circle-solid-24.png);

}

ul li img {
    transition: all 0.2s ease;
    border-radius: 50%;
}

ul li img:hover {
    background-color: #edeef0;

}

.container-alert {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.active-alert {
    display: flex;
    opacity: 1;
}

.alert {
    background-color: #FFF;
    border-radius: 10px;
    box-shadow: 0px 0px 15px #999;
    padding: 15px;
    text-align: center;
}

.alert p {
    margin-bottom: 20px;
}

.alert button {
    padding: 10px 20px;
    margin: 0 10px;
    border: none;
    cursor: pointer;
}

.btn-excluir {
    background-color: #ff5945;
    color: #fff;
}

.btn-cancelar {
    background-color: #ddd;
    color: #333;
}

@media (max-width: 425px) {
    .row {
        padding-left: 0;
    }

    .todo-app h2 {
        width: 100%;
        justify-content: center;
    }

    .todo-app {
        padding: 40px 20px 70px;
    }

    input {
        padding-left: 25px;
    }

    button {
        padding: 16px 22px;
    }
}

@media (max-width: 320px) {
    button {
        padding: 16px 10px;
        border-radius: 10px;
    }

    .todo-app {
        padding: 40px 10px 70px;
    }
}