/* Apply box-sizing globally */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Base Styles */
body {
    margin: 0;
    padding: 0;
    background: #000;
    font-family: monospace;
    line-height: 1.5;
    color: #C8A55E; /* Main page text color */
}

.wrapper {
    width: 90%; /* Occupies 90% of the viewport width */
    margin: 0 auto; /* Centers the wrapper horizontally */
    padding: 10px 20px 20px 20px; /* Reduced top padding */
    box-sizing: border-box; /* Ensures padding is included within the width */
}

.header {
    position: relative;
    padding-bottom: 10px;
    padding-top: 0;
}

    .header h1 {
        margin: 0;
        padding: 0;
        font-size: 2.1em; /* 40% larger than 1.5em */
        color: #322916; /* 50% more faded than #64522F */
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 10;
    }

    .header nav {
        text-align: center;
        padding: 15px 0 10px 0;
    }

    .header nav a {
        display: inline-block;
        background: #000;
        border: 1px solid #444;
        padding: 5px 10px;
        margin: 0 5px;
        text-decoration: none;
        color: #C8A55E; /* Same color as main page text */
    }

        .header nav a:hover {
            background: #111;
            font-weight: bold; /* Make text bold on hover */
            color: #FFD700; /* Bright gold color on hover */
            border-color: #FFD700; /* Optional: Gold border on hover */
        }

.content {
    text-align: center;
}

.ascii-art {
    display: block;
    margin: 0 auto;
    text-align: center;
    font-size: 14px;
    white-space: pre;
    margin-bottom: 20px;
}

/* Reset Global Paragraph Styles */
p {
    margin: 10px 0;
    padding: 0;
    background: none;
    border: none;
    letter-spacing: normal;
    word-spacing: normal;
    text-align: left;
    max-width: none;
}

/* Link Styles */
a {
    color: #C8A55E;
    text-decoration: none; /* Removes underlines */
}

    a:hover {
        text-decoration: underline; /* Adds underline on hover */
    }

.no-bullet span.label {
    padding-top: 10px;
    font-weight: bold;
    text-align: center; /* Keeps labels centered */
}

/* Reduced Vertical Space Between Headers */
.content h2,
.content h3 {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Special Class for Headers with Specific Color */
.bright-orange {
    color: #C8A55E;
}

/* Style for the role/title header */
.role {
    font-style: italic;
    font-weight: normal;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Ensure Responsive Images and Media */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Enhanced Paragraph Styling for the About Page */
.about-page .content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.about-page .content h2 {
    text-align: center;
    font-size: 2.5em;
    color: #FFD700;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.about-page .content h3 {
    text-align: center;
    font-size: 1.3em;
    color: #C8A55E;
    margin: 30px 0 20px 0;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.about-page .content h3.role {
    font-style: italic;
    font-size: 1.5em;
    border-bottom: none;
    margin-top: 0;
    margin-bottom: 40px;
    color: #B8956E;
}

.about-page .content p {
    margin: 20px 0;
    padding: 20px 25px;
    background-color: #0a0a0a;
    border-left: 3px solid #C8A55E;
    border-right: 1px solid #222;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    text-align: left;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.about-page .content ul {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px 25px;
    background-color: #0a0a0a;
    border: 1px solid #444;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.about-page .content ul li {
    margin: 10px 0;
    line-height: 1.6;
}

.about-page .content ul li strong {
    color: #FFD700;
}

.centered-paragraph {
    margin: 20px auto;
    padding: 15px;
    text-align: center;
    max-width: 800px; /* could be 1200 but let's see how this looks*/
}

.bridge-subnav, .personal-subnav {
    margin-top: -5px; /* Raised 10px higher (was 5px, now -5px) */
}

/* Styles for the bridge introduction page */
.bridge-page .bridge-intro-block {
    margin: 20px 0; /* Vertical spacing between blocks */
    padding: 15px; /* Padding inside each block */
    background-color: #1a1a1a; /* Similar subtle background as about-page */
    border-radius: 8px; /* Rounded corners */
    text-align: left; /* Paragraph text is left-aligned for readability */
    max-width: 800px; /* Limit width for better readability */
    margin-left: auto; /* Center the block horizontally */
    margin-right: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    border: 1px solid #333; /* Subtle border */
    position: relative; /* Allows positioning header if needed */
}

    .bridge-page .bridge-intro-block p {
        margin: 0; /* Tighten up spacing inside block */
        color: #C8A55E;
    }

.bridge-page .bridge-block-header {
    font-weight: bold;
    font-size: 1.2em;
    text-align: left; /* Aligns header to the right side */
    margin-bottom: 10px; /* Space between the header and paragraph */
    color: #C8A55E; /* Matches general text color or can be #FFD700 for more emphasis */
}

/* Style for the table header text above the table */
.table-header {
    text-align: left;
    margin: 20px auto 5px;
    width: 90%; /* Match table width */
    font-size: 1.4em; /* Adjust size as needed */
    color: #C8A55E; /* Matches normal text color */
    font-weight: bold;
}


/* Highlight the active page link */
.header nav a.active {
    font-weight: bold; /* Make text bold */
    color: #FFD700; /* Bright gold color */
    border-color: #FFD700; /* Optional: Make the border gold */
}

/* Dropdown container (generic) */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Bridge subtabs section - separate from header */
.bridge-subtabs-container {
    text-align: center;
    padding: 10px 0 15px 0;
    border-bottom: 1px solid #444;
    background: #000;
}

.bridge-subtabs {
    display: none;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.bridge-subtabs.active {
    display: flex;
}

.bridge-subtabs a {
    display: inline-block;
    background: #0a0a0a;
    border: 1px solid #444;
    border-top: 2px solid #C8A55E;
    padding: 4px 10px;
    margin: 0;
    text-decoration: none;
    color: #C8A55E;
    font-size: 0.85em;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.bridge-subtabs a:hover {
    background: #111;
    font-weight: bold;
    color: #FFD700;
    border-color: #FFD700;
    border-top-color: #FFD700;
}

.bridge-subtabs a.active {
    font-weight: bold;
    color: #FFD700;
    border-color: #FFD700;
    border-top-color: #FFD700;
    background: #111;
}

.bridge-dropdown {
    position: relative;
}

.bridge-dropdown .dropdown-content {
    display: none;
}

/* Show the bridge dropdown content on hover (legacy support) */
.bridge-dropdown:hover .dropdown-content {
    display: block;
}

/* Disable dropdown hover when personal-subnav is present */
.header:has(.personal-subnav) .bridge-dropdown:hover .dropdown-content {
    display: none !important;
}

/* Bridge dropdown content (legacy dropdown style) */
.bridge-dropdown .dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: #000;
    border: 1px solid #444;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    padding: 0;
    margin: 0;
    width: 180px;
}

.bridge-dropdown .dropdown-content a {
    display: block;
    width: 100%;
    padding: 5px 0;
    text-align: center;
    white-space: nowrap;
    color: #C8A55E;
    background: #000;
    text-decoration: none;
    border-bottom: 1px solid #444;
    box-sizing: border-box;
    margin: 0;
}

.bridge-dropdown .dropdown-content a:hover {
    font-weight: bold;
    color: #FFD700;
    background-color: #111;
    border-color: #FFD700;
}
