/* Global Reset and Base Styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Playfair Display', serif;
    color: #333;
}

body {
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 100vh; /* Ensure body takes at least the full viewport height */
}

/* Background Wrapper */
.background-wrapper {
    display: flex;
    flex-direction: column;
    height: auto; /* Allow it to grow with the content */
    position: relative; /* Make this the containing block for absolute positioning */
}

/* Content Wrapper */
.content-wrapper {
    flex: 1; /* Allow this to grow and push the footer down */
    padding: 20px;
}

/* RSVP Button Styles */
.rsvp-button {
    display: inline-block;
    /* margin-top: 20px; */
    padding: 10px 30px;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #738d5a; /* A warm, wedding-appropriate color */
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.rsvp-button:hover {
    background-color: #b46258; /* Darker shade on hover */
}

/* RSVP Link Styles */
.rsvp-link {
    color: #8B7355; /* Same color as the RSVP button for consistency */
    font-weight: bold;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.rsvp-link:hover {
    color: #6B5A4A; /* Darker shade on hover */
}

@media (max-width: 1000px) {
    .content-wrapper {
        padding-top: 200px;
        padding-bottom: 200px;
    }
}

/* Top Background Image */
.bg-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px; /* Adjust height as needed */
    background-image: url('/static/images/bg-header.png');
    background-repeat: no-repeat;
    background-position: top right;
    background-size: auto;
    z-index: -1;
}

/* Bottom Background Image */
.bg-bottom {
    position: absolute; /* Default to absolute positioning */
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px; /* Adjust height as needed */
    background-image: url('/static/images/bg-footer.png');
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: auto;
    z-index: -1; /* Ensure it stays behind the content */
}

.bg-bottom.fixed {
    position: fixed; /* Override to fixed positioning */
}

/* Header Styles */
.header {
    padding: 10px;
    text-align: center;
    position: relative; /* Needed for pseudo-elements */
}

/* Line between "days-remaining" and nav buttons */
.header h4.days-remaining {
    position: relative;
    margin-bottom: 20px; /* Add space below the "days-remaining" text */
}

.header h4.days-remaining::after {
    content: '';
    position: absolute;
    bottom: -10px; /* Position the line below the text */
    left: 50%;
    transform: translateX(-50%);
    width: 100%; /* Full width by default */
    max-width: 500px; /* Max width to align with navbar */
    height: 1px; /* Thickness of the line */
    background-color: #738d5a; /* Color of the line */
}

/* Line between nav buttons and content */
.header nav {
    position: relative;
    margin-bottom: 20px; /* Add space below the nav buttons */
}

.header nav::after {
    content: '';
    position: absolute;
    bottom: -10px; /* Position the line below the nav buttons */
    left: 50%;
    transform: translateX(-50%);
    width: 100%; /* Full width by default */
    max-width: 500px; /* Max width to align with navbar */
    height: 1px; /* Thickness of the line */
    background-color: #738d5a; /* Color of the line */
}

/* Header Button Styles */
.header button {
    font-family: 'Playfair Display', serif;
    border: none;
    color: black;
    font-size: 16px;
    margin: 0 10px;
    cursor: pointer;
    background-color: transparent;
}

.header button:hover,
.header button.active {
    text-decoration: underline;
}

/* Main Content Styles */
#content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

main {
    flex: 1;
}

/* Utility Classes */
.location-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

#qa h2 {
    margin-top: 20px;
    color: #333;
    font-size: 1.5em;
}

#qa p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}