:root {
    --primary-color: #ff4d6d;
    --secondary-color: #ff8fa3;
    --bg-color: #fff0f3;
    --text-color: #590d22;
    --card-bg: rgba(255, 255, 255, 0.8);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(#ffb3c1 1px, transparent 1px);
    background-size: 30px 30px;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: var(--text-color);
}

.container {
    perspective: 1000px;
    position: relative;
    width: 95%;
    max-width: 500px;
    padding: 10px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
}

.hidden {
    display: none;
    transform: scale(0.8);
    opacity: 0;
}

h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    line-height: 1.2;
}

.subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
    opacity: 0.8;
    padding: 0 10px;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    min-height: 60px;
}

.btn {
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.btn.yes {
    background-color: var(--primary-color);
    color: white;
}

.btn.yes:hover {
    transform: scale(1.1);
    background-color: #ff758f;
    box-shadow: 0 15px 30px rgba(255, 77, 109, 0.3);
}

.btn.no {
    background-color: #e9ecef;
    color: #6c757d;
    position: relative;
    z-index: 100;
}

/* Heart Image Styling */
.heart-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    position: relative;
    animation: pulse 1.5s infinite;
}

.heart-emoji {
    font-size: 80px;
    display: block;
    line-height: 120px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Success Card details */
.success-title {
    font-size: 3rem;
    color: #ff0a54;
}

.try-again-msg {
    color: #ff4d6d;
    font-weight: 600;
    margin-top: 15px;
    min-height: 24px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 400px) {
    h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

.celebration-emoji {
    font-size: 3rem;
    margin: 20px 0;
}

.download-text {
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 20px;
    color: var(--secondary-color);
}