* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-image: url(img/background.jpg);
    background-size: cover;
    background-attachment: fixed;
    font-family: cursive, sans-serif;
}

.todo-list {
    background-color: rgba(255, 255, 255, 0.356);
    max-width: 34rem;
    margin: 6rem auto;
    padding: 2rem;
    border-radius: 2rem;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #edeef0;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 2rem;
}

#taskInput {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 1rem;
    font-size: 1rem;
}

button {
    border: none;
    outline: none;
    padding: 1rem 2.5rem;
    background: #01a80f;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 2.5rem;
}

ul li {
    list-style: none;
    user-select: none;
    font-size: 1.2rem;
    padding: 0.8rem 0.5rem 0.8rem 3rem;
    position: relative;
}

ul li::before {
    content: '';
    position: absolute;
    background-image: url(img/unchecked.png);
    background-size: cover;
    background-position: center;
    width: 1.7rem;
    height: 1.7rem;
    top: 0.7rem;
    left: 0.5rem;
    cursor: pointer;
}

ul li.checked {
    color: #555;
    text-decoration: line-through;
}

ul li.checked::before {
    background-image: url(img/checked.png);
}

ul li span {
    position: absolute;
    right: 0;
    top: 0.2rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    text-align: center;
    color: #555;
    border-radius: 50%;
    line-height: 2.5rem;
}

ul li span:hover {
    background: #edeef0;
    cursor: pointer;
}

@media screen and (max-width: 570px) {
    .container {
        padding: 1rem;
    }
    
    .todo-list {
        max-width: 25rem;
        margin: 1rem auto;
    }

    .row {
        flex-direction: column;
        padding-left: 0;
    }

    #taskInput {
        text-align: center;
        margin: auto;
    }

    .row button {
        margin: 1rem;
    }
}