body {
    display: flex;
    flex-direction: column; /* Stack the heading and buttons vertically */
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Soft pink/red gradient */
    background: linear-gradient(135deg, #ffafbd 0%, #ffc3a0 100%);
    color: #4a4a4a;
    text-align: center;
}

h1 {
    font-size: 3rem;
    color: #d63384;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px; /* Reduced margin to make room for the goose */
}

.button-container {
    position: static; /* Allows the No button to move freely over the screen */
}

button {
    padding: 15px 30px;
    font-size: 20px;
    font-weight: bold;
    border: none;
    border-radius: 50px; /* Rounded pill shape */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

#yesBtn {
    background-color: #ff4d6d; /* Vibrant red/pink */
    color: white;
    position: static;
    transition: transform 0.2s ease;
}

#yesBtn:hover {
    background-color: #ff758f;
    transform: scale(1.1);
}

#noBtn {
    background-color: #f8f9fa;
    color: #4a4a4a;
    position: static; /* Start as static */
    z-index: 10;
}

.heart {
    position: fixed;
    font-size: 2rem;
    pointer-events: none;
    z-index: 100;
    /* Using 'ease-out' makes them burst fast and then slow down as they rise */
    animation: sprayUp ease-out forwards;
}

@keyframes sprayUp {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        /* This moves them up to 100% of the screen height and keeps them there */
        transform: translate(var(--side-move), -100vh) scale(1.5);
        opacity: 0;
    }
}

#gifContainer {
    position: fixed;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    text-align: center;
    width: 100%; /* Ensures the container can hold a larger image */
}

#successGif {
    /* Increased from 80vw to 95vw for a much larger appearance */
    max-width: 7000px; 
    /* You can also set a specific pixel height if you want it taller */
    max-height: 60vh; 
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Styling specifically for the THANK YOU message */
#gifContainer h1 {
    color: #ff4d6d;
    font-size: 3.5rem;
    margin-bottom: 10px;
}

#backBtn {
    position: static; /* It stays below the GIF, doesn't fly around */
    margin-top: 20px;
    background-color: #6c757d;
    color: white;
    font-size: 16px;
    padding: 8px 16px;
}

#backBtn:hover {
    background-color: #5a6268;
}