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

body {
    background: linear-gradient(135deg, #ffeef7 0%, #f8bbd9 50%, #f48fb1 100%);
    min-height: 100vh;
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Floating hearts animation */
.hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.heart {
    position: absolute;
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    animation: float 6s infinite ease-in-out;
}

.heart:before {
    content: '💖';
}

.heart:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.heart:nth-child(2) {
    left: 20%;
    animation-delay: 1s;
    animation-duration: 8s;
}

.heart:nth-child(3) {
    left: 70%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.heart:nth-child(4) {
    left: 80%;
    animation-delay: 3s;
    animation-duration: 9s;
}

.heart:nth-child(5) {
    left: 90%;
    animation-delay: 4s;
    animation-duration: 6s;
}

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

/* Message card styling */
.message-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 35px 45px;
    margin: 20px auto;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: cardAppear 1s ease-out;
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.message {
    font-size: 18px;
    color: #333;
    line-height: 1.8;
    transition: all 0.5s ease;
}

.message small {
    font-size: 14px;
    color: #666;
    font-style: italic;
    display: block;
    margin-top: 10px;
}

.message.hidden {
    opacity: 0;
    transform: translateY(20px);
}

/* GIF container and animations */
.gif-container {
    margin: 30px auto;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out 2s forwards;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.panda-gif {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    animation: gentleBounce 4s infinite ease-in-out, pulseGlow 3s infinite ease-in-out;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    /* Force gif to loop if possible */
    image-rendering: auto;
    animation-iteration-count: infinite;
}

@keyframes gentleBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        filter: brightness(1);
    }
    50% {
        box-shadow: 0 8px 35px rgba(255, 182, 193, 0.4);
        filter: brightness(1.1);
    }
}

.bear {
    font-size: 40px;
    display: inline-block;
    margin: 0 10px;
    animation: bounce 2s infinite;
}

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

/* Button styling */
.special-button, .next-button {
    background: linear-gradient(45deg, #ff6b9d, #ff9a9e);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    margin: 20px auto;
    display: block;
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    text-align: center;
}

.special-button:hover, .next-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.6);
    animation: none;
}

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

.hidden {
    opacity: 0 !important;
    visibility: hidden;
    transform: translateY(20px);
}

/* Responsive design */
@media (max-width: 768px) {
    .message-card {
        margin: 20px;
        padding: 20px 25px;
    }
    
    .message {
        font-size: 16px;
    }
    
    .bear {
        font-size: 35px;
    }
    
    .special-button, .next-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Additional cute elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}
