* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: helvetica;
}

body {
    background-color: #202020;
}

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;
}

#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;
}

#notes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, 250px);
    padding: 2rem;
    gap: 2rem;
}

.note {
  min-height: 200px;
  padding: 1rem;
  border: 1px solid #ccc;
  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;
    background-color: #333;
    cursor: pointer;
    padding: 5px 7px;
    border-radius: 5px;
    transition: .3s;
}

.note .bi-pin:hover {
    padding: 6px 8px;
}

.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;
}

.note.fixed .bi-x-lg, .note.fixed .bi-file-earmark-plus {
    color: #160101;
    font-weight: bold;
}

.note.fixed .bi-x-lg:hover, .note.fixed .bi-file-earmark-plus:hover {
    color: #fff;
}

/*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%);
    }
}

