
/* Shared styles across all pages */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

/* Add missing animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.hidden {
    display: none !important;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.scene {
    transition: opacity 0.8s ease-in-out;
}

.gift-box {
    position: relative;
    width: 120px;
    height: 120px;
}

.gift-lid {
    width: 130px;
    height: 20px;
    position: absolute;
    top: -10px;
    left: -5px;
    z-index: 10;
}

.gift-body {
    width: 120px;
    height: 120px;
    position: relative;
}

.ribbon {
    position: absolute;
    top: -20px;
    transform-origin: center;
}

.cloud {
    animation: float 6s ease-in-out infinite;
}

.cloud1 {
    animation-delay: 0s;
}

.cloud2 {
    animation-delay: 3s;
}

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

.grass {
    background: linear-gradient(to top, #48bb78, #68d391);
}

.flower {
    animation: sway 4s ease-in-out infinite;
}

@keyframes sway {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

.butterfly {
    animation: flutter 3s ease-in-out infinite;
}

@keyframes flutter {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(5deg); }
    75% { transform: translateY(5px) rotate(-5deg); }
}

.chibi-character {
    transition: all 0.3s ease;
}

.text-bubble {
    animation: bubbleAppear 0.5s ease-out;
}

@keyframes bubbleAppear {
    0% { transform: translateX(-50%) scale(0.8); opacity: 0; }
    100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

.heart {
    position: relative;
}

.heart:before,
.heart:after {
    content: "";
    background-color: red;
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

.heart:before {
    top: -2px;
    left: 0;
}

.heart:after {
    top: 0;
    left: -2px;
}

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    animation: confettiFall 5s linear forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(-100px) rotate(0deg); }
    100% { transform: translateY(1000px) rotate(360deg); }
}

.running-animation {
    animation: runCycle 0.6s steps(2) infinite;
}

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

.scrolling-element {
    position: absolute;
    animation: scrollUp linear infinite;
}

@keyframes scrollUp {
    0% { transform: translateY(100%); }
    100% { transform: translateY(-100%); }
}

/* Button animations */
button {
    animation: pulse 2s infinite;
}

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

/* Mobile optimizations */
@media (max-width: 768px) {
    .text-bubble {
        max-width: 280px;
        font-size: 0.9rem;
    }
    
    .gift-box {
        width: 100px;
        height: 100px;
    }
    
    .chibi-character {
        transform: scale(0.9) translateX(-50%);
    }
}

/* Hide scrollbars but maintain functionality */
::-webkit-scrollbar {
    display: none;
}

/* Prevent text selection */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Smooth transitions for all interactive elements */
button, .gift-box, .hand {
    transition: all 0.2s ease-in-out;
}