/* CSS Variables for theming */
:root {
    --primary-pink: #ff6b9d;
    --soft-pink: #ffc2d4;
    --cream: #fff5f7;
    --deep-rose: #c44569;
    --text-dark: #4a2c3e;
    --shadow: rgba(196, 69, 105, 0.3);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', cursive;
    background: linear-gradient(135deg, var(--cream) 0%, #ffe5ec 100%);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

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

.hearts-background::before,
.hearts-background::after {
    content: '💕';
    position: absolute;
    font-size: 30px;
    animation: float 15s infinite ease-in-out;
    opacity: 0.3;
}

.hearts-background::before {
    left: 20%;
    animation-delay: 0s;
}

.hearts-background::after {
    content: '💖';
    right: 20%;
    animation-delay: 7s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

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

.content {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 60px 50px;
    border-radius: 40px;
    box-shadow: 
        0 20px 60px var(--shadow),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    backdrop-filter: blur(10px);
    animation: slideIn 0.8s ease-out;
    max-width: 500px;
    position: relative;
}

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

/* Question heading */
.question {
    font-size: 2.5rem;
    color: var(--deep-rose);
    margin-bottom: 40px;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(255, 107, 157, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

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

/* Buttons container */
.buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 120px;
}

/* Button base styles */
.btn {
    padding: 18px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Yes button */
.btn-yes {
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--deep-rose) 100%);
    color: white;
    transform: scale(1);
}

.btn-yes:hover {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 12px 30px var(--shadow);
}

.btn-yes:active {
    transform: scale(1.05);
}

/* No button - starts relative, becomes absolute on hover */
.btn-no {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    color: var(--text-dark);
    position: relative;
    transition: all 0.1s ease;
}

.btn-no:hover {
    background: linear-gradient(135deg, #d0d0d0 0%, #adadad 100%);
}

/* Overlay modal */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 107, 157, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.5s ease;
}

.overlay.show {
    display: flex;
}

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

/* Modal content */
.modal {
    background: white;
    padding: 50px 40px;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    animation: bounceIn 0.6s ease;
}

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

.modal-content {
    position: relative;
}

/* Celebration image */
.celebration-img {
    width: 200px;
    height: 200px;
    margin-bottom: 30px;
    border-radius: 20px;
    animation: spin 2s ease-in-out infinite;
}

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

/* Thank you message */
.thank-you {
    font-size: 2.5rem;
    color: var(--deep-rose);
    margin-bottom: 20px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

.sweet-message {
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Responsive design */
@media (max-width: 600px) {
    .content {
        padding: 40px 30px;
    }
    
    .question {
        font-size: 2rem;
    }
    
    .buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        padding: 15px 35px;
        font-size: 1.1rem;
    }
    
    .modal {
        padding: 40px 30px;
        margin: 20px;
    }
    
    .thank-you {
        font-size: 2rem;
    }
    
    .celebration-img {
        width: 150px;
        height: 150px;
    }
}