body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'IBM Plex Mono', monospace;
}

.mind-map-container {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
}

#mindMap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: grab;
}

#mindMap:active {
    cursor: grabbing;
}

.node {
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: absolute;
}

.node::after {
    content: attr(data-notes);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: pre-wrap;
    max-width: 200px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.node:hover::after {
    opacity: 1;
}

.node input {
    font-family: 'IBM Plex Mono', monospace;
    background: transparent;
    border: none;
    text-align: center;
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
    border-radius: 50%;
}

.node input:focus {
    outline: none;
}

.node.level-0 {
    background-color: #007bff;
    color: white;
    width: 200px;
    height: 200px;
}

.node.level-0 input {
    font-size: 24px;
    font-weight: 600;
    color: white;
}

.node.level-1 {
    background-color: #0056b3;
    color: white;
    width: 120px;
    height: 120px;
}

.node.level-1 input {
    font-size: 18px;
    font-weight: 500;
    color: white;
}

.node.level-2 {
    background-color: #ffffff;
    border: 2px solid #0056b3;
    width: 100px;
    height: 100px;
}

.node.level-2 input {
    color: #0056b3;
    font-weight: 500;
}

.node.level-3, .node.level-4, .node.level-5 {
    background-color: #eeeeee;
    border: 2px solid #0056b3;
    width: 80px;
    height: 80px;
}

.node.level-3 input, .node.level-4 input, .node.level-5 input {
    font-size: 12px;
    color: #0056b3;
    font-weight: 500;
}

.connection {
    position: absolute;
    height: 2px;
    background-color: #0056b3;
    transform-origin: 0 50%;
    pointer-events: none;
}

.buttons {
    position: absolute;
    display: flex;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 5px;
    margin-top: 5px;
    z-index: 10;
}

.buttons button {
    background-color: #ffffff;
    border: 1px solid #0056b3;
    color: #0056b3;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    margin: 2px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.buttons button:hover {
    background-color: #0056b3;
    color: #ffffff;
}

.buttons button .material-icons {
    font-size: 18px;
}

.node-image {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    margin-top: 5px;
}

.controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column; /* Change to column layout */
    align-items: flex-end; /* Align buttons to the right */
    max-width: 200px; /* Adjust max-width for vertical layout */
}

.controls button {
    margin: 5px 0; /* Adjust vertical margin */
    padding: 8px 16px;
    font-size: 14px;
    font-family: 'IBM Plex Mono', monospace;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align text to the left */
    width: 100%; /* Make buttons full width of the container */
}

.controls button:hover {
    background-color: #0056b3;
}

.controls button .material-icons {
    font-size: 18px;
    margin-right: 8px;
}

.button-visibility {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%; /* Make it full width of the container */
}

.button-visibility label {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
    width: 100%; /* Make labels full width */
}

.button-visibility input[type="radio"] {
    margin-right: 5px;
}

.guide-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
    z-index: 1000;
}

.guide-modal h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.guide-modal h2 {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.guide-modal p, .guide-modal ul, .guide-modal ol {
    margin-bottom: 10px;
}

.guide-modal button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.guide-modal button:hover {
    background-color: #0056b3;
}

.center-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background-color: red;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
}

.buttons button:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

/* ... (existing styles) ... */

.controls button#privacyButton {
    background-color: #28a745; /* A different color to distinguish it from other buttons */
}

.controls button#privacyButton:hover {
    background-color: #218838;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
    z-index: 1000;
    font-family: 'IBM Plex Mono', monospace;
}

.modal h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.modal h2 {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal p, .modal ul, .modal ol {
    margin-bottom: 10px;
}

.modal button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.modal button:hover {
    background-color: #0056b3;
}

.color-picker {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
    display: flex;
    flex-wrap: wrap;
    width: 120px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}

.color-option {
    width: 30px;
    height: 30px;
    margin: 2px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #ccc;
}

.color-option.reset {
    background-color: white;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-family: 'IBM Plex Mono', monospace;
}
