/* Overlay to darken the body */
#console-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 8;
    display: flex;
}

/* Console container */
#console {
    position: fixed;
    transform: translateX(-50%);
    max-width: 90vw;
    max-height: 90vh;
    min-width: 4in;  /* 😏 */
    min-height: 4in;
    background: var(--background);
    border: 2px solid var(--accent);
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.8);
    z-index: 9;
    font-family: monospace;
    color: var(--text);
    resize: both;
    overflow: auto;
    flex-direction: column;
}

#console .console-header {
    color: var(--text);
    background: var(--sidebar);
    height: 32px;
    cursor: move;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-bottom: 1px solid var(--sidebar);
}

#console .console-output {
    color: var(--text);
    overflow-y: auto;
    padding: 0 12px;
    height: calc(100% - 72px);
    white-space: pre-wrap;
    font-size: 15px;
    cursor: text;
    user-select: text;
}

#console .console-input-wrapper {
    position: absolute;
    display: flex;
    border-top: 1px solid var(--accent);
    background: var(--background2);
    bottom: 0;
    width: 100%
}

#console .console-input {
    flex: 1;
    color: var(--text);
    background: var(--sidebar);
    border: none;
    outline: none;
    font-family: monospace;
    font-size: 15px;
    padding: 6px;
}
