html {
    scroll-behavior: smooth;
    height: 100vh;
    min-height: 100%;

    background-image: url('images/ruins-ext.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body {
    font-family: "fondamentoitalic", Fantasy;
    color: #fff;
    margin: 0;
    padding: 0;
    padding-top: 0px;

    min-height: 100%;
    height: 100%;
}

body, html {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

.container {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

section {
    margin-bottom: 40px;
}

header {
    background-color: #222;
    padding: 0px 0;
    text-align: center;
}

header h1 {
    margin: 0px;
    padding: 10px;
}

nav ul {
    list-style: none;
    margin: 0px;
    padding: 10px;
}

nav ul li {
    display: inline;
    margin: 0 20px;
}

nav a {
    text-decoration: none;
    color: #aaa;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #BC9566;
}

a {
    color: #BC9566;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Adjust the minimum and maximum width of grid items */
    gap: 10px; /* Add some spacing between grid items */
}

.gallery img {
    max-width: 100%;
    height: auto;
    opacity: 0.7; /* Set initial opacity */
    transition: opacity 0.3s ease; /* Add a smooth transition effect */
}

.gallery img:hover {
    opacity: 1; /* Change opacity on hover */
}

.section-container {
    max-width: 600px;
    margin: 0 auto;
}

#rsvp form {
    margin-top: 20px;
}

#savethedate {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
}

.text-container {
    flex: 1;
    padding: 0 10px;
}

.image-container {
    flex: 1;
    margin: 0 10px;
}

.image-container img {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    #savethedate {
        flex-direction: column; /* Switch to vertical layout */
        align-items: center;
    }

    .image-container,
    .text-container {
        flex: auto; /* Allow containers to take full width */
        margin: 10px 0; /* Add some spacing between containers */
    }

    .image-container img {
        width: 50%;
        /* max-width: 200px; */
    }
}

.form-group {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    flex: 1;
}

.form-group input[type="text"],input[type="email"] {
    flex: 2;
}

.input-group {
    margin-bottom: 10px;
    display: inline-block;
    margin-right: 40px;
    width: 100%;
}

.radio-group {
    display: flex;
}

.radio-group input[type="radio"] {
    margin-right: 10px;
}

.radio-group label {
    margin-right: 20px;
}

.guests {
    width: 100%;
}

.meal-select {
    width: 100%;
    text-overflow: ellipsis;
}

.meal {
    width: 50%;
}

label {
    display: block;
    /* margin-bottom: 5px; */
}

label[for="rsvpYes"],
label[for="rsvpNo"] {
    margin-right: 20px;
}

input,textarea,select {
    font-family: "fondamentoitalic", Fantasy;
    border-radius: 5px;
    background-color: #333;
    color: #ccc;
    font-size: 16px;
    padding: 8px;
    border: 0;
}

input,textarea {
    width: calc(100% - 22px); /* Adjust the width as needed */
    /* border: 1px solid #ccc; */
}

input[type="submit"] {
    background-color: #BC9566;
    color: #222;
    width: 33%;
}

input[type="submit"]:hover {
    background-color: #594730;
    color: #ccc;
}

input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #BC9566;
    border-radius: 50%;
    outline: none;
    margin-right: 10px;
}

input[type="email"]:focus,input[type="text"]:focus,input[type="password"]:focus,input[type="number"]:focus,textarea[name="comments"]:focus,select:focus {
    outline: 2px solid #BC9566;
}

input[type="radio"]:focus {
    outline: 2px solid #BC9566;
    outline-color: #BC9566;
}
input[type="radio"]:checked {
    background-color: #BC9566;
}



footer {
    background-color: #222;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    margin-top: auto;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    color: #000;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.section-content {
    transition: max-height 0.6s ease;
    max-height: 0;
    overflow: hidden;
}
.section-content.active {
}

.section-heading {
    cursor: pointer;
    text-decoration: none;
    color: #FFF;
    transition: color 0.3s ease;
}
.section-heading:hover {
    color: #BC9566;
}

.expand-icon {
    /* position: absolute; */
    /* top: 0; */
    /* right: 0; */
    display: inline-block;
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.expand-icon.active {
    transform: rotate(0deg);
}

