:root {
    --bg-color: #050505;
    --text-color: #eaeaea; /* Classic white CRT text */
    --flicker-color: rgba(255, 255, 255, 0.05);
}

* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

/* CRT Screen Effect */
.crt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 20;
}

.crt::before {
    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.25) 50%,
        rgba(0, 0, 0, 0.25) 100%
    );
    background-size: 100% 4px;
    pointer-events: none;
}

.crt::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.02);
    opacity: 0;
    pointer-events: none;
    animation: flicker 0.15s infinite;
}

/* Scanlines moving effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.1)
    );
    background-size: 100% 4px;
    animation: scanline 10s linear infinite;
    z-index: 21;
    pointer-events: none;
    opacity: 0.6;
}

#container {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

pre {
    margin: 0;
    white-space: pre;
    text-align: left;
    max-width: 100%;
    overflow-x: auto;
}

#title {
    font-size: min(1.8vw, 24px); 
    font-weight: bold;
    margin-bottom: 2rem;
}

#orca {
    font-size: min(1.8vw, 18px);
    margin-bottom: 3rem;
    color: #cccccc; 
}

#links {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.retro-link {
    font-size: clamp(16px, 2vw, 24px);
    color: var(--text-color);
    text-decoration: none;
    border: 2px solid var(--text-color);
    padding: 10px 30px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 30; /* ensure it is clickable */
}

.retro-link:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Animations */
@keyframes flicker {
    0% { opacity: 0.02; }
    50% { opacity: 0.05; }
    100% { opacity: 0.02; }
}

@keyframes scanline {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}

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