/* General Body Settings */
body {
    font-family: Arial, sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    color: #333;
    font-size: 21px; /* Increased text size slightly */
}

/* Container for general layout */
.container {
    width: 80%; /* Increased general width of the container */
    margin: 0 auto;
    padding: 20px 0;
}

/* Adjust margin for overall layout */
#margin {
    margin-top: 30px;
    margin-bottom: 50px;
}

/* Header settings */
#header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#site-title {
    margin: 0;
}

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

nav ul li {
    display: inline-block;
    margin-right: 20px;
}

#nav-btn {
    background-color: #0073aa;
    color: white;
    padding: 10px 18px; /* Slightly larger button padding */
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#nav-btn:hover {
    background-color: #005f8d;
}

/* Adjust the width of images */
img.scale-with-grid {
    width: 100%;
    height: auto;
    max-width: 230px; /* Slightly increased max width for the images */
    margin: 10px 0;
}

/* Footer styles */
footer{
    width: 100vw!important;
}
.footer-inner {
    display: flex;
    justify-content:space-evenly;
    padding: 6px 0;
    border-top: 1px solid #ddd;
}

.footer-columns {
    flex: 1;
    margin-right: 20px;
}

.footer-columns h2 {
    font-size: 1.25em; /* Slightly increased footer heading size */
}

.footer-columns ul {
    list-style-type: none;
    padding: 0;
}

.footer-columns ul li {
    margin-bottom: 10px;
}

.footer-columns img {
    width: 100%;
    height: auto;
}

/* Adjust gap between the two final images */
#margin img {
    margin-right: 5%;
    max-width: 45%; /* Increased image width to 45% */
    height: auto;
}

/* Footer base */
#footer-base {
    background-color: #f8f8f8;
    padding: 20px 0;
    text-align: center;
    font-size: 1em; /* Adjusted footer text size */
}

/* Adjust the footer links */
.footer-links {
    display: flex;
    justify-content: center; /* Center the links */
    align-items: center; /* Align items vertically centered */
    font-size: 0.9em; /* Adjust font size if needed */
    gap: 80px; /* Reasonable space between the links */
    margin-bottom: 2%;
}

/* Adjust text and link spacing */
.footer-links div {
    display: flex;
    align-items: center;
}

.footer-links div span {
    margin-left: 0.5em; /* Add some spacing between the LLC link and the text */
     /* Space between text and associated link */
}

.footer-links a {
    color: #0073aa;
    text-decoration: none;
    margin-left: 0.5em; /* Ensure consistent spacing for all links */
    margin-right: 0.5em; /* Add right margin to give space before text */
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
    nav ul li {
        display: block;
        margin: 10px 0;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-columns {
        margin-bottom: 20px;
    }

    /* Adjust footer links for small screens */
    #footer-base .footer-links {
        flex-direction: column; /* Stack links and text vertically on small screens */
        text-align: center;
    }

    #footer-base .footer-links a {
        margin: 10px 0; /* Adjust margin for vertical stacking */
    }
}

/* Button for the navigation menu */
#nav-btn {
    background-color: #0073aa;
    color: white;
    padding: 8px 15px; /* Adjusted padding for better alignment */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.05em; /* Adjusted font size */
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

#nav-btn:hover {
    background-color: #005f8d;
}

/* Ensure the button stays aligned within the navigation */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Ensure horizontal layout */
    justify-content: space-between;
    align-items: center;
}

nav ul li {
    display: inline-block;
    margin-right: 20px; /* Adjusted space between menu items */
    vertical-align: middle;
}

/* Fixing possible issues with alignment of the button */
nav ul li:last-child {
    margin-right: 0; /* Ensures the last item (the button) has no extra margin */
}

/* Responsive fix for mobile view */
@media only screen and (max-width: 768px) {
    #nav-btn {
        padding: 10px 20px; /* Slightly larger button padding for mobile */
        font-size: 1.1em;
    }

    nav ul {
        display: block; /* Stack the menu items vertically */
        text-align: center;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }
}

/* Curtain menu */
.curtain-menu { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 0; 
    background-color: #000000; 
    overflow: hidden; /* Keep this hidden for the height transition */
    transition: height 0.5s ease; /* Smooth transition for height */
} 

.curtain-menu .curtain-content {
    position: relative;
    height: 100%; /* Make content take up full height */
    overflow-y: auto; /* Enable scrolling within the content area */
} 

.curtain-menu a { 
    display: block; 
    color: white; 
    text-align: center; 
    padding: 15px; 
    text-decoration: none; 
    font-size: 21px;
    line-height: 0.5;
} 

.curtain-menu a:focus {
    color: white;
}

.curtain-menu a:visited {
    color: white;
}

.curtain-menu h2 {
    color: white;
}

.curtain-menu a:hover { 
    background-color: #2e2e2e;
    color: white; 
} 

.menu-button { 
    font-size: medium; 
    cursor: pointer; 
    position: relative; 
    z-index: 1; 
    color: white; 
    background-color: #003c67; 
    border: none; 
    padding: 25px; 
    border-radius: 5px; 
    left: 50%;  /* Move to 50% from the left */
    top: 50%;   /* Move to 50% from the top */
    transform: translate(-50%, -50%); /* Center it using transform */
    margin-top: 7%;
    width: 48%;
    height: 5em;
}

.menu-button:hover { 
    background-color: #2c88c9; 
    color: white;
} 

.close-button { 
    position: absolute; 
    top: 10px; 
    right: 10px; 
    font-size: 18px; 
    color: white; 
    background-color: #000000; 
    border: none; 
    padding: 5px 10px; 
    border-radius: 5px; 
    cursor: pointer; 
} 

.close-button:hover { 
    background-color: #2e2e2e; 
    color: white;
} 

.menu-open { 
    height: 100vh; 
    z-index: 3;
}

h1 { 
    text-align: center; 
}

#max img{
   width: 100%;
}

#max {
    display: flex;
    padding: 0;
    justify-content: center;
}
