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

body {
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Arial Rounded MT Bold', sans-serif;
    background: linear-gradient(to bottom, #87CEEB, #1E90FF);
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
    transition: background 1s ease;
}

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

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.home-button {
    font-size: 24px;
    color: white;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.home-button:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

h1 {
    font-size: 36px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h1 small {
    font-size: 18px;
    opacity: 0.8;
}

.sound-toggle {
    font-size: 24px;
    color: white;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.sound-toggle:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

.game-container {
    flex: 1;
    position: relative;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

#game-area {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

#trampoline {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 40px;
    background-color: #FF6B6B;
    border-radius: 50%;
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.2);
    z-index: 1;
}

#child {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 120px;
    z-index: 10;
}

.balloon {
    position: absolute;
    width: 60px;
    height: 80px;
    z-index: 5;
}

.balloon.popping {
    animation: pop 0.3s forwards;
}

@keyframes pop {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.7; }
    100% { transform: scale(0.1); opacity: 0; }
}

#score-display {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px 20px;
    border-radius: 20px;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

/* Score display when progress is full */
#score-display.progress-full {
    animation: progress-pulse 1.5s infinite;
}

/* Enhanced progress pulse animation */
@keyframes progress-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
    50% { box-shadow: 0 0 15px 5px rgba(255, 215, 0, 0.7); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
}

.instructions {
    text-align: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-top: 10px;
}

footer {
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
}

.copyright {
    margin-bottom: 5px;
}

.copyright a {
    color: #ffffff;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

.version-info {
    font-size: 12px;
    opacity: 0.7;
}

/* Click notice styling */
#click-notice {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

.notice-content {
    background-color: rgba(0, 0, 50, 0.8);
    padding: 20px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

.notice-content i {
    font-size: 40px;
    color: #ffffff;
    margin-bottom: 10px;
}

.notice-content p {
    color: #ffffff;
    font-size: 1.2em;
    margin: 0;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Special effects */
.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: star-fade 1s forwards;
}

@keyframes star-fade {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}

.score-popup {
    position: absolute;
    color: #FFD700;
    font-weight: bold;
    font-size: 24px;
    pointer-events: none;
    animation: score-float 1.5s forwards;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

@keyframes score-float {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-50px); opacity: 0; }
}

/* Animation classes */
.jump-up {
    animation: jumpUp 0.6s ease-out forwards;
}

.jump-down {
    animation: jumpDown 0.6s ease-in forwards;
}

@keyframes jumpUp {
    0% { bottom: 100px; }
    100% { bottom: 400px; }
}

@keyframes jumpDown {
    0% { bottom: 400px; }
    100% { bottom: 100px; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }
    
    h1 small {
        font-size: 16px;
    }
    
    #child {
        width: 60px;
        height: 90px;
    }
    
    .balloon {
        width: 50px;
        height: 70px;
    }
    
    #trampoline {
        width: 150px;
    }
}

/* Add this to your existing CSS */
.shockwave {
    position: absolute;
    border-radius: 50%;
    border-style: solid;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: shockwave 0.6s forwards;
}

@keyframes shockwave {
    0% { width: 0; height: 0; opacity: 1; border-width: 2px; }
    100% { width: 200px; height: 200px; opacity: 0; border-width: 1px; }
}

/* Add this for balloon bobbing animation */
@keyframes balloon-bob {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

/* Balloon string wiggle animation */
@keyframes string-wiggle {
    0% { transform: translateX(-50%) rotate(-5deg); }
    100% { transform: translateX(-50%) rotate(5deg); }
}

/* Sparkle animation for special balloons */
@keyframes sparkle-twinkle {
    0% { opacity: 0.7; transform: scale(0.8) rotate(0deg); }
    100% { opacity: 1; transform: scale(1.2) rotate(20deg); }
}

/* Special balloon glow effect */
.special-balloon {
    box-shadow: 0 0 15px 5px rgba(255, 215, 0, 0.7);
    animation: special-pulse 1s ease-in-out infinite alternate !important;
}

@keyframes special-pulse {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(10px) scale(1.1); }
}

/* Flash effect for special balloons */
.flash {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: flash 0.3s forwards;
}

@keyframes flash {
    0% { opacity: 1; width: 0; height: 0; }
    50% { opacity: 0.8; width: 150px; height: 150px; }
    100% { opacity: 0; width: 200px; height: 200px; }
}

/* Balloon string */
.balloon-string {
    width: 2px;
    height: 30px;
    background-color: #FFFFFF;
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform-origin: top center;
}

/* Sparkle for special balloons */
.sparkle {
    position: absolute;
    width: 15px;
    height: 15px;
    background-image: radial-gradient(circle, white 20%, gold 30%, orange 70%);
    border-radius: 50%;
    z-index: 2;
}

/* Spin effect stars */
.spin-star {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: gold;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 15;
    animation: spin-star 1s forwards;
}

@keyframes spin-star {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
}

/* Firework particle animation */
@keyframes firework-particle {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.1); opacity: 0; }
}

/* Full progress bar animation */
.progress-full {
    animation: progress-pulse 1.5s infinite;
}

/* Background bubbles */
.background-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.1));
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    pointer-events: none;
    z-index: 1;
}

/* Bubble wobble animation */
@keyframes bubble-wobble {
    0% { transform: scale(1) rotate(0deg); }
    33% { transform: scale(1.05) rotate(2deg); }
    66% { transform: scale(0.95) rotate(-2deg); }
    100% { transform: scale(1) rotate(0deg); }
} 