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

:root {
    --glitch-color-1: #ff0000;
    --glitch-color-2: #00ff00;
    --glitch-color-3: #0000ff;
    --bg-color: #000;
    --text-color: #ccc;
    --highlight-color: #fff;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'VT323', monospace;
    overflow: hidden;
    user-select: none;
}

body.allow-scroll {
    overflow-y: auto;
    height: auto;
    min-height: 100%;
}

/* CRT Effect Overlay */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    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%;
    pointer-events: none;
    z-index: 999;
    animation: flicker 0.15s infinite;
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(0,0,0,0) 60%, rgba(0,0,0,1) 100%);
    pointer-events: none;
    z-index: 998;
}

@keyframes flicker {
    0% { opacity: 0.97; }
    5% { opacity: 0.95; }
    10% { opacity: 0.9; }
    15% { opacity: 0.95; }
    20% { opacity: 0.98; }
    50% { opacity: 0.95; }
    80% { opacity: 0.9; }
    100% { opacity: 0.97; }
}

/* Glitch Animations */
@keyframes shake {
    0% { transform: translate(0, 0); }
    25% { transform: translate(1px, 1px); }
    50% { transform: translate(-1px, -1px); }
    75% { transform: translate(1px, -1px); }
    100% { transform: translate(0, 0); }
}

/* Common UI Elements */
a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
}

a:hover {
    color: var(--highlight-color);
    text-shadow: 2px 2px 0px var(--glitch-color-1), -2px -2px 0px var(--glitch-color-3);
}
