/* General reset and styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
    /* Ensure the html and body take up the full height of the viewport */
}

body {
    font-family: Helvetica, sans-serif;
    line-height: 1.6;
    background-color: #ededed;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* Stack elements vertically */
}

/* Header Styling */
header {
    background-color: #DB0A5B;
    color: #fff;
    display: flex;
    justify-content: space-between;
    /* Space between logo, title, and navigation */
    align-items: center;
    /* Vertically center all items */
    padding: 20px 60px;
    /* Reduced padding for smaller header height */
    position: relative;
    top: 0;
    z-index: 1000;
    /* Ensure the header stays above other content */
    width: 100%;
}

header .logo {
    width: 50px;
    /* Adjust the size of the logo */
    height: auto;
}

header .title-container {
    flex-grow: 1;
    /* Take up remaining space to center title */
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 24px;
    /* Adjust font size as needed */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #67062A;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #390518;
}

/* Main Content Styling */
main {
    padding: 20px;
    flex: 1;
    /* Allow the main content to grow and fill available space */
}

.content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 70px;
    padding-left: 80px;
    /* Move all contents from the left side */
    padding-right: 80px;
    /* Move all contents from the right side */
    align-items: stretch;
    /* Ensure both columns have the same height */
    flex: 1;
    /* Allow the main content to grow and fill available space */
}

.text-section {
    flex: 1;
    /* Ensures the text section takes available space */
    display: flex;
    flex-direction: column;
    /* Stack text and button vertically */
    justify-content: flex-start;
    /* Make sure we start at the top */
    height: 100%;
    /* Ensure it takes the full height of the parent container */
    padding-right: 20px;
    /* Add space between text and image */
}

.text-section h2 {
    font-size: 35px;
    margin-bottom: 10px;
    margin-top: 20px;
}

.text-section p {
    font-size: 16px;
    margin-bottom: 20px;
}

.learn-more-button {
    align-self: flex-start;
    /* Aligns the button to the left */
    padding: 12px 24px;
    background-color: #67062A;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s ease;
    margin-top: auto;
    /* Pushes the button to the bottom */
}

.learn-more-button:hover {
    background-color: #390518;
}

/* Image section styles to display images vertically */
.image-section {
    display: block;
    /* Make sure it's a block-level container */
    text-align: center;
    flex: 1;
}

.image-section img {
    max-width: 100%;
    /* Control the size of the images (optional) */
    width: 80%;
    height: auto;
    /* Maintain aspect ratio */
    margin-bottom: 20px;
    /* Space between images */
    border-radius: 10px;
    /* Optional: rounded corners */
    display: block;
}

.buildings {
    text-align: center;
    padding: 0 40px;
    /* Adds padding on the left and right */
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    /* Center the buildings section horizontally */
}

#buildings {
    padding-top: 20px;
}

.selection-text {
    margin-bottom: 20px;
    font-size: 16px;
}

.selection-text h2 {
    margin-bottom: 5px;
    margin-top: 60px;
    font-size: 35px;
}

.building-title {
    text-align: center;
    padding: 0 40px;
    /* Adds padding on the left and right */
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    /* Center the buildings section horizontally */
}

.title-text {
    margin-bottom: 60px;
    font-size: 16px;
}

.title-text h2 {
    margin-bottom: 5px;
    margin-top: 15px;
    font-size: 45px;
}

.title-text h3 {
    margin-top: 35px;
    font-size: 35px;
    text-align: center;
}

/* Navigation Bar Under Building Title */
/* Navigation Bar Under Building Title */
.building-nav {
    margin-top: 20px;
    /* Adds space between the title and navigation */
}

.building-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    /* Center the nav items */
}

.building-nav ul li {
    margin: 0 10px;
    /* Space between each link, reduced */
}

.building-nav ul li a {
    font-size: 16px;
    /* Smaller font size */
    text-decoration: none;
    background-color: #67062A;
    /* Matching the theme color */
    color: white;
    font-weight: bold;
    padding: 6px 12px;
    /* Smaller padding for a more compact look */
    transition: color 0.3s ease;
}

.building-nav ul li a:hover {
    background-color: #390518;
    /* Darker shade on hover */
}

/* The building buttons container */
.building-buttons nav ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Creates two equal columns */
    gap: 20px;
    /* Space between columns and rows */
    padding: 0;
    list-style: none;
    width: 100%;
    /* Ensures grid takes up the full width available */
}

/* Adjusting button layout */
.building-buttons nav ul li {
    text-align: center;
    /* Center the text inside the button */
}

.building-buttons nav ul li a {
    display: block;
    padding: 15px 30px;
    /* Increase padding for more button width */
    margin: 10px 0;
    font-size: 18px;
    /* Increase font size for readability */
    background-color: #67062A;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    width: 100%;
    /* Make the button take up full width of its grid cell */
    box-sizing: border-box;
    /* Ensures padding and width are included in button's total width */
}

.building-buttons nav ul li a:hover {
    background-color: #390518;
}

/* Video and Location section side by side */
.video-and-location-section {
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    gap: 20px;
    margin-top: 40px;
    /* Move all contents from the left side */
    /* Move all contents from the right side */
}

.video-wrapper {
    width: 100%;
    /* Allow the video wrapper to take up 50% of the container's width */
}

.video-wrapper iframe {
    width: 100%;
    /* Make iframe take up 100% of the video-wrapper width */
    height: 450px;
    border-radius: 10px;
}

/* Location display area */
.location-display {
    width: 100%;
    max-width: 80%;
    height: 450px;
    background-color: #ddd;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#location-map {
    width: 100%;
    height: 100%;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    font-size: 18px;
    color: #555;
}

/* Login Form Styling */
.login-form,
.add-page-form {
    width: 100%;
    max-width: 800px;
    /* Restrict the form width */
    margin: 0 auto;
    /* Center the form horizontally */
    padding: 20px;
    background-color: #fff;
    /* White background for the form */
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    /* Light shadow effect */
    margin-top: 50px;
}

.login-form h2,
.add-page-form h2 {
    text-align: center;
    /* Center align the header */
    font-size: 28px;
    margin-bottom: 15px;
    color: #67062A;
}

.login-form p,
.add-page-form p {
    text-align: center;
    /* Center the paragraph */
    margin-bottom: 20px;
    font-size: 16px;
}

.login-form h3,
.add-page-form h3 {
    text-align: center;
    margin-top: 30px;
    color: red;
}

/* Input Fields */
.login-form label,
.add-page-form label {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.login-form input,
.add-page-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.login-form input:focus,
.add-page-form input:focus {
    border-color: #67062A;
    /* Change border color when focused */
    outline: none;
}

/* Sign In Button */
.sign-in-button,
.add-user,
.update-user,
.update-assigned-buildings {
    width: 100%;
    padding: 12px;
    background-color: #67062A;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sign-in-button:hover,
.add-user:hover,
.update-user:hover,
.update-assigned-buildings:hover {
    background-color: #390518;
    /* Darker color on hover */
}

/* Footer Styling */
footer {
    background-color: #DB0A5B;
    color: #fff;
    text-align: center;
    margin-top: 40px;
    position: relative;
    width: 100%;
    margin-top: auto;
    /* Push the footer to the bottom */
}

/* Footer Title */
footer h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Footer Columns Layout */
.footer-columns {
    display: grid;
    /* Use CSS Grid for layout */
    grid-template-columns: repeat(3, 1fr);
    /* Creates three equal-width columns */
    gap: 20px;
    /* Space between columns */
    margin-bottom: 20px;
    /* Adds space below the columns */
    padding: 0 20px;
    /* Adds horizontal padding for better spacing */
}

.footer-column {
    text-align: center;
    /* Aligns text to the left in each column */
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
}

.footer-column p {
    font-size: 14px;
    line-height: 1.6;
}

/* Footer copyright text */
footer p {
    margin: 0;
    font-size: 14px;
    font-weight: normal;
}


/* Edit Building Stuff */
#editBuildingForm,
#addPageForm {
    width: 100%;
    max-width: 800px;
    /* Restrict the form width */
    margin: 0 auto;
    /* Center the form horizontally */
    padding: 20px;
    background-color: #fff;
    /* White background for the form */
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    /* Light shadow effect */
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    /* Stack items vertically */
    align-items: center;
    /* Center align form items horizontally */
}

/* Style for select and option inputs */
#editBuildingForm select,
#addPageForm select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    background-color: #f9f9f9;
    color: #333;
    appearance: none;
    /* Remove default dropdown arrow for consistent styling */
    outline: none;
    transition: border-color 0.3s ease;
}

#editBuildingForm select:focus,
#addPageForm select:focus {
    border-color: #67062A;
    /* Change border color when focused */
}

#editBuildingForm option,
#addPageForm option {
    font-size: 16px;
    padding: 10px;
    background-color: #fff;
    color: #333;
}

/* Style for submit button */
#editBuildingForm input[type="submit"],
#addPageForm input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #67062A;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

#editBuildingForm button[type="submit"]:hover,
#addPageForm button[type="submit"]:hover {
    background-color: #390518;
    /* Darker color on hover */
}

/* Edit Building Page Styling */
#editBuildingForm_summary,
#editBuildingForm_details #newPageForm, #newBuildingForm {
    width: 100%;
    max-width: 800px;
    /* Restrict the form width */
    margin: 0 auto;
    /* Center the form horizontally */
    padding: 20px;
    background-color: #fff;
    /* White background for the form */
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    /* Light shadow effect */
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    /* Stack items vertically */
    align-items: center;
    /* Center align form items horizontally */
}

#editBuildingForm_summary h2,
#editBuildingForm_details h2,
#newPageForm h2 {
    text-align: center;
    /* Center align the header */
    font-size: 28px;
    margin-bottom: 15px;
    color: #67062A
}

#editBuildingForm_summary textarea,
#editBuildingForm_details textarea,
#newPageForm textarea {
    width: 100%;
    height: 200px;
    /* Set a fixed height */
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    resize: none;
    /* Disable resizing */
}

#editBuildingForm_summary textarea:focus,
#editBuildingForm_details textarea:focus,
#newPageForm textarea:focus {
    border-color: #67062A;
    /* Change border color when focused */
    outline: none;
}

#editBuildingForm_summary select,
#editBuildingForm_details select,
#newPageForm select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    background-color: #f9f9f9;
    color: #333;
    appearance: none;
    /* Remove default dropdown arrow for consistent styling */
    outline: none;
    transition: border-color 0.3s ease;
}

#editBuildingForm_summary select:focus,
#editBuildingForm_details select:focus,
#newPageForm select:focus {
    border-color: #67062A;
    /* Change border color when focused */
}

#editBuildingForm_summary option,
#editBuildingForm_details option,
#newPageForm option {
    font-size: 16px;
    padding: 10px;
    background-color: #fff;
    color: #333;
}

#editBuildingForm_summary img,
#editBuildingForm_details img,
#newPageForm img {
    max-width: 200px;
    max-height: 200px;
    margin-bottom: 15px;
    border-radius: 5px;
    display: block;
}

#editBuildingForm_summary iframe,
#editBuildingForm_details iframe,
#newPageForm iframe {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    margin-top: 10px;
    display: none;
    /* Hidden by default */
}

#editBuildingForm_summary button,
#editBuildingForm_details button,
#newPageForm button,
#newBuildingForm button,
#homePageInfo button {
    width: 100%;
    padding: 12px;
    background-color: #67062A;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

#editBuildingForm_summary button:hover,
#editBuildingForm_details button:hover,
#newPageForm button:hover {
    background-color: #390518;
    /* Darker color on hover */
}

#editBuildingForm_summary .alert,
#editBuildingForm_details .alert,
#newPageForm .alert {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

#editBuildingForm_summary .alert.success,
#editBuildingForm_details .alert.success,
#newPageForm .alert.success {
    background-color: #d4edda;
    color: #155724;
}

#editBuildingForm_summary .alert.error,
#editBuildingForm_details .alert.error,
#newPageForm .alert.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Additional Images Section */
#additional_images {
    width: 100%;
    max-height: 400px;
    max-width: 400px;
    overflow-y: scroll;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 15px;
}

#additional_images div {
    margin-bottom: 10px;
}

#additional_images img {
    width: 100%;
    max-height: 400px;
    max-width: 400px;
    border-radius: 5px;
    display: block;
    margin-top: 5px;
    object-fit: cover;
    /* Ensures the image fills the container without squishing */
    object-position: center;
    /* Centers the cropped area of the image */
}

/* File Input Styling */
#newImageFile,
#newDetailsImageFile {
    display: none;
}

/* Summary and Details Form Styling */
#editBuildingForm_summary,
#editBuildingForm_details,
#newPageForm {
    width: 100%;
    max-width: 800px;
    /* Restrict the form width */
    margin: 0 auto;
    /* Center the form horizontally */
    padding: 20px;
    background-color: #fff;
    /* White background for the form */
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    /* Light shadow effect */
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    /* Stack items vertically */
    align-items: center;
    /* Center align form items horizontally */
}

#editBuildingForm_summary h2,
#editBuildingForm_details h2 {
    text-align: center;
    /* Center align the header */
    font-size: 28px;
    margin-bottom: 15px;
    color: #67062A;
    /* Match the theme color */
}

#editBuildingForm_summary textarea,
#editBuildingForm_details textarea {
    width: 100%;
    height: 200px;
    /* Set a fixed height */
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    resize: none;
    /* Disable resizing */
    background-color: #f9f9f9;
    color: #333;
}

#editBuildingForm_summary textarea:focus,
#editBuildingForm_details textarea:focus {
    border-color: #67062A;
    /* Change border color when focused */
    outline: none;
}

#editBuildingForm_summary select,
#editBuildingForm_details select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    background-color: #f9f9f9;
    color: #333;
    appearance: none;
    /* Remove default dropdown arrow for consistent styling */
    outline: none;
    transition: border-color 0.3s ease;
}

#editBuildingForm_summary select:focus,
#editBuildingForm_details select:focus {
    border-color: #67062A;
    /* Change border color when focused */
}

#editBuildingForm_summary option,
#editBuildingForm_details option {
    font-size: 16px;
    padding: 10px;
    background-color: #fff;
    color: #333;
}

#editBuildingForm_summary img,
#editBuildingForm_details img {
    max-width: 200px;
    max-height: 200px;
    margin-bottom: 15px;
    border-radius: 5px;
    display: block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Add a subtle shadow */
}

#editBuildingForm_summary iframe,
#editBuildingForm_details iframe {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    margin-top: 10px;
    display: none;
    /* Hidden by default */
}

#editBuildingForm_summary button,
#editBuildingForm_details button,
#newPageForm button {
    width: 100%;
    padding: 12px;
    background-color: #67062A;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

#editBuildingForm_summary button:hover,
#editBuildingForm_details button:hover {
    background-color: #390518;
    /* Darker color on hover */
}

#editBuildingForm_summary .alert,
#editBuildingForm_details .alert {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

#editBuildingForm_summary .alert.success,
#editBuildingForm_details .alert.success {
    background-color: #d4edda;
    color: #155724;
}

#editBuildingForm_summary .alert.error,
#editBuildingForm_details .alert.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Additional Images Section Styling */
#additional_images {
    width: 100%;
    max-width: 800px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Add a subtle shadow */
}

#additional_images div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 10px;
    transition: background-color 0.2s ease;
}

#additional_images div:hover {
    background-color: #f1f1f1;
    /* Highlight on hover */
}

#additional_images img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 5px;
    margin-right: 10px;
}

#additional_images span {
    flex-grow: 1;
    font-size: 16px;
}

#additional_images input[type="checkbox"] {
    margin-right: 10px;
}

#additional_images div:has(input[type="checkbox"]:checked) {
    background-color: #d4edda;
    /* Light green background */
    color: #000000;
    /* Dark green text color */
}

/* File Input Styling */
#newImageFile,
#newDetailsImageFile {
    display: none;
}



.add-page-form h2 {
    text-align: center;
    /* Center align the header */
    font-size: 28px;
    margin-bottom: 15px;
    color: #67062A;
    /* Match the theme color */
}

.add-page-form textarea {
    width: 100%;
    height: 200px;
    /* Set a fixed height */
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    resize: none;
    /* Disable resizing */
    background-color: #f9f9f9;
    color: #333;
}

.add-page-form textarea:focus {
    border-color: #67062A;
    /* Change border color when focused */
    outline: none;
}

.add-page-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    background-color: #f9f9f9;
    color: #333;
    appearance: none;
    /* Remove default dropdown arrow for consistent styling */
    outline: none;
    transition: border-color 0.3s ease;
}

.add-page-form select:focus {
    border-color: #67062A;
    /* Change border color when focused */
}

.add-page-form option {
    font-size: 16px;
    padding: 10px;
    background-color: #fff;
    color: #333;
}

.add-page-form img {
    max-width: 200px;
    max-height: 200px;
    margin-bottom: 15px;
    border-radius: 5px;
    display: block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Add a subtle shadow */
}

.add-page-form iframe {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    margin-top: 10px;
    display: none;
    /* Hidden by default */
}



.add-page-form button:hover {
    background-color: #390518;
    /* Darker color on hover */
}


#additional_images div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 10px;
    transition: background-color 0.2s ease;
}

#additional_images div:hover {
    background-color: #f1f1f1;
    /* Highlight on hover */
}

#additional_images img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 5px;
    margin-right: 10px;
}

#additional_images span {
    flex-grow: 1;
    font-size: 16px;
}



/* Styling for the video input container */
.video-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    padding: 10px 12px;
    width: 100%;
    border-radius: 5px;
    background-color: #f9f9f9;
}

/* Styling for the input fields */
.video-input-container input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    margin: auto
}


/* Styling for the button */
.video-input-container button#addNewVideoButton,
button#addNewDetailsVideoButton, .video-input-container button#addNewSummaryVideoButton, .video-input-container button#addNewDetailsVideoButton {
    background-color: #DB0A5B;
    color: white;
    border: none;
    margin: auto;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    padding: 10px 15px;
    flex: 1;
}

.video-input-container button#addNewVideoButton:hover,
.video-input-container button#addNewDetailsVideoButton:hover {
    background-color: #d42367;
}

/* Style for the role dropdown */
#role-dropdown {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    background-color: #f9f9f9;
    color: #333;
    appearance: none;
    /* Remove default dropdown arrow for consistent styling */
    outline: none;
    transition: border-color 0.3s ease;
}

#role-dropdown:focus {
    border-color: #67062A;
    /* Change border color when focused */
}

/* Style for the user list */
.user-list-section {
    margin: 20px auto;
    max-width: 800px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.user-list-section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 15px;
    color: #67062A;
}

.user-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-list li {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.user-list li:hover {
    background-color: #f1f1f1;
}

.user-list li a {
    text-decoration: none;
    color: #67062A;
    font-size: 18px;
    font-weight: bold;
    display: block;
}

.user-list li a:hover {
    text-decoration: underline;
}

/* Assigned Buildings Form Styling */
.assigned-buildings-form {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.assigned-buildings-form h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 15px;
    color: #67062A;
}

.assigned-buildings-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.building-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.building-item:hover {
    background-color: #f1f1f1;
}

.building-item input[type="checkbox"] {
    transform: scale(1.2);
}

.update-assigned-buildings {
    width: 100%;
    padding: 12px;
    background-color: #67062A;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.update-assigned-buildings:hover {
    background-color: #390518;
}

/* User Settings Container Flex Styling */
#user_settings_container {
    display: flex;
    gap: 12px;
    justify-content: space-around;
    align-items: flex-start;
  
}

/* Ensure sections inside the container take equal width */
#user_settings_Container .content {
    flex: 1;
    margin:0px;
}

/* Map Styling */
#map {
    height: 400px;
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Image Preview Styling */
#image_preview {
    max-width: 200px;
    max-height: 400px;
    margin-top: 10px;
    display: none;
}


#additional_images div {
    margin-bottom: 10px;
    cursor: pointer;
}

/* Text Area Styling */
textarea {
    width: 100%;
    height: 200px;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    resize: none;
    background-color: #f9f9f9;
    color: #333;
}

textarea:focus {
    border-color: #67062A;
    outline: none;
}

/* Mobile responsiveness */
@media screen and (max-width: 1024px) {

    /* Header Styling */
    header {
        flex-direction: column;
        /* Stack header elements vertically */
        padding: 15px 20px;
        text-align: center;
        /* Center header text */
    }

    header .title-container h1 {
        font-size: 20px;
        /* Adjust font size for smaller screens */
    }
    .video-and-location-section{
        flex-direction: column;
        /* Stack video and location vertically */
        align-items: center;
        /* Center align items */
    }

    /* Navigation Styling */
    nav ul {
        flex-direction: row;
        /* Stack the nav items horizontally */
        margin-top: 15px;
    }

    nav ul li {
        margin-left: 5;
        margin-bottom: 10px;
        /* Space between links */
    }

    /* Main Content Section */
    main {
        padding-bottom: 20px;
    }
    .video-wrapper {
        width: 80%;
        /* Allow the video wrapper to take up 50% of the container's width */
    }

    .content {
        flex-direction: column;
        /* Stack text and image vertically */
        padding-left: 0;
        padding-right: 0;
        gap: 30px;
        /* Add space between sections */
    }

    .text-section {
        flex: 1;
        text-align: center;
        /* Center text */
    }

    .text-section h2 {
        font-size: 28px;
        /* Adjust font size for smaller screens */
    }

    .text-section p {
        font-size: 14px;
        /* Adjust paragraph font size */
    }

    .learn-more-button {
        align-self: center;
        padding: 12px 24px;
        background-color: #67062A;
        color: white;
        text-decoration: none;
        border-radius: 5px;
        font-size: 18px;
        transition: background-color 0.3s ease;
        margin-top: auto;
        /* Pushes the button to the bottom */
    }

    .learn-more-button:hover {
        background-color: #390518;
    }

    .image-section {
        flex: 1;
        display: flex;
        /* Make sure flexbox is active */
        margin:auto;
        /* Center the content horizontally */
        align-items: center;
        /* Center the content vertically */
        margin-top: 20px;
        /* Add margin-top for some space */
    }
    a{
        display: flex;
        justify-content: center;
    }

    .image-section img {
        width: 80%;
        /* Limit the max-width to prevent image from getting too large */
        border-radius: 10px;
    }

    /* Buildings Section */
    .buildings {
        padding: 0 20px;
    }

    .selection-text h2 {
        font-size: 30px;
    }

    .building-buttons nav ul {
        display: flex;
        flex-direction: column;
        /* Stack buttons vertically */
    }

    .building-buttons nav ul li {
        margin: 1px 0;
        /* Space between buttons */
    }

    .building-buttons nav ul li a {
        padding: 10px 15px;
        /* Smaller button padding */
        font-size: 16px;
        /* Smaller font size */
    }

    .login-form,
    .add-page-form {
        width: 90%;
        max-width: 100%;
        /* Allow the form to take up more width on smaller screens */
        padding: 15px;
    }

    .login-form h2,
    .add-page-form h2 {
        text-align: center;
        font-size: 28px;
        margin-bottom: 15px;
        color: #67062A;
    }

    .login-form input,
    .sign-in-button,
    .add-page-form input {
        font-size: 16px;
    }

    /* Footer Styling */
    footer {
        padding: 15px 20px;
    }

    /* Footer Columns Layout */
    .footer-columns {
        display: block;
        /* Stack footer columns vertically */
        margin-bottom: 20px;
    }

    .footer-column {
        margin-bottom: 20px;
        /* Add space between footer columns */
    }

    .footer-column h3 {
        font-size: 18px;
    }

    .footer-column p {
        font-size: 14px;
    }

    footer p {
        font-size: 12px;
    }
}

/* Image Preview Styling */
.image-preview {
    max-width: 200px;
    max-height: 400px;
    margin-top: 10px;
    display: none;
}

/* Additional Images Section */
.additional-images {
    max-width: 800px;
    max-height: 400px;
    overflow-y: scroll;
    border: 1px solid #ccc;
    padding: 10px;
}

.image-item {
    margin-bottom: 10px;
    cursor: pointer;
}

.image-thumbnail {
    max-width: 200px;
    max-height: 200px;
    border-radius: 5px;
}

/* Video Preview Styling */
.video-preview {
    width: 100%;
    height: 400px;
    margin-top: 10px;
    display: none;
}

/* Character Counter Styling */
.char-counter {
    display: block;
    text-align: right;
    font-size: 14px;
    color: #555;
}

/* Hidden Input Styling */
.hidden-input {
    display: none;
}

/* Styled Table */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.styled-table th, .styled-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

.styled-table th {
    background-color: #67062A;
    color: #fff;
    font-weight: bold;
}

.styled-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.styled-table tr:hover {
    background-color: #f1f1f1;
}

/* View Button */
.view-button {
    padding: 8px 16px;
    background-color: #67062A;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.view-button:hover {
    background-color: #390518;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    text-align: center;
    color: #67062A;
}

.modal-content .modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.modal-content .update-assigned-buildings {
    width: 48%;
    padding: 12px;
    background-color: #67062A;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-content .update-assigned-buildings:hover {
    background-color: #390518;
}

/* Modal Image */
.modal-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 8px;
}

/* Modal Video */
.modal-video {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    margin-top: 10px;
}

/* Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Image Grid Styling */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.image-item {
    text-align: center;
    align-items: center;

}
.image-item > * {
   margin:auto
}

.modal-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Video Container for 16:9 Aspect Ratio */
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}