* {
    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;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

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

/* Floating Hearts Animation */
.heart-float {
    position: absolute;
    font-size: 3rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.3;
}

.heart1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.heart2 {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.heart3 {
    bottom: 15%;
    left: 20%;
    animation-delay: 2s;
}

.heart4 {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

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

/* Dialog Box */
.dialog-box {
    background: white;
    padding: 60px 50px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: slideIn 0.6s ease-out;
}

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

.question {
    font-family: 'Pacifico', cursive;
    font-size: 2.2rem;
    color: #764ba2;
    margin-bottom: 40px;
    line-height: 1.4;
}

/* Button Container */
.button-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    min-height: 60px;
}

.btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.yes-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.yes-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.yes-btn:active {
    transform: translateY(-1px);
}

.no-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    position: relative;
    transition: all 0.1s ease;
}

.no-btn.moving {
    position: fixed;
}

/* Success Page */
.success-page {
    position: relative;
}

.confetti {
    position: absolute;
    font-size: 3rem;
    animation: confettiFall 4s ease-in-out infinite;
}

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

.confetti:nth-child(2) {
    left: 25%;
    animation-delay: 0.5s;
}

.confetti:nth-child(3) {
    left: 40%;
    animation-delay: 1s;
}

.confetti:nth-child(4) {
    left: 60%;
    animation-delay: 1.5s;
}

.confetti:nth-child(5) {
    left: 75%;
    animation-delay: 2s;
}

.confetti:nth-child(6) {
    left: 90%;
    animation-delay: 2.5s;
}

@keyframes confettiFall {
    0% {
        top: -10%;
        transform: rotate(0deg);
        opacity: 1;
    }
    100% {
        top: 110%;
        transform: rotate(360deg);
        opacity: 0;
    }
}

.success-box {
    background: white;
    padding: 60px 50px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 600px;
    width: 100%;
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.success-title {
    font-family: 'Pacifico', cursive;
    font-size: 3.5rem;
    color: #667eea;
    margin-bottom: 20px;
}

.success-subtitle {
    font-size: 1.8rem;
    color: #764ba2;
    margin-bottom: 40px;
    font-weight: 600;
}

.gif-container {
    margin: 30px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 400px;
}

.celebration-gif {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.success-message {
    font-size: 1.2rem;
    color: #555;
    margin-top: 30px;
    line-height: 1.6;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .dialog-box, .success-box {
        padding: 40px 30px;
        margin: 20px;
    }

    .question {
        font-size: 1.6rem;
    }

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

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

    .success-subtitle {
        font-size: 1.3rem;
    }

    .heart-float, .confetti {
        font-size: 2rem;
    }
}