@import url('https://fonts.googleapis.com/css2?family=Borel&family=Imperial+Script&family=Lexend:wght@100..900&family=Pacifico&display=swap');

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    background-color: #eae9e5;
    color: #3d3d3d;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.arrow-down {
    width: 2em;
    height: 2em;
    position: absolute;
    bottom: 20px;
    cursor: pointer;
    font-size: 2em;
    color: #355E3B;
    background: rgba(0, 0, 0, 0);
    border: none;
    padding: 10px;
    border-radius: 50%;
    transition: transform 0.3s;
}

.arrow-down:hover {
    transform: translateY(5px);
}

h1 {
    font-size: 50pt;
    font-family: "Imperial Script", cursive;
    color: #355E3B;
    text-align: center;
}

h2 {
    font-size: 35pt;
    font-family: "Borel", serif;
    font-weight: 200;
    font-style: normal;
    color: #355E3B;
    text-align: center;
}

h3 {
    font-size: 26pt;
    margin: 10px;
}

p {
    font-size: 13pt;
    font-family: "Lexend", sans-serif;
    font-weight: 200;
    font-style: normal;
    color: #3d3d3d;
    margin: 10px;
}

.align-left p {
    text-indent: 2em;
}

span {
    color: #355E3B;
    font-size: 14pt;
    font-weight: 600;
}

li {
    margin: 10px 10px 20px 10px;
}

b {
    font-weight: 500;
}

#wrapper {
    width: 98%;
    max-width: 800px;
    margin: 0px auto;
}

section {
    /* border: 1px solid black; Delete Thise Later*/
    padding: 30px 3px;
}

.align-left p {
    text-align: left;
}

.align-center p {
    text-align: center;
}

/* Flex container for .content */
.content {
    display: flex; /* Enables flexbox */
    flex-direction: column; /* Stacks .text and .cta-align-right vertically */
    gap: 20px; /* Adds spacing between .text and .cta-align-right */
    margin: 20px 0; /* Adds spacing around the .content container */
}

/* Styling for the .text section */
.text {
    text-align: left; /* Aligns text to the left */
    line-height: 1.6; /* Improves readability */
    width: 100%; /* Ensures full width of parent container */
}

/* Styling for .cta-align-right */
.cta-align-right {
    text-align: right; /* Aligns text and buttons to the right */
    display: flex; /* Enables flexbox for internal alignment */
    flex-direction: column; /* Stacks <p> and buttons vertically */
    align-items: flex-end; /* Aligns content to the right */
    gap: 15px; /* Adds spacing between <p> and buttons */
    width: 100%; /* Ensures full width of parent container */
}

/* Button container for horizontal alignment */
.cta-align-right-buttons {
    display: flex; /* Enables flexbox for buttons */
    gap: 10px; /* Adds spacing between buttons */
}

 .btn-row {
    display: flex; /* Enables flexbox for internal alignment */
    flex-direction: row;
    gap: 10px; /* Adds spacing between buttons */
 }

button {
    background-color: #3A3939;
    border-radius: 15px;
    padding: 5px 10px;
    color: white;
}

button a {
    text-decoration: none;
    color: white;
}

/* Styling for map and text content */
.map-full {
    width: 100%;
    height: 500px;
    background-color: #ddd;
    border-radius: 25px;
    overflow: hidden;
}


#map-btns {
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    /* Allows wrapping to create multiple rows */
    flex-direction: row;
    /* Row-first layout */
    justify-content: space-evenly;
    /* Even spacing between buttons horizontally */
    align-items: stretch;
    /* Ensures all buttons have the same height */
    z-index: 10;
    /* Keeps the button bar on top of other elements */
    width: 100%;
    /* Adjust the width as needed */
}

#map-btns button {
    flex-basis: 50%;
    /* Each button takes 50% of the row width */
    text-align: center;
    padding: 10px;
    font-size: 1rem;
    border: none;
    border-radius: 0px;
    background-color: #3A3939;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    /* Centers content horizontally */
    align-items: center;
    /* Centers content vertically */
}

/* Button hover effect */
#map-btns button:hover {
    background-color: #585858;
    /* Darker shade on hover */
}

/* Funding-Details CSS */
#funding-details {
    padding: 20px; /* Adds padding around the section */
    width: 100%; /* Default width to fill parent container */
    max-width: 600px;
    min-width: 300px;
    margin: 0 auto; /* Centers the section on the page */
}

/* Flex container for cards */
#cards-flex.container {
    display: flex; /* Enables flexbox for card alignment */
    flex-direction: column;
    gap: 20px; /* Adds space between cards */
    margin-top: 20px; /* Adds spacing between the section title and the cards */
}

/* Styling for cards */
.card {
    background-color: #fefefe; /* Off-white background */
    border: 1px solid #ddd; /* Light border */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    padding: 20px; /* Space inside the card */
    box-sizing: border-box; /* Includes padding in width calculation */
    text-align: center; /* Centers text horizontally */
    display: flex; /* Enables flexbox */
    flex-direction: column; /* Stacks content vertically */
    justify-content: center; /* Centers content vertically */
    align-items: center; /* Centers items horizontally */
}


h4, h5 {
    margin-top: 0;
    font-size: 18pt;
}

p {
    margin: 5px 0; /* Consistent spacing for paragraphs */
}


/* RSVP Modal */
/* Modal container */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Transparent black background */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* Ensure it's above other elements */
}

/* Modal content box */
.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
    /* Align text to the left */
}

/* Close button */
.close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Modal header */
.modal-content h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
}

/* Form elements */
.modal-content form label {
    display: block;
    /* Ensure the label is above the field */
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.modal-content form input,
.modal-content form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    /* Adds space after each field */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.modal-content form button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #355E3B;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

.modal-content form button:hover {
    background-color: #2d4631;
}

/* Optional: Style for the modal background when visible */
.modal.show {
    display: flex;
    /* Make modal visible */
}

/* Two-column layout */
.rsvp-columns {
    display: flex;
    justify-content: space-between;
    width: 90%;
    margin: 30px auto;
    gap: 30px;
}

.rsvp-column {
    flex: 1;
}

/* Table positioning and structure */
#rsvp-table-hers,
#rsvp-table-his {
    width: 100%;
    border-collapse: collapse;
    font-family: inherit;
}

#rsvp-table-hers th, 
#rsvp-table-hers td,
#rsvp-table-his th,
#rsvp-table-his td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#rsvp-table-hers th,
#rsvp-table-his th {
    font-weight: bold;
    font-size: 1.2rem;
    border-bottom: 2px solid #000;
    text-align: center;
}

/* Bride's side styling */
#rsvp-table-hers th {
    background-color: #fff0f5; /* Light pink */
}

/* Groom's side styling */
#rsvp-table-his th {
    background-color: #f0f8ff; /* Light blue */
}

/* Primary guest styling */
.primary-guest {
    font-size: 1.1rem;
    font-weight: bold;
}

/* Additional guest styling */
.guest-name {
    font-size: 1rem;
    padding-left: 20px;
    color: #555;
}

/* Responsive adjustments */
@media screen and (max-width: 400px) {
    .rsvp-columns {
        flex-direction: column;
        width: 95%;
    }
    
    .rsvp-column {
        margin-bottom: 30px;
    }
}

@media screen and (min-width: 650px) {
    #wrapper {
        width: 70%;
    }

    h1 {
        font-size: 60pt;
    }

    #map-btns {
        position: absolute;
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        z-index: 10;
        /* Ensures the button bar is on top of any other positioned elements within the map */
    }

    /* General button styling */
    #map-btns button {
        flex-basis: 25%;
        /* Each button takes 50% of the row width */
        padding: 10px 20px;
        /* Adds padding inside the buttons */
        background-color: #3A3939;
        /* Set a primary color for the button */
        color: white;
        /* Text color */
        border: none;
        /* Removes the default border */
        border-radius: 0 0 5px 5px;
        /* Rounds the corners */
        font-size: 9pt;
        /* Sets the text size */
        cursor: pointer;
        /* Changes the cursor to a pointer when hovering over the button */
        transition: background-color 0.3s, transform 0.2s;
        /* Smooth transition for hover effects */
    }

    /* Button hover effect */
    #map-btns button:hover {
        background-color: #585858;
        /* Darker shade on hover */
        transform: translateY(-2px);
        /* Slight raise effect */
    }
    
    #cards-flex.container {
    flex-direction: row;
}

.card {
    width: calc(50% - 10px); /* Cards take up 50% of parent with gap adjustment */
}

}