* {
    margin: 0;
    padding: 0;
}
html,body{
    overflow-x:hidden;
}
body{
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    display:flex;
    justify-content: center;
    align-items: center;
    min-height:100vh;
}
.container{
    background: white;
    padding: 20px;
    width:90%;
    max-width:350px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0,2) ;

}

.input-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    outline: none;
    font-size: 16px;
border-radius:5px;

}
.completeBtn{
    width:70px;
}
.deleteBtn{
    width:70px;
}

button {
    padding: 10px 15px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    border: none;
}

button:hover {
    background-color: darkgreen;

} 
ul {
    list-style:none;
    padding:0;
}
#tasklist{
    list-style: none;
    padding:0;
    margin:0;
}
li{
display: flex;
justify-content: space-between;
align-items: center;
margin:10px 0px;
}

li button{
    margin-left: 10px;
    }

.completed{
    text-decoration:line-through;
    opacity:0.6;
}
@media(max-width:480px){
    .container{
        width:90%;
        max-width:350px;
    }
    .input-box{
        flex-direction:column;
    }
    button{
        width:100%;
    }
}
li span{
    flex:1;
}



