*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: poppins, sans-serif;
}
body{
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(./Images/bg1.jfif);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}
.container{
    background-color: white;
    width: 40vw;
    padding: 5vh;
    margin-top: 20vh;
    box-shadow: 0 0 25px magenta;
    border: 3px solid black;
    border-radius: 30px;
}
h1{
    color: black;
    font-size: 3rem;
    text-align: center;
    justify-content: center;
    display: flex;
    gap: 2vw;
    margin-bottom: 5vh;
}
h1 img{
    width: 70px;
    height: 70px;

}
.inputcontainer{
    display: flex;
    cursor: pointer;
    border-radius: 30px;
    gap: 5px;
    margin-bottom: 5vh;
    
}
.inputcontainer input{
    flex: 1;
    width: 70%;
    padding: 1vh;
    font-size: 1rem;
    border: none;
    border: 1px solid black;
    outline: none;
    background: transparent;
    border-radius: 30px;
}
.inputcontainer input::placeholder{
    color: magenta;
}
.inputcontainer button{
    padding: 2vh;
    font-size: 1rem;
    width: 100px;
    border: none;
    background-color: black;
    color: white;
   
}

.tasks{
    list-style: none;
    font-size: 1rem;
    display: flex;
    gap: 2vw;
    align-items: center;
    margin-bottom: 2vh;
    border: 2px solid black;
}
.tasks button{
     padding: 1.5vh;
    font-size: 1rem;
    width: 80px;
    border: none;
    background-color: black;
    color: white;
}
.tasks p{
    flex: 1;
}
button:hover{
    background-color: magenta;
    color: black;
    transition: 0.3s ease-in-out;
}
.completed p {
    text-decoration: line-through;
}

.completed .donebtn {
    background-color: green;
}
@media (max-width: 1024px) {
    .container {
        width: 80vw;
        padding: 4vh;
    }
    h1 {
        font-size: 2.5rem;
    }
    h1 img {
        width: 60px;
        height: 60px;
    }
    .inputcontainer input {
        font-size: 0.95rem;
    }
    .inputcontainer button {
        font-size: 0.95rem;
        width: 90px;
    }
    .tasks {
        font-size: 0.95rem;
    }
    .tasks button {
        font-size: 0.95rem;
        width: 75px;
    }
}
@media (max-width: 768px) {
    .container {
        width: 90vw;
        padding: 3vh;
    }
    h1 {
        font-size: 2rem;
    }
    h1 img {
        width: 50px;
        height: 50px;
    }
    .inputcontainer input {
        font-size: 0.9rem;
    }
    .inputcontainer button {
        font-size: 0.9rem;
        width: 80px;
    }
    .tasks {
        font-size: 0.9rem;
    }
    .tasks button {
        font-size: 0.9rem;
        width: 70px;
    }
}

@media(max-width: 480px) {
    .container {
        width: 95vw;
        padding: 2vh;
    }
    h1 {
        font-size: 1.5rem;
    }
    h1 img {
        width: 40px;
        height: 40px;
    }
    .inputcontainer input {
        font-size: 0.85rem;
    }
    .inputcontainer button {
        font-size: 0.85rem;
        width: 70px;
    }
    .tasks {
        font-size: 0.85rem;
    }
    .tasks button {
        font-size: 0.85rem;
        width: 60px;
    }
}
@media(max-width: 400px) {
    .container {
        width: 95vw;
        padding: 5vh;
        margin-top: 10vh;
    }
    h1 {
        font-size: 1.2rem;
    }
    h1 img {
        width: 30px;
        height: 30px;
    }
    .inputcontainer{
        flex-direction: column;
    }
    .inputcontainer input {
        font-size: 0.8rem;
        width: 80vw;
        
    }
    .inputcontainer button {
        font-size: 0.8rem;
        width: 60px;
    
    }
    .tasks {
        font-size: 0.8rem;
        padding: 8px;
    }
    .tasks button {
        font-size: 0.8rem;
        width: 60px;
        padding: 10px;
    }
}