* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', monospace;
    background: #000;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Background chaos effects */
.background-chaos {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #1a0000, #330000, #4d0000, #660000);
    background-size: 400% 400%;
    animation: chaosGradient 3s ease infinite;
}

@keyframes chaosGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.falling-numbers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 0, 0, 0.1) 2px,
        rgba(255, 0, 0, 0.1) 4px
    );
    animation: glitchLines 0.1s linear infinite;
}

@keyframes glitchLines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header styles */
.main-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0;
}

.title {
    font-family: 'Creepster', cursive;
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
    color: #ffffff;
    text-shadow: 
        0 0 10px #ff0000,
        0 0 20px #ff0000,
        0 0 30px #ff0000,
        0 0 40px #ff0000,
        2px 2px 0px #000000;
    margin-bottom: 20px;
    position: relative;
}

.glitch-text {
    position: relative;
    animation: glitch 1s linear infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 0.5s linear infinite;
    color: #ff00ff;
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 0.5s linear infinite;
    color: #00ffff;
    z-index: -2;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(-2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(2px, 2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(-2px, -2px); }
}

.subtitle {
    font-size: clamp(1rem, 3vw, 2rem);
    font-weight: 700;
    color: #ffff00;
    text-shadow: 
        0 0 10px #ffaa00,
        1px 1px 0px #000000;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

/* Main content */
.main-content {
    display: grid;
    gap: 40px;
    margin-bottom: 50px;
}

.image-container {
    position: relative;
    text-align: center;
    border: 3px solid #ff0000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 0, 0, 0.2);
    animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% { border-color: #ff0000; box-shadow: 0 0 20px rgba(255, 0, 0, 0.5); }
    50% { border-color: #ff6666; box-shadow: 0 0 30px rgba(255, 0, 0, 0.8); }
}

.disaster-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: sepia(1) hue-rotate(-50deg) saturate(2) contrast(1.2);
    animation: imageShake 3s ease-in-out infinite;
}

@keyframes imageShake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-2px) rotate(-0.5deg); }
    20% { transform: translateX(2px) rotate(0.5deg); }
    30% { transform: translateX(-1px) rotate(-0.3deg); }
    40% { transform: translateX(1px) rotate(0.3deg); }
    50% { transform: translateX(-0.5px) rotate(-0.1deg); }
    60% { transform: translateX(0.5px) rotate(0.1deg); }
    70% { transform: translateX(0); }
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(255, 0, 0, 0.3) 0%,
        transparent 50%,
        rgba(255, 0, 0, 0.3) 100%
    );
    pointer-events: none;
}

/* Stats container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-item {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ff0000;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
    animation: statGlow 2s ease-in-out infinite alternate;
}

@keyframes statGlow {
    from { box-shadow: 0 0 15px rgba(255, 0, 0, 0.3); }
    to { box-shadow: 0 0 25px rgba(255, 0, 0, 0.6); }
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 400;
    color: #cccccc;
    margin-bottom: 10px;
    text-shadow: 1px 1px 0px #000000;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: #ff3333;
    text-shadow: 
        0 0 10px #ff0000,
        2px 2px 0px #000000;
}

.stat-value.negative {
    color: #ff0000;
    animation: flash 1s ease-in-out infinite;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.crashing-number {
    animation: crashingAnimation 4s ease-in-out infinite;
}

@keyframes crashingAnimation {
    0% { transform: scale(1); }
    25% { transform: scale(1.1) rotate(2deg); }
    50% { transform: scale(0.9) rotate(-2deg); }
    75% { transform: scale(1.05) rotate(1deg); }
    100% { transform: scale(1); }
}

/* Warning banner */
.warning-banner {
    background: linear-gradient(90deg, #ff0000, #ff6600, #ff0000);
    background-size: 200% 100%;
    animation: warningMove 2s linear infinite;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

@keyframes warningMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.warning-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: warningPulse 1s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Chart container */
.chart-container {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #ff0000;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

#crashChart {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Floating elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-dollar {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

.floating-dollar:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-dollar:nth-child(2) {
    top: 40%;
    right: 15%;
    animation-delay: -2s;
}

.floating-dollar:nth-child(3) {
    top: 60%;
    left: 20%;
    animation-delay: -4s;
}

.floating-dollar:nth-child(4) {
    top: 30%;
    right: 30%;
    animation-delay: -1s;
}

.floating-dollar:nth-child(5) {
    top: 70%;
    right: 10%;
    animation-delay: -3s;
}

.floating-dollar:nth-child(6) {
    top: 80%;
    left: 40%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
        opacity: 1;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .warning-text {
        font-size: 1.2rem;
    }
}

/* Additional dramatic effects */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(255, 0, 0, 0.1) 100%);
    pointer-events: none;
    animation: dramaticPulse 4s ease-in-out infinite;
}

@keyframes dramaticPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}
