body { 
    background-color: #000; 
    color: #00ff00; 
    font-family: "Courier New", monospace; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    margin: 0; 
    padding: 20px; 
    box-sizing: border-box; 
    overflow-y: auto;
}

#terminal { 
    width: 900px; 
    max-width: 100%; 
    padding: 40px; 
    border: 4px solid #00ff00; 
    box-shadow: 0 0 30px #004400; 
    background: #050505; 
    position: relative; 
    min-height: 600px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
}

button { 
    background: rgba(0, 20, 0, 0.9); 
    color: #00ff00; 
    border: 1px solid #005500; 
    padding: 15px; 
    width: 100%; 
    text-align: left; 
    margin-bottom: 8px; 
    cursor: pointer; 
    font-family: inherit; 
    font-size: 16px; 
    transition: 0.2s; 
    position: relative; 
    z-index: 10;
}

.navigation-controls {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    width: 100%;
}

button:hover { 
    background: #00ff00; 
    color: #000; 
    font-weight: bold; 
    box-shadow: 0 0 15px #00ff00;
}

h1 { 
    border-bottom: 2px dashed #00ff00; 
    padding-bottom: 15px; 
    font-size: 24px; 
    text-transform: uppercase; 
    margin-top: 0;
}

p { 
    font-size: 18px; 
    line-height: 1.6; 
    margin-bottom: 30px; 
}

.fade-in { 
    animation: fadeIn 0.8s ease-out; 
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.result-box { 
    border: 4px double #00ff00; 
    padding: 30px; 
    text-align: center; 
}

.debug { 
    color: #003300; 
    font-size: 10px; 
    margin-top: 20px; 
    text-align: right; 
}

.skip-button {
    background: rgba(15, 15, 15, 0.9) !important;
    color: #55aa55 !important;
    border: 1px dashed #004400 !important;
    padding: 12px 25px !important;
    width: auto !important;
    min-width: 180px; 
    font-size: 14px !important;
    text-align: center !important;
    margin-top: 0 !important; 
}

.back-button {
    background-color: #222 !important; 
    color: #aaa !important;
    border: 1px solid #444 !important;
    padding: 12px 25px !important; 
    width: auto !important;
    min-width: 120px;
    font-size: 14px !important;
    text-align: center !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.back-button:hover {
    background-color: #666 !important;
    color: #fff;
}

#class-display-area p {
    white-space: pre-line;
}


body.red-mode {
    background-color: #050000 !important;
    color: #ff4444 !important;
}

body.red-mode #terminal {
    border-color: #ff0000 !important;
    box-shadow: 0 0 30px #660000 !important;
    background: #0a0000 !important;
}

body.red-mode h1 {
    color: #ff0000 !important;
    border-bottom-color: #ff0000 !important;
    text-shadow: 0 0 8px #880000 !important;
}

body.red-mode h2, 
body.red-mode strong {
    color: #ff0000 !important;
    text-shadow: 0 0 5px #aa0000 !important;
}

body.red-mode .result-box, 
body.red-mode div[style*="border"] { 
    border-color: #ff0000 !important;
    background-color: rgba(40, 0, 0, 0.3) !important;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2) !important;
}

body.red-mode button {
    background-color: rgba(40, 0, 0, 0.9) !important;
    color: #ff0000 !important;
    border: 1px solid #ff0000 !important;
    box-shadow: 0 0 5px #550000 !important;
}

body.red-mode button:hover {
    background-color: #ff0000 !important;
    color: #000 !important;
    box-shadow: 0 0 20px #ff0000 !important;
}

body.red-mode .skip-button,
body.red-mode .back-button {
    background: #1a0000 !important;
    color: #aa4444 !important;
    border-color: #550000 !important;
}

body.red-mode hr {
    border-color: #ff0000 !important;
}



