/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Quicksand:wght@400;600&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(to bottom right, #e8d4f4, #f3e7ff);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #5c2d91;
    position: relative;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.1), transparent),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.1), transparent);
    z-index: -1;
}

.container {
    text-align: center;
    padding: 80px 20px;
    max-width: 500px;
    margin: 0 auto;
}

h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-weight: 500;
}

.candle-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.flame {
    width: 20px;
    height: 40px;
    background: radial-gradient(ellipse at center, #ffd700 0%, #ff8c00 60%, transparent 100%);
    border-radius: 50%;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    animation: flicker 0.2s infinite alternate;
    box-shadow: 0 0 15px rgba(255, 150, 0, 0.4);
}

@keyframes flicker {
    0% { transform: translateX(-50%) scaleY(1); opacity: 1; }
    100% { transform: translateX(-50%) scaleY(1.2); opacity: 0.85; }
}

.candle-stick {
    width: 10px;
    height: 50px;
    background: linear-gradient(to bottom, #fff, #e6e6e6);
    border-radius: 5px;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

.hidden {
    display: none;
}

.wish {
    font-size: 1.5rem;
    margin: 30px 0;
    animation: fadeIn 1s ease-in forwards;
    font-weight: 600;
    color: #4a148c;
}

#game {
    margin-top: 20px;
    animation: fadeIn 1s ease-in forwards;
}

#score {
    font-weight: 600;
    margin: 10px 0;
    color: #4a148c;
}

#balloon-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 10px;
}

.balloon {
    position: absolute;
    bottom: 0;
    width: 60px;
    height: 80px;
    background: pink;
    border-radius: 30px;
    cursor: pointer;
    animation: float 5s linear infinite;
}

@keyframes float {
    from { bottom: 0; }
    to { bottom: 100%; }
}

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