/* --- Global Styles & Fonts --- */
body {
    font-family: 'Lato', sans-serif;
    background-color: #1e6b3e; /* A warm, creamy background */
    color: #000000;
    text-align: center;
    margin: 0;
    padding: 20px;
   /* background-image: linear-gradient(to bottom, #d6e9f2, #1e6b3e 70%); */
}

h1, h2, h3 {
    font-family: 'Mountains of Christmas', cursive;
    color: #c82333; /* Deep festive red */
    font-weight: 700;
    margin-top: 0;
}

h1 { font-size: 4rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    padding: 1rem;
    margin-bottom: 0rem;
}
h2 { font-size: 2.8rem; color: #1e6b3e; } /* Forest Green */
h3 { font-size: 2.2rem; }

p {
    line-height: 1.6;
    font-size: 1.1em;
}

/* --- Main Container --- */
.container {
    max-width: 800px;
    margin: 20px auto;
    background: #ffffff;
    padding: 0; /* Padding removed to allow header image to be flush */
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #ddd;
    overflow: hidden; /* Important for border-radius on images */
}

main {
    padding: 20px 40px 40px;
}

/* --- Header & Image Styling --- */
.header-image-container {
    width: 100%;
    height: 250px; /* Adjust height as needed */
    overflow: hidden;
}

.header-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This crops the image to fit without distortion */
}

/* --- Party & Info Box --- */
.party-info .info-box {
    background-color: #f9f9f9;
    border: 2px dashed #1e6b3e;
    border-radius: 10px;
    padding: 20px;
    margin: 30px auto;
    max-width: 400px;
}

.party-info .info-box p {
    margin: 8px 0;
    font-size: 1.1em;
    text-align: left;
}

/* --- Image Gallery --- */
.image-gallery {
    margin-top: 40px;
}

.image-gallery .gallery-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allows images to wrap on smaller screens */
    margin-top: 20px;
}

.image-gallery img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%; /* Makes the images circular */
    border: 5px solid #d4af37; /* Gold border */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* --- Buttons and Forms --- */
.rsvp-button, form button {
    font-family: 'Lato', sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    background-color: #c82333;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px; /* Pill-shaped button */
    display: inline-block;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.rsvp-button:hover, form button:hover {
    background-color: #a31c29;
    transform: translateY(-3px);
}

form {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-top: 20px;
}

form label {
    margin-top: 15px;
    font-weight: bold;
    color: #000000;
}

form input {
    padding: 12px;
    margin-top: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1em;
}

#response-message {
    margin-top: 25px;
    font-weight: bold;
    font-size: 1.2em;
    color: #1e6b3e;
}


/* --- Fun Animated Snowflakes --- */
@keyframes fall {
    0% { transform: translateY(-10vh); opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.snowflake {
    color: #fff;
    font-size: 1.5rem;
    position: absolute;
    top: -10vh;
    animation: fall linear infinite;
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 10s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 12s; animation-delay: 1s; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 8s; animation-delay: 2s; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 15s; animation-delay: 3s; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 9s; animation-delay: 0s; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 11s; animation-delay: 2s; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 13s; animation-delay: 1s; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 7s; animation-delay: 3s; }