:root {
    --bg-color: #0d1117;
    --text-color: #00ff41;
    /* Cyber Green */
    --dim-text: #008f11;
    --accent: #003b00;
    --error: #ff3333;
    --highlight: #00ff00;
    --crt-line: rgba(18, 16, 16, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #D9D9D9;
    color: var(--text-color);
    font-family: 'Fira Code', 'Courier New', monospace;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CRT Effects */
.terminal-container {
    width: 100%;
    max-width: 900px;
    height: 90vh;
    background-color: var(--bg-color);
    border: 2px solid var(--text-color);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px var(--dim-text);
    display: flex;
    flex-direction: column;
}

.crt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 10;
}

.scanline {
    width: 100%;
    height: 100px;
    z-index: 10;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 255, 0, 0.1) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.1;
    position: absolute;
    bottom: 100%;
    animation: scanline 10s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% {
        bottom: 100%;
    }

    100% {
        bottom: -100px;
    }
}

/* Header */
.terminal-header {
    background: var(--text-color);
    color: #000;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #000;
    border-radius: 50%;
    margin-right: 10px;
    animation: blink 2s infinite;
}

.status-indicator.online {
    background-color: #00ff00;
    /* Bright Green */
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.stats-panel {
    display: flex;
    gap: 20px;
}

/* Screens */
#app-content {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.screen {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Typography */
h1,
h2 {
    text-shadow: 0 0 5px var(--text-color);
    margin-bottom: 20px;
}

.ascii-art {
    white-space: pre;
    font-size: 10px;
    margin-bottom: 30px;
    color: var(--highlight);
    text-align: center;
    line-height: 10px;
}

@media (min-width: 600px) {
    .ascii-art {
        font-size: 14px;
        line-height: 14px;
    }
}

/* Buttons */
.cli-btn {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 15px 30px;
    font-family: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 30px;
    transition: all 0.2s;
    text-transform: uppercase;
}

.cli-btn:hover {
    background: var(--text-color);
    color: #000;
    box-shadow: 0 0 15px var(--text-color);
}

.cli-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Quiz Styles */
.question-terminal {
    width: 100%;
    text-align: left;
}

.prompt-line {
    margin-bottom: 20px;
    border-bottom: 1px dashed var(--dim-text);
    padding-bottom: 10px;
}

.prompt-user {
    color: var(--highlight);
    margin-right: 10px;
}

.command {
    color: #fff;
}

.question-text {
    font-size: 1.4rem;
    margin-bottom: 30px;
    min-height: 60px;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
}

@media (min-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.option-btn {
    background: rgba(0, 59, 0, 0.3);
    border: 1px solid var(--dim-text);
    color: var(--text-color);
    padding: 15px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: 0.2s;
    position: relative;
}

.option-btn:hover {
    background: var(--dim-text);
    color: #000;
}

.option-btn .key-hint {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    opacity: 0.5;
    border: 1px solid var(--text-color);
    padding: 2px 6px;
    border-radius: 4px;
}

.option-btn.correct {
    background: var(--text-color);
    color: #000;
    border-color: var(--highlight);
    box-shadow: 0 0 10px var(--text-color);
}

.option-btn.wrong {
    background: var(--error);
    color: #fff;
    border-color: red;
    box-shadow: 0 0 10px red;
}

/* Feedback Console */
.feedback-console {
    margin-top: 30px;
    width: 100%;
    border: 1px solid var(--dim-text);
    background: rgba(0, 0, 0, 0.8);
    text-align: left;
}

.feedback-header {
    background: var(--dim-text);
    padding: 5px 10px;
    color: #000;
    font-size: 0.9rem;
}

.feedback-content {
    padding: 15px;
    font-size: 1rem;
    line-height: 1.5;
}