@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
    --phosphor-green: #33ff00;
    --phosphor-glow: rgba(51, 255, 0, 0.8);
    --bg-color: #051405; /* Darker green background */
}

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

::selection {
    background: #0d300d; /* Solid dark green to prevent stacking brightness */
    color: var(--phosphor-green);
}

::-moz-selection {
    background: #0d300d;
    color: var(--phosphor-green);
}

body {
    background-color: var(--bg-color);
    color: var(--phosphor-green);
    font-family: 'VT323', monospace;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Enhanced glow */
    text-shadow: 
        0 0 2px rgba(51, 255, 0, 0.9),
        0 0 10px rgba(51, 255, 0, 0.4),
        0 0 20px rgba(51, 255, 0, 0.2);
}

/* Scanline effect */
body::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 2;
    background-size: 100% 3px, 2px 100%;
    pointer-events: none;
}

/* CRT Screen curve vignette */
body::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: radial-gradient(circle, rgba(18, 16, 16, 0) 40%, rgba(0, 0, 0, 0.6) 110%);
    z-index: 3;
    pointer-events: none;
}

.terminal {
    z-index: 1;
    padding: 2rem;
    width: fit-content;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    font-size: min(1.5vw, 2.5vh);
    line-height: 1.1;
}

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

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    text-decoration: underline;
}

a:visited, a:active {
    color: inherit;
}

.cursor {
    display: inline-block;
    width: 0.6em;
    height: 1.2em;
    background-color: var(--phosphor-green);
    vertical-align: middle;
    margin-left: 2px;
    animation: blink 1s linear infinite;
    /* Ghosting effect */
    box-shadow: 
        0 0 8px var(--phosphor-green),
        -3px 0 10px rgba(51, 255, 0, 0.3),
        3px 0 10px rgba(51, 255, 0, 0.3);
}

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

/* Responsive adjustments for ASCII art */
@media (max-width: 600px) {
    .terminal {
        font-size: 8px;
        padding: 1rem;
    }
}
