body {
    margin: 0;
    padding: 0;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.console {
    position: relative;
    width: 90%;
    height: 90%;
    padding: 20px;
    box-sizing: border-box;
    color: #ffd700; /* Amber yellow */
    font-family: 'Courier New', Courier, monospace;
    font-size: 24px;
    line-height: 1.5;
    overflow: hidden;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8); /* Stronger glow */
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.02) 0%, rgba(0, 0, 0, 1) 70%);
}

/* Prominent YELLOW scanlines */
.console::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 215, 0, 0.03) 0px,
        rgba(255, 215, 0, 0.06) 1px,
        rgba(0, 0, 0, 0.1) 2px,
        transparent 4px,
        transparent 8px
    );
    background-size: 100% 8px;
    pointer-events: none;
    animation: scanlines 0.1s linear infinite;
    z-index: 1;
    mix-blend-mode: screen;
}

@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 8px; }
}

/* HEAVY YELLOW STATIC NOISE */
.console::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ffd700, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 215, 0, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #ffd700, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 215, 0, 0.6), transparent),
        /* Procedural noise pattern */
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            transparent 2px,
            rgba(255, 215, 0, 0.1) 2px,
            rgba(255, 215, 0, 0.1) 4px
        );
    background-size: 200px 200px, 100px 100px, 150px 150px, 80px 80px, 10px 10px;
    opacity: 0.3;
    pointer-events: none;
    animation: static-noise 0.03s steps(10) infinite, flicker 2s ease-in-out infinite alternate;
    z-index: 2;
    mix-blend-mode: screen;
    filter: hue-rotate(40deg) brightness(1.2);
}

@keyframes static-noise {
    0% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% { 
        transform: translate(2px, 1px) scale(1.02);
        opacity: 0.4;
    }
    50% { 
        transform: translate(-1px, 2px) scale(0.98);
        opacity: 0.25;
    }
    75% { 
        transform: translate(1px, -1px) scale(1.01);
        opacity: 0.35;
    }
    100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
}

@keyframes flicker {
    0%, 100% { opacity: 0.3; }
    10%, 90% { opacity: 0.35; }
    20%, 80% { opacity: 0.25; }
    30%, 70% { opacity: 0.4; }
    40%, 60% { opacity: 0.2; }
    50% { opacity: 0.45; }
}

/* CRT curvature effect */
.console {
    border-radius: 10px;
    box-shadow: 
        inset 0 0 50px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(255, 215, 0, 0.1),
        inset 20px 0 50px rgba(0, 0, 0, 0.3),
        inset -20px 0 50px rgba(0, 0, 0, 0.3);
}

/* Subtle vignette */
.console::before {
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
}

/* Text glitch effect (reduced frequency) */
.console p {
    animation: text-glitch 10s infinite;
}

@keyframes text-glitch {
    0%, 95% { 
        text-shadow: 0 0 8px rgba(255, 215, 0, 0.8); 
    }
    97% { 
        text-shadow: 
            2px 0 0 #ffd700, 
            -2px 0 0 #000,
            0 0 8px rgba(255, 215, 0, 0.8);
    }
    98% { 
        text-shadow: 
            -1px 1px 0 #ffd700,
            1px -1px 0 #000,
            0 0 8px rgba(255, 215, 0, 0.8);
    }
    99% { 
        text-shadow: none;
    }
    100% { 
        text-shadow: 0 0 8px rgba(255, 215, 0, 0.8); 
    }
}

/* Add these new styles to your existing CSS */

body {
    margin: 0;
    padding: 0;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Changed from center to allow scrolling */
    min-height: 100vh; /* Changed from height to min-height */
    overflow: auto; /* Enable body scrolling */
}

.console {
    position: relative;
    width: 90%;
    max-width: 1200px; /* Limit max width for readability */
    min-height: 80vh; /* Minimum height but can grow */
    max-height: 90vh; /* Maximum height before scrolling */
    overflow-y: auto; /* Enable vertical scrolling inside console */
    padding: 20px;
    box-sizing: border-box;
    color: #ffd700;
    font-family: 'Courier New', Courier, monospace;
    font-size: 20px; /* Slightly smaller for better fit */
    line-height: 1.4; /* Tighter line height */
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.02) 0%, rgba(0, 0, 0, 1) 70%);
    border: 2px solid #ffd700;
    border-radius: 10px;
    box-shadow: 
        inset 0 0 50px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(255, 215, 0, 0.1),
        inset 20px 0 50px rgba(0, 0, 0, 0.3),
        inset -20px 0 50px rgba(0, 0, 0, 0.3);
}

/* Custom scrollbar for that retro feel */
.console::-webkit-scrollbar {
    width: 12px;
}

.console::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.8);
    border-left: 2px solid #ffd700;
}

.console::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ffd700, #ffaa00);
    border-left: 2px solid #000;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.console::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #ffaa00, #ffd700);
}

/* Ensure content sections have proper spacing */
.warning-header,
.warning-content,
.access-button-container,
.terminal-header,
.terminal-content,
.log-entry {
    margin-bottom: 20px;
    padding: 10px 0;
}

.access-button-container {
    text-align: center;
    margin: 40px 0 60px 0; /* Extra bottom margin to ensure button is visible when scrolling */
    padding: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

/* Auto-scroll to button on load for warning page */


/* Make countdown always visible on smaller screens */
.countdown {
    position: fixed; /* Changed from absolute to fixed */
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border: 1px solid #ff4444;
    border-radius: 5px;
    z-index: 1000;
    animation: blink 1s infinite;
}

/* Ensure footer stays at bottom but doesn't block content */
.footer {
    position: sticky;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 10px;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    margin-top: 20px;
}

.warning-header {
    text-align: center;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.warning-header h1 {
    color: #ff4444;
    text-shadow: 0 0 10px #ff4444;
    animation: pulse 1s infinite;
    margin: 0;
}

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

.warning-content ul {
    list-style: none;
    padding: 0;
}

.warning-content li {
    margin: 5px 0;
    position: relative;
    padding-left: 20px;
}

.warning-content li::before {
    content: ">>";
    color: #ff4444;
    position: absolute;
    left: 0;
}

.danger-btn {
    background: linear-gradient(45deg, #ff4444, #cc0000);
    color: #ffd700;
    border: 2px solid #ffd700;
    padding: 15px 30px;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
    transition: all 0.3s;
    animation: btn-glow 2s ease-in-out infinite alternate;
}

.danger-btn:hover {
    background: linear-gradient(45deg, #cc0000, #ff4444);
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.8);
    transform: scale(1.05);
}

@keyframes btn-glow {
    0% { box-shadow: 0 0 20px rgba(255, 68, 68, 0.5); }
    100% { box-shadow: 0 0 30px rgba(255, 68, 68, 0.8); }
}

.access-button-container {
    text-align: center;
    margin: 30px 0;
}

.btn-warning {
    color: #ffaa00;
    font-size: 14px;
    margin-top: 10px;
}

.countdown {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: #ff4444;
    text-align: right;
    font-size: 16px;
    animation: blink 1s infinite;
}

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

.glitch-text {
    animation: glitch 0.5s infinite;
    color: #ff4444;
}

/* Reduce glitch frequency for better readability */
.console p {
    animation: none; /* Disable constant glitching */
}