/* notes.css */

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

.noselect, .noselect * {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.drag    { cursor: grab;     }
.dragged { cursor: grabbing; }
.move    { cursor: move;     }

body {
    height: 100vh;
    background-color: #444357;
}
#main {
    height: inherit;
    padding: 5px;
    overflow: hidden;
}
#container {
    min-width: 100%;
    min-height: 100%;
    background-color: #5b5975;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
}
#toolbox {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 42px;
    height: 42px;
}
.toolbox-btn {
    position: absolute;
    width: inherit;
    height: inherit;
    z-index: 3;
    background-color: #2c2c31;
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    --fill-color: white;
}
.toolbox-btn-back {
    position: absolute;
    width: 42px;
    height: 42px;
    z-index: 2;
    transform: translate(-50%, 0);
    top: 2px;
    left: 50%;
    background-color: #6b6b6b;
    border-radius: 50%;
}
.toolbox-btn:active {
    transform: translateY(2px);
}
.toolbox-btn > svg {
    width: 100%;
    height: 100%;
}
.toolbox-content {
    z-index: 1;
    position: absolute;
    top: 5px;
    left: 50%;
    max-height: 300px; /* Set a maximum height for the expanded state */
    transform: translateX(-50%);
    background-color: white;
    list-style: none;
    display: flex;
    width: fit-content;
    justify-content: end;
    flex-direction: column;
    align-items: center;
    padding: 42px 3px 8px 3px;
    border-bottom: 3px solid #888;
    border-radius: 25px;
    overflow: hidden;
}
#toolbox.shrink > .toolbox-content {
    max-height: 0; /* Collapse the toolbox */
    padding: 8px 3px;
    top: 30%;
}
.tool-icon {
    width: 35px;
    height: 35px;
    margin: 2px 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    --fill-color: #444;
}
.tool-icon:hover {
    --fill-color: #5a656b;
}
.tool-icon.selected {
    border-radius: 50%;
    --fill-color: white;
    background-color: #666;
}
.tool-icon svg {
    width: 25px;
    height: 25px;
}

.note {
    position: absolute;
    transform: translate(-50%, -50%);
    background-color: #a6a0f3;
    font-size: 18px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    padding: 15px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 0 6px rgba(0,0,0,0.5);
    overflow: hidden;
    border-bottom: 3px solid #8782c5;
}
.note.resize {
    resize: both;
    border: none;
    border-radius: 0;
}

.note-content {
    overflow-wrap: break-word;
}

textarea {
    width: 100%;
    resize: none;
    font-size: 100%;
    font-family: inherit;
}
textarea::-webkit-scrollbar {
    display: none;
}