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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    display: none;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.container.active {
    display: flex;
    opacity: 1;
}

/* Welcome Page Styles */
.welcome-page {
    background: linear-gradient(135deg, #ff6b9d 0%, #c06c84 50%, #f67280 100%);
}

.heart-container {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.heart-container:hover {
    transform: scale(1.1);
}

.heart-emoji {
    font-size: 150px;
    animation: heartbeat 1.5s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(255, 107, 157, 0.5));
}

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

.sparkles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.sparkle {
    position: absolute;
    font-size: 30px;
    animation: sparkleFloat 3s ease-in-out infinite;
}

.sparkle:nth-child(1) {
    top: -80px;
    left: -80px;
    animation-delay: 0s;
}

.sparkle:nth-child(2) {
    top: -80px;
    right: -80px;
    animation-delay: 0.5s;
}

.sparkle:nth-child(3) {
    bottom: -80px;
    left: -80px;
    animation-delay: 1s;
}

.sparkle:nth-child(4) {
    bottom: -80px;
    right: -80px;
    animation-delay: 1.5s;
}

@keyframes sparkleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 1; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.5; }
}

.welcome-text {
    position: absolute;
    bottom: 150px;
    font-size: 48px;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.subtitle {
    position: absolute;
    bottom: 100px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    animation: pulse 2s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Question Page Styles */
.question-page {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.question-container {
    text-align: center;
    animation: slideIn 0.8s ease;
}

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

.question {
    font-size: 42px;
    color: #c06c84;
    margin-bottom: 50px;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.name {
    color: #ff6b9d;
    font-weight: bold;
    font-size: 48px;
}

.buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    position: relative;
    height: 80px;
}

.btn {
    padding: 18px 50px;
    font-size: 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.yes-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.yes-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(245, 87, 108, 0.4);
}

.no-btn {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #c06c84;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.1s ease;
}

/* Success Page Styles */
.success-page {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 50%, #ff7675 100%);
}

.success-container {
    text-align: center;
    animation: bounceIn 1s ease;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.teddy-bear {
    position: relative;
    margin-bottom: 40px;
    animation: bearBounce 2s ease-in-out infinite;
}

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

.bear-head {
    position: relative;
    width: 150px;
    height: 150px;
    background: #8B4513;
    border-radius: 50%;
    margin: 0 auto 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.ear {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #8B4513;
    border-radius: 50%;
    top: -20px;
}

.left-ear {
    left: -15px;
}

.right-ear {
    right: -15px;
}

.face {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.eye {
    width: 15px;
    height: 15px;
    background: #000;
    border-radius: 50%;
    display: inline-block;
    margin: 0 15px;
    animation: blink 3s infinite;
}

@keyframes blink {
    0%, 96%, 100% { transform: scaleY(1); }
    98% { transform: scaleY(0.1); }
}

.nose {
    width: 20px;
    height: 15px;
    background: #000;
    border-radius: 50% 50% 50% 50%;
    margin: 10px auto;
}

.mouth {
    width: 30px;
    height: 15px;
    border: 3px solid #000;
    border-top: none;
    border-radius: 0 0 50px 50px;
    margin: 5px auto;
}

.bear-body {
    position: relative;
    width: 120px;
    height: 140px;
    background: #8B4513;
    border-radius: 60px 60px 80px 80px;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.belly {
    position: absolute;
    width: 70px;
    height: 80px;
    background: #D2691E;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.arm {
    position: absolute;
    width: 40px;
    height: 100px;
    background: #8B4513;
    border-radius: 20px;
    top: 20px;
}

.left-arm {
    left: -35px;
    transform: rotate(-20deg);
}

.right-arm {
    right: -35px;
    transform: rotate(20deg);
}

.flowers {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
}

.flower {
    display: inline-block;
    margin: 0 5px;
    animation: flowerSway 2s ease-in-out infinite;
}

.flower:nth-child(2) {
    animation-delay: 0.3s;
}

.flower:nth-child(3) {
    animation-delay: 0.6s;
}

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

.success-message {
    font-size: 48px;
    color: #ff6b9d;
    margin-top: 40px;
    text-shadow: 0 4px 20px rgba(255, 107, 157, 0.3);
    line-height: 1.4;
}

.beautiful {
    color: #f5576c;
    font-size: 56px;
}

.floating-hearts {
    margin-top: 30px;
}

.float-heart {
    display: inline-block;
    font-size: 40px;
    margin: 0 10px;
    animation: floatUp 3s ease-in-out infinite;
}

.float-heart:nth-child(1) { animation-delay: 0s; }
.float-heart:nth-child(2) { animation-delay: 0.6s; }
.float-heart:nth-child(3) { animation-delay: 1.2s; }
.float-heart:nth-child(4) { animation-delay: 1.8s; }
.float-heart:nth-child(5) { animation-delay: 2.4s; }

@keyframes floatUp {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-30px);
        opacity: 0.5;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .heart-emoji {
        font-size: 100px;
    }
    
    .welcome-text {
        font-size: 36px;
    }
    
    .question {
        font-size: 32px;
    }
    
    .name {
        font-size: 36px;
    }
    
    .btn {
        padding: 15px 40px;
        font-size: 20px;
    }
    
    .success-message {
        font-size: 36px;
    }
    
    .beautiful {
        font-size: 42px;
    }
}
