/* General Body Styles */
body {
    font-family: sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #000000;
    margin: 0;
    padding: 0; /* Changed to 0 so nav touches edges */
}

/* Main Container */
.container {
    max-width: 900px;
    margin: 20px auto;
    background: #282828;
    padding: 30px;
    border-radius: 8px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px; /* This controls the exact distance between the icon and text */
}


.main-nav img.navlogo {
    height: 40px; /* Adjusted height for a sleek look */
    width: auto;
    margin: 0;
    display: block;
}


.main-nav .brand {
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    margin-right: 0; 
}

/* Typography */
h1, h2, h3 {
    color: #ffffff;
}

h1 {
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h2 {
    margin-top: 30px;
}

ul, ol {
    margin-left: 20px;
}

a {
    color: #8ab4f8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* On This Page / Table of Contents */
.on-this-page {
    background: #333;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.on-this-page h3 {
    margin-top: 0;
}

.on-this-page ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.on-this-page li {
    margin-bottom: 5px;
}

/* Image Defaults */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Navigation Bar */
.main-nav {
    background-color: #333;
    padding: 15px 20px;
    border-bottom: 2px solid #444;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center; /* Centered max-width container approach */
}

/* Inner container for Nav to match body width */
.nav-inner {
    width: 100%;
    max-width: 900px; /* Matches .container */
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.nav-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-links a {
    font-size: 0.9em;
    color: #ccc;
}

.nav-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links {
        margin-top: 10px;
        gap: 10px;
    }
}

/* Active Link State */
.nav-links a.active {
    color: #8ab4f8;
    font-weight: bold;
    border-bottom: 2px solid #8ab4f8;
    text-decoration: none;
}
