/* --- Color Scheme Variables -- */
:root {
    --olive-green: #677C4B;
    --dark-olive: #394C44;
    --lavender: #B4ABCE;
    --off-white: #F9F9FB;
    --white:#FFFFFF;
    --gray-blue: #54626C;
    --light-gray-blue: #B3BDC4;
    --dark-gray: #1F1F1F;
    --black:#000000;
    --light-black:#161616;
}

/* --- Main Styling --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    overflow-x: hidden;
    min-width: 250px;
}

html {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: var(--dark-gray);
    color: var(--off-white);
    min-height: 100vh;
    font-size: 16px;
    line-height: 1.6;
}

.container {
    background-color: var(--dark-gray);
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 20px 100px 20px;
    margin-top: 72px;
    margin-bottom: 60px;
}

a {
    color: var(--lavender);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--off-white);
}

a::after {
    color: var(--lavender);
    text-decoration: none;
}

.box-shadow-bottom {
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.8);
}

.box-shadow-top {
    box-shadow: 0px -2px 8px rgba(0, 0, 0, 0.8);
}

.navbar {
    background: var(--dark-olive);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    text-wrap: nowrap;
    width: 100%;
    border-bottom: 1px solid var(--dark-gray);
    height: 72px;
    z-index: 999; 
}

.navbar-inner {
    padding: 0 20px;
    height: 100%;
    font-family: 'Georgia', 'Times New Roman', serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--off-white);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.8em;
    margin-right: 15px;
}

.navbar-logo {
    vertical-align: middle;
}

.navbar-menu {
    display: flex;
    gap: 15px;
    z-index: 2;
}

.navbar-item {
    margin: 25px 10px 0 10px;
    color: var(--off-white);
    text-decoration: none;
    font-size: 1.25em;
    transition: color 0.3s ease;
}

.navbar-item:hover {
    color: var(--light-gray-blue);
}

.navbar-item.active {
    color: var(--lavender);
    /* border-bottom: 2px solid var(--lavender); */
    padding-bottom: 3px;
}

/* Hamburger menu button (visible on mobile) */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--off-white);
    font-size: 1.5em;
    cursor: pointer;
}

#navbar-title {
    margin: 5px;
    display:flex; 
    flex-direction:row;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--off-white);
    font-size: 1em;
    transition: color 0.3s ease;
}

#navbar-title:hover {
    color: var(--light-gray-blue);
    text-decoration: none;
    cursor: pointer;
}

#navbar-title:active {
    color: var(--off-white);
    text-decoration: none;  
}

#navbar-title:focus {
    color: var(--off-white);
    text-decoration: none;
}

footer {
    background: var(--dark-olive);
    color: var(--off-white); 
    text-align: center; 
    height: 60px;
    width: 100%;
    border-top: 1px solid var(--dark-gray);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    z-index: 998;
}

.footer-links {
    margin: 5px 20px 0 20px; 
    white-space: nowrap; 
    height: 35px;
    font-size: 1.5em;
}

.footer-links a {
    margin: 0 5px; 
    color: var(--off-white);  
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--lavender);
    text-decoration: none;
    cursor: pointer;
}

.footer-links a:active {
    color: var(--lavender);
    text-decoration: none;  
}

.footer-links a:focus {
    color: var(--lavender);
    text-decoration: none;
}

#main-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 0 15px 40px 15px;
    box-sizing: border-box;
    overflow-x: hidden;
}

#about-page-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    max-width: 800px;
    padding: 0 15px 40px 15px;
    box-sizing: border-box;
}

/* Page headers */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.page-header h1 {
    font-size: 2.8em;
    color: var(--off-white);
    margin: 0 0 10px 0;
    font-weight: 400;
}

.page-header h2 {
    font-size: 1.4em;
    color: var(--light-gray-blue);
    margin: 0;
    font-weight: 400;
    font-style: italic;
}

/* About page sections */
.about-section {
    margin-bottom: 35px;
    width: 100%;
}

.about-section h3 {
    font-size: 1.5em;
    color: var(--off-white);
    margin: 0 0 15px 0;
    font-weight: 500;
    border-bottom: 1px solid var(--dark-olive);
    padding-bottom: 8px;
}

.about-section p {
    font-size: 1.15em;
    color: var(--off-white);
    line-height: 1.8;
    margin: 0 0 15px 0;
}

.about-section ul {
    margin: 0;
    padding-left: 25px;
}

.about-section li {
    font-size: 1.15em;
    color: var(--off-white);
    line-height: 1.8;
    margin: 8px 0;
}

.footer-nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-nav a {
    color: var(--lavender);
    text-decoration: none;
    font-size: 1.05em;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-nav a:hover {
    color: var(--off-white);
}

/* --- Responsive styles --- */
@media (max-width: 900px) {
    .container {
        padding: 10px 10px 100px 10px;
        align-items: flex-start;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    .navbar-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--dark-olive);
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    }
    
    .navbar-menu.show {
        display: flex;
    }
    
    .navbar-item {
        margin: 10px 20px;
        padding: 10px 0;
        border-bottom: 1px solid rgba(138, 138, 138, 0.2);
    }

    #main-page-container {
        padding: 20px 10px 20px 10px;
        justify-content: flex-start;
    }
    
    #about-page-container {
        padding: 20px 10px 20px 10px;
    }
    
    .page-header h1 {
        font-size: 2.2em;
    }
    
    .page-header h2 {
        font-size: 1.2em;
    }
    
    .footer-nav {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {

    /* Navbar font sizes */
    .navbar-brand {
        font-size: 1.6em;
    }
    
    .navbar-item {
        font-size: 1.05em;
    }
    
    .navbar-toggle {
        font-size: 1.3em;
    }
    
    #navbar-title {
        margin: 5px 2.5px;
        gap: 5px;
        font-size: 0.8em;
    }

    .footer-links {
        margin: 5px 10px 0 10px; 
        height: 25px;
        font-size: 1.1em;
    }
    
    .page-header h1 {
        font-size: 1.8em;
    }
    
    .page-header h2 {
        font-size: 1em;
    }
    
    .about-section h3 {
        font-size: 1.3em;
    }
    
    .about-section p,
    .about-section li {
        font-size: 1.05em;
    }
}

@media (max-width: 440px) {
    .container {
        padding: 10px 0 100px 0;
    }
}

@media (max-width: 350px) {
    html, body {
        overflow-x: hidden;
    }
    #navbar-title {
        font-size: 0.65em;
    }
    .navbar-logo {
        width: 40px !important;
        height: 40px !important;
    }
    .section-header h3 {
        font-size: 1.2em;
    }

}

@media (max-width: 275px) {
    html {
        overflow-x: auto;
    }
}
