/* ============================================
   Custom Birthday Website Styles
   Replace colors, animation speeds, and styles as needed
   ============================================ */

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

body {
    font-family: 'Comic Sans MS', 'Marker Felt', cursive, sans-serif;
    background: linear-gradient(135deg, #FFE4E1 0%, #FFB6C1 25%, #E0E6FF 50%, #FFD700 75%, #FFB6C1 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Gradient Background */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF69B4, #FF1493, #FFB6C1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content h2 {
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* Music Control */
.music-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.music-control button {
    border-radius: 25px;
    padding: 10px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.music-control button:hover {
    transform: scale(1.1);
}

/* Intro Section */
.intro-section {
    padding: 80px 20px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#birthday-title {
    color: #FF1493;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Confetti Animation */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #FF1493;
    position: absolute;
    animation: confetti-fall linear forwards;
}

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

/* Floating Balloons */
.balloons-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.balloon {
    position: absolute;
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

.balloon-1 {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 3s;
}

.balloon-2 {
    left: 25%;
    animation-delay: 0.5s;
    animation-duration: 3.5s;
}

.balloon-3 {
    left: 50%;
    animation-delay: 1s;
    animation-duration: 4s;
}

.balloon-4 {
    left: 70%;
    animation-delay: 1.5s;
    animation-duration: 3.2s;
}

.balloon-5 {
    left: 85%;
    animation-delay: 2s;
    animation-duration: 3.8s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

/* Stars Animation */
.stars-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    font-size: 2rem;
    animation: twinkle 2s ease-in-out infinite;
}

.star:nth-child(1) {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.star:nth-child(2) {
    top: 20%;
    left: 80%;
    animation-delay: 0.5s;
}

.star:nth-child(3) {
    top: 50%;
    left: 10%;
    animation-delay: 1s;
}

.star:nth-child(4) {
    top: 60%;
    left: 90%;
    animation-delay: 1.5s;
}

.star:nth-child(5) {
    top: 80%;
    left: 40%;
    animation-delay: 2s;
}

.star:nth-child(6) {
    top: 30%;
    left: 60%;
    animation-delay: 0.3s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* Birthday Cake */
.cake-container {
    margin-top: 50px;
}

.birthday-cake {
    font-size: 6rem;
    animation: cakeBounce 2s ease infinite;
    filter: drop-shadow(0 0 20px rgba(255, 20, 147, 0.5));
    cursor: pointer;
    transition: transform 0.2s;
}

.birthday-cake:hover {
    transform: scale(1.1);
}

@keyframes cakeBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

.cake-caption {
    font-size: 1.5rem;
    color: #8B008B;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
    animation: fadeInUp 1s ease;
}

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

/* Funny Message Section */
.funny-message-section {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    margin: 40px 20px;
    padding: 60px 20px;
}

.message-box {
    max-width: 800px;
    margin: 0 auto;
}

.funny-message-text {
    color: #8B008B;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
}

.surprise-button {
    background: linear-gradient(135deg, #FF1493, #FF69B4);
    border: none;
    border-radius: 30px;
    padding: 15px 40px;
    font-size: 1.2rem;
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.4);
    transition: all 0.3s;
}

.surprise-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.6);
    background: linear-gradient(135deg, #FF69B4, #FF1493);
}

/* Mini-Game Section */
.game-section {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    margin: 40px 20px;
    padding: 60px 20px;
}

.balloon-counter {
    font-size: 1.5rem;
    color: #8B008B;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.8);
    padding: 15px 30px;
    border-radius: 25px;
    display: inline-block;
}

.game-area {
    min-height: 500px;
    position: relative;
    margin: 40px auto;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
}

.game-balloon {
    position: absolute;
    font-size: 4rem;
    cursor: pointer;
    transition: transform 0.2s;
    animation: gameBalloonFloat 3s ease-in-out infinite;
    user-select: none;
}

.game-balloon:hover {
    transform: scale(1.2);
}

@keyframes gameBalloonFloat {
    0%, 100% {
        transform: translateY(0) rotate(-3deg);
    }
    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}

.game-balloon.popped {
    animation: popAnimation 0.5s ease forwards;
    pointer-events: none;
}

@keyframes popAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.love-message-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 20, 147, 0.95);
    color: white;
    padding: 30px 50px;
    border-radius: 20px;
    font-size: 2rem;
    font-weight: bold;
    z-index: 2000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    display: none;
    animation: popupAppear 0.5s ease;
}

.love-message-popup.show {
    display: block;
}

@keyframes popupAppear {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Grand Finale Section */
.finale-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: fireworkExplode 1s ease-out forwards;
}

@keyframes fireworkExplode {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(3);
    }
}

.finale-message {
    color: #FF1493;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    animation: finalePulse 2s ease infinite;
    z-index: 10;
    position: relative;
}

@keyframes finalePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.heart-final {
    position: absolute;
    font-size: 2rem;
    animation: heartFloatUp 3s ease-out forwards;
    pointer-events: none;
}

@keyframes heartFloatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-500px) scale(1.5);
    }
}

/* Memory Carousel Section */
.memory-section {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    margin: 40px 20px;
    padding: 60px 20px;
}

.memory-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.memory-image img {
    border-radius: 20px;
    height: 500px;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(255, 20, 147, 0.8);
    border-radius: 15px;
    padding: 15px;
}

.memory-caption {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Final Section */
.final-section {
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.final-title {
    color: #FF1493;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    animation: titleGlow 2s ease infinite;
    position: relative;
    z-index: 10;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 3px 3px 6px rgba(0,0,0,0.3), 0 0 20px rgba(255, 20, 147, 0.5);
    }
    50% {
        text-shadow: 3px 3px 6px rgba(0,0,0,0.3), 0 0 40px rgba(255, 20, 147, 0.8);
    }
}

.final-subtext {
    color: #8B008B;
    font-size: 1.5rem;
    font-weight: bold;
    position: relative;
    z-index: 10;
}

.floating-hearts-final {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-hearts-final .heart {
    position: absolute;
    font-size: 2rem;
    animation: heartFloat 4s ease-in-out infinite;
}

.floating-hearts-final .heart:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.floating-hearts-final .heart:nth-child(2) {
    left: 30%;
    animation-delay: 0.8s;
}

.floating-hearts-final .heart:nth-child(3) {
    left: 50%;
    animation-delay: 1.6s;
}

.floating-hearts-final .heart:nth-child(4) {
    left: 70%;
    animation-delay: 2.4s;
}

.floating-hearts-final .heart:nth-child(5) {
    left: 90%;
    animation-delay: 3.2s;
}

@keyframes heartFloat {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px 20px 0 0;
    margin-top: 40px;
}

.footer-text {
    color: #8B008B;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .birthday-cake {
        font-size: 4rem;
    }
    
    .final-title {
        font-size: 2.5rem;
    }
    
    .final-subtext {
        font-size: 1.2rem;
    }
    
    .game-balloon {
        font-size: 3rem;
    }
    
    .love-message-popup {
        font-size: 1.5rem;
        padding: 20px 30px;
    }
    
    .memory-image img {
        height: 300px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

