/* CLASSIC EARLY INTERNET STYLING */
/* Maximum cursed aesthetic */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Improve text rendering on mobile */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent text size adjustment on orientation change */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Improve tap highlighting on mobile */
a, button, .share-btn {
    -webkit-tap-highlight-color: rgba(255, 0, 0, 0.3);
}

body {
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', cursive;
    background-color: #000000;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,0,0,.03) 10px, rgba(255,0,0,.03) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(0,0,255,.03) 10px, rgba(0,0,255,.03) 20px);
    color: #00ff00;
    padding: 20px;
    min-height: 100vh;
    animation: backgroundShift 10s infinite alternate;
    transition: all 0.5s ease;
}

@keyframes backgroundShift {
    0% { background-color: #000000; }
    50% { background-color: #0a0000; }
    100% { background-color: #000000; }
}

/* Phase-specific body styles */
body.phase-intro {
    animation: none;
    background-color: #f5f5f5 !important;
    background-image: none !important;
    color: #333 !important;
    font-family: Arial, sans-serif !important;
    filter: none;
}

body.phase-intro * {
    color: #333 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

body.phase-intro .content-container {
    background-color: #ffffff !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

body.phase-intro .warning-box,
body.phase-intro .timer-box,
body.phase-intro .story-box,
body.phase-intro .requirements-box,
body.phase-intro .testimonials-box,
body.phase-intro .share-box,
body.phase-intro .final-warning {
    background: #ffffff !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
}

body.phase-intro .warning-box h1 {
    color: #2c3e50 !important;
    font-size: 32px !important;
}

body.phase-intro .warning-box h2 {
    color: #34495e !important;
}

body.phase-intro .rainbow-text {
    background: none !important;
    -webkit-text-fill-color: #333 !important;
    color: #333 !important;
}

body.phase-intro .counter-container {
    background: #ecf0f1 !important;
    border: 1px solid #bdc3c7 !important;
}

body.phase-intro .visitor-count {
    color: #333 !important;
}

body.phase-intro .share-btn {
    background: #3498db !important;
    border: none !important;
    color: #fff !important;
    box-shadow: none !important;
}

body.phase-intro .share-btn:hover {
    background: #2980b9 !important;
}

body.phase-intro img {
    opacity: 0.7;
    filter: grayscale(0.5);
}

body.phase-intro .headshot-image {
    filter: grayscale(0.5) brightness(1.5) !important;
    opacity: 0.9;
}

body.phase-intro .headshot-caption,
body.phase-intro .manny-testimonial .testimonial-text,
body.phase-intro .dark-warning-final h3,
body.phase-intro .dark-warning-final .headshot-caption {
    color: #ff003c !important;
    text-shadow: 0 0 10px #ffff66, 0 0 20px #ff003c !important;
}

body.phase-intro .dark-warning-final {
    background: #ffffff !important;
    border-color: #cccccc !important;
}

body.phase-intro .dark-final-image {
    filter: grayscale(0.5) brightness(1.7) !important;
    opacity: 0.95;
}

body.phase-calm {
    animation: backgroundShift 15s infinite alternate;
}

body.phase-hectic {
    animation: backgroundShift 2s infinite alternate, shake 0.3s infinite;
}

body.phase-chill {
    animation: backgroundShift 20s infinite alternate;
    filter: brightness(0.7) saturate(0.8);
}

body.phase-brutal {
    animation: backgroundShift 0.5s infinite alternate, intensePulse 1s infinite;
}

/* Explosion animations */
@keyframes explosionBurst {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(2);
        opacity: 0.8;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes explosionText {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0;
    }
}

/* Intro phase - hide all the chaos */
body.phase-intro .skull-divider {
    display: none !important;
}

body.phase-intro .dark-preview,
body.phase-intro .dark-warning {
    opacity: 0.5 !important;
}

body.phase-intro .dark-preview-image,
body.phase-intro .dark-image {
    filter: grayscale(1) brightness(1.2) !important;
    animation: none !important;
}

body.phase-intro .testimonial {
    background-color: #f9f9f9 !important;
    border-left: 3px solid #3498db !important;
}

@keyframes intensePulse {
    0%, 100% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.005);
    }
}

/* Custom popup animations */
@keyframes popupAppear {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-180deg);
        opacity: 0;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.1) rotate(10deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes popupDisappear {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0) rotate(180deg);
        opacity: 0;
    }
}

/* Strobing effect class */
body.strobing {
    animation: strobe 0.1s infinite !important;
}

@keyframes strobe {
    0%, 100% { 
        background-color: #ff0000;
        filter: brightness(2);
    }
    25% { 
        background-color: #000000;
        filter: brightness(0.5);
    }
    50% { 
        background-color: #00ff00;
        filter: brightness(2);
    }
    75% { 
        background-color: #0000ff;
        filter: brightness(0.5);
    }
}

/* Visitor counter */
.counter-container {
    text-align: center;
    background: linear-gradient(45deg, #ff0000, #00ff00, #0000ff, #ff00ff);
    padding: 10px;
    margin-bottom: 20px;
    border: 5px solid #ffff00;
    box-shadow: 0 0 20px #ff0000, 0 0 40px #00ff00;
    animation: rainbowBorder 2s infinite;
}

@keyframes rainbowBorder {
    0% { border-color: #ff0000; }
    25% { border-color: #00ff00; }
    50% { border-color: #0000ff; }
    75% { border-color: #ff00ff; }
    100% { border-color: #ff0000; }
}

.visitor-count {
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px #000000;
}

.counter-gif {
    vertical-align: middle;
    margin-right: 10px;
}

/* Flame borders */
.flame-border {
    text-align: center;
    font-size: 24px;
    margin: 10px 0;
    animation: flameFlicker 0.5s infinite;
}

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

/* Phase-based flame intensity */
body.phase-intro .flame-border {
    display: none !important;
}

body.phase-calm .flame-border {
    animation: flameFlicker 1s infinite;
}

body.phase-hectic .flame-border {
    animation: flameFlicker 0.2s infinite, shake 0.2s infinite;
}

body.phase-chill .flame-border {
    animation: flameFlicker 2s infinite;
    opacity: 0.5;
}

body.phase-brutal .flame-border {
    animation: flameFlicker 0.1s infinite, intensePulse 0.5s infinite;
    font-size: 28px;
}

/* Warning box */
.warning-box {
    text-align: center;
    margin: 30px auto;
    padding: 20px;
    background: radial-gradient(circle, #ff0000, #8b0000);
    border: 10px double #ffff00;
    box-shadow: 0 0 30px #ff0000, inset 0 0 20px rgba(0,0,0,0.5);
}

.warning-box h1 {
    font-size: 48px;
    color: #ffff00;
    text-shadow: 3px 3px 0 #000000, -3px -3px 0 #000000, 3px -3px 0 #000000, -3px 3px 0 #000000;
    margin-bottom: 10px;
}

.warning-box h2 {
    font-size: 32px;
    margin: 10px 0;
}

/* Blinking text */
.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

/* Phase-based blinking speed */
body.phase-intro .blink {
    animation: none !important;
    opacity: 1 !important;
}

body.phase-calm .blink {
    animation: blinker 2s linear infinite;
}

body.phase-hectic .blink {
    animation: blinker 0.3s linear infinite;
}

body.phase-chill .blink {
    animation: blinker 3s linear infinite;
}

body.phase-brutal .blink {
    animation: blinker 0.15s linear infinite;
}

/* Rainbow text */
.rainbow-text {
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow 3s linear infinite;
}

@keyframes rainbow {
    to { background-position: 200% center; }
}

/* Content container */
.content-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #1a1a1a;
    padding: 30px;
    border: 5px ridge #808080;
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.5);
}

/* Skull divider */
.skull-divider {
    text-align: center;
    font-size: 32px;
    margin: 20px 0;
    animation: skullBounce 1s infinite;
}

@keyframes skullBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Main warning text */
.main-warning {
    font-size: 28px;
    text-align: center;
    color: #ff0000;
    margin: 30px 0;
    text-shadow: 2px 2px 0 #000000;
    font-weight: bold;
}

/* Story box */
.story-box {
    background: linear-gradient(135deg, #2d0000, #000000);
    border: 3px solid #ff0000;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.story-box h3 {
    color: #ffff00;
    text-align: center;
    font-size: 28px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px #000000;
}

.story-box p {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cursed-name {
    color: #ff0000;
    font-weight: bold;
    text-decoration: underline wavy;
}

.red-text {
    color: #ff0000;
    font-weight: bold;
}

.scary-text {
    background-color: #ff0000;
    color: #ffffff;
    padding: 10px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Dark preview in story section */
.dark-preview {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #1a0000, #000000, #1a0000);
    border: 5px solid #ff0000;
    border-radius: 10px;
    text-align: center;
}

.dark-preview-image {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    border: 3px solid #8b0000;
    border-radius: 8px;
    box-shadow: 
        0 0 30px rgba(255, 0, 0, 0.8),
        0 0 50px rgba(139, 0, 0, 0.5);
    filter: brightness(1.15) contrast(1.2);
}

.dark-preview-text {
    color: #ff0000;
    font-size: 24px;
    font-weight: bold;
    margin-top: 15px;
    text-shadow: 
        0 0 10px #ff0000,
        0 0 20px #ff0000,
        2px 2px 4px #000000;
}

/* Timer box */
.timer-box {
    background: linear-gradient(45deg, #330000, #660000);
    border: 5px double #ff0000;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.6), inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.timer-box h3 {
    color: #ffff00;
    font-size: 32px;
    margin-bottom: 20px;
}

.countdown {
    font-size: 72px;
    color: #ff0000;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000;
    margin: 20px 0;
    animation: countdownPulse 1s infinite;
}

@keyframes countdownPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Phase-based countdown intensity */
body.phase-intro .countdown {
    animation: none !important;
    color: #e74c3c !important;
    text-shadow: none !important;
    font-family: 'Courier New', monospace !important;
}

body.phase-calm .countdown {
    animation: countdownPulse 2s infinite;
}

body.phase-hectic .countdown {
    animation: countdownPulse 0.3s infinite, shake 0.2s infinite;
    text-shadow: 0 0 30px #ff0000, 0 0 60px #ff0000;
}

body.phase-chill .countdown {
    animation: countdownPulse 3s infinite;
    opacity: 0.8;
}

body.phase-brutal .countdown {
    animation: countdownPulse 0.2s infinite, shake 0.1s infinite;
    text-shadow: 0 0 40px #ff0000, 0 0 80px #ff0000, 0 0 120px #ff0000;
    font-size: 80px;
}

.timer-warning {
    color: #ffffff;
    font-size: 20px;
    margin-top: 15px;
}

/* Requirements box */
.requirements-box {
    background: linear-gradient(135deg, #003300, #000000);
    border: 5px outset #00ff00;
    padding: 25px;
    margin: 30px 0;
}

.requirements-box h3 {
    text-align: center;
    font-size: 28px;
    color: #000000;
    margin-bottom: 20px;
}

.yellow-bg {
    background-color: #ffff00;
    padding: 10px;
    border-radius: 5px;
}

/* Warning headshots */
.warning-headshots {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(45deg, #ff0000, #000000, #ff0000);
    border: 3px solid #ffff00;
    border-radius: 10px;
}

/* Headshot display - normal rectangular images */
.headshot-display {
    text-align: center;
    margin: 30px auto;
    padding: 20px;
    max-width: 600px;
}

.headshot-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border: 5px solid #ff0000;
    border-radius: 8px;
    box-shadow: 
        0 0 30px rgba(255, 0, 0, 0.8),
        0 0 50px rgba(255, 0, 0, 0.5);
    filter: brightness(1.3) contrast(1.2);
    display: block;
    margin: 0 auto;
    transition: transform 0.1s;
}

.dark-final-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border: 5px solid #ff0000;
    border-radius: 8px;
    box-shadow: 
        0 0 50px rgba(255, 0, 0, 1),
        0 0 80px rgba(255, 0, 0, 0.8);
    filter: brightness(1.8) contrast(1.4) saturate(1.5);
    display: block;
    margin: 0 auto;
    transition: transform 0.1s;
}

/* Phase-based image shaking */
body.phase-hectic .headshot-image,
body.phase-hectic .dark-final-image {
    animation: imageShake 0.2s infinite;
}

body.phase-brutal .headshot-image,
body.phase-brutal .dark-final-image {
    animation: imageShake 0.1s infinite;
}

@keyframes imageShake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-5px, 5px) rotate(-2deg); }
    50% { transform: translate(5px, -5px) rotate(2deg); }
    75% { transform: translate(-5px, -5px) rotate(-1deg); }
}

.headshot-caption {
    color: #ffff00;
    font-size: 24px;
    font-weight: bold;
    margin-top: 15px;
    text-shadow: 
        0 0 10px #ff0000,
        0 0 20px #ff0000,
        2px 2px 4px #000000;
}

.headshot-warning {
    color: #ffff00;
    font-size: 22px;
    font-weight: bold;
    text-shadow: 2px 2px 4px #000000;
}

.curse-steps {
    color: #00ff00;
    font-size: 20px;
    line-height: 2;
    margin-left: 40px;
}

.curse-steps li {
    margin: 15px 0;
}

.big-number {
    color: #ff0000;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 0 0 10px #ff0000;
}

/* Manny Bravo Warning Image */
.manny-warning {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(45deg, #ff0000, #000000);
    border: 5px double #ffff00;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
}

.manny-image {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border: 5px solid #00ff00;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    animation: pulse 2s infinite;
}

.manny-caption {
    color: #ffff00;
    font-size: 24px;
    font-weight: bold;
    margin-top: 15px;
    text-shadow: 3px 3px 0 #ff0000, -3px -3px 0 #ff0000;
}

/* Testimonials */
.testimonials-box {
    background: linear-gradient(135deg, #ebebeb, #747474);
    border: 5px groove #0000ff;
    padding: 25px;
    margin: 30px 0;
}

.testimonials-box h3 {
    color: #00ffff;
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.testimonial {
    background-color: #1a1a2e;
    border-left: 5px solid #ffff00;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
}

.testimonial-text {
    color: #ffffff;
    font-size: 16px;
    font-style: italic;
    line-height: 1.5;
}

/* Manny Bravo special testimonial */
.manny-testimonial {
    border: 5px solid #ff0000;
    background: linear-gradient(135deg, #ff6767, #000033);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.7);
}

.manny-testimonial .headshot-display {
    margin: 0;
    padding: 0;
}

.manny-testimonial .headshot-image {
    max-width: 400px;
}

/* Manny Bravo Testimonial */
.manny-testimonial {
    border: 5px solid #ff0000;
    background: linear-gradient(135deg, #330000, #000033);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.6);
}

.testimonial-with-image {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.testimonial-manny {
    max-width: 200px;
    height: auto;
    border: 3px solid #ffff00;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.5);
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .testimonial-with-image {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-manny {
        max-width: 100%;
    }
}

/* Share box */
.share-box {
    background: linear-gradient(135deg, #330033, #000000);
    border: 5px ridge #ff00ff;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.share-box h3 {
    color: #ff00ff;
    font-size: 32px;
    margin-bottom: 25px;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.share-btn {
    background: linear-gradient(45deg, #ff0000, #ff7700);
    color: #ffffff;
    border: 3px outset #ffff00;
    padding: 15px 30px;
    font-size: 20px;
    font-family: 'Comic Sans MS', cursive;
    font-weight: bold;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.5);
    transition: all 0.3s;
    text-shadow: 2px 2px 4px #000000;
    /* Mobile-friendly touch target */
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

/* Touch/active state for all devices */
.share-btn:active {
    transform: scale(0.95);
    border-style: inset;
}

/* Desktop hover effect */
@media (hover: hover) and (pointer: fine) {
    .share-btn:hover {
        transform: scale(1.1) rotate(2deg);
        box-shadow: 0 8px 25px rgba(255, 0, 0, 0.8);
    }
}

/* Mobile-specific touch feedback */
@media (hover: none) and (pointer: coarse) {
    .share-btn:active {
        transform: scale(0.92);
        box-shadow: 0 3px 10px rgba(255, 0, 0, 0.7);
    }
}

.share-counter {
    font-size: 28px;
    color: #ffff00;
    margin-top: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px #000000;
}

#share-count {
    color: #ff0000;
    font-size: 36px;
}

/* Final warning */
.final-warning {
    margin: 40px 0;
    text-align: center;
}

.big-text {
    font-size: 36px;
    margin: 20px 0;
    font-weight: bold;
}

/* Dark warning final section */
.dark-warning-final {
    margin: 40px 0 20px 0;
    padding: 20px;
    background: linear-gradient(180deg, #000000, #1a0000, #000000);
    border: 5px solid #8b0000;
    border-radius: 10px;
}

/* Dark warning image */
.dark-warning {
    margin: 30px 0;
    padding: 40px;
    background: radial-gradient(circle, #1a0000, #000000, #1a0000);
    border: 8px double #ff0000;
    border-radius: 15px;
    text-align: center;
    box-shadow: 
        0 0 50px rgba(255, 0, 0, 1),
        0 0 80px rgba(255, 0, 0, 0.6),
        inset 0 0 40px rgba(139, 0, 0, 0.3);
    animation: darkPulse 2s infinite;
}

@keyframes darkPulse {
    0%, 100% { 
        box-shadow: 
            0 0 50px rgba(255, 0, 0, 1),
            0 0 80px rgba(255, 0, 0, 0.6),
            inset 0 0 40px rgba(139, 0, 0, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 
            0 0 70px rgba(255, 0, 0, 1),
            0 0 100px rgba(255, 0, 0, 0.8),
            0 0 120px rgba(139, 0, 0, 0.6),
            inset 0 0 60px rgba(139, 0, 0, 0.5);
        transform: scale(1.02);
    }
}

.dark-image {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    border: 5px solid #ff0000;
    border-radius: 10px;
    box-shadow: 
        0 0 40px rgba(255, 0, 0, 0.9),
        0 0 60px rgba(255, 0, 0, 0.6),
        0 0 80px rgba(139, 0, 0, 0.4);
    animation: darkFloat 4s infinite ease-in-out;
    filter: brightness(1.1) contrast(1.3) saturate(1.2);
}

@keyframes darkFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        filter: brightness(1.1) contrast(1.3) saturate(1.2);
    }
    50% { 
        transform: translateY(-15px) scale(1.05);
        filter: brightness(1.2) contrast(1.4) saturate(1.3);
    }
}

.dark-caption {
    color: #ff0000;
    font-size: 32px;
    font-weight: bold;
    margin-top: 25px;
    text-shadow: 
        0 0 15px #ff0000,
        0 0 30px #ff0000,
        0 0 45px #ff0000,
        3px 3px 6px #000000;
    animation: textFlicker 3s infinite;
}

@keyframes textFlicker {
    0%, 100% { 
        opacity: 1;
        text-shadow: 
            0 0 15px #ff0000,
            0 0 30px #ff0000,
            0 0 45px #ff0000,
            3px 3px 6px #000000;
    }
    50% { 
        opacity: 0.9;
        text-shadow: 
            0 0 20px #ff0000,
            0 0 40px #ff0000,
            0 0 60px #ff0000,
            3px 3px 6px #000000;
    }
}

/* Construction footer */
.construction {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 3px dashed #ffff00;
}

.construction p {
    color: #808080;
    font-size: 14px;
    margin-top: 10px;
    font-family: Arial, sans-serif;
}

.construction img {
    max-width: 200px;
}

/* Responsive */
/* Jumpscare overlay */
#jumpscare-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    animation: flashColors 0.1s infinite;
}

#jumpscare-overlay.active {
    display: flex;
}

#jumpscare-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    animation: jumpscareShake 0.1s infinite, jumpscareZoom 2s ease-out;
}

@keyframes flashColors {
    0% { background-color: #ff0000; }
    25% { background-color: #00ff00; }
    50% { background-color: #0000ff; }
    75% { background-color: #ffff00; }
    100% { background-color: #ff00ff; }
}

@keyframes jumpscareShake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-10px, 10px) rotate(-5deg); }
    50% { transform: translate(10px, -10px) rotate(5deg); }
    75% { transform: translate(-10px, -10px) rotate(-5deg); }
}

@keyframes jumpscareZoom {
    0% { 
        transform: scale(0.1);
        opacity: 0;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
    100% { 
        transform: scale(1.2);
        opacity: 1;
    }
}

#jumpscare-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 72px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 
        0 0 20px #ff0000,
        0 0 40px #ff0000,
        0 0 60px #ff0000,
        5px 5px 10px #000000;
    animation: textPulse 0.3s infinite;
    pointer-events: none;
    z-index: 100000;
    font-family: 'Comic Sans MS', cursive;
}

@keyframes textPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        color: #ffffff;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        color: #ff0000;
    }
}

/* Tablet styles */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .content-container {
        padding: 20px;
    }
    
    .warning-box h1 {
        font-size: 36px;
    }
    
    .warning-box h2 {
        font-size: 24px;
    }
    
    .main-warning {
        font-size: 22px;
    }
    
    .countdown {
        font-size: 56px;
    }
    
    .timer-box h3 {
        font-size: 24px;
    }
    
    .story-box p {
        font-size: 16px;
    }
    
    .curse-steps {
        font-size: 18px;
        margin-left: 25px;
    }
    
    .big-number {
        font-size: 28px;
    }
    
    .testimonial-text {
        font-size: 15px;
    }
    
    .button-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .share-btn {
        width: 85%;
        padding: 12px 25px;
        font-size: 18px;
    }
    
    .share-counter {
        font-size: 24px;
    }
    
    #share-count {
        font-size: 32px;
    }
    
    #jumpscare-text {
        font-size: 42px;
        padding: 0 20px;
    }
    
    .headshot-image {
        max-width: 450px;
    }
    
    .dark-final-image {
        max-width: 500px;
    }
    
    .headshot-caption {
        font-size: 22px;
    }
    
    .headshot-warning {
        font-size: 18px;
    }
    
    .dark-image {
        max-height: 450px;
    }
    
    .dark-caption {
        font-size: 22px;
    }
    
    .dark-preview-image {
        max-height: 280px;
    }
    
    .dark-preview-text {
        font-size: 20px;
    }
    
    .big-text {
        font-size: 28px;
    }
}

/* Mobile phone styles */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .content-container {
        padding: 15px;
    }
    
    .counter-container {
        padding: 8px;
    }
    
    .visitor-count {
        font-size: 18px;
    }
    
    .flame-border {
        font-size: 18px;
        word-break: break-all;
    }
    
    .warning-box {
        padding: 15px;
        margin: 20px auto;
    }
    
    .warning-box h1 {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .warning-box h2 {
        font-size: 20px;
    }
    
    .skull-divider {
        font-size: 24px;
        word-break: break-all;
    }
    
    .main-warning {
        font-size: 20px;
        padding: 0 5px;
    }
    
    .story-box {
        padding: 15px;
    }
    
    .story-box h3 {
        font-size: 22px;
    }
    
    .story-box p {
        font-size: 15px;
        line-height: 1.5;
    }
    
    .timer-box {
        padding: 20px 15px;
    }
    
    .timer-box h3 {
        font-size: 20px;
        word-wrap: break-word;
    }
    
    .countdown {
        font-size: 48px;
    }
    
    .timer-warning {
        font-size: 16px;
    }
    
    .requirements-box {
        padding: 15px;
    }
    
    .requirements-box h3 {
        font-size: 20px;
    }
    
    .warning-headshots {
        padding: 15px;
    }
    
    .headshot-display {
        padding: 15px;
    }
    
    .headshot-image {
        max-width: 400px;
    }
    
    .dark-final-image {
        max-width: 450px;
    }
    
    .headshot-caption {
        font-size: 20px;
    }
    
    .headshot-warning {
        font-size: 16px;
        padding: 0 5px;
    }
    
    .curse-steps {
        font-size: 16px;
        margin-left: 20px;
        line-height: 1.8;
    }
    
    .big-number {
        font-size: 24px;
    }
    
    .testimonials-box {
        padding: 15px;
    }
    
    .testimonials-box h3 {
        font-size: 22px;
    }
    
    .testimonial {
        padding: 12px;
    }
    
    .testimonial-text {
        font-size: 14px;
    }
    
    .share-box {
        padding: 20px 15px;
    }
    
    .share-box h3 {
        font-size: 24px;
    }
    
    .button-container {
        width: 100%;
    }
    
    .share-btn {
        width: 100%;
        padding: 15px 20px;
        font-size: 18px;
        /* Ensure touch-friendly size */
        min-height: 50px;
    }
    
    .share-counter {
        font-size: 22px;
    }
    
    #share-count {
        font-size: 28px;
    }
    
    .dark-warning {
        padding: 20px 10px;
    }
    
    .dark-image {
        max-height: 350px;
    }
    
    .dark-caption {
        font-size: 18px;
        padding: 0 10px;
        line-height: 1.3;
    }
    
    .dark-preview {
        padding: 15px;
        margin: 20px 0;
    }
    
    .dark-preview-image {
        max-height: 250px;
    }
    
    .dark-preview-text {
        font-size: 18px;
    }
    
    .final-warning {
        margin: 30px 0;
    }
    
    .big-text {
        font-size: 24px;
        padding: 0 10px;
    }
    
    .construction p {
        font-size: 12px;
    }
    
    /* Jumpscare mobile optimization */
    #jumpscare-overlay {
        padding: 20px;
    }
    
    #jumpscare-image {
        max-width: 95vw;
        max-height: 70vh;
    }
    
    #jumpscare-text {
        font-size: 32px;
        padding: 0 15px;
        text-align: center;
        word-wrap: break-word;
        max-width: 90vw;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .warning-box h1 {
        font-size: 24px;
    }
    
    .countdown {
        font-size: 40px;
    }
    
    .headshot-image {
        max-width: 350px;
    }
    
    .dark-final-image {
        max-width: 400px;
    }
    
    .headshot-caption {
        font-size: 18px;
    }
    
    .curse-steps {
        font-size: 14px;
    }
    
    .share-btn {
        font-size: 16px;
        padding: 12px 15px;
    }
    
    #jumpscare-text {
        font-size: 28px;
    }
    
    .dark-caption {
        font-size: 16px;
    }
    
    .dark-preview-image {
        max-height: 200px;
    }
    
    .dark-preview-text {
        font-size: 16px;
    }
    
    .big-text {
        font-size: 20px;
    }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .content-container {
        padding: 15px;
    }
    
    .warning-box {
        margin: 15px auto;
    }
    
    .timer-box,
    .story-box,
    .requirements-box,
    .testimonials-box,
    .share-box {
        margin: 15px 0;
        padding: 15px;
    }
    
    #jumpscare-image {
        max-height: 60vh;
    }
    
    #jumpscare-text {
        font-size: 24px;
    }
    
    .dark-image {
        max-height: 250px;
    }
}

