* {
    margin: 0;padding: 0;box-sizing: border-box;list-style-type: none;
}

body {
    min-height: 100vh;
    display: flex;
    gap: 1rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #ff0 50%, #333 50% );
}

h1 {
    color: #fff;
    font-weight: bold;
}

.container {
    height: 450px;
    width: 50%;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.5);
    padding: 1rem;
    overflow-y: auto;
}

#input {
    height: 50px;
    width: 100%;
    outline: none;
    border: none;
    background: #666;
    color: #fff;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
}

#input::placeholder {
    color: #bbb;
}

ul li  {
    background: #eee;
    color: #333;
    padding: 0.8rem 0.5rem;
    margin: 0.5rem 0;
    border-radius: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

ul li .fa-check {
    color: green;
    margin: 0 0.5rem;
    cursor: pointer;
}

ul li .fa-trash {
    color: darkred;
    cursor: pointer;
}

ul .checked {
    background: lightgreen;
    text-decoration: line-through;
}

@media screen and (max-width: 768px) {
    .container {
        width: 90%;
    }
}