/* Strawberry Quest - Kid-Friendly Platformer */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background: linear-gradient(135deg, #87CEEB, #98FB98);
    overflow: hidden;
    user-select: none;
}

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

#gameCanvas {
    border: 4px solid #FF6B6B;
    border-radius: 10px;
    background: #87CEEB;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* HUD - Heads Up Display */
.hud {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 20px;
    z-index: 10;
}

.hud-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 16px;
}

/* Mobile Controls */
.mobile-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 10;
}

.control-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.control-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.7);
}

/* Hide mobile controls on desktop */
@media (min-width: 768px) {
    .mobile-controls {
        display: none;
    }
}

/* Game Screens */
.game-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 20;
    min-width: 300px;
}

.game-screen h1 {
    color: #FF6B6B;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.game-screen h2 {
    color: #4ECDC4;
    font-size: 2em;
    margin-bottom: 20px;
}

.game-screen p {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.5;
}

.game-btn {
    background: linear-gradient(45deg, #FF6B6B, #FF8E8E);
    color: white;
    border: none;
    padding: 15px 30px;
    margin: 10px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.game-btn:active {
    transform: translateY(0);
}

/* Confetti Animation */
#confetti, #finalConfetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #FF6B6B;
    animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hud {
        top: 10px;
        left: 10px;
        gap: 10px;
    }
    
    .hud-item {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .game-screen {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .game-screen h1 {
        font-size: 2em;
    }
    
    .game-screen h2 {
        font-size: 1.5em;
    }
    
    .game-btn {
        padding: 12px 24px;
        font-size: 1em;
    }
} 