:root {
    --primary-color: #ff4d6d;
    --secondary-color: #c9184a;
    --bg-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --text-color: #590d22;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-image: var(--bg-gradient);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    padding: 2rem;
    position: relative;
    width: 100%;
    max-width: 600px;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: transform 0.3s ease;
    position: relative;
    min-height: 400px;
}

.card:hover {
    transform: translateY(-5px);
}

.title {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.btn-yes {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.4);
}

.btn-yes:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 77, 109, 0.6);
}

.btn-no {
    background: white;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

/* Logic for 'No' button movement - use absolute positioning within card */
.btn-no.dodging {
    position: absolute;
    z-index: 100;
    transition: left 0.2s ease, top 0.2s ease;
}

.hidden {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.visible {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease-in-out forwards;
}

#celebration p {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.celebration-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.couple-photo {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 77, 109, 0.4);
    animation: photoAppear 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    border: 4px solid white;
}

.celebration-title {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: var(--secondary-color);
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: titleBounce 0.6s ease-out 0.3s both;
}

.celebration-message {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    animation: fadeSlideUp 0.6s ease-out 0.6s both;
}

@keyframes photoAppear {
    from {
        opacity: 0;
        transform: scale(0.3) rotate(-10deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes titleBounce {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}    body { overflow-y: auto; height: auto; min-height: 100vh; padding: 1rem 0; } .container { padding: 1rem; } .card { padding: 2rem 1rem; min-height: auto; border-radius: 16px; } .card:hover { transform: none; } .title { font-size: 2.5rem; margin-bottom: 2rem; } .buttons { flex-direction: column; gap: 1rem; } .btn { font-size: 1rem; padding: 0.875rem 2rem; width: 100%; max-width: 200px; } .couple-photo { max-width: 280px; } .celebration-title { font-size: 2.2rem; } .celebration-message { font-size: 1.2rem; } } @media screen and (max-width: 480px) { .title { font-size: 2rem; } .card { padding: 1.5rem 0.75rem; } .btn { font-size: 0.9rem; padding: 0.75rem 1.5rem; } .couple-photo { max-width: 240px; } .celebration-title { font-size: 1.8rem; } .celebration-message { font-size: 1rem; } }
