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

*{
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;

}

body{
    display: flex;
    justify-content: center;
    background-color: rgb(20, 20, 20);
}

.container{
    margin-top: 5rem;
    width: 25rem;
    background-color: rgb(35, 35, 35);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(150, 0, 150, 0.5);
}

.heading{
    display: flex;
    align-items: center;
    column-gap: 1rem;
    font-size: 1.8rem;
    font-weight: 500;
    color: white;
}

.heading img{
    width: 2rem;
}

.input-box{
    margin: 1rem 0rem;
    display: flex;
    align-items: center;
    position: relative;
}

#inputValue{
    height: 2.5rem;
    width: 100%;
    padding: 0rem 1rem;
    border-radius: 5rem;
    border: none;
    outline: 2px solid #800080;
    font-weight: 500;
    font-size: 1rem;
}

#addItem{
    width: 8rem;
    height: 2.5rem;
    position: absolute;
    right: 0;
    border-radius: 5rem;
    border: none;
    outline: none;
    background-color: #800080;
    font-weight: 500;
    font-size: 1rem;
    color: white;
    cursor: pointer;
}

.list-container{
    padding: 1rem;
    font-weight: 500;
    font-size: 1rem;
    color: white;
}

.list-container li{
    list-style: none;
    cursor: pointer;
    position: relative;
    user-select: none;
    padding-left: 1.75rem;
    margin-bottom: 1rem;
    height: 1.5rem;
}

.list-container li::before{
    content: '';
    position: absolute;
    left: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    outline: 0.1rem solid #800080;
}

.list-container li.checked{
    color: rgb(100, 100, 100);
    text-decoration: line-through;
}

.list-container li.checked::before{
    background-image: url("./assets/tick.png");
    background-size: cover;
    background-position: center;
}

.list-container li span{
    position: absolute;
    right: 0;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    text-align: center;
}

.list-container li span:hover{
    background-color: rgb(100, 100, 100);
    color: black;
}

@media (max-width: 600px) {
    .container{
        width: 60%;
    }
    .heading{
        font-size: 1.3rem;
    }
    #addItem{
        width: 8rem;
        height: 2rem;
        width: 6rem;
        font-size: 0.8rem;
    }
    #inputValue{
        height: 2rem;
        width: 100%;
        font-size: 0.8rem;
    }
    .list-container{
        font-size: 0.8rem;
    }
    .heading img{
        width: 1.5rem;
    }
}

@media (max-width: 300px) {
    .container{
        width: 60%;
        padding: 1rem;
    }
    .heading{
        font-size: 0.8rem;
    }
    #addItem{
        width: 3.6rem;
        height: 2rem;
        font-size: 0.6rem;
    }
    #inputValue{
        height: 2rem;
        width: 100%;
        font-size: 0.6rem;
        padding: 0rem 0.75rem;
    }
    .list-container{
        font-size: 0.6rem;
    }
    .list-container li::before{
        width: 0.8rem;
        height: 0.8rem;
    }
    .heading img{
        width: 1rem;
    }
}