/* General Styles */
body {
    background: linear-gradient(45deg, rgba(255, 160, 122, 0.4), rgba(255, 215, 0, 0.1));  /* Softer, lighter gradient */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;  /* Stack elements vertically */
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    opacity: 1;
}

/* Flip Container */
.flip-container {
    position: relative;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    margin-bottom: 10px; /* Adjust space between image and RSVP button */
    flex-direction: column; /* Stack image and RSVP button vertically */
    align-items: center;
}

/* Card */
.card {
    position: relative;
    width: 100%;
    height: auto; /* Adjust height based on content */
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

/* Flipped Card */
.card.flipped {
    transform: rotateY(180deg);
}

/* Front and Back Faces */
.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden;
}

.front {
    z-index: 2;
    transform: rotateY(0deg);
}

.back {
    transform: rotateY(180deg);
    position: relative;
}

/* Image Styling */
.image {
    max-width: 100%;      /* Ensure image scales down with container */
    height: auto;         /* Allow image height to adjust automatically */
    object-fit: contain;  /* Ensure aspect ratio is maintained and prevent cropping */
    display: block;
}

/* RSVP Button Styling */
.rsvp-button {
    background-color: #FF8C00;
    color: #FFD700;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Dancing Script', cursive;
    border-radius: 5px;
    text-align: center;
    display: inline-block;
    transition: background-color 0.3s ease;
    margin-top: 10px; /* Space between image and button */
}

.rsvp-button:hover {
    background-color: #FF4500;  /* Darker orange on hover */
}

.rsvp-button:focus {
    outline: none;
}

/* Overlay for Google Maps clickable area */
.clickable-area {
    position: absolute;
    top: 60%;  /* Adjust as per your layout */
    width: 100%;
    height: 20%;
    cursor: pointer;
    z-index: 1000;  /* Ensure it sits on top of other elements */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Flip Container for Mobile */
    .flip-container {
        max-width: 100%;  /* Ensure full-width container on mobile */
        height: auto;     /* Allow container to adjust height */
    }

    .rsvp-button {
        font-size: 14px;  /* Adjust font size for mobile */
        padding: 8px 16px;  /* Adjust padding for smaller screens */
    }
}

@media (max-width: 480px) {
    /* For very small screens like iPhone SE */
    .flip-container {
        max-width: 100%;  /* Ensure full-width */
        height: auto;     /* Adjust based on content */
        padding: 10px;    /* Add some padding to avoid overflow */
    }

    .image {
        object-fit: contain;  /* Ensure the image fits without cropping */
        max-width: 100%;
        max-height: 100%;      /* Ensure image does not overflow */
    }

    .rsvp-button {
        font-size: 12px;  /* Adjust font size for smaller screens */
        padding: 6px 12px;  /* Adjust padding for smaller screens */
    }
}
