/*
    Instructions for Agent:
    1.  Link the recommended Google Fonts in the main HTML file.
    2.  Apply the classes defined below to the corresponding HTML elements generated by the game logic.
    3.  The `.white-team-theme` and `.black-team-theme` classes should be applied to the main container
        to style the UI according to the player's chosen team.
*/

/* --- 1. Font Imports (Add to HTML Head) --- */
/*
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&family=Orbitron:wght@500&family=Roboto:wght@400;700&display=swap" rel="stylesheet">
*/

/* --- 2. CSS Variables & General Theme --- */
:root {
    --font-sans: 'Roboto', sans-serif;
    --font-digital: 'Orbitron', sans-serif;
    --font-handwritten: 'Kalam', cursive;
    --font-keyword: 'Workbench', sans-serif;
    --font-ui-special: 'Bungee Shade', sans-serif;
    --font-terminal: 'VT323', monospace; /* For terminal-style text */

    /* Fonts for retro-tech look */
    --font-keyword: 'Workbench', sans-serif; /* For Keywords */
    --font-ui-special: 'Bungee Shade', sans-serif; /* For UI Titles */

    --color-background: #1a1a1a;
    --color-digital-red: #e50000;
    --color-digital-red-glow: rgba(255, 0, 0, 0.5);
    
    --color-white-team-bg: #DCDCDC;
    --color-white-team-text: #222;
    --color-white-team-border: #bbb;

    --color-black-team-bg: #333;
    --color-black-team-text: #E0E0E0;
    --color-black-team-border: #555;

    --token-interception: #FFFFFF;
    --token-miscommunication: #000000;
    --token-border: #e50000;
}

body {
    padding: 40px 20px; /* Add some padding so the console isn't stuck to the edges */
    margin: 0;
    min-height: 100vh; /* Use min-height instead of height */
    overflow-y: auto; /* Allow vertical scrolling */
    font-family: 'Roboto', sans-serif;
    display: flex; /* Use flexbox to center content */
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

#gradient-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Place it behind everything */
    background: linear-gradient(135deg, #00adef, #0076e5);
}

#container-inside {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
}

#circle-small,
#circle-medium,
#circle-large,
#circle-xlarge,
#circle-xxlarge {
    background: #fff;
    border-radius: 50%;
    position: absolute;
    animation: circle-small-scale 3s ease-in-out infinite alternate;
    animation-timing-function: cubic-bezier(.6, 0, .4, 1);
}

#circle-small {
    top: 200px;
    left: -150px;
    width: 300px;
    height: 300px;
    opacity: 0.4;
    animation-delay: 0s;
}

#circle-medium {
    top: 50px;
    left: -300px;
    width: 600px;
    height: 600px;
    opacity: 0.3;
    animation-delay: 0.3s;
}

#circle-large {
    top: -100px;
    left: -450px;
    width: 900px;
    height: 900px;
    opacity: 0.2;
    animation-delay: 0.6s;
}

#circle-xlarge {
    top: -250px;
    left: -600px;
    width: 1200px;
    height: 1200px;
    opacity: 0.1;
    animation-delay: 0.9s;
}

#circle-xxlarge {
    top: -400px;
    left: -750px;
    width: 1500px;
    height: 1500px;
    opacity: 0.05;
    animation-delay: 1.2s;
}

/* --- Splash Screen Transition Elements --- */
.title-container, .glitch, .header-buttons {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-console {
    transition: opacity 0.5s ease 0.5s; /* Fade in after a delay */
}

/* --- Splash Screen Active Styles --- */
.splash-active {
    overflow: hidden; /* Hide scrollbars on splash */
}

/* Center the header container on the splash screen */
.splash-active .main-header {
    flex-direction: column;
    justify-content: center;
    height: 100vh;
}

/* Center and enlarge the title */
.splash-active .glitch {
    font-size: 10vw; /* Large title on splash */
    text-align: center;
    transform: none; /* No rotation on splash */
}

/* Position buttons below the title */
.splash-active .header-buttons {
    position: static; /* Not absolutely positioned on splash */
    flex-direction: row;
    gap: 20px;
    margin-top: 30px;
}

/* --- 3. Main Game Console / Screen --- */
.game-console {
    /* We need to ensure the console has a z-index to stay on top */
    z-index: 1;
    position: relative;
    margin: auto; /* Helps with centering and scrolling behavior */
    width: 100%;
    max-width: 600px;
    padding: 20px;
    border-radius: 12px;
    border: 3px solid;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Retro plastic look for the white team */
.game-console.white-team-theme {
    background-color: #EAEAEA;
    border: 1px solid #BDBDBD;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2),
                inset 0px 2px 3px rgba(255, 255, 255, 0.8);
}

/* Team-specific Themes */
.white-team-theme {
    background-color: var(--color-white-team-bg);
    color: var(--color-white-team-text);
    border-color: var(--color-white-team-border);
}

.black-team-theme {
    background-color: var(--color-black-team-bg);
    color: var(--color-black-team-text);
    border-color: var(--color-black-team-border);
}

/* --- 4. Keyword and Code Displays --- */
.keywords-container {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 20px;
}

.keyword-slot {
    flex-grow: 1;
    padding: 10px 5px; /* Adjust padding for better text alignment */
    font-family: var(--font-keyword); /* Applies Workbench font */
    font-size: 1.1em; /* Reduced font size to fit */
    line-height: 1.2; /* Adjust line height for wrapped text */
    word-wrap: break-word; /* Allows long words to break and wrap */
    position: relative;
    border: 1px solid #5C0000;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    background-color: #1A0000;
    color: var(--color-digital-red, #e50000);
    text-shadow: 0 0 6px var(--color-digital-red-glow, rgba(255,0,0,0.5));
    box-shadow: inset 0 0 8px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Special UI titles using Bungee Shade */
.ui-special-font {
    font-family: var(--font-ui-special); /* Use Bungee Shade font */
    font-size: 1.2em; /* Adjust size for readability */
    letter-spacing: 0.1em; /* Add space between characters */
    font-weight: 100;
}

/* Larger centered title for the opponent clues section */
.enemy-clues-title {
    font-size: 1.92em; /* 20% smaller than before */
    text-align: center;
}

/* Style for the keyword numbers */
.keyword-number {
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 0.8em;
    font-weight: bold;
    opacity: 0.7;
    display: none;
}
/* Border color handled by CRT style above */

.code-display {
    background-color: #2b0000;
    font-family: var(--font-digital);
    color: var(--color-digital-red);
    text-shadow: 0 0 8px var(--color-digital-red-glow);
    font-size: 1.75em; /* Reduced 30% for smaller code digits */
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    letter-spacing: 0.2em;
    border: 2px solid var(--color-digital-red);
}

/* Button to generate the code, styled like a floppy disk */

/* Container for the floppy button and tokens */
.middle-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 5px; /* Reduced space around the floppy disk */
}

.code-generator-area {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
}

.floppy-disk-button {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    background-color: #555;
    border: 2px solid #222;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
}
.floppy-disk-button:hover { background-color: #666; }
.floppy-disk-button::before {
    /* metal slider */
    content: '';
    position: absolute;
    top: 8px;
    left: 10px;
    right: 10px;
    height: 22px;
    background: linear-gradient(#eee, #bbb);
    border-radius: 2px;
}
.floppy-disk-button::after {
    /* paper label */
    content: '';
    position: absolute;
    top: 40px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background-color: #fafafa;
    border-radius: 2px;
}

/* --- 5. Token Display --- */
/* New Token Area Layout */
.token-column {
    flex: 1 1 200px; /* Allow growth but start wider */
    max-width: 200px; /* Increase width of token boxes */
    padding: 6px 4px; /* Reduced padding */
    border-radius: 6px;
    border: 2px solid #555;
    text-align: center;
}

.interception-column {
    background-color: #fff;
    color: #000;
}

.miscommunication-column {
    background-color: #222;
    color: #fff;
}

.token-column .token-label {
    font-family: var(--font-ui-special);
    font-size: 0.9em;
    line-height: 1.1;
    margin-bottom: 8px;
    margin-top: 5px;
}

.miscommunication-column .token-label {
    margin-top: 8px;
    margin-bottom: 5px;
}

.token-buttons-container {
    display: flex;
    justify-content: center;
    gap: 6px; /* Narrower spacing between tokens */
}
.token-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
.token-display {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid var(--token-border);
    margin: 0 3px;
    opacity: 0.3;
    transition: opacity 0.2s;
}
.token-display.active {
    opacity: 1;
    background: radial-gradient(circle at 50% 40%, #FF8A8A, var(--color-digital-red));
    box-shadow: 0 0 10px var(--color-digital-red),
                inset 0 0 5px rgba(255,255,255,0.5);
}
.token-interception { background-color: var(--token-interception); }
.token-miscommunication { background-color: var(--token-miscommunication); }


/* --- 6. Notes / Clue History --- */
.encryptor-card {
    position: relative;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
}
.white-team-theme .encryptor-card { background-color: #c9c9c9; }
.black-team-theme .encryptor-card { background-color: #2a2a2a; }

.encryptor-card .clue-input {
    font-family: var(--font-handwritten);
    font-size: 1.3em;
}

#round-counter {
    text-align: center;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 0;
}

/* New labels above clue inputs */
.card-labels {
    display: grid;
    grid-template-columns: 50% 16.66% 16.66% 16.66%;
    gap: 0;
    font-size: 0.8em;
    opacity: 0.7;
    padding: 0;
    margin-bottom: 5px;
}
.card-labels span {
    font-family: var(--font-terminal);
    text-transform: uppercase;

}
.card-labels .label-clue {
    width: 100%;
}
.card-labels .label-guess {
    width: 100%;
    text-align: center;
    margin: 0;
    flex-shrink: 0;
}

.clue-row {
    display: grid;
    grid-template-columns: 50% 16.66% 16.66% 16.66%;
    align-items: center;
    gap: 0;
    margin-bottom: 10px;
}

.clue-row .clue-input {
    width: 100%;
    margin: 0;
}

.guess-box {
    width: 100%;
    height: 35px;
    text-align: center;
    font-family: var(--font-digital);
    font-size: 1.5em;
    padding: 0;
}
.card-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}
.card-actions button {
    width: 48%;
}

/* Tooltip for showing past clues */
.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #222;
    color: #eee;
    border: 1px solid #888;
    border-radius: 8px;
    padding: 15px;
    width: 250px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.4);
    z-index: 10;
}
.encryptor-card button.clear-button {
    width: auto;
    padding: 5px 15px;
    font-size: 0.8em;
    margin-top: 5px;
}

.opponent-notes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    text-align: center;
}

.opponent-notes-grid .clue-column textarea {
    width: 100%;
    box-sizing: border-box;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid;
    border-radius: 0;
    font-family: var(--font-terminal); /* Use VT323 font */
    font-size: 1.2em; /* Adjust size for a classic terminal look */
    padding: 2px 5px;
    margin-bottom: 4px;
    height: 20px;
    resize: none;
    overflow: hidden;
}
.white-team-theme .opponent-notes-grid .clue-column textarea {
    color: var(--color-white-team-text);
    border-color: #aaa;
}
.black-team-theme .opponent-notes-grid .clue-column textarea {
    color: var(--color-black-team-text);
    border-color: #555;
}
.clue-column {
    border: 2px solid;
    border-radius: 6px;
    padding: 5px; /* reduce internal spacing */
    min-height: 150px;
}
.white-team-theme .clue-column { border-color: var(--color-white-team-border); }
.black-team-theme .clue-column { border-color: var(--color-black-team-border); }

.clue-column h4 {
    margin-top: 0;
    margin-bottom: 0; /* Ensure consistent spacing for R1 textareas */
    border-bottom: 1px solid;
    padding-bottom: 5px;
    font-family: var(--font-keyword);
    font-size: 1.5em;
}
.white-team-theme .clue-column h4 { border-color: var(--color-white-team-border); }
.black-team-theme .clue-column h4 { border-color: var(--color-black-team-border); }

.note-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.note-number {
    width: 1.2em;
    flex-shrink: 0;
    font-family: var(--font-terminal);
    color: #888;
}

.clue-item {
    font-family: var(--font-handwritten);
    font-size: 1.3em;
    margin-bottom: 5px;
}

/* --- 7. Buttons and Inputs --- */
.input-group {
    margin: 15px 0;
}
input[type="text"], input[type="number"] {
    width: calc(100% - 20px);
    padding: 10px;
    border-radius: 4px;
    border: 1px solid;
    font-size: 1em;
}
.white-team-theme input {
    background-color: #fff;
    color: #000;
    border-color: var(--color-white-team-border);
}
.black-team-theme input {
    background-color: #555;
    color: #fff;
    border-color: #777;
}

button {
    width: 100%;
    padding: 12px;
    font-family: var(--font-sans);
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}
button.primary-action {
    background-color: var(--color-digital-red);
    color: white;
}
button.primary-action:hover {
    background-color: #b00000;
}

/* Retro style for "New Round" and "Given Clues" buttons */
.retro-button {
    font-family: var(--font-terminal);
    font-size: 1.1em;
    text-transform: uppercase;
    background-color: #E0E0E0;
    color: #222;
    border: 2px solid #555;
    border-radius: 5px;
    box-shadow: inset -2px -2px 0px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: all 0.1s ease;
}

.retro-button:active {
    box-shadow: inset 2px 2px 0px rgba(0,0,0,0.25);
    transform: translateY(1px);
}

.black-team-theme .retro-button {
    background-color: #555;
    color: #E0E0E0;
    border-color: #222;
}

/* Base style for the main action button */
#new-game-button {
    width: auto;
    padding: 10px 20px;
    font-size: 1em;
}

@keyframes circle-small-scale {
    0% {
        transform: scale(1.0);
    }
    100% {
        transform: scale(1.1);
    }
}


/* --- "How to Play" Button --- */
#how-to-play-button {
    width: auto;
    padding: 8px 15px;
    font-size: 0.8em;
    background-color: #555;
    color: white;
}

#how-to-play-button:hover {
    background-color: #777;
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: var(--color-white-team-bg, #DCDCDC);
    color: var(--color-white-team-text, #222);
    padding: 20px 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.black-team-theme .modal-content {
    background: var(--color-black-team-bg, #333);
    color: var(--color-black-team-text, #E0E0E0);
}

.modal-close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 30px;
    height: 30px;
    font-size: 1.4em;
    background: var(--color-digital-red);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.modal-content h2 {
    font-family: var(--font-ui-special, 'Monofett');
    text-align: center;
    margin-top: 0;
}

.modal-content .attribution {
    font-size: 0.9em;
    text-align: center;
    opacity: 0.8;
    margin-top: 20px;
}

/* Small footer text at the bottom of the page */
.page-footer {
    font-size: 0.8em;
    text-align: center;
    opacity: 0.8;
    margin-top: 20px;
}

/* Utility class to hide elements */
.hidden {
    display: none !important;
}

/* --- Settings Modal --- */
.settings-panel {
    width: 90%;
    max-width: 600px;
}

.settings-section {
    margin-bottom: 20px;
}

.settings-section h4 {
    font-family: var(--font-ui-special);
    font-size: 1.2em;
    margin: 0 0 10px 0;
    text-align: left;
}

.tag-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#toggle-tags-button {
    font-size: 0.8em;
    padding: 5px 10px;
    background-color: #555;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.checkbox-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-container.tag-container {
    max-height: 150px;
    overflow-y: auto;
    padding: 10px;
    background-color: rgba(0,0,0,0.1);
    border-radius: 4px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-terminal);
}

.checkbox-item input[type="checkbox"] {
    margin-right: 5px;
}

/* --- Animated Glitch Title --- */
.title-container {
    /* Initially hidden for the reveal animation */
    opacity: 0;
    animation: fadeIn 0.5s ease 1.5s forwards; /* Fades in after the glitch reveal */
    position: relative;
    z-index: 1;
}

.glitch {
    font-family: 'Rampart One', sans-serif;
    font-size: 2.1vw; /* Reduced size */
    color: #fff;
    position: relative;
    letter-spacing: 0.1em;
    text-shadow:
        0 0 5px rgba(109, 230, 248, 0.4),
        0 0 10px rgba(109, 230, 248, 0.4);

    /* Reveal Animation */
    animation: reveal-glitch 2s ease-out forwards;
}

/* Glitch pseudo-elements (the red/blue copies) */
.glitch::before,
.glitch::after {
    content: attr(data-text); /* Uses the text from the data-text attribute */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    clip-path: inset(0 0 0 0); /* No clipping initially */
}

.glitch::before {
    left: -2px;
    text-shadow: 1px 0 #ff3f65; /* Magenta/Red glow */
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: 2px;
    text-shadow: -1px 0 #00d8ff; /* Cyan glow */
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

/* --- Keyframe Animations --- */

/* Glitch effect for pseudo-elements */
@keyframes glitch-anim-1 {
    0% { clip-path: inset(45% 0 50% 0); }
    25% { clip-path: inset(10% 0 82% 0); }
    50% { clip-path: inset(80% 0 5% 0); }
    75% { clip-path: inset(40% 0 55% 0); }
    100% { clip-path: inset(60% 0 32% 0); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(15% 0 80% 0); }
    25% { clip-path: inset(90% 0 5% 0); }
    50% { clip-path: inset(20% 0 75% 0); }
    75% { clip-path: inset(65% 0 20% 0); }
    100% { clip-path: inset(30% 0 68% 0); }
}

/* Reveal animation (the "over the top" part) */
@keyframes reveal-glitch {
  0% { text-shadow: none; color: transparent; }
  20% { color: #fff; text-shadow: 2px 2px #ff3f65, -2px -2px #00d8ff; }
  60% { color: #fff; text-shadow: none; }
  100% { color: #fff; }
}

/* Fade-in for the container after reveal */
@keyframes fadeIn {
  to { opacity: 1; }
}

/* --- Media Query for Wide Screens --- */
/* On screens wider than 1024px */
@media (min-width: 1024px) {
    body {
        position: relative;
        overflow-x: hidden;
    }

    .main-header {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }

    .title-container {
        position: absolute;
        top: 50%;
        left: 5%;
        transform: translateY(-50%) rotate(-15deg);
        transform-origin: center;
    }

    .glitch {
        font-size: 3.5vw;
    }

    .header-buttons {
        position: absolute;
        top: 20px;
        right: 20px;
        display: flex;
        gap: 10px;
        pointer-events: auto;
    }


    .game-console {
        margin: auto;
    }
}

/* --- MOBILE & TABLET LAYOUT --- */
@media (max-width: 1023px) {
    body {
        padding: 10px;
        display: block;
    }

    /* Center splash content on mobile */
    body.splash-active {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100vh;
    }

    body.splash-active .main-header {
        height: auto;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .main-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }

    .title-container {
        transform: none;
        padding: 0;
        flex-grow: 1;
    }

    .glitch {
        font-size: 5.6vw;
        text-align: left;
    }

    .header-buttons {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    #new-game-button, #how-to-play-button {
        position: static;
        width: 100px;
        font-size: 0.7em;
        padding: 8px;
    }

    .game-console {
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
    }

    .keyword-slot {
        font-size: 0.9em;
        padding: 8px 4px;
        min-height: 40px;
    }
    .token-column .token-label {
        font-size: 0.63em;
    }

    .clue-row {
        gap: 0;
    }
    .clue-input {
        padding: 8px;
        font-size: 0.9em;
    }
    .guess-box {
        width: 30px;
        height: 30px;
        font-size: 1.2em;
    }
    .card-labels .label-guess {
        width: 100%;
    }

    .opponent-notes-grid {
        gap: 5px;
    }
    .opponent-notes-grid .clue-column textarea {
        height: 18px;
        font-size: 1em;
    }
}

/* --- Fullscreen Scanline Background Effect --- */
body::after {
    content: "";
    position: fixed; /* Covers the entire viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allows clicks to go through */
    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% 4px, 100% 100%;
    z-index: 0; /* Positioned behind content */
    animation: scanline-anim 15s linear infinite;
}

/* Animates the scanlines moving down the screen */
@keyframes scanline-anim {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 0 -100vh;
    }
}
