*{
    padding: 0;
    margin:0;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
body{
    background:linear-gradient(135deg,rgb(91, 124, 197),rgb(53, 27, 97));
    min-height: 100vh;
}
.container{
    background-color: rgb(212, 211, 241);
    width: 90%;
    max-width: 540px;
    padding:40px 30px 70px;
    border-radius: 10px;
    margin: 100px auto 20px;
}
h1{
    padding: 30px;
    text-align: center;
    color: #030618;
}
.input-container{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-items: center;
    justify-content: space-between;
    background: #edeef0;
    border-radius: 30px;
    padding-left: 20px;
    margin-bottom:25px;
}

#add-task{
    flex:1;
    min-width: 150px;
    padding: 15px;
    background:transparent;
    outline: none;
    border:none;
    font-family: 'Times New Roman', Times, serif;
}

.add{
    outline: none;
    border:none;
    padding: 16px 50px;
    border-radius: 40px;
    background: #4106f2;
    color: azure;
    cursor: pointer;
}

ul li{
    list-style: none;
    padding: 12px 8px 12px 50px;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
    position: relative;
}

 ul li::before{
    content: '';
    position: absolute;
    height: 28px;
    width: 28px;
    background-image: url(images/unchecked.webp);
    color: bisque;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    top:12px;
    left: 8px;
}

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

 li.checked::before {
    background-image: url(images/checked.png);
}
ul li span{
    position:absolute;
    right: 0;
    top: 5px;
    width: 40px;
    height: 40px;
    font-size: 22px;
    color: #555;
    line-height:40px;
    text-align: center;
    border-radius: 50%;
}

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

@media (max-width: 768px) {
    .container {
        padding: 20px 15px 40px;
    }
    h1 {
        font-size: 22px;
    }
}

/* Mobile (below 480px) */
@media (max-width: 480px) {
    .container {
        margin: 20px auto;
        padding: 15px 10px 30px;
    }
    h1 {
        font-size: 18px;
        padding: 15px;
    }
    #add-task {
        font-size: 14px;
        padding: 10px;
    }
    .add {
        font-size: 12px;
        padding: 10px 20px;
    }
    ul li {
        font-size: 14px;
        padding: 10px 8px 10px 40px;
    }
    ul li span {
        font-size: 16px;
        width: 25px;
        height: 25px;
        line-height: 25px;
    }
}