/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
     /* Always show the vertical scrollbar */
     overflow-y: scroll;
 }

body {
    /* Changed to default monospace */
    font-family: monospace;
    /* Enforcing a uniform weight for the whole site */
    font-weight: 400;

    background-image: url('bgtile.png');
    background-repeat: repeat; /* This is the default, but good to be explicit */
    background-size: 340px;

    padding: 2rem 0;
    color: #333;
}

.en_construction {
    text-align: center;
    color: #ff6a00;
}

/* Master Wrapper with Padding */
.site-container {
    background-color: #eeeee4; /* Your container color */
    border-radius: 9px;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Optional: Adds a small gap between the header, nav, and content */
    position: relative; /* REQUIRED so the antenna can pin to it */
    margin: 90px auto 0;
    min-height: 80vh;
    min-width: 540px;
    max-width: 960px;
    width: 60%;
}

/* The Antenna Styling */
.antenna-offset {
    position: absolute;
    top: -72px;
    left: 140px; /* Position it on the left side, or use right: 40px */
    z-index: 20; /* High z-index to stay above the header */
    pointer-events: none;
}

.signature-offset {
    position: absolute;
    top: 0;
    left: -14px;
}

.ltmf-offset {
    position: absolute;
    top: -105px;
    right: 7px;
}


.promo-ribbons {
    position: absolute;
    right: -25px; /* Pulls them halfway off the edge */
    top: 250px; /* Vertical start position */
    display: flex;
    flex-direction: column;
    gap: 8px; /* Space between ribbons */
    z-index: 100; /* Stay on top of everything */
}

/* Base Ribbon Style */
.ribbon {
    border: 2px solid #333;
    border-radius: 0 7px 0 5px;
    box-shadow: 4px 4px 0px #333;
    color: yellow;
    display: block;
    padding: 10px 20px;
    font-family: monospace;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
    transform: skew(3deg);
    white-space: nowrap;
}

.ribbon-1 {
    background-color: orangered;
}

.ribbon-2 {
    background-color: orangered;
}

.ribbon-3 {
    background-color: #11d4ef;
    color: #333;
}

.ribbon:hover {
    transform: skew(6deg) translateX(-3px);
    box-shadow: 2px 2px 0px #333;
    color: #333;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 2rem 2rem 2rem;
    background-color: #eeeee4;
    min-height: 80px;
    width: 100%;
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
}

h1, h2, h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

/* Navbar - Main Container */
.main-nav {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 5;
    /* Work together to make the navbar pour from the page on either sides.*/
    margin-left: -0.25%;
    width: 100.5%;
}

@keyframes flash-yellow {
    0% {
        opacity: 1;
    }
    10% {
        opacity: 1;
    }
    40% {
        opacity: .5;
    }
    50% {
        opacity: 0;
    }
    60% {
        opacity: .5;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}

.welcome-text {
    color: yellow;
    font-family: monospace;
    line-height: 1.2;
    position: absolute;
    text-align: right;
    right: 75px;
    top: 10px;
    width: 100px; /* Force wrapping */
    z-index: 11;
    /* Animation: */
    animation: flash-yellow 1.6s infinite;
    animation-timing-function: ease-in-out;
}

.offset-nav-image {
    position: absolute;
    /* Negative values pull the image OUTSIDE the container */
    top: -16px; /* Pulls it up */
    right: -17px; /* Pulls it right */

    z-index: 10; /* Ensures it stays on top of the menu */
}

/* Navbar - Links */
.main-nav a {
    color: #11d4ef;
    display: block;
    font-size: 1rem;
    font-weight: normal;
    border-radius: .5rem;
    padding: .25rem 1.5rem 1.04rem 1.5rem;
    text-decoration: none;
    text-transform: none;
    transition: background 0.317s;
}

.main-nav a:hover {
    background-color: #1111ed;
    text-decoration: none;
}

/* Navbar - Unordered lists */
.main-nav ul {
    align-items: center;
    display: flex;
    list-style: none;
    padding: 0 .25rem;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Navbar - Primary menu */
.primary-menu {
    align-items: center;
    background-color: blue;
    border-bottom: 3px solid orangered;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    display: flex;
    list-style: none;
    min-height: 70px;
}

.primary-menu a {
    font-size: 1.1rem;
}

/* Secondary Menu (Bottom Tier) */
.secondary-menu {
    background-color: blue;
    min-height: 55px;
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0 1.5rem;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.secondary-menu a {
    padding: .25rem 1.12rem 1.04rem 1.12rem;
    margin: .5rem 0rem;
}


/* Content Area */
.content-wrapper {
    flex: 1;
    padding: .3rem 5rem .25rem 2rem;
}

.scroll-area {
    max-height: calc(100vh*2 - 350px);
    overflow-y: auto;
    margin-left: 5px;
    margin-right: 20px;
    padding: 0rem 2rem;
    scrollbar-color: #ccccc4 transparent;
    scrollbar-arrow-color: red;
    scrollbar-width: thin;
}

/* Style the scrollbar to look like a floating line */
.scroll-area::-webkit-scrollbar {
    width: 4px;
}

.scroll-area::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.scroll-area::-webkit-scrollbar-thumb {
    background-color: #333;
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.scroll-area::-webkit-scrollbar-track {
    background: transparent;
}

.scroll-area::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.main-content {
    background: transparent;
    border: none;
    font-size: 1rem;
}

.graffiti-title {
    position: relative;
    display: inline-block; /* Keeps the hit-box tight to the text */
    font-size: 3.5rem;
    transform: rotate(-3deg) scale(1.1);
    color: orangered;
    cursor: default;
    font-family: 'Sedgwick Ave Display', cursive;
    text-shadow: 2px 5px 0px #2bb866;
    outline-color: #11d4ef;
    z-index: 1;
    left: 5px; /* Slight offset */
    top: 10px; /* Appears "under" it */
}

.breadcrumb-container {
    padding: .67rem 5rem 0rem 2rem;
    background: transparent;
    border-radius: 4px;
    display: inline-block;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    font-size: 0.67rem;
    font-family: monospace;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    color: #666;
}

.breadcrumb-list li a {
    color: blue;
    text-decoration: none;
}

.breadcrumb-list li a:hover {
    text-decoration: underline;
    color: orangered;
}

/* The Arrows */
.breadcrumb-list li:not(:last-child)::after {
    content: "→"; /* You can use ">" or "»" if you prefer */
    margin: 0 10px;
    color: #999;
    font-weight: bold;
}

/* Current Page (Last item) */
.breadcrumb-list li:last-child {
    font-weight: bold;
    color: #333;
}

/* Footer */
.page-footer {
    text-align: center;
    padding: .25rem;
    background-color: darkblue;
    font-size: 0.78rem;
    width: 100%;

    /* Rounds only the bottom corners */
    border-bottom-left-radius: 9px;
    border-bottom-right-radius: 9px;
}

.page-footer p {
    color: yellow;
}

.page-footer .red-footer-text {
    color: red;
}

/* */

/* Two Column Layout */
.two-columns {
    display: flex;
    gap: 2rem; /* Space between the two columns */
    align-items: flex-start;
}

.column-left, .column-right {
    flex: 1; /* Makes them equally sized (50% each) */
}

/* Image Placeholder Styling */
.image-placeholder {
    width: 100%;
    height: 150px;
    border: 1px dashed #999; /* Outline represention */
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #888;
    font-size: 0.8rem;
    /* Keeping the monospace feel */
}

.image-placeholder:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    /* 1. Container - Allow it to shrink but keep padding */
    .site-container {
        width: 92%;
        min-width: auto;
        margin: 80px auto 0;
    }

    /* 2. The "Overflowing" Navbar Style */
    .main-nav {
        margin-left: -2%; /* This makes it wider than the site-container */
        width: 104%; /* Total width over 100% to spill out both sides */
        background-color: blue;
        padding: 15px 10px;
        border-radius: 12px;
        position: relative;
        z-index: 10;
    }

    /* 3. Header inside the Nav */
    .offset-nav-image {
        position: static;
        display: block;
        margin: 0 5px 5px auto;
    }

    .welcome-text {
        position: static;
        width: 100%;
        text-align: right;
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .primary-menu {
        gap: 5px;
        min-height: auto;
        padding: 0 0 1rem 0;
    }

    .primary-menu a {
        margin-bottom: .5rem;
    }

    .secondary-menu {
        gap: 5px;
        min-height: auto;
        padding-top: 10px;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        padding: 10px;
        font-size: 1rem;
        text-align: center;
        background: rgba(0, 0, 0, 0.15); /* Slight definition for the "buttons" */
        border-radius: 6px;
    }

    .secondary-menu a {
        font-size: .78rem;
    }

    .content-wrapper {
        padding: 0 1rem;
        display: flex;
        flex-direction: column;
    }

    .scroll-area {
        max-height: none;
        margin: 0;
        padding: 0;
        overflow-y: visible;
    }

    .promo-ribbons {
        position: relative;
        float: right;
        margin: 0px -40px 20px 15px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: fit-content;
        top: 0;
        right: 0;
    }

    .ribbon {
        transform: skew(3deg);
        text-align: left;
        width: 100%; /* Makes them consistent if you add specific widths */
        padding: .23rem 1.2rem .23rem .23rem;
    }

    .graffiti-title {
        margin-top: 0 !important;
        display: inline; /* This is the secret to wrapping text around a float */
    }


}