#content {
    display: flex;
}

#left-content {
    flex: 1;
    background-color: aqua;
}
#right-content {
    flex: 1;
    background-color: pink;
    display: flex;
    flex-direction: column;
}

#canvas {
    border: 1px solid #000;
    cursor: crosshair;
}

#generateButton {
    margin-top: 10px;
}

.tools button {
    margin-right: 10px;
}

.tools button.active {
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.sim,
.sim-controls,
.utils {
    margin-top: 10px;
}

.sim button,
.utils button {
    margin-right: 10px;
}

#simClock {
    display: inline-block;
    min-width: 72px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.sim-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sim-controls label {
    min-width: 60px;
}

.sim-controls input[type="range"] {
    flex: 1;
}

.sim-controls span {
    min-width: 100px;
    font-variant-numeric: tabular-nums;
}

.code-actions {
    margin: 10px;
}

.CodeMirror,
#codeEditor {
    flex: 1;
    width: calc(100% - 20px);
    margin: 0 10px 10px;
    min-height: 600px;
    box-sizing: border-box;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.4;
    tab-size: 2;
}

#codeEditor {
    resize: vertical;
    white-space: pre;
    background: #282a36;
    color: #f8f8f2;
    border: 1px solid #44475a;
    border-radius: 8px;
    padding: 14px 16px;
    caret-color: #f8f8f2;
    selection-color: #f8f8f2;
    outline: none;
}

#codeEditor::selection {
    background: #44475a;
    color: #f8f8f2;
}

#codeEditor:focus {
    border-color: #bd93f9;
    box-shadow: 0 0 0 2px rgba(189, 147, 249, 0.25);
}

.CodeMirror {
    border: 1px solid #44475a;
    border-radius: 8px;
    overflow: hidden;
    min-height: 600px;
    max-height: calc(100vh - 120px);
    background: #282a36;
}

.CodeMirror-focused {
    border-color: #bd93f9;
    box-shadow: 0 0 0 2px rgba(189, 147, 249, 0.25);
}

.CodeMirror-scroll {
    min-height: 600px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.cm-s-dracula .cm-meta {
    color: #ff79c6;
}
