/* General Variables */
:root {
    --bg-color: #1a1a1a;
    --text-color: #f0f0f0;
    --accent-color: #b22222;
    --light-gray: #e6e6e6;
    --dark-gray: #2a2a2a;
    --subtle-gray: #bbbbbb;
    --link: #007BFF;
    --linkhover: #009F6F;
}

/* Universal Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* HTML Settings for Page */
html {
    font-size: 16px; /* Set base font size */
}

/* General Layout */
body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header Styles */
h1 {
    text-align: center;
    margin: 20px 0;
    font-size: 2em;
    color: var(--accent-color);
    line-height: 1.2;
}

h2 {
    text-align: left;
    margin: 20px 0 10px;
    font-size: 1.5em;
    color: var(--accent-color);
    line-height: 1.2;
}

h3, h4, h5, h6 {
    text-align: left;
    margin: 10px 0;
    font-size: 1.2em;
    color: var(--text-color);
    line-height: 1.2;
}

p, ul, ol, blockquote {
    text-align: left;
    margin: 15px 0;
}

blockquote {
    margin: 20px;
    padding: 10px;
    font-style: italic;
    border-left: 4px solid var(--accent-color);
    background-color: var(--dark-gray);
}
/* Banner Section */
header.banner {
    width: 75%; /* Default desktop scaling */
    height: auto;
    max-height: 80vh; /* Prevent the banner from becoming too tall */
    display: flex;
    justify-content: center; /* Center banner horizontally */
    align-items: center; /* Ensure the content inside the banner is centered vertically */
    position: relative;
    margin: 20px auto; /* Center the banner horizontally on the page */
    overflow: hidden; /* Ensure the banner doesn’t overflow */
}

header.banner img {
    width: 100%; /* Ensure the banner image spans the container */
    height: auto;
    object-fit: cover; /* Maintain aspect ratio and fill the banner area */
}
/* Banner Text Section */
.banner-text {
    position: absolute; /* Keeps the text on top of the image */
    display: flex;
    flex-direction: column; /* Stack items vertically */
    justify-content: center; /* Center text vertically */
    align-items: center; /* Center text horizontally */
    text-align: center;
    color: var(--text-color);
    gap: 10px; /* Spacing between lines */
    width: 100%; /* Ensure the text spans the banner */
    height: 100%; /* Use the full height of the banner */
    top: 0; /* Align with the top of the banner */
    left: 0; /* Align with the left of the banner */
    transform: none; /* Remove unnecessary transformations */
}
.banner-text h1 {
    font-size: 2em;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.banner-text h2 {
    font-size: 1.5em;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}
/* Equation Styling */
.equation {
    background-color: var(--light-gray);
    color: var(--bg-color);
    border: 1px solid var(--dark-gray);
    padding: 15px;
    margin: 20px auto;
    font-family: "Courier New", Courier, monospace;
    font-size: 1em;
    line-height: 1.5;
    overflow-x: auto; /* Allow horizontal scrolling for equations */
    border-radius: 5px;
    white-space: nowrap; /* Prevent breaking equations into multiple lines */
}
/* Navigation Bars */
nav.top-links, nav.secondary-links {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: var(--bg-color);
    padding: 10px 0;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow-x: auto; /* Allow horizontal scrolling for links */
}

nav.top-links a, nav.secondary-links a {
    margin: 0 10px;
    color: var(--text-color);
    white-space: nowrap; /* Prevent text wrapping into multiple lines */
}

nav.top-links a:hover, nav.secondary-links a:hover {
    color: var(--linkhover);
}

nav.top-links a.active, nav.secondary-links a.active {
    color: var(--accent-color);
}
/* Main Content Area */
main {
    width: 75%;
    margin: 0 auto;
    text-align: center;
}

.content {
    width: 100%;
    padding: 20px 0;
    text-align: left;
}
.centered-text {
    text-align: center;
    margin: 20px 0; /* Optional: Adds spacing around the text */
	width: 100%; /* Ensure it spans full width for centering */
}
/* Custom File Icon Bullets */
ul.file-list {
    list-style-type: none;
    padding-left: 0;
}

ul.file-list li {
    position: relative;
    padding-left: 30px;
}

ul.file-list li::before {
    content: "";
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0.4em;
    width: 0.75em;
    height: 0.75em;
    background: url('/images/quicon.ico') no-repeat center;
    background-size: contain;
}

/* Link Styling */
a {
    text-decoration: none;
    color: var(--link);
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: var(--linkhover);
}


/* Form Styling */
.contact-form {
    width: 100%;
    max-width: 400px;
    background-color: #f1f1f1;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}
.form-container {
    display: flex; /* Enables flexbox layout */
    justify-content: center; /* Centers content horizontally */
    align-items: center; /* Centers content vertically */
    flex-direction: column; /* Ensures stacked form items */
    margin: 20px auto; /* Adds spacing and centers the container */
    width: 100%; /* Spans full width by default */
    max-width: 400px; /* Matches the `.contact-form` width */
}
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 14px;
    color: #000000;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.contact-form button {
    width: 100%;
    padding: 12px;
    background-color: #007BFF;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.contact-form button:hover {
    background-color: #009F6F;
}

/* Styling for the image aligned to the right with text flowing beside it */
.image-text-wrap {
    position: relative; /* Ensure proper positioning of elements */
    line-height: 1.6; /* Set consistent line spacing for text */
}

.image-text-wrap img.right-aligned-image {
    float: right; /* Float the image to the right */
    margin: 0 0 10px 20px; /* Add space between the image and the text */
    width: 40%; /* Set the image width to 40% of the container */
    max-width: 300px; /* Ensure the image doesn't get too large */
    height: auto; /* Maintain aspect ratio */
    border-radius: 5px; /* Optional: Add rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: Add a shadow */
}

.image-text-wrap p {
    text-align: left; /* Ensure all text is left-aligned */
    margin: 0 0 10px; /* Add spacing between paragraphs */
}

/* Footer Styling */
footer {
    width: 100%;
    background-color: var(--dark-gray);
    padding: 10px 0;
    text-align: center;
    color: var(--subtle-gray);
    font-size: 0.9em;
    display: flex;
    flex-direction: column; /* Stack static text and navigation links */
    align-items: center;
}

/* Static Text in Footer */
footer .footer-text {
    width: 95%; /* Scale static text to 95% */
    text-align: center; /* Center-align the text */
    margin: 0 auto 10px; /* Center the container horizontally and add bottom margin */
    padding: 0 10px; /* Add padding for spacing inside the container */
}
.footer-text p {
    text-align: center; /* Override global text alignment */
    margin: 0 auto; /* Ensure proper centering and spacing */
    width: 95%; /* Optional: Keep it aligned with other footer elements */
}
/* Scrollable Navigation Bar in Footer */
footer nav {
    width: 100%; /* Ensure the navigation spans full width */
    display: flex;
    justify-content: center;
    flex-wrap: nowrap; /* Prevent navigation links from wrapping */
    overflow-x: auto; /* Enable horizontal scrolling */
}
footer nav a {
    margin: 0 10px;
    color: var(--text-color);
    white-space: nowrap; /* Prevent text from wrapping to multiple lines */
    text-align: center;
}
footer nav a:hover {
    color: var(--linkhover);
}
footer nav a.active {
    color: var(--accent-color);
    font-weight: none;
}
/* Hidden SEO Keywords, Meta Data */
.visually-hidden {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    overflow: hidden;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
	header.banner {
        width: 100%; /* Scale banner image for tablets and mobile screens */
        max-height: 70vh; /* Slightly smaller height for better proportions */
    }
    .banner-text {
        gap: 1px; /* Reduce spacing between lines on smaller screens */
    }
    .banner-text h1 {
        font-size: 1.2em; /* Scale h1 for smaller screens */
    }
    .banner-text h2 {
        font-size: 1em; /* Scale h2 for smaller screens */
    }
	.banner-text h3 {
		font-size: .8em; /* Further reduce h3 size */
	}
    h1 {
        font-size: 1.2em;
    }
    h2 {
        font-size: 1em;
    }
    h3 {
        font-size: .8em;
    }
    body {
        font-size: 90%;
    }
    main {
        width: 95%;
		padding: 0px;
    }
    .content {
        width: 95%;
        padding: 0px;
    }
}

@media (max-width: 480px) {
	 header.banner {
        width: 100%; /* Scale banner image for mobile screens */
        max-height: 60vh; /* Smaller height for mobile proportions */
    }
    .banner-text {
        gap: 0px; /* Minimal gap between lines on mobile */
    }
    .banner-text h1 {
        font-size: 1em; /* Further reduce h1 size */
    }
    .banner-text h2 {
        font-size: .9em; /* Further reduce h2 size */
    }
	.banner-text h3 {
		font-size: .7em; /* Further reduce h3 size */
	}
    h1 {
        font-size: 1em;
    }
    h2 {
        font-size: .9em;
    }
    h3 {
        font-size: .7em;
    }
    body {
        font-size: 100%;
    }
	 main {
        width: 95%;
		 padding: 0px;
    }
    .content {
        width: 95%;
        padding: 0px;
    }
}
