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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

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

/* Screen Management */
.screen {
    display: none;
    width: 100%;
    max-width: 800px;
    animation: fadeIn 0.8s ease-in-out;
}

.screen.active {
    display: block;
}

/* Content Box */
.content-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* Typography */
.title {
    font-family: 'Pacifico', cursive;
    font-size: 3rem;
    color: #ff1493;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.message-box {
    margin: 30px 0;
}

.intro-text {
    font-size: 1.3rem;
    color: #555;
    margin: 20px 0;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 0.8s ease-in-out forwards;
}

.intro-text.delay-1 { animation-delay: 0.5s; }
.intro-text.delay-2 { animation-delay: 1s; }
.intro-text.delay-3 { animation-delay: 1.5s; }
.intro-text.delay-4 { animation-delay: 2s; }
.intro-text.delay-5 { animation-delay: 2.5s; }

.highlight {
    color: #ff1493;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #ffd700;
    text-decoration-thickness: 3px;
}

/* Buttons */
.btn {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 18px 50px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #ff1493, #ff69b4);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 20, 147, 0.4);
}

.btn-yes {
    background: linear-gradient(135deg, #00ff00, #32cd32);
    color: white;
    font-size: 1.5rem;
    padding: 20px 60px;
}

.btn-yes:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 255, 0, 0.4);
}

.btn-no {
    background: linear-gradient(135deg, #ff4444, #ff6666);
    color: white;
    font-size: 1rem;
    padding: 15px 40px;
    position: relative;
    transition: all 0.2s ease;
}

.btn-no:hover {
    background: linear-gradient(135deg, #ff6666, #ff8888);
}

/* Mini Game Styles */
.game-instruction {
    font-size: 1.3rem;
    color: #555;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.game-instruction-sub {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.stat-item {
    background: linear-gradient(135deg, #ffe6f0, #fff);
    padding: 15px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 0.9rem;
    color: #999;
    margin-right: 10px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff1493;
}

.game-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 20px;
    margin: 30px 0;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: crosshair;
}

.game-heart {
    position: absolute;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.1s ease;
    animation: floatGame 3s ease-in-out infinite;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.game-heart:hover {
    transform: scale(1.3);
}

.game-heart:active {
    transform: scale(0.8);
}

.game-hint {
    color: #ff6b6b;
    font-size: 1rem;
    font-style: italic;
    margin-top: 20px;
    min-height: 30px;
    font-weight: 500;
}

@keyframes floatGame {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(-5deg);
    }
    75% {
        transform: translateY(-10px) rotate(3deg);
    }
}

@keyframes heartCaught {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(2) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

.heart-caught {
    animation: heartCaught 0.5s ease-out forwards !important;
    pointer-events: none;
}

/* Fun Facts */
.fun-facts {
    margin: 30px 0;
}

.fact-item {
    background: linear-gradient(135deg, #fff9e6, #fff);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: slideInLeft 0.6s ease-in-out forwards;
}

.fact-icon {
    font-size: 2.5rem;
    min-width: 60px;
}

.fact-item p {
    text-align: left;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.5;
}

.fact-item small {
    display: block;
    color: #999;
    font-size: 0.8rem;
    margin-top: 5px;
    font-style: italic;
}

/* Question Screen */
.question-box {
    margin: 40px 0;
}

.big-question {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff1493;
    margin-bottom: 20px;
    font-family: 'Pacifico', cursive;
}

.sub-question {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
    min-height: 100px;
}

.hint {
    color: #ff6b6b;
    font-size: 1rem;
    font-style: italic;
    margin-top: 20px;
    min-height: 30px;
    animation: fadeIn 0.5s ease-in-out;
}

/* Celebration Screen */
.celebration-content {
    background: linear-gradient(135deg, #fff, #ffe6f0);
    position: relative;
    overflow: hidden;
}

.celebration-title {
    font-size: 4rem;
    animation: celebrationBounce 0.8s ease-in-out infinite;
}

.celebration-message {
    margin: 30px 0;
}

.celebration-message p {
    font-size: 1.5rem;
    color: #555;
    margin: 20px 0;
    animation: fadeInUp 0.8s ease-in-out forwards;
}

.big-celebration {
    font-size: 3rem !important;
    color: #ff1493 !important;
    font-weight: 700;
    font-family: 'Pacifico', cursive;
}

.final-message {
    font-size: 2rem !important;
    color: #ff69b4 !important;
    margin-top: 40px !important;
    font-weight: 600;
}

/* Floating Hearts Background */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: floatHeart 10s linear infinite;
    pointer-events: none;
}

/* Confetti Container */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff1493;
    animation: confettiFall 3s linear forwards;
}

/* Emoji Rain */
.emoji-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.emoji {
    position: absolute;
    font-size: 2.5rem;
    animation: emojiDrop 4s linear infinite;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.15); }
}

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

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes emojiDrop {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.5;
    }
}

@keyframes celebrationBounce {
    0%, 100% { transform: scale(1) rotate(-5deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

/* Animation Classes */
.bounce {
    animation: bounce 2s ease-in-out infinite;
}

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

.shake {
    animation: shake 0.5s ease-in-out infinite;
}

.heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

.slide-in {
    opacity: 0;
}

.slide-in.delay-1 { animation-delay: 0.2s; }
.slide-in.delay-2 { animation-delay: 0.4s; }
.slide-in.delay-3 { animation-delay: 0.6s; }
.slide-in.delay-4 { animation-delay: 0.8s; }

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .intro-text {
        font-size: 1.1rem;
    }

    .btn {
        font-size: 1.1rem;
        padding: 15px 40px;
    }

    .content-box {
        padding: 30px 25px;
    }

    .game-container {
        height: 350px;
    }

    .game-heart {
        font-size: 2rem;
    }

    .game-stats {
        gap: 20px;
    }

    .fact-item {
        flex-direction: column;
        text-align: center;
    }

    .fact-item p {
        text-align: center;
    }

    .big-question {
        font-size: 2rem;
    }

    .button-container {
        flex-direction: column;
        gap: 20px;
    }

    .celebration-title {
        font-size: 2.5rem;
    }

    .celebration-message p {
        font-size: 1.2rem;
    }

    .big-celebration {
        font-size: 2rem !important;
    }

    .final-message {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.5rem;
    }

    .content-box {
        padding: 20px 15px;
    }

    .game-container {
        height: 300px;
    }

    .game-heart {
        font-size: 1.8rem;
    }

    .game-instruction {
        font-size: 1.1rem;
    }

    .btn-yes {
        font-size: 1.2rem;
        padding: 15px 40px;
    }

    .btn-no {
        font-size: 0.9rem;
        padding: 12px 30px;
    }
}
