:root {
    --gradiente: linear-gradient(#262429, #4cc9f0);
    --primary-color: #4cc9f0;
    --secondary-color: #0F0F0B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-size: 62.5%;
}

body {
    background: var(--gradiente);
    background-repeat: no-repeat;
    height: 100vh;
    font: bold 2rem 'Open Sans', sans-serif;
}

.todo {
    display: flex;
    width: 50vw;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    gap: 15px;
}

.todo__title {
    display: flex;
    background: var(--primary-color);
    width: 100%;
    height: 80px;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    box-shadow: 1px 1px 5px var(--secondary-color);
    font-size: 3rem;
    opacity: 70%;
    border-radius: 1rem;
    /* color: var(--primary-color); */
}

.todo__list {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 10px;
}

.todo__item{
    display: flex;
    width: 100%;
    height: 60px;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    /* box-shadow: 1px 1px 5px var(--secondary-color); */

    background: rgba( 17, 166, 217, 0.3 );
    box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
    backdrop-filter: blur( 5.5px );
    -webkit-backdrop-filter: blur( 5.5px );
    border-radius: 10px;
    border: 1px solid rgba( 255, 255, 255, 0.18 );

    font-family: 'Shadows Into Light', cursive;
    font-size: 3rem;
}
.todo__item > div {
    width: 80%;
}
.todo__item:hover {
    cursor: pointer;
    transition: all .5s ease;
    background-color: var(--secondary-color);
    color: var(--primary-color);
}


.todo__item > input[type='text'] {
    border: none;
    width: 80%;
    font: inherit;
}

.todo__item > input[type='button'],
.todo__item > input[type='checkbox'] {
    width: 30px;
    height: 30px;
    
}

 
.todo__item > input[type='checkbox']:checked  + div{
    text-decoration:line-through;
}

.todo__new-item{
    display: flex;
    background-color: #7209b7;
    width: 100%;
    height: 70px;
    justify-content: space-evenly;
    padding: 10px 0;
    box-shadow: 1px 1px 5px var(--secondary-color);
    margin: 10px;
    font: inherit;

    background: rgba( 17, 166, 217, 0.3 );
    box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
    backdrop-filter: blur( 5.5px );
    -webkit-backdrop-filter: blur( 5.5px );
    border-radius: 10px;
    border: 1px solid rgba( 255, 255, 255, 0.18 );
}

.todo__new-item > input{
    border: none;
    width: 80%;
    outline: none; 
    font: inherit;
    align-items: center;
    text-align: center;

    background: rgba( 17, 166, 217, 0.3 );
    box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
    backdrop-filter: blur( 5.5px );
    -webkit-backdrop-filter: blur( 5.5px );
    border-radius: 10px;
    border: 1px solid rgba( 255, 255, 255, 0.18 );
    
}

.todo__new-item > input::placeholder {
    font-style: italic;
    font-weight: normal;
    color: rgb(63, 62, 62);
}

#botaoadd {
    display: none;

}


@media screen and (max-width: 500px) {
    .todo {
        width: 80vw;

    }

    .todo__item > div {
        width: 70%;
    }
    
    .todo__new-item{
        display: flex;
        flex-direction: column;
        height: 20vh;
        align-items: center;
        margin: 0 auto;

    }

    .todo__new-item > input{ 
        height: 6rem;

    }
    
    #botaoadd {
        display: block;
    
    }
}
