body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    box-sizing: border-box;
}
.container {
    display: flex;
    flex: 1;
    gap: 20px;
    height: calc(100vh - 120px);
}
#input-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}
#output-section {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: auto;
    position: relative;
}
textarea {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: none;
    font-family: monospace;
}
button {
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}
button:hover {
    background-color: #45a049;
}
h1 {
    margin-top: 0;
}
#mindmap {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
}
.node {
    display: inline-block;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    text-align: center;
    font-size: 14px;
    position: absolute;
    transition: transform 0.3s ease;
    white-space: nowrap;
    z-index: 5;
}
.node:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.level-0 {
    background-color: #ff9999;
    font-weight: bold;
    z-index: 10;
}
.level-1 {
    background-color: #ffcc99;
    z-index: 9;
}
.level-2 {
    background-color: #ffff99;
    z-index: 8;
}
.level-3 {
    background-color: #99ff99;
    z-index: 7;
}
.level-4 {
    background-color: #99ccff;
    z-index: 6;
}
.level-5 {
    background-color: #cc99ff;
    z-index: 5;
}
.level-6 {
    background-color: #ff99cc;
    z-index: 4;
}
.connection {
    position: absolute;
    height: 2px;
    background-color: #444;
    transform-origin: 0 0;
    z-index: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    opacity: 0.8;
}
.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
#example-button {
    background-color: #2196F3;
}
#example-button:hover {
    background-color: #0b7dda;
}
#clear-button {
    background-color: #f44336;
}
#clear-button:hover {
    background-color: #d32f2f;
}
#controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 100;
    background: rgba(255,255,255,0.7);
    padding: 5px;
    border-radius: 5px;
}
#controls button {
    margin: 0 5px;
    padding: 5px 10px;
    font-size: 14px;
}
.help-text {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}
#download-button {
    background-color: #9C27B0;
    color: white;
}
#download-button:hover {
    background-color: #7B1FA2;
}
#download-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
}
#download-options {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 90%;
    width: 400px;
}
#download-options h3 {
    margin-top: 0;
}
#download-options button {
    margin: 10px 5px;
}
#download-options select {
    padding: 8px;
    margin: 10px 0;
    width: 100%;
}
#close-download {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
}