* {
    margin: 0;
    box-sizing: border-box;
}

:root {
    --primary-col: rgb(31, 244, 31);
    --secondary-col: rgb(20, 95, 20);
    --odd-col: rgb(89, 194, 81);
    --even-col: rgb(57, 113, 53);
}

nav {
    height: 9vh;
    background-color: rgb(5, 224, 5);
    padding: 1rem;
}

nav h1 {
    text-align: center;
    font-family: 'Chakra Petch', sans-serif;

}

.container {
    height: 91vh;
    background-color: rgb(204, 230, 230);
    display: flex;
    flex-direction: column;
}

.search {
    /* height: 10vh; */
    width: 100%;
    display: flex;
    justify-content: center;
    font-family: 'Roboto Slab', serif;
}

.search input {
    margin: 1rem;
    padding: .5rem;
    border: .1rem solid var(--primary-col);
    border-radius: 10px;
    width: 50%;
    font-family: 'Chakra Petch', sans-serif;

}

.search button {
    margin: 1rem 0;
    background-color: var(--secondary-col);
    color: white;
    cursor: pointer;
    border: .1rem solid var(--secondary-col);
    border-radius: 30px;
    font-family: 'Chakra Petch', sans-serif;

}

.search button:hover {
    background-color: var(--primary-col);
}

.list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.tasks {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0 .5rem;
    padding: 1rem;
    width: 90vw;
    font-family: 'Roboto Slab', serif;
}

button {
    background-color: yellow;
    border: .1rem solid yellow;
    width: 5rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Chakra Petch', sans-serif;

}

.tasks #done {
    background-color: rgb(161, 28, 28);
    ;
    border: .1rem solid rgb(161, 28, 28);
    color: white;
}

.tasks #done:hover,
.tasks #del:hover {
    background-color: var(--primary-col);
}

.tasks:nth-child(odd) {
    background-color: var(--odd-col);
}

.tasks:nth-child(even) {
    background-color: var(--even-col);
}

#tas {
    line-break: anywhere;
    max-width: 50%;
    min-width: 50%;
    font-size: 1.2rem;
}

ul {
    margin: 0;
    margin-right: 5%;
}

li {
    display: list-item;
    list-style: decimal;
}

@media (max-width:768px) {
    #tas {
        max-width: 30%;
        min-width: 30%;
        line-break: anywhere;
        padding: .5rem;
    }

    button {
        margin: .5rem;
    }
}