body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    background-color: #ffe6e6; /* Fallback */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    text-align: center;
}

.container {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-width: 90%;
    width: 400px;
    position: relative;
    z-index: 10;
}

h1 {
    color: #ff4d4d;
    font-family: 'Indie Flower', cursive;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.gif-container img {
    max-width: 100%;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    height: auto;
}

.buttons {
    display: flex;
    justify-content: center;
    align-items: center; /* Center items vertically */
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    min-height: 60px; /* Ensure space for growing button */
}

button {
    padding: 12px 30px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

#yes-btn {
    background-color: #ff4d4d;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.4);
    z-index: 20; /* Ensure it stays on top */
}

#yes-btn:hover {
    background-color: #ff3333;
    transform: scale(1.05);
}

#no-btn {
    background-color: #e0e0e0;
    color: #333;
}

#no-btn:hover {
    background-color: #d0d0d0;
}

.hidden {
    display: none;
}

/* Hearts Background Animation */
.hearts-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.heart {
    position: absolute;
    font-size: 2rem;
    color: #ff4d4d;
    animation: floatUp 4s linear infinite;
    opacity: 0;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) scale(1.5);
        opacity: 0;
    }
}

/* Media Queries for iPhone 16 and iPad */
@media (max-width: 480px) { /* iPhone / Mobile */
    h1 {
        font-size: 2rem;
    }
    .container {
        padding: 1.5rem;
        width: 90%;
    }
    button {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) { /* iPad / Tablet */
    .container {
        width: 600px;
        padding: 3rem;
    }
    h1 {
        font-size: 3rem;
    }
    button {
        padding: 15px 40px;
        font-size: 1.5rem;
    }
}
