@import url('https://fonts.googleapis.com/css2?family=Aldrich&family=Lato&family=Lobster&family=Poppins:wght@300;400;500;600&family=Roboto&display=swap');

*{
    box-sizing: border-box;
}

body{
    background-image: url('https://wallpaperaccess.com/full/501241.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    color: #444;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: aldrich;
    margin: 0;
    min-height: 100vh;
}

h1 {
    color: white;
    font-size: 5rem;
}

form {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    width: 400px;
}

.input {
    font-family: inherit;
    border: none;
    color: #444;
    font-size: 1.5rem;
    padding: 1rem 2rem;
    display: block;
    width: 100%;
}

.input::placeholder{
    color: #d5d5d5;
}

.todos {
    background-color: #fff;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.todos li {
    border-top: 1px solid #eee;
    cursor: pointer;
    font-size: 1rem;
    padding: 1rem 2rem;
}

.todos li:hover, .todos li:nth-child(even):hover{
    background-color: #b6b6b6;
}

.todos li:nth-child(even) {
    background-color: #e3e1e1;
}

.todos li.completed {
    color: #444;
    text-decoration: line-through;
}

small {
    color:white;
    margin-top: 5rem;
}

@media (max-width: 540px){
    h1 {
        font-size: 3.5rem;
    }

    #form, .todos ul {
        width: 95%;
    }
}

@media (max-width: 450px){
    h1 {
        font-size: 2.5rem;
    }
}
