@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
html, body {
    height: 100vh;
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: italic;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 16px;
    background-color: #ffffff;
    box-sizing: border-box;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
    gap: 0.8px;
    background-color: rgb(85, 87, 167);  
    padding: 2rem 8rem;             
    border-radius: 0.4rem 0.4rem 0 0; 
    /* box-shadow: 1rem 1rem 1rem 0.2rem rgba(0, 0, 0, 0.2);    */
    transition: transform 0.9s ease;
    position:relative;
    width: 22rem;
    
}


.input-group{
    display: flex;
    gap: 0;
    height: 2.5rem;
    width: 150%;

}

input{
    border: none;
    width: 100%;
}

button{
    border: none;
    width: 20%;
    background-color: hsl(0, 6%, 90%);
}

button:hover{
    background-color: hsl(0, 6%, 80%);
    
}


button:active{
    background-color: hsl(0, 6%, 92%);
    
}


.task-list {
    list-style: none;           
    margin: 0;
    padding: 0;
    width: 100%;                
}

.task-list li {
    display: flex;              
    justify-content: space-between; 
    align-items: center;
    background: #f5f5f5;     
    padding: 10px 15px;
    border-bottom: 1px solid #ddd; 
    font-size: 1.5rem;
    cursor:pointer;
}
/* 
.task-list li:active {
     background: hsl(0, 0%, 90%);

} */

.task-list li:nth-child(even) {
    background: #eee;          
}

.task-list .delete {
    cursor: pointer;
    color: #888;
    font-weight: bold;
}

.task-list .delete:hover {
    color: hsl(0, 100%, 50%);                
}

.finish{
    text-decoration: line-through;
    

}

.task-list .delete:active {
    color: hsl(0, 100%, 60%);                
}


@media (max-width:1000px){
    body,html{
        font-size: 10px;
    }
}
@media (max-width:500px){
     body,html{
        font-size: 8px;
    }
    .input-group{
        height:3rem;
    }
.task-list li{
    font-size: 1.5rem;
}
}
