/* Geral */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
    color: #333;
}

body{
    background-color: rgb(121,81,57);
    background-image: url('../img/fundo.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

button{
    background-color: white;
    color: rgb(121,81,57);
    border: 2px solid rgb(121,81,57);
    border-radius: 10px;
    box-shadow: 3px 3px 3px rgb(121,81,57);
    padding: .3rem .6rem;
    font: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .4s;
}

button:hover{
    background-color: rgb(121,81,57);
    color: white;
}
button:hover > span{
    color: white;
}

button span{
    color: rgb(121,81,57);
    font-weight: bold;
    pointer-events: none;
}

input, select{
    padding: .25rem .5rem;
    border-radius: 5px;
    border: 1px solid rgb(121,81,57);
}

.hide{
    display: none;
}

/* header */

.conteiner{
    max-width: 450px;
    margin: 3rem auto;
    background-color: white;
    padding: 1.5rem;
    border-radius: 15px;
}

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

/* Todo formulario */

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

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

.form-control{
    display: flex;
}

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

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

/* Toolbar */

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

#toolbar h4{
    margin-bottom: .5rem;
}

#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: .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: .9rem;
}

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

.done{
    background-color: rgb(209, 140, 97);
}

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

@media screen and (max-width: 580px){
    body{
        background-size: 100vh;
    }

    .conteiner{
        max-width: 350px;
    }

    h3{
        width: 100px;
        overflow-x: scroll;
    }
}