/*Geral*/

*{
    padding-left: 0;
    margin: 0;
    font-family: Helvetica;
    color: #333;
    box-sizing: border-box;
}

body{
    background-image: url("../img/background.webp");
    
}

button{
    background-color: #FDFDFD;
    color: #102F5e;
    border: 2px solid #102F5e;
    padding: .3rem .6rem;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.4s;
    border-radius: 10px;
}

button:hover{
    background-color: #102F5e;
    color: #fff;
}

button:hover > i{
    color: #fff;
}

button i{
    color: #102F5e;
    font-weight: bold;
    pointer-events: none;
}

input, select{
    padding: 0.25rem 0.5rem;
    border-radius: 10px;

}

.hide{
    display: none;
}

/*Todo Header*/

.todo-container{
    max-width: 450px;
    margin: 3rem auto;
    background-color: #f4bcf2db;
    padding: 1.5rem;
    border-radius: 50px;
}

.todo-container header{
    text-align: center;
    padding: 0 1rem 1rem;
    border-bottom: 1px solid #ccc;
}

/*form*/

#todo-form, #edit-form{
    padding: 1rem;
    border-bottom: 1px solid #ccc;
}

#todo-form p,
#edit-form p{
    margin-bottom: 0.1rem;
    font-weight: bold;
}

.form-control{
    display: flex;
}

.form-control input{
    margin-right: 0.3rem;
}

#cancel-edit-btn{
    margin-top: 1rem;
    margin-left: 0.3rem;
}

/*todo toolbar*/
#toolbar{
    padding: 1rem;
    border-bottom: 1px solid #ccc;
    display: flex;
}

#search{
    border-right: 1px solid #DDD;
    padding-right: 1rem;
    margin-right: 1rem;
    width: 65%;
    display: flex;
    flex-direction: column;
}

#search form{
    display: flex;
}
#search input{
    width: 100%;
    margin-right: 0.3rem;
}
#filter{
    width: 35%;
    display: flex;
    flex-direction: column;
}
#filter select{
    flex: 1;
}

/*todo list */

.todo{
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
    transition: .3s;
}

.todo h3{
    flex: 1;
    font-size: 0.9rem;
}

.todo button{
    margin-left: 0.4rem;
}

.done{
    background-color: #395159;
    border-radius: 50px;
}

.done h3{
    color: #FFF;
    text-decoration: line-through;
    font-style: italic;
}

select option{
    background-color: #506e79;
    color: #ffffff;
}

@media only screen and (max-width: 450px){
    .todo-container{
        max-width: 387px;
        margin: 10rem auto;
        padding: 0.5rem;
    }
    .done h3, .todo h3{
        font-size: 14px;
    }
    p, h4{
        font-size: 14px;
    }
}