:root {
    --bg-color: #050505;
    --text-color: #00ff00;
    --font-stack: "Courier New", Courier, monospace;
}

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

body {
    background-color: #000; /* Darker padding around the "monitor" */
    color: var(--text-color);
    font-family: var(--font-stack);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

/* Optional: CRT Scanline effect */
.scanlines {
    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%;
    z-index: 10;
    pointer-events: none;
}

.container {
    display: flex;
    /* Kept at 130ch to protect ASCII art, height reduced by 25% */
    width: 130ch; 
    height: 37.5em;
    background-color: var(--bg-color);
    border: 1px solid #1a1a1a;
    padding: 2ch;
    position: relative;
    z-index: 2;
}

.left-pane {
    flex: 2;
    display: flex;
    flex-direction: column;
    padding-right: 3ch;
    border-right: 1px dashed #222;
}

.right-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-left: 3ch;
    overflow: hidden;
}

/* ASCII Name */
.ascii-name {
    white-space: pre;
    font-size: 0.85rem;
    line-height: 1.1;
    margin-bottom: 2em;
}

/* Middle Content */
.description-body {
    flex-grow: 1;
    font-size: 1rem;
    line-height: 1.5;
}

/* Bottom Options */
.options {
    margin-top: auto;
    padding-bottom: 1em;
}

.options ul {
    list-style-type: none;
    margin-top: 1rem;
}

.options li {
    margin-bottom: 0.5rem;
}

.options a {
    color: var(--text-color);
    text-decoration: none;
}

.options a:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Right Side Styling */
.image-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.ascii-image {
    font-size: 0.45rem;
    line-height: 1;
}

.system-status {
    border: 1px solid var(--text-color);
    padding: 1ch;
    font-size: 0.9rem;
    background: rgba(0, 255, 0, 0.05);
}

/* --- DYNAMIC VIEW STYLING --- */
#content-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    
    /* Enable terminal scrolling */
    overflow-y: auto;
    overflow-x: hidden;
    
    /* Keep text from touching the scrollbar and buttons */
    padding-right: 2ch; 
    margin-bottom: 1rem;
    
    /* Firefox fallback scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: var(--text-color) #0a0a0a;
}

/* --- TERMINAL SCROLLBAR (Webkit - Chrome/Edge/Safari) --- */
#content-area::-webkit-scrollbar {
    width: 1ch; /* Blocky, character-width scrollbar */
}

#content-area::-webkit-scrollbar-track {
    background: #0a0a0a; /* Slightly lighter than the absolute black background */
    border-left: 1px solid #222; /* Subtle track line */
}

#content-area::-webkit-scrollbar-thumb {
    background: var(--text-color); /* Solid phosphor green block */
}

#content-area::-webkit-scrollbar-thumb:hover {
    background: #fff; /* Flash white when hovered */
}

.hidden {
    display: none !important;
}

.active {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Terminal List Formatting */
.dir-list {
    list-style-type: none;
    margin-top: 1rem;
    padding-left: 0;
}

.dir-list li {
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-size: 0.9rem;
}

.dir-list .highlight {
    font-weight: bold;
    text-decoration: underline;
    text-decoration-style: dotted;
}

/* Back Button */
.back-btn {
    margin-top: auto;
    align-self: flex-end;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.back-btn:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    border: 1px solid var(--text-color);
}
