/* Armor of God Game Styles */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

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

/* Audio Toggle Button */
.audio-toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ddd;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    font-family: inherit;
}

.audio-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.95);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.audio-toggle-btn:hover .icon {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
}

.audio-toggle-btn .icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

/* Default state - show volume-on, hide volume-off */
.audio-toggle-btn .volume-on {
    display: block;
}

.audio-toggle-btn .volume-off {
    display: none;
}

/* Muted state - hide volume-on, show volume-off */
.audio-toggle-btn.muted {
    background: rgba(0, 0, 0, 0.5);
    border-color: #888;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0.7;
}

.audio-toggle-btn.muted:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: #aaa;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.audio-toggle-btn.muted .volume-on {
    display: none;
}

.audio-toggle-btn.muted .volume-off {
    display: block;
}

/* Speed Toggle Button */
.speed-toggle-btn {
    position: fixed;
    top: 20px;
    right: 80px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ddd;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    font-family: inherit;
}

.speed-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.95);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.speed-toggle-btn:hover .icon {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
}

.speed-toggle-btn .icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

/* Level Selector Button */
.level-selector-btn {
    position: fixed;
    top: 20px;
    right: 140px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ddd;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    font-family: 'Press Start 2P', monospace;
}

.level-selector-btn:hover {
    background: rgba(0, 0, 0, 0.95);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.level-selector-btn .level-text {
    color: #FFD700;
    font-size: 12px;
    font-weight: bold;
}

.level-selector-btn:hover .level-text {
    color: #fff;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
}

/* Speed Dropdown */
.speed-dropdown {
    position: fixed;
    top: 80px;
    right: 80px;
    z-index: 999;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    min-width: 200px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
    font-family: 'Press Start 2P', monospace;
    transition: all 0.3s ease;
}

.speed-dropdown.hidden {
    display: none;
}

.speed-dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.speed-dropdown label {
    color: #fff;
    font-size: 10px;
    text-align: center;
}

.speed-dropdown input[type="range"] {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.speed-dropdown input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #FFD700;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.speed-dropdown input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #FFD700;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.speed-value {
    color: #FFD700;
    font-size: 12px;
    text-align: center;
    font-weight: bold;
}

body {
    font-family: 'Press Start 2P', monospace;
    background: linear-gradient(135deg, #4a90e2, #7b68ee);
    color: #fff;
    overflow: hidden;
}

#gameContainer {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.hidden {
    display: none !important;
}

/* Menu Screen Styles */
#menuScreen {
    background: linear-gradient(135deg, #222, #444);
}

.title-image {
    max-width: 400px;
    max-height: 200px;
    width: auto;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    }
    100% {
        filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.8));
    }
}

#menuScreen h1 {
    font-size: 64px;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0px #333;
    color: #ffd700;
}

.scripture {
    font-size: 14px;
    line-height: 28px;
    margin-bottom: 30px;
    max-width: 800px;
    color: #e6e6e6;
}

.menu-options {
    margin-bottom: 40px;
}

.menu-options h2 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #fff;
}

.menu-btn {
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    padding: 15px 25px;
    margin: 10px;
    border: 3px solid #fff;
    background: #333;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.menu-btn:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.armor-btn {
    background: #4a90e2;
    border-color: #ffd700;
    color: #ffd700;
}

.armor-btn:hover {
    background: #5a9ff2;
}

.no-armor-btn {
    background: #8b4513;
    border-color: #d2691e;
}

.no-armor-btn:hover {
    background: #a0522d;
}

.start-btn {
    background: #228B22;
    border-color: #32CD32;
    color: #fff;
    font-size: 18px;
    padding: 15px 30px;
    margin-top: 5px;
    min-width: 300px;
}

.start-btn:hover {
    background: #32CD32;
}

/* Game Setup Container */
.game-setup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid gold;
    max-width: 500px;
}

/* Pet Selection Styles */
.pet-selection {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.2);
}

.pet-label {
    color: #ffd700;
    font-size: 14px;
    white-space: nowrap;
}

.pet-options {
    display: flex;
    gap: 10px;
}

.pet-btn {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid #666;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.pet-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffd700;
    transform: translateY(-2px);
}

.pet-btn.selected {
    background: rgba(255, 215, 0, 0.3);
    border-color: #ffd700;
    color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Pet Icon Styles */
.pet-icon {
    width: 18px;
    height: 18px;
    margin-bottom: 3px;
    vertical-align: middle;
    filter: brightness(0.8);
    transition: all 0.3s ease;
}

.pet-btn:hover .pet-icon {
    filter: brightness(1.2);
}

.pet-btn.selected .pet-icon {
    filter: brightness(1.5) drop-shadow(0 0 3px rgba(255, 215, 0, 0.8));
}

/* Instructions Link */
.instructions-link {
    color: #ffd700;
    text-decoration: underline;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.instructions-link:hover {
    color: #fff;
    text-decoration: none;
}

.enter-prompt {
    color: #fff;
    font-size: 11px;
    margin-top: 0;
    opacity: 0.7;
    font-style: italic;
}

.instructions {
    max-width: 800px;
    border: 1px solid gold;
    padding: 32px;
}

.instructions h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ffd700;
}

.instructions p {
    font-size: 16px;
    line-height: 15px;
    margin-bottom: 16px;
}

/* Bottom Footer */
.bottom-footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.credits-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    color: #ffd700;
    margin: 0;
    letter-spacing: 1px;
}

.bottom-footer .instructions-link {
    color: #ffd700;
    text-decoration: underline;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.3s ease;
    font-family: 'Press Start 2P', monospace;
    letter-spacing: 1px;
}

.bottom-footer .instructions-link:hover {
    color: #fff;
    text-decoration: none;
}

/* Game Screen Styles */
#gameScreen {
    padding: 0;
    background: linear-gradient(135deg, #000000, #251742);
}

#gameCanvas {
    border: 4px solid #333;
    background: #87ceeb;
    display: block;
    margin: 0 auto;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

#gameUI {
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    z-index: 10;
}

#levelInfo {
    font-size: 18px;
    color: #ffd700;
    text-shadow: 2px 2px 0px #333;
}

/* Level Indicator (above canvas) */
.level-indicator {
    text-align: center;
    margin-bottom: 10px;
    font-family: 'Press Start 2P', monospace;
    font-size: 16px;
    color: #FFD700;
    text-shadow: 2px 2px 0px #333;
    background: rgba(0, 0, 0, 0.7);
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    margin: 0 auto 10px auto;
    position: relative;
}

/* Controls Reminder */
.controls-reminder {
    text-align: center;
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 6px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.controls-reminder p {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.2;
}

/* Game Over and Complete Screens */
#gameOverScreen {
    background: #000000 !important; /* Black background for game over screen */
    position: relative;
    overflow: hidden;
}

#gameOverScreen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.15)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: stars 20s linear infinite;
    pointer-events: none;
}

#levelCompleteScreen {
    position: relative;
    background: linear-gradient(135deg, #000000, #0f0a15, #1a0e2a) !important; /* Black to very subtle dark purple gradient */
    overflow: hidden;
}

#levelCompleteScreen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.15)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: stars 20s linear infinite;
    pointer-events: none;
}

#gameOverScreen h1,
#levelCompleteScreen h1 {
    font-size: 52px;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0px #333;
}

#levelCompleteScreen h1 {
    font-size: 36px;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInUp 0.4s ease-out 0.1s forwards;
}

.victory-temple {
    animation: fadeInScale 0.4s ease-out 0.3s forwards;
}

.score-display-small {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #ffd700;
    border-radius: 5px;
    padding: 10px;
    margin: 30px auto 20px;
    width: 400px;
    font-size: 12px;
    opacity: 0;
    animation: fadeInUp 0.4s ease-out 0.5s forwards;
}

#levelCompleteScreen .menu-btn {
    opacity: 0;
    animation: fadeInScale 0.4s ease-out 0.7s forwards;
    margin: 5px;
}

.game-over-image {
    width: 300px;
    height: auto;
    margin: 20px 0;
    opacity: 0;
    animation: fadeInScale 0.4s ease-out 0.3s forwards;
    image-rendering: pixelated;
}

#gameOverScreen .menu-btn {
    opacity: 0;
    animation: fadeInScale 0.4s ease-out 0.7s forwards;
    margin: 10px;
}

#restartBtn {
    background: #28a745 !important;
    border-color: #1e7e34 !important;
    color: white !important;
}

#restartBtn:hover {
    background: #34ce57 !important;
    border-color: #28a745 !important;
}

#gameOverScreen h1 {
    color: #ff4444;
    opacity: 0;
    animation: fadeInUp 0.4s ease-out 0.1s forwards;
}

#levelCompleteScreen h1 {
    color: #FFD700;
}

#gameOverMessage {
    font-size: 14px;
    margin-bottom: 30px;
    line-height: 20px;
    opacity: 0;
    animation: fadeInUp 0.4s ease-out 0.5s forwards;
}

.victory-message {
    font-size: 12px;
    color: #ffd700;
    margin: 20px 0;
    font-style: italic;
    opacity: 0;
    animation: fadeInUp 0.4s ease-out 0.5s forwards;
}

#levelCompleteScreen p:not(.victory-message) {
    opacity: 0;
    animation: fadeInUp 0.4s ease-out 0.4s forwards;
}

/* Score Display on Victory Screen */
.score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    font-size: 14px;
}

.score-label {
    color: #ffffff;
    font-weight: bold;
}

#levelScore {
    color: #00ff00;
    font-weight: bold;
}

#totalScore {
    color: #ffd700;
    font-weight: bold;
}

/* Small Score Display for Victory Screen */
.score-display-small {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #ffd700;
    border-radius: 5px;
    padding: 10px;
    margin: 30px auto 20px;
    width: 400px;
    font-size: 12px;
}

.score-row-small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0;
}

.score-label-small {
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1250px) {
    #gameCanvas {
        width: 95vw;
        height: auto;
    }
    
    .menu-btn {
        font-size: 14px;
        padding: 14px 22px;
    }
    
    #menuScreen h1 {
        font-size: 36px;
    }
}

@media (max-width: 600px) {
    .scripture {
        font-size: 10px;
        line-height: 15px;
    }
    
    .instructions p {
        font-size: 8px;
    }
    
    .menu-btn {
        font-size: 12px;
        padding: 12px 20px;
    }
}

/* Victory Temple Image */
.victory-temple {
    width: 240px;
    height: 248px;
    margin-bottom: 90px;
    margin-top: -80px; /* Move temple up */
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 0 20px #ffd700);
    animation: templeGlow 2s ease-in-out infinite alternate;
}

/* Next Level Button - Green styling and double width */
#nextLevelBtn {
    background: #28a745 !important;
    border-color: #1e7e34 !important;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.next-level-wide {
    width: 400px !important;
}

#nextLevelBtn .chevron-icon {
    font-size: 16px;
    margin-left: 5px;
    position: relative;
    top: -2px;
}

.chevron-icon.chev-left {
    font-size: 16px;
    margin-right: 8px;
    position: relative;
    top: -2px;
}

#nextLevelBtn:hover {
    background: #34ce57 !important;
    border-color: #28a745 !important;
}

/* Button row layout */
.button-row {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 4px;
}

/* Half-width buttons */
.half-width {
    width: 186px !important;
    font-size: 12px !important;
    padding: 15px;
}

/* Remove old retry button styles */
.retry-btn {
    display: none;
}

/* Running Characters Animation - positioned below temple */
.victory-runners {
    position: absolute;
    margin-top: -200px;
    animation: runAcross 2.56s linear forwards;
    display: flex;
    flex-direction: row;
    align-items: end;
}

.victory-player {
    width: 64px;
    height: 64px;
    margin-bottom: 5px;
}

.victory-pet {
    width: 55px;
    height: 40px;
}

@keyframes runAcross {
    0% {
        left: -120px;
        transform: scaleX(1);
        opacity: 1;
    }
    90% {
        left: 90vw;
        transform: scaleX(1);
        opacity: 1;
    }
    100% {
        left: 100vw;
        transform: scaleX(1);
        opacity: 0;
    }
}

@keyframes templeGlow {
    from { 
        filter: drop-shadow(0 0 20px #ffd700) brightness(1);
        transform: scale(1);
    }
    to { 
        filter: drop-shadow(0 0 30px #ffff00) brightness(1.1);
        transform: scale(1.02);
    }
}

/* Animation Classes */
.fadeIn {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slideUp {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(135deg, #222, #444);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #ffd700;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: #fff;
}

.modal-content h2 {
    color: #ffd700;
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
}

.instructions-content {
    color: #fff;
}

.instruction-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.key {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid #ffd700;
    border-radius: 5px;
    padding: 8px 12px;
    font-weight: bold;
    color: #ffd700;
    min-width: 40px;
    text-align: center;
    font-size: 14px;
}

.action {
    font-size: 14px;
    line-height: 1.4;
}

.game-objective {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
}

.game-objective h3 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 16px;
}

.game-objective p {
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 14px;
}

/* Level Intro Screen Styles */
#levelIntroScreen {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

#levelIntroScreen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.15)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: stars 20s linear infinite;
}

@keyframes stars {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

.level-intro-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    position: relative;
    z-index: 1;
}

.level-intro-content {
    text-align: center;
    max-width: 800px;
    padding: 40px;
}

.level-number-container {
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.level-number {
    font-family: 'Press Start 2P', monospace;
    font-size: 4rem;
    color: #ffd700;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.6),
        0 0 20px rgba(255, 215, 0, 0.4),
        0 0 40px rgba(255, 215, 0, 0.2),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 4px;
    margin: 0;
}

.level-name-container {
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}

.level-name {
    font-family: 'Press Start 2P', monospace;
    font-size: 2rem;
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.3),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    margin: 0;
}

.level-image-container {
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInScale 1.2s ease-out 1.5s forwards;
}

.level-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 15px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(255, 215, 0, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.4);
}

.continue-prompt {
    opacity: 0;
    animation: fadeInPulse 1s ease-out 3.0s forwards;
}

.continue-prompt p {
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    color: #aaaaaa;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    animation: pulse 2s ease-in-out infinite;
    margin-bottom: 0;
}

.start-level-btn {
    opacity: 0;
    animation: fadeInScale 1.2s ease-out 3s forwards;
    margin: 20px 0;
}

#startLevelBtn {
    background: #28a745 !important;
    border-color: #1e7e34 !important;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

#startLevelBtn:hover {
    background: #34ce57 !important;
    border-color: #28a745 !important;
}

#startLevelBtn .chevron-icon {
    font-size: 16px;
    margin-left: 5px;
    position: relative;
    top: -2px;
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeInPulse {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Start Level Button - Green styling with fade in timing */
.start-level-btn {
    opacity: 0;
    animation: fadeInScale 1.2s ease-out 2.2s forwards;
    margin: 20px auto;
    display: block;
}

#startLevelBtn {
    background: #28a745 !important;
    border-color: #1e7e34 !important;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

#startLevelBtn:hover {
    background: #34ce57 !important;
    border-color: #28a745 !important;
}

#startLevelBtn .chevron-icon {
    font-size: 16px;
    margin-left: 5px;
    position: relative;
    top: -2px;
}

/* Responsive design for level intro */
@media (max-width: 768px) {
    .level-number {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .level-name {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    
    .continue-prompt p {
        font-size: 0.9rem;
    }
    
    .level-image {
        max-height: 200px;
    }
}