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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    background: radial-gradient(circle, rgba(255,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
    border-bottom: 2px solid #ff0000;
}

.alarm-light {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #ff0000 0%, #cc0000 70%, #800000 100%);
    border-radius: 50%;
    animation: alarm-pulse 1s infinite alternate;
    box-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000, 0 0 60px #ff0000;
}

@keyframes alarm-pulse {
    0% {
        opacity: 0.6;
        transform: translateX(-50%) scale(0.9);
        box-shadow: 0 0 20px #ff0000;
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1.1);
        box-shadow: 0 0 30px #ff0000, 0 0 60px #ff0000, 0 0 90px #ff0000;
    }
}

.title {
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 3rem 0 1rem;
    text-shadow: 0 0 10px #ff0000;
    animation: text-glow 2s ease-in-out infinite alternate;
}

@keyframes text-glow {
    0% {
        text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000;
    }
    100% {
        text-shadow: 0 0 20px #ff0000, 0 0 30px #ff0000, 0 0 40px #ff0000;
    }
}

.countdown-display {
    margin-top: 2rem;
}

.countdown-text {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #ffcc00;
}

.countdown-timer {
    font-size: 3rem;
    font-weight: bold;
    color: #ff0000;
    text-shadow: 0 0 10px #ff0000;
    font-family: 'Courier New', monospace;
    animation: countdown-blink 1s infinite;
}

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

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 1rem;
}

/* Video Section */
.video-section {
    margin-bottom: 3rem;
}

.video-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255,0,0,0.3);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}


.play-button {
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

.video-instruction {
    font-size: 1.2rem;
    color: #ffcc00;
    text-align: center;
    font-weight: bold;
}

/* Embedded Video Player */
.embedded-video-container {
    max-width: 900px;
    margin: 0 auto;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255,0,0,0.3);
    border: 2px solid #ff0000;
}

.embedded-video-container canvas {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}

.video-controls {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 15px 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    border-top: 1px solid #333;
}

.video-controls button {
    background: #ff0000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s ease;
    min-width: 120px;
}

.video-controls button:hover {
    background: #cc0000;
}

.video-controls button:disabled {
    background: #555;
    cursor: not-allowed;
}

.video-controls button:disabled:hover {
    background: #555;
}

.video-progress {
    background: #1a1a1a;
    padding: 10px 20px;
    border-top: 1px solid #333;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0000 0%, #ffcc00 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.video-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #ccc;
    font-family: monospace;
}


/* Mission Section */
.mission-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 3rem 2rem;
    border-radius: 15px;
    border: 2px solid #ff0000;
    box-shadow: 0 0 20px rgba(255,0,0,0.2);
    margin-bottom: 2rem;
}

.mission-content h2 {
    font-size: 2.5rem;
    color: #ff0000;
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
}

.mission-text {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
    color: #cccccc;
}

.first-clue {
    margin-bottom: 3rem;
}

.first-clue h3 {
    font-size: 2rem;
    color: #ffcc00;
    margin-bottom: 1rem;
    text-align: center;
}

.clue-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #ffcc00;
    margin-bottom: 1rem;
    box-shadow: 0 0 15px rgba(255,204,0,0.2);
}

.clue-card h4 {
    color: #ff0000;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.clue-card p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #cccccc;
    margin-bottom: 1rem;
}

.clue-hint {
    background: rgba(255,204,0,0.1);
    padding: 1rem;
    border-radius: 5px;
    border-left: 4px solid #ffcc00;
}

.clue-hint strong {
    color: #ffcc00;
}

/* QR Code Section */
.qr-section {
    text-align: center;
}

.qr-section h3 {
    font-size: 2rem;
    color: #ffcc00;
    margin-bottom: 1.5rem;
}

.qr-container {
    display: inline-block;
    padding: 2rem;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.qr-text {
    color: #000000;
    font-weight: bold;
    margin-top: 1rem;
}

/* Victory Section */
.victory-section {
    background: linear-gradient(135deg, #0a4a0a 0%, #1a5a1a 100%);
    padding: 3rem 2rem;
    border-radius: 15px;
    border: 2px solid #00ff00;
    box-shadow: 0 0 20px rgba(0,255,0,0.2);
    text-align: center;
}

.victory-content h2 {
    font-size: 3rem;
    color: #00ff00;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.victory-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #cccccc;
}

.victory-song h3 {
    font-size: 2rem;
    color: #ffcc00;
    margin-bottom: 1rem;
}

.victory-song audio {
    width: 100%;
    max-width: 400px;
    margin: 1rem auto;
}

.song-lyrics {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 10px;
    border: 1px solid #ffcc00;
    box-shadow: 0 0 15px rgba(255,204,0,0.2);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.song-lyrics p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    font-style: italic;
    text-shadow: 0 0 5px rgba(255,204,0,0.1);
}

/* Footer */
.footer {
    background: #000000;
    padding: 1rem;
    text-align: center;
    border-top: 1px solid #333333;
}

.emergency-contacts {
    font-size: 1.1rem;
}

.status-active {
    color: #ff0000;
    font-weight: bold;
    animation: status-blink 2s infinite;
}

@keyframes status-blink {
    0%, 70% {
        opacity: 1;
    }
    71%, 100% {
        opacity: 0.3;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .countdown-timer {
        font-size: 2.5rem;
    }
    
    .mission-content h2 {
        font-size: 2rem;
    }
    
    .mission-text {
        font-size: 1.1rem;
    }
    
    .first-clue h3 {
        font-size: 1.5rem;
    }
    
    .clue-card {
        padding: 1.5rem;
    }
    
    .victory-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1.5rem 1rem;
    }
    
    .title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .countdown-timer {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .mission-section {
        padding: 2rem 1rem;
    }
    
    .qr-container {
        padding: 1rem;
    }
    
    .alarm-light {
        width: 40px;
        height: 40px;
    }
}