*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    width: 100%;
    background: linear-gradient(135deg,#153677,#4e085f);
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.container{
    background: lightcoral;
    width: 40%;
    padding: 2rem;
    margin-top: 2rem;
    border-radius: 8px;
}
.to-do-title{
    color: #fff;
    font-size: 32px;
}
.to-do-title span{
    color: yellow;
}
.input-section{
    display: flex;
    position: relative;
    margin-block: 1rem;
}
#input-field{
    width:80%;
    outline: none;
    border: none;
    height: 2.4rem;
    padding-left: 0.5rem;
    border: 1px solid #000;
    border-radius: 100px;
    font-size: 16px;
}
.add-btn{
    outline: none;
    border: none;
    font-size: 18px;
    height: 2.4rem;
    width: 18%;
    background: yellow;
    border-radius: 100px;
    border: 1px solid #000;
    position: absolute;
    right: 38px;
}
.add-btn:hover{
    background: rgb(242, 242, 140);
    
}
.check-input {
    width: 16px;
    margin-left: 5px;
    transition: ease 1s;
 }
.task-section div{
    display: flex;
    gap: 1rem;
}
.task-section div li{
    list-style: none;
    font-size: 1.5rem;
    color: #fff;
}
.delete-section{
    background: lightcoral;
    width: 40%;
    padding: 2rem;
    margin-top: 2rem;
    border-radius: 8px;
    position: relative;
}
.items-li{
    list-style: none;
    font-size: 1.5rem;
    color: #fff;
}
.items-div{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-block: 0.7rem;
}
.items-btn{
    outline: none;
    border: none;
    font-size: 16px;
    height: 2rem;
    width: 20%;
    background: yellow;
    border-radius: 5px;
    border: 1px solid #000;
}
@media (max-width: 768px) {
    body {
        flex-direction: column;
        padding: 1rem;
    }

    .container, .delete-section {
        width: 90%;
        margin-top: 1rem;
        padding: 1rem;
    }

    .input-section {
        flex-direction: column;
        align-items: stretch;
    }

    #input-field {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .add-btn {
        position: static;
        width: 100%;
    }

    .to-do-title {
        font-size: 24px;
        text-align: center;
    }

    .items-btn {
        width: 30%;
        font-size: 14px;
    }
}
