/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
}

/* 1. Gradient Background */
.background-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, #FFC1CC, #FFB6C1, #FF69B4);
    z-index: -2;
}

/* 2. Floating Hearts Background */
.hearts-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}

.heart-particle {
    position: absolute;
    color: white;
    font-size: 24px;
    animation: floatUp linear infinite;
    opacity: 0.8;
}

@keyframes floatUp {
    0% {
        transform: translateY(110vh) scale(0.5);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-10vh) scale(1.2);
        opacity: 0;
    }
}

/* 3. Main Container */
.main-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.view {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.view.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
    /* Hide from layout */
}

.view.active {
    opacity: 1;
    pointer-events: auto;
    display: flex;
}

/* Game View Layout */
.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    /* Align similar to Flutter's Align(0, -0.6) for title */
    padding-top: 15vh;
}

.title-section {
    text-align: center;
    margin-bottom: 50px;
    z-index: 20;
}

.main-title {
    font-size: 32px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(136, 14, 79, 0.3);
    /* Colors.pink.shade900 with opacity */
    line-height: 1.4;
}

.sub-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-top: 8px;
    transition: opacity 0.3s;
}

.sub-text.hidden {
    opacity: 0;
}

/* Buttons Area */
.buttons-area {
    position: relative;
    width: 100%;
    flex-grow: 1;
    /* Take remaining space */
    display: flex;
    justify-content: center;
    /* YES button centered typically */
}

/* Button Styles */
.btn {
    border: none;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s, background-color 0.2s;
    user-select: none;
}

.yes-btn {
    background-color: white;
    color: #E91E63;
    /* Pink */
    font-size: 24px;
    font-weight: bold;
    padding: 20px 40px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

    /* Center positioning */
    position: absolute;
    top: 20%;
    /* Adjust based on where "center" is relative to buttons-area */
    left: 50%;
    transform: translate(-50%, -50%);
    /* Start centered */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Elastic out */
    z-index: 10;
}

.heart-icon-svg {
    fill: #E91E63;
    width: 24px;
    height: 24px;
}

.no-btn-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let clicks pass through if empty */
}

.no-btn {
    pointer-events: auto;
    background-color: #880E4F;
    /* Pink Shade 900 */
    color: white;
    font-size: 16px;
    padding: 12px 20px;
    border-radius: 30px;
    position: absolute;
    /* Initial Position: Below YES button */
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    /* EaseInOutBack approx */
    white-space: nowrap;
    z-index: 50;
    /* Ensure it stays on top of Yes button */
}

/* Success View */
.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.success-media {
    margin-bottom: 20px;
}

.valentine-gif {
    max-width: 90%;
    /* Responsive width */
    width: auto;
    /* Maintain aspect ratio */
    height: auto;
    /* Maintain aspect ratio */
    max-height: 50vh;
    /* Limit height on large screens */
    min-width: 250px;
    /* Ensure it's not too small on mobile */
    border-radius: 10px;
    object-fit: contain;
}

.success-title {
    font-size: 32px;
    /* Flutter code says 24 or 32 depending on section, using 32 for impact */
    color: white;
    font-weight: bold;
    margin-bottom: 40px;
}

.replay-btn {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 20px;
}

.replay-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.create-link {
    color: white;
    text-decoration: underline;
    font-size: 16px;
    cursor: pointer;
}

/* Animations classes */
.fade-in-scale {
    animation: scaleIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.5s;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}