:root {
    --bg: #1e1f24;
    --panel: #2a2d37;
    --border: #3a3f4b;
    --text: #c7cbd4;
    --muted: #9aa1ab;
    --accent: #ffffff;

    --cpp: #086692;
    --rust: #2f241c;
    --cs: #9b4f96;
}

/* Base page layout */

html,
body {
    height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 14px;
}

/* Two-column layout (with hacks to force equal width) */

.container {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    box-sizing: border-box;
}

.box {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: 50vw !important;
    max-width: 50vw !important;
    margin: 0 !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    background: var(--panel);
    box-shadow: inset 0 0 0 1px var(--border);
    font-size: 14px !important; /* same in both boxes */
}

/* Left and right column tweaks */

.text-box {
    background: #333744;
}

.code-box {
    background: var(--panel);
}

/* Output / preformatted text */

pre {
    margin: 0;
    white-space: pre-wrap;
}

/* Answer buttons in the C# lessons */

.text-box .ans {
    width: 600px;
    max-width: 100%;
    height: 30px;
    border-radius: 20px;
    background-color: var(--cpp);
    border: none;
    color: #fff;
    font: inherit;
    cursor: pointer;
    display: none; /* JS shows them when needed */
}

.text-box .ans:hover {
    background-color: #0a7fb5;
}

/* Language launch buttons on the homepage */

.cpp,
.rust,
.cs,
.qc {
    width: 150px;
    height: 20px;
    border-radius: 5px;
    border: none;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.cpp {
    background-color: var(--cpp);
}

.rust {
    background-color: var(--rust);
}

.cs {
    background-color: var(--cs);
}
.qc {
    background: linear-gradient(90deg, 
        #0e639c 0%,   
        #0e639c 33%,
        #c76b29 33%,   
        #c76b29 66%,
        #9b4f96 66%,  
        #9b4f96 100%
    );
}