:root {
    --bg-dark: #050505;
    --bg-dark-2: #1a0505;
    --red-glow: #ff0000;
    --text-glow: #ffffff;
    --font-creepy: 'Creepster', system-ui;
    --font-tech: 'Share Tech Mono', monospace;
}

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

body {
    background-color: var(--bg-dark);
    color: white;
    font-family: var(--font-tech);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #000000, #1a0000, #000000);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Scanlines effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.2)
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 50%, black 150%);
    pointer-events: none;
    z-index: 11;
}

.container {
    text-align: center;
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* Homepage Elements */
.warning-text {
    font-family: var(--font-creepy);
    font-size: 4rem;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px var(--red-glow);
    animation: textPulse 3s infinite;
    letter-spacing: 5px;
}

@keyframes textPulse {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px rgba(255,255,255,0.5), 0 0 20px var(--red-glow); }
    50% { opacity: 0.8; text-shadow: 0 0 20px rgba(255,255,255,0.8), 0 0 40px var(--red-glow); }
}

.main-button {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #800000;
    border: none;
    cursor: pointer;
    position: relative;
    box-shadow: 0 0 20px var(--red-glow), inset 0 0 20px #000;
    transition: all 0.3s ease;
    animation: buttonPulse 2s infinite;
}

.button-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff4d4d, #990000);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.main-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px var(--red-glow), inset 0 0 10px #000;
    animation: shake 0.5s infinite;
}

@keyframes buttonPulse {
    0% { box-shadow: 0 0 20px var(--red-glow); }
    50% { box-shadow: 0 0 50px var(--red-glow), 0 0 80px rgba(255,0,0,0.3); }
    100% { box-shadow: 0 0 20px var(--red-glow); }
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

/* Countdown */
#countdown-number {
    font-size: 8rem;
    font-family: var(--font-creepy);
    color: var(--red-glow);
    text-shadow: 0 0 30px var(--red-glow);
}

/* Result Screen */
.message-text {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    min-height: 100px;
    text-shadow: 0 0 5px var(--red-glow);
    border-left: 2px solid var(--red-glow);
    padding-left: 15px;
    text-align: left;
}

.stats {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

.secondary-button {
    background: transparent;
    border: 1px solid var(--red-glow);
    color: var(--red-glow);
    padding: 10px 20px;
    font-family: var(--font-tech);
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.secondary-button:hover {
    background: var(--red-glow);
    color: black;
    box-shadow: 0 0 20px var(--red-glow);
}

/* Footer */
footer {
    position: absolute;
    bottom: 20px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
    z-index: 20;
}

.footer-link {
    color: #888;
    text-decoration: none;
    margin-top: 5px;
    display: inline-block;
    border-bottom: 1px dotted #888;
}

.footer-link:hover {
    color: white;
    border-bottom: 1px solid white;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Glitch Animation Classes */
.glitch-active {
    animation: glitch-anim 0.3s infinite;
}

@keyframes glitch-anim {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
}

body.glitch-effect {
    filter: hue-rotate(90deg) contrast(1.5);
}

.about-container {
    text-align: left;
    max-width: 800px;
}

.content-box {
    background: rgba(0,0,0,0.5);
    padding: 30px;
    border: 1px solid var(--red-glow);
    margin: 30px 0;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
}
