:root {
    --phosphor-color: #4af626; /* Brilliant terminal green */
    --phosphor-dim: #217311;
    --amber-color: #ffb000;
    --bg-color: #050505;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at center, #111 0%, #000 100%);
    color: var(--phosphor-color);
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 1.4rem;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

#terminal {
    width: 100%;
    max-width: 900px;
    height: 100vh;
    padding: 2rem;
    box-sizing: border-box;
    text-shadow: 0 0 5px rgba(74, 246, 38, 0.5);
    line-height: 1.3;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 10;
}

/* Hide scrollbar for seamless CRT feeling */
#terminal::-webkit-scrollbar {
    width: 8px;
}
#terminal::-webkit-scrollbar-track {
    background: #000; 
}
#terminal::-webkit-scrollbar-thumb {
    background: var(--phosphor-dim); 
}

/* CRT monitor curve & scanlines effect */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 0, 0, 0.4) 50%
    );
    background-size: 100% 4px;
    z-index: 999;
}

.crt-overlay::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: radial-gradient(circle, rgba(0,0,0,0) 60%, rgba(0,0,0,0.6) 100%);
    z-index: 1000;
}

pre {
    margin: 0 0 3px 0;
    font-family: inherit;
    white-space: pre-wrap;
    word-break: break-all;
}

.ascii-art {
    color: var(--phosphor-color);
    font-size: 1.2rem;
    line-height: 1;
    margin: 20px 0;
    text-shadow: 0 0 8px rgba(74, 246, 38, 0.8);
    white-space: pre;
}

.sys-msg {
    color: var(--amber-color);
    text-shadow: 0 0 5px rgba(255, 176, 0, 0.8);
}

.input-line {
    display: flex;
    align-items: center;
    margin-top: 15px;
    padding-bottom: 40px;
}

#prompt {
    margin-right: 8px;
}

#typed-text {
    white-space: pre;
}

#cursor {
    animation: blink 1s step-end infinite;
    display: inline-block;
}

a.menu-item {
    color: var(--phosphor-color);
    text-decoration: none;
    cursor: pointer;
}
a.menu-item:hover, a.menu-item:focus {
    background-color: var(--phosphor-color);
    color: var(--bg-color);
    text-shadow: none;
    outline: none;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

::selection {
    background: var(--phosphor-color);
    color: var(--bg-color);
}
