* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

body {
    font-family: 'Comic Neue', cursive;
    overflow: hidden;
    background: linear-gradient(to bottom, #87CEEB, #E0F7FF);
    touch-action: none; /* Prevent browser handling of touch events */
}

#game-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

#header {
    height: 10vh;
    background: linear-gradient(to right, #FF6B6B, #FF8E8E);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 1.4em;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

#game-area {
    height: 90vh;
    position: relative;
    background: linear-gradient(to bottom, #87CEEB, #E0F7FF);
    overflow: hidden;
    will-change: transform; /* Optimize for animations */
}

/* Cloud decorations */
.cloud {
    position: absolute;
    background: white;
    border-radius: 50px;
    opacity: 0.8;
    animation: float 20s infinite linear;
}

.cloud1 {
    width: 100px;
    height: 40px;
    top: 20%;
    left: 10%;
    animation-duration: 30s;
}

.cloud2 {
    width: 150px;
    height: 60px;
    top: 40%;
    right: 15%;
    animation-duration: 25s;
}

.cloud3 {
    width: 80px;
    height: 30px;
    top: 60%;
    left: 30%;
    animation-duration: 35s;
}

@keyframes float {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100vw); }
}

.balloon {
    position: absolute;
    bottom: -50px;
    width: 50px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transform: translateZ(0); /* Force GPU acceleration */
    will-change: transform; /* Optimize for animations */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s ease-out;
}

.balloon:active {
    transform: scale(0.9) translateZ(0);
}

.balloon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background-color: #666;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #FF6B6B;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.hidden {
    display: none;
}

.game-title {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-title h1 {
    font-size: 3em;
    color: #FF6B6B;
    text-shadow: 3px 3px 0 #FFD93D;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.5em;
    color: #4A90E2;
    text-align: center;
    margin-bottom: 10px;
}

.fun-button {
    padding: 20px 40px;
    font-size: 1.5em;
    font-family: 'Comic Neue', cursive;
    cursor: pointer;
    background: linear-gradient(45deg, #FF6B6B, #FF8E8E);
    color: white;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.fun-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.fun-button:active {
    transform: scale(0.95);
}

.game-over-content {
    text-align: center;
}

.game-over-content h1 {
    font-size: 3em;
    color: #FF6B6B;
    text-shadow: 3px 3px 0 #FFD93D;
    margin-bottom: 20px;
}

.final-score {
    font-size: 1.8em;
    color: #4A90E2;
    margin-bottom: 30px;
}

.benefits {
    font-size: 1.2em;
    color: #4A90E2;
    margin-top: 10px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .balloon {
        width: 40px; /* Slightly smaller balloons on mobile */
        height: 48px;
    }
    
    .game-title h1 {
        font-size: 2.2em;
    }
    
    .subtitle {
        font-size: 1.2em;
    }
    
    .fun-button {
        padding: 15px 30px;
        font-size: 1.3em;
    }
    
    #header {
        font-size: 1.2em;
    }
    
    .cloud {
        opacity: 0.6;
    }
    
    .benefits {
        font-size: 1em;
        padding: 6px 12px;
    }
} 