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

body {
    font-family: 'Courier New', monospace;
    background: #0a0a0a;
    color: #00ff00;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    height: 100%;
}


.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

.matrix-column {
    position: absolute;
    top: -100%;
    font-size: 20px;
    line-height: 20px;
    animation: matrix-fall linear infinite;
}

@keyframes matrix-fall {
    to {
        top: 100%;
    }
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.balloon-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 100;
}

.balloon {
    position: absolute;
    width: 100px;
    height: 120px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.9;
    animation: float-up 5s ease-in forwards;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(-20deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-150vh) rotate(20deg);
        opacity: 0;
    }
}

.explode {
    animation: explode 0.5s ease-out forwards;
}

@keyframes explode {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

#welcome-screen {
    text-align: center;
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 100% {
        text-shadow: 2px 2px 0 #ff00ff,
        -2px -2px 0 #00ffff;
    }
    50% {
        text-shadow: -2px 2px 0 #ff00ff,
        2px -2px 0 #00ffff;
    }
}

h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #00ff00;
    text-transform: uppercase;
}

.cyber-text {
    font-size: 1.5em;
    color: #00ffff;
    margin: 20px 0;
    animation: pulse 2s infinite;
}

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

.start-btn {
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    color: #000;
    border: none;
    padding: 20px 40px;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s;
    margin-top: 30px;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
}

.start-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(255, 0, 255, 0.8);
}

#puzzle-screen {
    display: none;
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.puzzle-box {
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #00ffff;
    padding: 40px;
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

.riddle {
    font-size: 1.8em;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.5;
}

.hint {
    font-size: 1.2em;
    color: #ff00ff;
    margin: 20px 0;
    font-style: italic;
}

.answer-input {
    background: #000;
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 15px;
    font-size: 1.5em;
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin: 20px auto;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
}

.answer-input:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.submit-btn {
    background: #00ff00;
    color: #000;
    border: none;
    padding: 15px 30px;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s;
    margin: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 0, 0.5);
}

#final-screen {
    display: none;
    text-align: center;
    animation: rainbow 2s linear infinite;
    padding: 40px 20px;
    min-height: 100vh;
    box-sizing: border-box;
}


@keyframes rainbow {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

.message-box {
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid #fff;
    padding: 40px;
    border-radius: 20px;
    margin: 20px 0;
    max-width: 600px;
}

.encoded-message {
    font-size: 1.2em;
    color: #ffff00;
    word-break: break-all;
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.ascii-art {
    font-size: 0.8em;
    line-height: 1;
    color: #00ff00;
    white-space: pre;
    margin: 20px 0;
}

.level-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5em;
    color: #ff00ff;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00ffff, #ff00ff);
    width: 0%;
    transition: width 1s ease;
}

audio {
    display: none;
}

/* Shake animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

.shake {
    animation: shake 0.5s;
}

.final-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: flex-start;
    margin: 20px auto;
    max-width: 90%;
}

.message-box {
    flex: 1 1 300px;
    min-width: 280px;
}

.video-box {
    flex: 1 1 300px;
    min-width: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.biker-video {
    width: 100%;
    max-width: 350px;
    border: 3px solid #00ffff;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}
