@charset "utf-8";
/* Estilos gerais da página */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 20px;
}

/* Área onde os post-its serão adicionados */
#board {
    width: 100%;
    height: 90vh;
    border: 2px dashed #ccc;
    position: relative;
    overflow: hidden;
    background: white;
}

/* Estilos dos post-its */
.post-it {
    width: 150px;
    height: 150px;
    background: yellow;
    position: absolute;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    cursor: grab;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

/* Estilo quando o post-it está sendo arrastado */
.post-it:active {
    cursor: grabbing;
}

/* Botão para adicionar novos post-its */
#addNote {
    margin-bottom: 10px;
    padding: 10px;
    cursor: pointer;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
}

#close-all-notes{
    margin-bottom: 10px;
    padding: 10px;
    cursor: pointer;
    background: #ff0000;
    color: white;
    border: none;
    border-radius: 5px;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border: none;
    background: none;
    color: red;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.close-btn:hover {
    background: red;
    color: white;
}

/* Estilo do botão de cores */
.color-btn {
    background-color: #eeeeee98;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    height: 30px;
    margin: 3px 37px 0px 3px;
}

/* Menu de cores escondido por padrão */
.color-menu {
    display: none;
    position: absolute;
    background-color: #504e4e;
    border-radius: 4px;
    padding: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* Exibir menu de cores ao ser visível */
.color-menu.visible {
    display: flex;
    gap: 5px;
}

/* Estilo das opções de cores */
.color-option {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.color-option:hover {
    transform: scale(1.2); /* Efeito ao passar o mouse */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}


.text-area {
    flex-grow: 1; /* Ocupa todo o espaço abaixo do botão */
    padding: 5px 10px 10px; /* O topo empurra o texto para baixo */
    overflow: auto;
    white-space: pre-wrap;
    margin: 5px 0px 0px 0px; /* Margem superior maior, laterais e inferior iguais ao post-it */
    outline: none; /* Remove a borda azul ao focar */
}