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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #ff6b9d, #ff8e9b, #ffc3a0);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.container {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    text-align: center;
}

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

.heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    animation: float 6s ease-in-out infinite;
}

.heart:before,
.heart:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

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

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

.heart:nth-child(1) { left: 20%; animation-delay: 0s; }
.heart:nth-child(2) { left: 40%; animation-delay: 1s; }
.heart:nth-child(3) { left: 60%; animation-delay: 2s; }
.heart:nth-child(4) { left: 80%; animation-delay: 3s; }
.heart:nth-child(5) { left: 90%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { 
        transform: rotate(45deg) translateY(0px);
        opacity: 0;
    }
    50% { 
        transform: rotate(45deg) translateY(-100vh);
        opacity: 1;
    }
}

/* Main content */
.content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    animation: slideIn 1s ease-out;
}

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

.title {
    color: #ff4757;
    font-size: 2.5em;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

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

.question {
    color: #333;
    font-size: 1.3em;
    margin-bottom: 30px;
    font-weight: 500;
}

.buttons-container {
    position: relative;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    min-height: 100px;
}

.btn {
    padding: 15px 30px;
    font-size: 1.2em;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 120px;
}

.yes-btn {
    background: linear-gradient(45deg, #ff6b9d, #ff8e9b);
    color: white;
}

.yes-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
    animation: wiggle 0.5s ease-in-out;
}

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

.no-btn {
    background: linear-gradient(45deg, #a4b0be, #57606f);
    color: white;
    position: absolute;
    transition: all 0.3s ease;
}

.no-btn:hover {
    background: linear-gradient(45deg, #ff4757, #ff3838);
    transform: scale(0.8);
}

/* Celebration styles */
.celebration {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e, #ff7675);
    border-radius: 25px;
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: celebrateIn 1s ease-out;
}

@keyframes celebrateIn {
    from {
        transform: scale(0.8) rotate(-10deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.celebration-title {
    color: #d63031;
    font-size: 3em;
    margin-bottom: 20px;
    animation: bounce 1s ease-in-out infinite;
}

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

.celebration-text {
    color: #2d3436;
    font-size: 1.2em;
    margin-bottom: 20px;
    line-height: 1.6;
}

.celebration-hearts {
    font-size: 2em;
    margin: 20px 0;
    animation: sparkle 2s ease-in-out infinite;
}

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

.celebrate-btn {
    background: linear-gradient(45deg, #fd79a8, #fdcb6e);
    color: #2d3436;
    margin-top: 20px;
}

.celebrate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(253, 121, 168, 0.4);
}

/* Love message */
.love-message {
    position: relative;
    background: linear-gradient(135deg, #fab1a0, #ff7675, #fd79a8);
    border-radius: 25px;
    padding: 40px 30px;
    margin-top: 20px;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out;
}

.floating-arrow {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2em;
    color: #ff4757;
    cursor: pointer;
    animation: bounce-arrow 2s ease-in-out infinite;
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.floating-arrow:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.3);
}

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

/* Final romantic card */
.final-message {
    margin-top: 30px;
    animation: slideUp 1s ease-out;
}

.romantic-final-card {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    padding: 40px;
    color: white;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    text-align: center;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.floating-petals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.petal-float {
    position: absolute;
    font-size: 1.5em;
    opacity: 0.7;
    animation: floatPetal 4s ease-in-out infinite;
}

.petal-1 {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.petal-2 {
    top: 20%;
    right: 20%;
    animation-delay: 1s;
}

.petal-3 {
    top: 60%;
    left: 10%;
    animation-delay: 2s;
}

.petal-4 {
    bottom: 30%;
    right: 15%;
    animation-delay: 3s;
}

.petal-5 {
    bottom: 10%;
    left: 50%;
    animation-delay: 1.5s;
}

@keyframes floatPetal {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-15px) rotate(270deg);
        opacity: 0.8;
    }
}

.photo-frame-final {
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    animation: photoReveal 1.5s ease-out 0.5s both;
}

.final-photo {
    width: 200px;
    height: 250px;
    object-fit: cover;
    display: block;
}

@keyframes photoReveal {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animated-text {
    position: relative;
    z-index: 2;
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
}

.letter {
    display: inline-block;
    opacity: 0;
    animation: typeIn 0.5s ease-out forwards;
}

.letter:nth-child(1) { animation-delay: 2s; }
.letter:nth-child(2) { animation-delay: 2.1s; }
.letter:nth-child(3) { animation-delay: 2.2s; }
.letter:nth-child(4) { animation-delay: 2.3s; }
.letter:nth-child(5) { animation-delay: 2.4s; }
.letter:nth-child(6) { animation-delay: 2.5s; }
.letter:nth-child(7) { animation-delay: 2.6s; }
.letter:nth-child(8) { animation-delay: 2.7s; }
.letter:nth-child(9) { animation-delay: 2.8s; }
.letter:nth-child(10) { animation-delay: 2.9s; }

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

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

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

.love-message h2 {
    margin-bottom: 15px;
    font-size: 1.8em;
}

.love-message p {
    margin-bottom: 10px;
    font-size: 1.1em;
    line-height: 1.6;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .romantic-final-card {
        padding: 30px 20px;
        min-height: 350px;
    }
    
    .final-photo {
        width: 150px;
        height: 200px;
    }
    
    .animated-text {
        font-size: 2em;
    }
    
    .floating-arrow {
        width: 35px;
        height: 35px;
        font-size: 1.5em;
    }
}

/* Hidden class */
.hidden {
    display: none;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .content {
        padding: 30px 20px;
    }
    
    .title {
        font-size: 2em;
    }
    
    .question {
        font-size: 1.1em;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1em;
        min-width: 100px;
    }
    
    .buttons-container {
        gap: 15px;
    }
}

/* Prevent text selection */
.no-btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}