/* GLOBAL RESET & TYPOGRAPHY */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Courier New', Courier, monospace;
    color: #000000;
}

/* --- INDEX / HOME PAGE STYLES --- */
body.home-page {
    background-color: #ffffff;
    padding: 20px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.logo {
    width: clamp(160px, 10vw, 220px);
    height: auto;
    margin-bottom: 15px;
    display: block;
}

.title {
    font-weight: bold;
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 10px;
}

.subtitle {
    font-size: clamp(1rem, 3vw, 2rem);
    margin-bottom: 40px;
}

.logo-container {
    display: flex;
    gap: 30px;
    justify-content: center; /* Horizontally centers the whole group */
    align-items: flex-end;   /* Vertically aligns the logos flush to the BOTTOM */
    margin-bottom: 40px;
}

/* The new visual divider line */
.divider {
    width: 2px;
    height: 45px; /* You can make this taller or shorter */
    background-color: #000000;
    align-self: center; /* Keeps the line vertically centered between the logos */
    border-radius: 2px; /* Slight rounding for a polished look */
}

/* Shared link behavior for both Discord and Steam */
.discord-link,
.steam-link {
    display: block; /* Strips away invisible text spacing so they bottom-align perfectly */
    transition: transform 0.2s ease-in-out;
}

.discord-link:hover,
.steam-link:hover {
    transform: scale(1.1);
}

/* Shared SVG scaling for both logos */
.discord-logo,
.steam-logo {
    width: clamp(30px, 5vw, 60px);
    height: auto;
    max-height: 60px;
    display: block;
    fill: #000000;
}

.regular-text {
    font-size: 1rem;
    margin-bottom: 15px;
    max-width: 600px;
    line-height: 1.5;
}

.op-button {
    display: inline-flex;       /* Changes from inline-block to inline-flex */
    flex-direction: column;      /* Stacks children (the spans) vertically */
    align-items: center;         /* Keeps them perfectly centered */
    justify-content: center;
    padding: 12px 24px;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid #000000;
    transition: all 0.2s ease-in-out;
}

/* Optional: Make the second line (the date) a bit smaller or different */
.op-button span:last-child {
    font-size: 1rem;
    font-weight: normal;
    margin-top: 4px; /* Adds a tiny bit of breathing room between lines */
}

.op-button:hover {
    background-color: #ffffff;
    color: #000000;
}


/* --- DOCUMENT & TBD PAGES (SHARED STYLES) --- */
body.doc-page {
    background-color: #f1f3f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #000000;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.back-btn {
    text-decoration: none;
    color: #000000;
    font-weight: bold;
    font-size: 1.1rem;
    border: 2px solid #000000;
    padding: 8px 16px;
    transition: all 0.2s ease-in-out;
    margin-right: 20px;
}

.back-btn:hover {
    background-color: #000000;
    color: #ffffff;
}

.header-title {
    font-size: 1.5rem;
    font-weight: bold;
}

/* --- CUSTOM CSS DROPDOWN --- */
.custom-dropdown {
    position: relative;
    margin-left: auto; /* Pushes to the far right */
}

/* The visible button */
.dropdown-btn {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    font-weight: bold;
    color: #000000;
    background-color: #ffffff;
    border: 2px solid #000000;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* Button hover state */
.dropdown-btn:hover,
.custom-dropdown:hover .dropdown-btn {
    background-color: #000000;
    color: #ffffff;
}

/* The hidden menu container */
.dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Snaps exactly below the button */
    right: 0;  /* Aligns with the right edge of the button */
    background-color: #ffffff;
    border: 2px solid #000000;
    border-top: none; /* Connects seamlessly to the button */
    min-width: 240px;
    z-index: 20;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1); /* Optional: tiny shadow for depth */
}

/* Show the menu when hovering over the container */
.custom-dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
}

/* The links inside the menu */
.dropdown-content a {
    font-family: 'Courier New', Courier, monospace;
    color: #000000;
    text-decoration: none;
    padding: 12px 16px;
    font-weight: bold;
    border-bottom: 1px solid #dddddd;
    transition: background-color 0.2s ease-in-out;
}

/* Remove bottom border from the last link */
.dropdown-content a:last-child {
    border-bottom: none;
}

/* Hover effect for the links */
.dropdown-content a:hover {
    background-color: #000000;
    color: #ffffff;
}

/* --- MOBILE RESPONSIVENESS FIX --- */
@media (max-width: 900px) {
    .custom-dropdown {
        margin-left: 0;
        width: 100%;
    }
    .dropdown-btn {
        width: 100%;
        text-align: left; /* Looks better on mobile when stretched */
    }
    .dropdown-content {
        width: 100%;
    }
}

/* --- TBD PAGE SPECIFIC --- */
.loading-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 8px solid #cccccc;
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 3s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}


/* --- LATEST OPERATION PAGE SPECIFIC --- */
.doc-container {
    flex-grow: 1;
    width: 100%;
    height: calc(100vh - 65px);
    display: flex;
    flex-direction: row;
}

.scalable-image {
    width: 50%;
    height: 100%;
    object-fit: contain;
    padding: 0; /* Removed the invisible wall */
}

iframe {
    display: block;
    width: 50%;
    height: 100%;
    border: none;
    border-left: 2px solid #000000;
}
/* --- LIGHTBOX MODAL --- */
/* Changes the mouse cursor to a magnifying glass over the map */
.scalable-image {
    cursor: zoom-in;
}
/* The dark background overlay */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh; /* Fallback for older phones */
    height: 100dvh; /* Modern fix for mobile address bars */
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;

    /* Stops weird touch-highlighting on mobile */
    -webkit-tap-highlight-color: transparent;
}

/* The expanded image itself */
.lightbox-content {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border: 2px solid #ffffff; /* A crisp white border to match your theme */
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
    /* Header & Nav adjustments */
    .header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-dropdown {
        margin-left: 0;
        width: 100%;
    }

    /* Doc Container adjustments */
    .doc-container {
        flex-direction: column;
    }

    .scalable-image, iframe {
        width: 100%;
        height: 50%;
    }

    iframe {
        border-left: none;
        border-top: 2px solid #000000;
    }

    .header-title {
        font-size: 1.2rem;
    }
}
