body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: sans-serif;
    background: linear-gradient(53deg, rgba(199, 141, 247, 1) 0%, rgba(192, 84, 255, 1) 0%, rgba(252, 154, 238, 1) 72%);
}


.container {
    background-color: white;
    padding: 1rem 3rem;
    border-radius: 1rem;
    box-shadow: 0.625rem 0.3125rem 5.625rem rgba(0, 0, 0, 0.477);
    max-width: 16rem;
    overflow: hidden;
}

form {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

form .todoInput {
    height: 2rem;
    font-size: 1rem;
    border: 0.5px solid rgb(133, 130, 130);
    border-radius: 0.3rem;
    flex: 1;
    min-width: 0;
}

form .btn {
    font-size: 1rem;
    padding: 0.6rem 0.7rem;
    border-radius: 0.3rem;
    border: none;
    background-color: rgb(0, 110, 255);
    color: white;
    white-space: nowrap;
}

form .btn:hover {
    opacity: 0.7;
}

form .btn:active {
    background-color: white;
    color: rgb(0, 110, 255);
    outline: 2px solid black;
}


.clearBtn {
    border-radius: 0.4rem;
    border: 0.09rem solid black;
    background-color: black;
    color: white;
    margin-top: 1rem;
    padding: 0.4rem;
    display: none;
}



.displayTask {
    margin-top: 0.8rem;
}

/* add to dom */
.todoDisplay {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* add to dom */
.checkbox {
    border-radius: 1rem;
    height: 2rem;
    width: 1.3rem;
    cursor: pointer;
}

label {
    flex: 1;
    word-break: break-word;
    text-align: center;
}

/* add to dom */
.completed {
    text-decoration: line-through;
    color: grey;
}

/* add to dom */
.deleteBtn {
    margin-left: auto;
    font-size: 1.4rem;
    border: none;
    background-color: white;
    font-family: sans-serif;
    color: grey;
    cursor: pointer;
}

.deleteBtn:hover {
    color: red;
}

hr {
    margin: 0;
    margin-bottom: 0.2rem;
}



/* responsiveness added for small screens */
@media (max-width: 352px) {

    .container {
        padding: 1rem 1.9rem;
    }


}


/* responsiveness added for tablet and above devices */
@media (min-width: 768px) {

    .container {
        max-width: 22rem;
    }

    .container .todoInput {
        flex-grow: 1;
    }

    form {
        display: flex;
        gap: 0.5rem;
        justify-content: space-between;
    }
}