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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

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

.floating-heart {
    position: absolute;
    font-size: 2em;
    opacity: 0.7;
    animation: float 3s ease-in-out infinite;
}

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

.container {
    background: white;
    padding: 60px 40px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 600px;
    width: 90%;
    position: relative;
    z-index: 10;
    animation: slideIn 0.5s ease-out;
}

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

.question {
    font-size: 2.5em;
    color: #f5576c;
    margin-bottom: 40px;
    animation: pulse 2s ease-in-out infinite;
}

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

.buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    min-height: 80px;
}

.btn {
    padding: 20px 40px;
    font-size: 1.5em;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-yes {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    animation: grow 0.5s ease-out forwards;
    transition:
        transform 0.4s ease,
        box-shadow 0.3s ease;
    position: relative;
    z-index: 2;
}

@keyframes grow {
    to {
        transform: scale(1);
    }
}

.btn-yes:hover {
    filter: brightness(1.1);
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.4);
}

.btn-no {
    background: #ddd;
    color: #666;
    position: relative;
    transition:
        all 0.3s ease,
        opacity 0.5s ease,
        transform 0.3s ease;
    z-index: 1;
}

.btn-no:hover {
    background: #ccc;
}

.btn-no.moving {
    position: absolute;
    transition:
        opacity 0.5s ease,
        transform 0.3s ease;
}

.hint {
    color: #999;
    font-size: 0.9em;
    font-style: italic;
    transition: all 0.5s ease;
}

.celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.5s ease-out;
}

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

.celebration.hidden {
    display: none;
}

.celebration-content {
    text-align: center;
    position: relative;
    z-index: 1001;
    animation: bounceIn 0.8s ease-out;
}

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

.celebration-title {
    font-size: 4em;
    color: #f5576c;
    margin-bottom: 30px;
    animation: colorChange 2s ease-in-out infinite;
}

@keyframes colorChange {
    0%,
    100% {
        color: #f5576c;
    }
    50% {
        color: #f093fb;
    }
}

.celebration-message {
    font-size: 2em;
    color: #333;
    margin: 20px 0;
}

.confetti {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #f5576c;
    top: -10px;
    opacity: 0;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 1;
    }
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #f5576c;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 100;
}

.back-button:hover {
    background: white;
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .question {
        font-size: 1.8em;
    }

    .btn {
        padding: 15px 30px;
        font-size: 1.2em;
    }

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

    .celebration-message {
        font-size: 1.5em;
    }
}
