*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Helvetica;
}

body{
    background-color: #202124;
}

/* cabeçalho */
header{
    border-bottom: 1px solid #ccc;
    padding: 1rem 2rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

#search_container{
    display: flex;
    align-items: center;
    gap: 1rem;
}

#search_input{
    background-color: #525356;
    border-radius: 5px;
    border: none;
    padding: 10px;
    font-weight: bold;
    color: #ddd;
    width: 400px;
}

#search_input::placeholder{
    color: #ddd;
}

#export_notes{
    background-color: #333;
    border: 2px solid #fff;
    border-radius: 4px;
    color: #fff;    
    padding: 5px 15px;
    cursor: pointer;
    transition: .4s;
}
#export_notes:hover{
    background-color: #fff;
    color: #333;
}

/* Form de nota */

#add_note_container{
    display: flex;
    width: 400px;
    margin: 1rem auto 0;
    gap: 1rem;
}

#add_note_container input,
#add_note_container button{
    padding: 10px;
    border-radius: 5px;
}

#add_note_container input{
    flex: 1;
    background-color: transparent;
    border: 1px solid #525356;
    color: #fff;
}

#add_note_container button{
    cursor: pointer;
    background-color: #333;
    color: #fff;
}

/* Notas */

#notes_container{
    display: grid;
    grid-template-columns: repeat(auto-fill, 250px);
    padding: 2rem;
    gap: 2rem;
}

.note{
    min-height: 200px;
    padding: 1rem;
    border: 1px solid #ddd;
    background-color: #202124;
    border-radius:  10px;
    color: #fff;
    position: relative;
}

.note textarea{
    background-color: transparent;
    resize: none;
    color: #fff;
    border: none;
    height: 100%;
    outline: none;
}

.note .bi-pin{
    position: absolute;
    left: 10px;
    bottom: 10px;
    font-size: 1.2rem;
    background-color: #333;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
}
.note:hover > i{
    opacity: 1;
}

.note .bi-x-lg,
.note .bi-file-earmark-plus{
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: .9rem;
    padding: 5px;
    transition: .3s;
    color: #555;
    cursor: pointer;
    opacity: 0;
}

.note .bi-file-earmark-plus{
    top: 40px;
}

.note .bi-x-lg:hover,
.note .bi-file-earmark-plus:hover{
    color: #fff;
}

.note.fixed{
 background-color: #3c3c3f;
}

/* RESPONSIVIDADE */

@media(max-width: 450px){

    header{
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    #search_container{
        width: 100%;
    }

    #search_input{
        width: 100%;
    }

    #add_note_container{
        width: 100%;
        padding: 0 2rem;
    }

    #notes_container{
        grid-template-columns: repeat(auto-fill, 100%);
    }

}