/* style.css */
body {
    font-family: 'Arial', sans-serif;
    background-color: white;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

header {
    background-color: white;
    padding: 30px;
}

nav {
    text-align: center;
    color: #ffffff;
    background-color: #1B3D6D;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 50px; /* Adjust the height of the logo as needed */
}

.header-title {
    flex-grow: 1; /* Allows the title to take up any remaining space */
    text-align: center; /* Center the title text */
    margin-left: 145px;
}

.header-title-no-buttons {
    flex-grow: 1; /* Allows the title to take up any remaining space */
    text-align: center; /* Center the title text */
    margin-right: 175px;
}

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

nav li {
    display: inline-block;
    position: relative;
}

nav a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.hamburger {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    color: #1B3D6D;
    cursor: pointer;
    outline: none;
}

.navbar-button {
    background-color: #D72131; /* Button background color */
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 15px;
    padding: 12px 20px;
    font-size: 16px;
    width: auto;
}

.navbar-button:hover {
    background-color: #1B3D6D; /* Change the background color on hover if desired */
}

/* Style for the dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 2;
    min-width: 200px; /* Adjust the width of the dropdown */
}

.dropdown-content a {
    color: #707070;
    padding: 12px 16px;
    display: block;
    text-align: left;
    white-space: nowrap; /* Prevent text from wrapping */
}

.dropdown-content a:hover {
    color: black;
    text-align: left;
}

.historian-link {
    color: #D72131 !important;
    font-weight: bold;
    text-decoration: none;
}

.historian-link:hover {
    color: #1B3D6D !important; /* Change this to your desired hover color */
}

/* Show the dropdown when hovering over the parent list item */
.dropdown:hover .dropdown-content {
    display: block;
}

.footer {
    background-color: #1B3D6D;
    color: white;
    text-align: center;
    padding: 30px;
}

.footer-link {
    color: #D72131;
    text-decoration: none;
}

.footer-slogan {
    font-style: italic;
}
  
.photo-wheel {
    display: flex;
    height: 20%;
    transition: transform 1s ease-in-out;
    overflow: hidden;
    z-index: 1;
}

.photo-wheel img {
    height: 50vh; /* Set the height to 100% of the viewport height */
    width: 100%; /* This ensures each image tries to fill the entire container */
    object-fit: cover;
}

.join-form {
    max-width: 400px;
    margin: 0 auto;
    padding-top: 30px;
    padding-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.join-label {
    display: block;
    font-weight: bold;
}

.join-input,
select.join-input {
    width: 100%; /* Set the width to 100% for both input and select */
    padding: 8px;
    box-sizing: border-box;
}

.join-button {
    background-color: #D72131;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    width: 75%;
    display: block;
    margin: 0 auto;
}

.join-button:hover {
    background-color: #1B3D6D;
}

.join-info {
    max-width: 600px; /* Adjust the max-width based on your design */
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    font-weight: bold;
    line-height: 1.5;
}

.centered-text-mod {
    text-align: center;
    width: 60%;
    margin-left: 11%;
}

.centered-text-nomod {
    text-align: center !important;
    width: 60% !important;
}

.centered-text {
    text-align: center;
    width: 100%;
}

/* Make the calendar container responsive */
.calendar-container {
    position: relative;
    padding-bottom: 75%; /* Aspect ratio for 4:3 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

.calendar-container-s {
    display: flex;
    justify-content: center;  /* Horizontally center */
    align-items: center;      /* Vertically center if container has height */
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #1B3D6D;
}

/* Style the iframe to fit within the container */
.responsive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.responsive-iframe-s {
    max-width: 100%;
    width: 1200px;    /* or 100% if you want it fluid */
    height: 800px;
    border: 0;
}

.success-message {
    text-align: center;
    color: green;
    font-size: 24px;
    margin-bottom: 0;
    font-weight: bold;
}

.error-message {
    text-align: center;
    color: red;
    font-size: 24px;
    margin-bottom: 0;
    font-weight: bold;
}

#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #D72131;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 10px 15px;
    cursor: pointer;
}

.leader {
    display: inline-block;
    width: 23%; /* Adjust as needed for spacing */
    margin: 10px; /* Adjust as needed for spacing */
    vertical-align: top;
}

.leader img {
    width: auto; /* Make the image fill the container */
    height: 300px;
}

.temp {
    width: 400px !important;
    height: 500px !important;
}

.title-font {
    font-family: 'Roboto Slab', serif;
    font-size: 50px;
    color: #1B3D6D;
}

.desc-font {
    font-family: Arial,Helvetica,sans-serif;
    font-size: 20px;
    line-height: 1.5;
}

.s-margin {
    margin-right: 300px;
    margin-left: 300px;
    text-align: left !important;
}

.important-dates-section {
    width: 17%;
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: -890px; /* Adjust to move the div up */
    margin-right: 8%; /* Adjust to move the div to the left */
    float: right; /* Float the div to the right */
}

.important-dates-section h2 {
    text-decoration: underline;
    margin-top: 0; /* Remove default margin */
    margin-bottom: 10px;
}

.important-dates {
    display: flex;
    flex-direction: column;
}

.important-date {
    display: flex;
    margin-bottom: 15px;
}

.date {
    flex: 0 0 60px; /* Fixed width for the date column */
    padding-right: 10px;
    font-weight: bold;
    white-space: nowrap;
}

.description {
    flex: 1; /* Allow the description column to fill remaining space */
}

.section-break {
    width: 100%;
}

.state-image {
    display: block; /* Ensure the image behaves as a block-level element */
    margin: 0 auto; /* Center the image horizontally */
    max-width: 100%; /* Optionally limit the image width to its container */
}

/* Styles for photo container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Automatically fit images into grid columns */
    grid-gap: 8px; /* Increased gap between grid items */
    padding: 20px;
}

/* Style for each image container */
.image-container {
    position: relative; /* Positioning for description */
}

/* Style for photo items (images) */
.photo-item {
    width: 100%; /* Ensure images take full width of their container */
    height: 100%; /* Ensure images take full height of their container */
    object-fit: cover; /* Cover the container with the image */
    cursor: pointer; /* Show pointer cursor on hover */
    transition: transform 0.2s ease; /* Add smooth transition on hover */
}

/* Style for image descriptions */
.photo-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    color: #fff; /* White text color */
    line-height: 1.2; /* Adjust line height for better readability */
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis; /* Show ellipsis (...) for long text */
    text-align: center;
    opacity: 0; /* Initially hide description */
    transition: opacity 0.3s ease; /* Add smooth transition for visibility */
    max-width: 100%; /* Limit description width to fit container */
    margin-top: 5px; /* Add margin above the description */
}

/* Show description on hover */
.image-container:hover .photo-description {
    opacity: 1;
}

/* CSS for the modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* Semi-transparent black background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* CSS for the expanded image within the modal */
.modal-image {
    max-width: 90%; /* Limit width of expanded image */
    max-height: 90%; /* Limit maximum height of expanded image */
    object-fit: contain; /* Maintain image aspect ratio within container */
}

/* CSS for the modal description */
.modal-description {
    color: white; /* Text color */
    text-align: center; /* Center-align text */
    margin-top: 40px; /* Add spacing between image and description */
}

.article {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    width: 60%;
    margin-left: 11%;
    padding-bottom: 20px;
}

.article-title {
    font-size: 2rem;
    color: #333;
    text-align: center;
}

.article-content {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.article figure {
    display: inline;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    max-width: 100%; /* Adjust maximum width */
}

.article img {
    max-width: 30%;
}

.posts-container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

.post {
    position: relative;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

.post h2 {
    margin-top: 0;
    color: #333;
    font-size: 1.5rem;
}

.post p {
    margin: 5px 0;
    color: #666;
}

.visit-website {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #0066cc;
    text-decoration: none;
    font-size: 1rem;
    border: 1px solid #0066cc;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.visit-website:hover {
    background-color: #0066cc;
    color: #fff;
}

.meetings {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.meeting-type {
    margin-bottom: 30px;
}

.meeting-type h3 {
    font-size: 1.5rem;
    color: #333;
}

.meeting-type p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

.meeting-type p:last-child {
    margin-bottom: 0;
}

.meeting-type a {
    color: #007bff; /* blue color for links */
    text-decoration: none;
}

.meeting-type a:hover {
    text-decoration: underline;
}

.pdf-container {
    width: 100%;
    height: 900px; /* Adjust height as needed */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Style for the iframe */
.pdf-object {
    width: 100%;
    height: 100%;
    border: none; /* Remove iframe border */
}

.minutes-list {
    list-style-type: none;
    padding: 0;
}

/* Style for each list item */
.minutes-item {
    margin-bottom: 20px;
}

/* Style for the link */
.minutes-link {
    text-decoration: none;
    color: #333;
    font-size: 18px;
}

/* Style for the link on hover */
.minutes-link:hover {
    color: #007bff; /* Change to your preferred hover color */
}

.minutes-container {
    text-align: center; /* Center align the text */
}

.programs-awards-container {
    margin: 20px auto;
    max-width: 800px;
}

.programs-awards-container h2, .programs-awards-container h3 {
    color: #333;
}

.youth-section, .adult-section {
    margin-bottom: 30px;
}

.youth-section ul, .adult-section ul {
    list-style-type: none;
    padding: 0;
}

.youth-section ul li, .adult-section ul li {
    margin-bottom: 10px;
}

.youth-section ul li a, .adult-section ul li a {
    text-decoration: none;
    color: #007bff;
}

.youth-section ul li a:hover, .adult-section ul li a:hover {
    text-decoration: underline;
}

/* Style for the video container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 20px 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* HISTORIAN REPORT PAGE */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center; /* Center the form */
}

form {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center form elements horizontally */
}

.form-group {
    margin-bottom: 15px;
    width: 100%;
    max-width: 500px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: left; /* Align labels to the left */
}

input, select {
    padding: 10px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

.form-submit-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #D72131;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #1B3D6D;
}

#drop-zone {
    border: 1px dashed #070707;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    margin-top: 10px;
    position: relative;
    width: auto; /* Adjust width as needed */
    max-width: 500px; /* Example max-width, adjust as needed */
    height: auto; /* Adjust height as needed */
    max-height: 400px;
    overflow: hidden;
}

.clear-button {
    display: none;
    margin-top: 10px;
    background-color: #1B3D6D;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.clear-button:hover {
    background-color: #D72131;
}

#drop-zone.dragover {
    border-color: #000;
    background-color: #f0f0f0;
}

#drop-zone p {
    margin: 0;
    font-size: 16px;
    color: #999;
}

.preview-img {
    max-width: 100%;
    max-height: 400px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.hidden {
    display: none;
}

.textarea-container {
    display: none;
    margin-top: 20px;
}

.textarea-container label {
    display: block;
    margin-bottom: 5px;
}

.textarea-container textarea {
    width: 100%;
    height: 150px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
}

.ads {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* space between ads */
    margin-left: 9%;
}

.ads img {
    width: 450px;       /* or whatever width you want */
    height: 600px;      /* forces uniform height */
    object-fit: cover;  /* crops to fill box neatly */
    border-radius: 8px; /* optional: rounded corners */
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}


/* CSS For Smaller Laptop Screens */
@media (max-height: 800px) {
    .important-dates-section {
        margin-top: -760px; /* Adjust this value as needed */
    }

    .s-margin {
        margin-right: 160px;
        margin-left: 160px;
        text-align: left !important;
    }

    .title-font {
        font-size: 4rem;
        text-align: center;      /* Center the text horizontally */
        padding-left: 0;         /* Remove any left padding */
        padding-right: 0;        /* Remove any right padding */
        width: 100%;             /* Let it fill the container width */
        box-sizing: border-box;  /* Ensure padding/borders don't break layout */
    }

    .header-title-no-buttons {
        flex-grow: 1; /* Allows the title to take up any remaining space */
        text-align: center; /* Center the title text */
        margin-right: 180px;
    }

    .header-title {
        margin-right: 120px;
    }

    .navbar-button {
        width: auto; /* Let buttons adjust their width based on content */
        margin: 0 5px; /* Add small margin around buttons */
        padding: 8px 12px; /* Adjust padding for smaller buttons */
        font-size: 14px; /* Adjust font size for smaller screens */
    }

    .join-info {
        line-height: 1.5;
    }
}

/*Mobile Friendly CSS*/

/* Ensure elements stack and fit within the screen on smaller devices */
@media (max-width: 768px) {
    header {
        padding: 20px;
    }

    .navbar-brand {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .navbar-brand img {
        height: 40px;
        flex: 0 0 auto;
        margin: 0 auto; /* Center the image */
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        display: none; /* Initially hide the menu */
    }

    nav ul.show {
        display: flex; /* Show the menu when toggled */
    }

    nav li {
        float: none;
    }

    .navbar-button {
        background-color: #D72131; /* Button background color */
        color: white;
        border: none;
        border-radius: 3px;
        cursor: pointer;
        padding: 12px 20px;
        font-size: 16px;
        width: auto;
    }

    .navbar-button:hover {
        background-color: #1B3D6D; /* Change the background color on hover if desired */
    }

    .hamburger {
        display: block;
        margin: 0px auto 0 auto; /* Center the hamburger button */
        background-color: transparent;
    }

    .hamburger:hover {
        background-color: transparent;
    }

    .header-title {
        margin-left: 0;
        font-size: 1.5em;
        flex: 1 1 auto; /* Allow the title to take up available space */
        text-align: center;
    }

    .dropdown-content {
        position: static;
    }

    .photo-wheel {
        display: none !important; /* Ensure the photo wheel is hidden on mobile devices */
    }

    .centered-text-mod {
        width: 95% !important;
        margin-left: 5px;
        padding-left: 4px;
        padding-right: 5px;
    }

    .important-dates-section {
        width: 90%;
        margin: 0 auto;
        float: none;
        margin-top: 20px;
    }

    .important-dates-section h2 {
        text-decoration: underline;
        margin-top: 0; /* Remove default margin */
        margin-bottom: 10px;
        
    }

    .important-dates {
        width: 100%; /* Ensure full width of container */
        display: flex;
        flex-direction: column;
        align-items: center; /* Center align items */
    }

    .important-date {
        width: 100%; /* Ensure full width */
        display: flex;
        justify-content: flex-start; /* Align items to the left */
        margin-bottom: 10px; /* Adjust margin between dates */
    }

    .date {
        flex: 0 0 20%; /* Fixed width for the date column */
        padding-right: 10px;
        font-weight: bold;
    }

    .description {
        flex: 1; /* Allow the description column to take up remaining space */
    }
    
    .article {
        width: 90%;
        margin-left: 5%;
    }

    .article img {
        max-width: 80%;
    }

    .posts-container {
        width: 95%;
        padding: 10px;
    }

    .meeting-type h3, .meeting-type p {
        text-align: left;
    }

    .calendar-container {
        flex-direction: column;
        align-items: center;
        padding-bottom: 100%;
    }

    .leader {
        width: 80%;
    }

    .leader img {
        width: 80%;
        height: auto;
    }

    .temp  {
        width: 80% !important;
        height: auto !important;
    }

    .programs-awards-container {
        width: 90%;
        margin: 0 auto;
    }

    .video-container {
        padding-bottom: 75%; /* Increase height for a better aspect ratio on smaller screens */
    }

    .footer {
        padding: 20px;
    }
    
    .post a {
        margin-top: 8%;
    }

    /* Ensure flex containers stack on smaller screens */
    .important-dates {
        flex-direction: column;
        align-items: center;
    }

    /* Adjust font sizes for smaller screens */
    body {
        font-size: 16px;
    }

    .bg-white {
        background-color: white !important;
    }

    .title-font {
        font-size: 2rem;
        text-align: center;      /* Center the text horizontally */
        margin-left: auto;       /* Remove any forced left margin */
        margin-right: auto;      /* Remove any forced right margin */
        padding-left: 0;         /* Remove any left padding */
        padding-right: 0;        /* Remove any right padding */
        width: 100%;             /* Let it fill the container width */
        box-sizing: border-box;  /* Ensure padding/borders don't break layout */
    }

    .desc-font {
        font-size: 1rem;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .visit-website {
        font-size: .75rem;
    }

    .pdf-fallback {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        text-align: center;
        font-size: larger;
    }

    .ads {
        position: relative;
        margin-left: 3%;
    }

    .s-margin {
        margin-right: 20px;
        margin-left: 20px;
        text-align: left !important;
    }

    .join-info {
        line-height: 1.5;
    }
}

/* General styling to ensure overall width fits the screen */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden !important; /* Prevent horizontal scrolling */
}


