html, body{
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: black; /* makes background black instead of white */
}

/* ----- TESTING HITBOX GREEN BOX OPTION -------*/
/*body.debug-hitboxes .hitbox {*/
/*    background: rgba(0, 255, 0, 0.25);*/
/*    outline: 2px solid lime;*/
/*}*/

body:not(.debug-hitboxes) .hitbox {
    background: transparent;
    outline: none;
}

/* This part creates the glow inside the hitbox */
.hitbox::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;

    /* Simplified gradient - avoid 'misty' transparency layers if possible */
    background: radial-gradient(circle, #fff 0%, rgba(150, 230, 255, 0.8) 50%, transparent 100%);

    /* Reduced to 1 shadow instead of 3. This saves massive GPU time */
    box-shadow: 0 0 15px 5px rgba(100, 220, 255, 0.5);

    pointer-events: none;
    z-index: 15;

}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-family: sans-serif;
}

/*function to hide certain screens until you click to the next*/
.hidden {
    display: none !important;
}

/* ---- UI POLISH: TOTAL INTERACTIVE FIX blue highlight ---- */
html, body {
    /* Prevents the 'pull-to-refresh' gesture on mobile which can break games */
    overscroll-behavior-y: contain;
}

* {
    /* 1. Remove the mobile tap flash */
    -webkit-tap-highlight-color: transparent;

    /* 2. Prohibit text selection globally */
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none;     /* IE/Edge */
    user-select: none;         /* Standard */
}

/* 3. Re-enable selection for inputs so players can still type names/codes if needed */
input, textarea {
    -webkit-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.hitbox,
.back-arrow,
.forward-arrow,
.left-arrow,
.right-arrow,
.menu-btn,
.dropdown-item,
.inv-item,
#inventory-tab,
#hamburger-icon,
#hint-btn,
#map-close-btn,
#wire-exit-btn,
#wire-popup-close,
#ingame-settings-close-btn,
#item-close-btn {
    user-select: none;
    -webkit-user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    contain: layout style;
    will-change: opacity;
}

/* HITBOX HOVER OUTLINE (easy revert: remove this block) */
.hitbox {
    transition: box-shadow 0.18s ease, outline-color 0.18s ease, outline-offset 0.18s ease;
}

/* Subtle edge cue on true hover devices. */
@media (hover: hover) and (pointer: fine) {
    .hitbox:hover {
        outline: 1px solid rgba(90, 255, 120, 0.82) !important;
        outline-offset: -1px;
        box-shadow:
            inset 0 0 0 1px rgba(90, 255, 120, 0.5),
            0 0 14px rgba(90, 255, 120, 0.44),
            0 0 22px rgba(90, 255, 120, 0.24);
    }
}

.hitbox:focus,
.back-arrow:focus,
.forward-arrow:focus,
.left-arrow:focus,
.right-arrow:focus,
.menu-btn:focus,
.dropdown-item:focus,
#inventory-tab:focus,
#hamburger-icon:focus,
#hint-btn:focus {
    outline: none;
}

.fit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: fit-content;
}

/*function to set the shape of each image*/
.fit img {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

#tutorial-exit-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 140px; /* Slightly smaller than the main menu buttons */
    height: 40px;
    font-size: 14px;
    z-index: 1000; /* Stays above the images and hitboxes */
    opacity: 1;    /* Ensures it is visible immediately */
}

/* --- FORWARD ARROW --- */
.forward-arrow {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 32px solid transparent;
    border-right: 32px solid transparent;
    border-bottom: 42px solid #c9a84c;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s ease;
}

.forward-arrow::after {
    content: '';
    position: absolute;
    left: -28px;
    top: 4px;
    width: 0;
    height: 0;
    border-left: 28px solid transparent;
    border-right: 28px solid transparent;
    border-bottom: 36px solid rgba(100, 20, 30, 0.5);
    transition: all 0.2s ease;
}

/* Hover Effects */
.forward-arrow:hover {
    filter: drop-shadow(0 0 8px #c9a84c); /* Gold Glow */
    transform: translateX(-50%) translateY(-3px); /* Slight pop up */
}

.forward-arrow:hover::after {
    border-bottom-color: rgba(100, 20, 30, 0.8); /* Fill gets darker/more solid */
}

/* --- BACK ARROW --- */
.back-arrow {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 32px solid transparent;
    border-right: 32px solid transparent;
    border-top: 42px solid #c9a84c;
    cursor: pointer;
    z-index: 99;
    transition: all 0.2s ease;
}

.back-arrow::after {
    content: '';
    position: absolute;
    left: -28px;
    bottom: 4px;
    width: 0;
    height: 0;
    border-left: 28px solid transparent;
    border-right: 28px solid transparent;
    border-top: 36px solid rgba(100, 20, 30, 0.5);
    transition: all 0.2s ease;
}

.back-arrow:hover {
    filter: drop-shadow(0 0 8px #c9a84c);
    transform: translateX(-50%) translateY(3px);
}

.back-arrow:hover::after {
    border-top-color: rgba(100, 20, 30, 0.8);
}

/* --- RIGHT ARROW --- */
.right-arrow {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 32px solid transparent;
    border-bottom: 32px solid transparent;
    border-left: 42px solid #c9a84c;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s ease;
}

.right-arrow::after {
    content: '';
    position: absolute;
    top: -28px;
    left: -40px;
    width: 0;
    height: 0;
    border-top: 28px solid transparent;
    border-bottom: 28px solid transparent;
    border-left: 36px solid rgba(100, 20, 30, 0.5);
    transition: all 0.2s ease;
}

.right-arrow:hover {
    filter: drop-shadow(0 0 8px #c9a84c);
    transform: translateY(-50%) translateX(3px);
}

.right-arrow:hover::after {
    border-left-color: rgba(100, 20, 30, 0.8);
}

/* --- LEFT ARROW --- */
.left-arrow {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 32px solid transparent;
    border-bottom: 32px solid transparent;
    border-right: 42px solid #c9a84c;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s ease;
}

.left-arrow::after {
    content: '';
    position: absolute;
    top: -28px;
    right: -40px;
    width: 0;
    height: 0;
    border-top: 28px solid transparent;
    border-bottom: 28px solid transparent;
    border-right: 36px solid rgba(100, 20, 30, 0.5);
    transition: all 0.2s ease;
}

.left-arrow:hover {
    filter: drop-shadow(0 0 8px #c9a84c);
    transform: translateY(-50%) translateX(-3px);
}

.left-arrow:hover::after {
    border-right-color: rgba(100, 20, 30, 0.8);
}

/* --- POPUP MESSAGES --- */

body.menu-mode .notification-top,
body.menu-mode .notification-mid,
body.menu-mode .tut-notification-base,
body.menu-mode .theme-burgundy-gold {
    display: none !important;
}

/* Bottom Popup */
.notification-top {
    position: fixed !important;
    top: 10% !important;    /* Distance from the floor */
    left: 50% !important;      /* Horizontal center */
    transform: translateX(-50%) !important;
    /* Force ignore vertical centering */
    bottom: auto !important;

    width: max-content;      /* 1. Forces the box to be exactly as wide as the text */
    max-width: 80vw;         /* 2. Prevents it from going off-screen on mobile */
    min-width: 0 !important; /* 3. Removes your 320px restriction */

    /* Optional: Add some padding so the text doesn't touch the edges */
    padding: 15px 25px;

    /* Make sure text looks good */
    text-align: center;
    pointer-events: auto; /* Allow clicking if you want to manually close */
    z-index: 10000 !important;
}

/* ---- tutorial popups ----- */
/* Base class for all Tutorial Boxes */
:root {
    --tut-blue-bg: #0a192f;
    --tut-gold-text: #64ffda; /* Teal-Gold or Amber */
    --tut-border-gold: #fcc200;
}

/* --- 1. The Base Style (Look only) --- */
.tut-notification-base {
    position: fixed !important;
    display: block !important;
    background: #0a192f !important;
    border: 2px solid #fcc200 !important;
    color: #64ffda !important;
    padding: 15px 25px;
    border-radius: 4px;
    z-index: 99999 !important;
    width: max-content !important;
    max-width: 80vw !important;

    /* Ensure no defaults are messing with positioning */
    transform: none !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
}

/* --- 2. Specific Adjustments --- */
/* These will now work because the JS names match these exactly */

.notification-inventory {
    top: 20px !important;
    left: 175px !important;
}

.notification-invInspection {
    top: 70px !important;
    left: 175px !important;
}

.notification-closeOverlay {
    top: 20px !important;
    right: 180px !important;
}

.notification-menu {
    top: 15px !important;
    right: 200px !important;
}

.notification-map {
    top: 60px !important;
    right: 230px !important;
}

.notification-close-map {
    bottom: 25% !important;
    left: 14% !important;
}

.notification-hint {
    bottom: 20px !important;
    right: 100px !important;
}

.notification-mid {
    position: fixed !important;
    top: 10% !important;    /* Distance from the floor */
    left: 50% !important;      /* Horizontal center */
    transform: translateX(-50%) !important;
    /* Force ignore vertical centering */
    bottom: auto !important;

    width: max-content;      /* 1. Forces the box to be exactly as wide as the text */
    max-width: 80vw;         /* 2. Prevents it from going off-screen on mobile */
    min-width: 0 !important; /* 3. Removes your 320px restriction */

    /* Optional: Add some padding so the text doesn't touch the edges */
    padding: 15px 25px;

    /* Make sure text looks good */
    text-align: center;
    pointer-events: auto; /* Allow clicking if you want to manually close */
    z-index: 10000 !important;
}

/* Burgundy Story Box */
.theme-burgundy-gold.notification-top {
    top: 10% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* Ensure the text inside the themed box looks right */
.box-text-content {
    margin: 0;
    padding: 5px 0;
    font-size: 22px;
    text-align: center;
    color: #c9a84c;
    font-family: serif;
}

/* The Core Theme: Burgundy background, Gold border */
.theme-burgundy-gold {
    background: rgba(100, 20, 30, 0.95);
    border: 2px solid #c9a84c;
    color: #c9a84c;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* Optional: A hover effect class for interactive boxes */
.theme-clickable:hover {
    background: rgba(130, 30, 40, 0.95) !important;
    cursor: pointer;
    transition: background 0.2s;
}

/* A helper for the "Close" button within any themed box */
.theme-close-btn {
    color: #c9a84c;
    float: right;
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
}

.click-popup {
    position: absolute;
    z-index: 2000;
    width: max-content;
    max-width: 80vw;
    padding: 15px 25px;
    text-align: center;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.4;

    background: rgba(100, 20, 30, 0.95);
    border: 2px solid #c9a84c;
    color: #c9a84c;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);

    /* Center it horizontally on the mouse click */
    transform: translateX(-50%);
    pointer-events: auto;
    user-select: none;
    transition: opacity 0.3s ease;
    animation: popup-fade 0.2s ease-out forwards;
}

@keyframes popup-fade {
    /* We MUST keep translateX(-50%) in both steps or it breaks centering */
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* INVENTORY DRAWER */
#inventory-drawer {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 200;
}

#inventory-tab {
    width: 145px;
    height: 48px;
    background: rgba(100, 20, 30, 0.85);
    color: #c9a84c;
    border: 1px solid rgba(180, 140, 40, 0.5);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: 'Special Elite', cursive;
    font-size: 18px;
    letter-spacing: 2px;
    transition: background 0.2s;
}

#inventory-tab:hover {
    background: rgba(130, 30, 40, 0.95);
}

#inventory-panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
}

#inventory-panel.inventory-open {
    max-height: 500px;
}

#inventory-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: rgba(26, 15, 0, 0.95);
    border: 1px solid rgba(180, 140, 40, 0.5);
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.inv-item {
    width: 120px;
    height: 58px;
    background-color: rgba(100, 20, 30, 0.6);
    border: 1px solid rgba(180, 140, 40, 0.4);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.inv-item:not(.hidden):not(.empty):hover {
    background: rgba(130, 30, 40, 0.9);
    border-color: #c9a84c;
    transform: scale(1.05);
    cursor: pointer;
}

.inv-item.empty {
    opacity: 0.3;
    border-style: dashed;
    border-color: rgba(180, 140, 40, 0.3);
}

.emoji-icon {
    font-size: 26px;
    display: inline-block;
    pointer-events: none !important;
}

.inv-label {
    font-family: 'Special Elite', cursive;
    font-size: 13px;
    color: #c9a84c;
    letter-spacing: 1px;
}

/*--- cinematic fade to black screen ---*/
#screen-fade {
    position: fixed;
    inset: 0;
    background: black;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
}

#tutorial-title-card {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #1a0f00;
    background-image: radial-gradient(ellipse at center, rgba(180, 120, 0, 0.35) 0%, transparent 70%);
    text-align: center;
    color: #c9a84c;
    text-shadow: 2px 2px 0 #000;
}

#tutorial-title-card h1 {
    margin: 0 0 18px;
    font-family: 'Special Elite', cursive;
    font-size: clamp(2.8rem, 8vw, 5.2rem);
    letter-spacing: 4px;
    color: #c9a84c;
    text-shadow: 0 0 20px rgba(200, 160, 0, 0.6), 0 0 40px rgba(180, 120, 0, 0.3);
}

#tutorial-title-card p {
    margin: 0;
    font-family: 'Special Elite', cursive;
    font-size: clamp(1rem, 2.2vw, 1.55rem);
    letter-spacing: 1px;
    color: #c9a84c;
    text-shadow: 0 0 10px rgba(200, 160, 0, 0.35);
}

/* ---- MENU SCREEN ---- */
#menu-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100vw;
    height: 100vh;
    background-color: #1a0f00;
    background-image: radial-gradient(ellipse at center, rgba(180,120,0,0.35) 0%, transparent 70%);
    position: relative; /* important so child absolute positioning works */
    top: 0;
    left: 0;
}

#copyright {
    position: absolute;
    bottom: 10px;
    right: 15px; /* change to 'left' or 'center' if you prefer */
    font-size: 0.9rem;
    color: #cccccc;
    opacity: 0.8;
    pointer-events: none;
}

/* ---- TITLE ---- */
#menu-title {
    font-family: 'Special Elite', cursive;
    font-size: 80px;
    color: #c9a84c;
    text-shadow: 0 0 20px rgba(200, 160, 0, 0.6), 0 0 40px rgba(180, 120, 0, 0.3);
    margin-bottom: 40px;
    letter-spacing: 4px;
}

/* ---- MENU BUTTONS CONTAINER ---- */
.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* ---- INDIVIDUAL MENU BUTTON ---- */
.menu-btn {
    width: 200px;
    height: 50px;
    background: rgba(100, 20, 30, 0.85);
    color: #c9a84c;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    font-size: 18px;
    font-family: 'Special Elite', cursive;
    letter-spacing: 2px;
    border: 1px solid rgba(180, 140, 40, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease, background 0.2s, transform 0.1s;
}

.menu-btn.visible {
    opacity: 1;
}

.menu-btn:hover {
    background: rgba(130, 30, 40, 0.95);
    transform: scale(1.05);
}

.menu-btn:active {
    transform: scale(0.95);
}


/* ---- DISCLAIMER PAGE (Matching Menu Theme) ---- */
#disclaimer-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100vw;
    height: 100vh;
    background-color: #1a0f00; /* Same as #menu-screen */
    background-image: radial-gradient(ellipse at center, rgba(180,120,0,0.35) 0%, transparent 70%);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 200;
}

#disclaimer-page.hidden {
    display: none;
}

#disclaimer-page h2, #disclaimer-page h3 {
    font-family: 'Special Elite', cursive;
    color: #c9a84c;
    text-shadow: 0 0 15px rgba(200, 160, 0, 0.5);
    letter-spacing: 2px;
}

.recommendations {
    max-width: 650px;
    background: rgba(0, 0, 0, 0.4);
    padding: 30px;
    border: 1px solid rgba(180, 140, 40, 0.3);
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
    color: #cccccc;
    font-family: 'Georgia', 'Times New Roman', serif; /* easier to read */
    line-height: 1.6;
}

.recommendations p {
    margin-bottom: 15px;
    font-size: 1.25rem;
    line-height: 1.7;
}

.recommendations strong {
    color: #c9a84c;
}

/* Applying your menu-btn style to the Yes/No buttons */
.disclaimer-btn {
    width: 200px;
    height: 50px;
    background: rgba(100, 20, 30, 0.85); /* Your Burgundy */
    color: #c9a84c; /* Your Gold */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Special Elite', cursive;
    letter-spacing: 2px;
    border: 1px solid rgba(180, 140, 40, 0.5);
    margin: 10px;
    transition: all 0.2s ease;
}

.disclaimer-btn:hover {
    background: rgba(130, 30, 40, 0.95);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(201, 168, 76, 0.4);
}

/* --------- info page stuff -----*/
#sources a {
    color: #ffcc33;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 204, 51, 0.6);
}

#sources a:hover {
    color: #fff2b3;
    border-bottom: 1px solid #fff2b3;
}

/* ---- FADE SCREENS (Settings, How to Play) ---- */
.fade-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #1a0f00;
    background-image: radial-gradient(ellipse at center, rgba(180, 120, 0, 0.35) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ----- INFO PAGES ----*/
/* 1. Push the whole screen content to the very top */
/* 1. Push the whole screen to the top */
#info-screen {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20px;
    height: 100vh;
}

/* 2. The Header Bar (Title + Buttons in a row) */
.info-header-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    padding: 10px 40px;
    border-bottom: 3px solid #ffcc00;
}

/* 3. The Big Yellow Title */
.info-title {
    color: #ffcc00;
    font-size: 2.8rem;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px #000;
}

/* 4. Restored "Nice" Tab Buttons */
.tab-btn {
    background: #333;           /* Back to the dark look */
    color: white;
    border: 2px solid #555;
    padding: 10px 20px;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 5px 5px 0 0; /* Folder-tab shape */
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: #444;
    border-color: #ffcc00;
}

.tab-btn.active {
    background: #ffcc00;        /* Yellow only when active */
    color: #000;                /* Black text for contrast */
    border-color: #ffcc00;
    font-weight: bold;
}

/* 5. Large Visibility Text */
.info-body {
    padding: 40px;
}

.info-tab-content {
    max-height: 70vh;
    overflow-y: auto;

    width: min(700px, 50vw);
    margin: 0 auto;

    padding: 24px;
    border-radius: 12px;

    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: none;
}

/* Slightly wider credits panel so content fits with less scrolling */
#credits.info-tab-content {
    width: min(820px, 62vw);
}


.info-tab-content h3 {
    color: #ffcc00;
    font-size: 2.2rem;
    text-shadow: 2px 2px 0px #000;
}

.info-tab-content p, .info-tab-content li {
    color: #fff1aa;             /* Pale yellow for high visibility */
    font-size: 1.6rem;
    margin-bottom: 15px;
}

/* Match Contact sizing for tab readability consistency */
#sources p,
#sources li {
    font-size: 1.5rem;
    line-height: 1.45;
}

#credits p {
    font-size: 1.35rem !important;
    line-height: 1.45;
}

/* Facts page top-half background image (scrolls away with content) */
#facts .facts-hero-image {
    height: clamp(220px, 35vh, 420px);
    margin: -24px -24px 20px;
    border-radius: 10px 10px 0 0;
    background-image: url('tribble-outside.jpeg');
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(255, 204, 0, 0.25);
}

/* This makes the scrollbar yellow to match your game */
.info-tab-content::-webkit-scrollbar {
    width: 8px;
}
.info-tab-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
.info-tab-content::-webkit-scrollbar-thumb {
    background: #ffcc00;
    border-radius: 10px;
}

.exit-btn {
    margin-left: 50px; /* Separates the back button from the info tabs */
    background-color: #442222 !important; /* Subtle dark red */
    border-color: #aa4444 !important;
}

.exit-btn:hover {
    background-color: #aa4444 !important;
    color: white;
}


/* ===== THANKS PAGE FINAL FIX ===== */
#thanks-page {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    flex-direction: column;

    /* updated colors only */
    background-color: #1b0d00;
    background-image: radial-gradient(circle at center,
    #3a1d00 0%,
    #1b0d00 72%,
    #120800 100%);

    color: #fff1aa;
    /*font-family: 'Special Elite', cursive;*/

    overflow: hidden;
}

/* HEADER LOWERED DOWN */
#thanks-page .info-header-bar {
    flex: 0 0 auto;
    padding: 34px 40px 14px;
    justify-content: center;
    border-bottom: 2px solid rgba(244,191,26,.9);
}

#thanks-page .info-title {
    font-size: 2.6rem;
    margin: 0;
    line-height: 1.1;

    color: #f4bf1a;
    text-shadow: 2px 2px 0 #000;
}

/* BODY */
#thanks-page .info-body {
    flex: 1;
    padding: 18px 28px 24px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
    overflow: hidden;
}

/* CONTENT BOX */
#thanks-page .thanks-content {
    width: min(1100px, 96vw);
    max-width: 1100px;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;

    background: rgba(18,8,0,.82);
    border-radius: 12px;
    border: 1px solid rgba(255,180,0,.08);
    box-shadow: inset 0 0 40px rgba(255,170,0,.03);

    padding: 24px 34px;
    text-align: left;
}

#thanks-page .thanks-content::-webkit-scrollbar {
    width: 8px;
}
#thanks-page .thanks-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.25);
}
#thanks-page .thanks-content::-webkit-scrollbar-thumb {
    background: #f4bf1a;
    border-radius: 10px;
}

#thanks-page .thanks-footer {
    flex: 0 0 auto;
    width: min(1100px, 96vw);
    display: flex;
    justify-content: center;
    padding-top: 2px;
}

/* TEXT */
#thanks-page p {
    font-size: 1.32rem;
    line-height: 1.35;
    margin: 8px 0;
    color: #f1c43b;
}

#thanks-page h2,
#thanks-page h3 {
    color: #f4bf1a;
    text-shadow: 2px 2px 0 #000;
}

#thanks-page h2 {
    font-size: 2.8rem;
    margin: 4px 0 10px;
}

#thanks-page h3 {
    font-size: 1.75rem;
    margin: 16px 0 6px;
}

#thanks-page strong {
    color: #f6e7a8;
}

#thanks-page hr {
    border: none;
    border-top: 1px solid rgba(255,180,0,.35);
    margin: 14px 0;
}


/* KEEP IMPORTANT BUTTON FIXES */
#thanks-page .menu-btn {
    display: flex !important;
    opacity: 1 !important;   /* add this line */
    margin-left: 0 !important;
    margin-right: 0 !important;

    position: relative !important;
    z-index: 10000 !important;

    margin-top: 0 !important;
    padding: 14px 26px !important;

    width: auto !important;
    height: auto !important;

    align-items: center;
    justify-content: center;

    background: #5b1d00 !important;
    color: #f4bf1a !important;

    border: 1px solid rgba(255,190,0,.45) !important;
    border-radius: 6px !important;

    font-family: 'Special Elite', cursive;
    font-size: 1.2rem !important;
    letter-spacing: 1px;

    text-shadow: 1px 1px 0 #000;
    cursor: pointer;
}

#thanks-page .menu-btn:hover {
    background: #7a2900 !important;
    transform: scale(1.03);
}


/* Styling to match the 'Credits' reference precisely */

/* Header (like 'Primary Developer') */
.facts-section-title {
    color: #ffcc00; /* Darker Yellow/Gold */
    font-size: 2.8rem;
    margin-bottom: 5px;
    margin-top: 0;
}

/* Your Name (like 'Alli Swyt' sub-heading) */
.facts-sub-header {
    color: #fff1aa; /* Paler Yellow */
    font-size: 2.2rem;
    margin: 0;
    font-weight: bold;
}

/* Byline (like 'Original Concept' list) */
.facts-byline {
    color: #e6b800; /* Medium Gold */
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Standard Fact Entries (Matches Secondary/Production styles) */
.facts-entry {
    color: #fff1aa; /* Paler Yellow */
    font-size: 1.1rem;
    margin-bottom: 8px; /* Compact spacing */
    margin-top: 0;
    line-height: 1.4;
}

/* Bold Labels (like 'Stephen Neill:') */
.facts-entry strong {
    color: #ffcc00; /* Darker Yellow/Gold */
}

/* Dividing Lines */
.menu-divider {
    border: none;
    border-top: 1px solid #ffcc00;
    opacity: 0.5;
    margin: 20px 0;
}

.menu-divider.short-divider {
    opacity: 0.3;
    width: 50%;
    margin: 20px 0 10px 0;
}


.fade-screen h2 {
    font-family: 'Special Elite', cursive;
    font-size: 50px;
    color: #c9a84c;
    text-shadow: 0 0 15px rgba(200, 160, 0, 0.5);
    letter-spacing: 3px;
}

.fade-screen ul {
    color: #d4b896;
    font-size: 18px;
    line-height: 2;
    text-align: left;
    max-width: 500px;
    font-family: 'Special Elite', cursive;
}

/* ---- SETTINGS ROWS ---- */
.setting-row {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #d4b896;
    font-size: 20px;
    font-family: 'Special Elite', cursive;
    letter-spacing: 2px;
}

.setting-row input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: #c9a84c;
}

/* ---- VOLUME SLIDERS ---- */
input[type="range"] {
    -webkit-appearance: none;
    width: 150px;
    height: 6px;
    border-radius: 3px;
    background: rgba(180, 140, 40, 0.3);
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #c9a84c;
    cursor: pointer;
    border: 1px solid rgba(180, 140, 40, 0.8);
}

.setting-row span {
    color: #c9a84c;
    font-family: 'Special Elite', cursive;
    font-size: 16px;
    width: 30px;
    text-align: right;
}


/* ---- HAMBURGER MENU ---- */
#hamburger-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 300;
}

#hamburger-icon {
    width: 48px;
    height: 48px;
    background: rgba(100, 20, 30, 0.85);
    border: 1px solid rgba(180, 140, 40, 0.5);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

#hamburger-icon:hover {
    background: rgba(130, 30, 40, 0.95);
}

.hamburger-line {
    width: 26px;
    height: 3.5px;
    background-color: #c9a84c;
    border-radius: 2px;
}

#hamburger-dropdown {
    position: absolute;
    right: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
}

#hamburger-dropdown.dropdown-open {
    max-height: 200px;
}

.dropdown-item {
    background: rgba(100, 20, 30, 0.92);
    color: #c9a84c;
    border: 1px solid rgba(180, 140, 40, 0.5);
    border-top: none;
    font-family: 'Special Elite', cursive;
    font-size: 17px;
    letter-spacing: 1px;
    padding: 14px 18px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.dropdown-item:first-child {
    border-top: 1px solid rgba(180, 140, 40, 0.5);
    margin-top: 4px;
}

.dropdown-item:hover {
    background: rgba(130, 30, 40, 0.95);
}


#play {
    width: 100vw;
    height: 100vh;
    background-color: black;
    display: flex;
    align-items: center;    /* Centers vertically */
    justify-content: center; /* Centers horizontally */
    position: absolute;
    top: 0;
    left: 0;
}

/* ---- PRINTER SYNC MINIGAME -----*/
#printer-monitor-area {
    position: relative;
    width: 74%;
    height: 34%;
    background: #000; border: 4px solid #00ff00;
    margin: 10px auto;
    overflow: hidden;
    cursor: pointer;
}
#scanner-bar {
    position: absolute; top: 0; left: 0;
    width: 10px; height: 100%; background: #fff;
    box-shadow: 0 0 15px #fff; z-index: 100; pointer-events: none;
}
#static-target {
    position: absolute; top: 0; height: 100%;
    background: rgba(0, 255, 0, 0.4); border: 2px solid lime;
    z-index: 10; box-sizing: border-box;
}
/* Update these specific lines */
#printer-sync-minigame {
    position: absolute;
    top: 31%;
    left: 30%;
    width: 48%;
    height: 38%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(8, 12, 8, 0.9);
    border: 2px solid rgba(0, 255, 0, 0.45);
    box-shadow: inset 0 0 12px rgba(0, 255, 0, 0.25);
    z-index: 1200;
    pointer-events: auto;
}

#printer-sync-minigame .ui-text {
    margin: 6px 0;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
}
.ui-text { margin-top: 6px; font-size: 0.9rem; }

#printer-back-btn {
    margin-top: 8px;
    background: transparent;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

#printer-back-btn:hover {
    background: #00ff00;
    color: #000;
    box-shadow: 0 0 15px #00ff00;
}


/* ----- WORDLE ---- */

/* The actual "Computer Screen" box */
#wordle-minigame {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center; /* Keeps the base alignment centered */
    z-index: 1000;
    pointer-events: none; /* Allows you to click things behind the transparent area */
}

#wordle-ui-wrapper {
    pointer-events: auto;
    background: #0F0E0D;
    color: #26e600;
    font-family: 'Courier New', Courier, monospace;

    width: 580px;
    /* Added a tiny bit more vertical padding to accommodate the taller grid */
    padding: 20px 30px;
    height: auto;
    margin-top: 6vh;

    border: none;
    box-shadow: none;
    text-align: center;
    border-radius: 4px;
}

#wordle-ui-wrapper h2 {
    font-size: 1.1rem;
    color: #26e600;
    margin-bottom: 10px;
    letter-spacing: 2px;
    border-bottom: 1px solid #26e60044;
    padding-bottom: 5px;
}

/* THE GRID: Wider layout, shorter vertical footprint */
.wordle-grid {
    display: grid;
    grid-template-columns: repeat(5, 55px);
    /* KEY CHANGE: Increased row height slightly to 48px */
    grid-template-rows: repeat(6, 48px);
    /* KEY CHANGE: Increased gap to 10px so boxes don't touch */
    gap: 10px;
    justify-content: center;
    margin: 12px 0;
}

.wordle-tile {
    width: 55px;
    /* KEY CHANGE: Matches the grid row height */
    height: 48px;
    border: 1px solid #333; /* Dark border to define the edges */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem; /* Slightly larger text to match the taller box */
    font-weight: bold;
    color: #26e600;
    background: transparent;
    box-sizing: border-box;
}

/* INPUT SECTION: Compact to save vertical space */
#wordle-input {
    background: #0F0E0D;
    border: 1px solid #26e600;
    color: #26e600;
    font-family: 'Courier New', Courier, monospace;
    width: 180px;
    text-align: center;
    font-size: 1rem;
    padding: 6px;
    margin-top: 5px;
}

.wordle-list-error {
    color: #ff4a4a;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    margin: 8px 0 0;
    min-height: 1.15em;
}

/* RESULTS */
.wordle-tile.correct { background: #538d4e !important; color: white; border: none; }
.wordle-tile.present { background: #c9b458 !important; color: white; border: none; }
.wordle-tile.absent  { background: #3a3a3c !important; color: #888; border: none; }

#wordle-ui-wrapper button {
    background: #222;
    color: #26e600;
    border: 1px solid #26e600;
    padding: 6px 20px;
    margin-top: 10px;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    text-transform: uppercase;
}

#wordle-ui-wrapper button:hover {
    background: #26e600;
    color: #000;
}

#wordle-minigame:not(.hidden) ~ #master-back-arrow,
#wordle-minigame:not(.hidden) ~ #camr-mr-off-hitbox {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden;
}


/* ---- LEFT MONITOR PASSWORD INPUT PAGE --- */
#security-login-minigame {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1005;
    pointer-events: none;
}

#security-ui-wrapper {
    pointer-events: auto;
    background: #0F0E0D;
    color: #26e600;
    font-family: 'Courier New', Courier, monospace;
    width: 450px;
    padding: 0; /* Remove padding to let header stretch */
    margin-top: 6vh;
    border: 1px solid #26e60044;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.terminal-header {
    background: #26e60022;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    border-bottom: 1px solid #26e60044;
}

.terminal-body {
    padding: 30px 20px;
}

.status-line {
    font-size: 0.8rem;
    margin-bottom: 25px;
    opacity: 0.8;
}

.input-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

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

#security-pass-input {
    background: #111;
    border: 1px solid #26e60033;
    color: #26e600;
    outline: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.8rem;
    letter-spacing: 8px;
    width: 200px;
    text-align: center;
    padding: 5px;
    text-transform: uppercase;
}

#security-feedback {
    height: 20px;
    font-size: 0.85rem;
    color: #26e600;
    margin-top: 15px;
}

.security-button-row {
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid #26e60011;
}

.security-button-row button {
    background: transparent;
    border: 1px solid #26e600;
    color: #26e600;
    padding: 8px 20px;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    transition: 0.2s;
}

.security-button-row button:hover {
    background: #26e600;
    color: #000;
}

/* Add this to your CSS file */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.authorizing-text {
    animation: pulse 0.5s infinite;
}

@keyframes scan {
    0% { top: 0%; }
    100% { top: 100%; }
}


/* Ensure 'hidden' works correctly */
/* This tells the browser: "Don't bother calculating anything inside a hidden page" */
.hidden {
    display: none !important;
    pointer-events: none !important;
    contain: strict;
    content-visibility: hidden;
}

#bd-main-page {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: fit-content;
}

/*Hitboxes for bookDropDoorZoomOut*/
#bd-door-hitbox {
    position: absolute;
    top: 3%;
    left: 37%;
    width: 32%;
    height: 93%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

/*hitboxes for bookDropZoomIn */
#bd-slot-hitbox {
    position: absolute;
    top: 51%;
    left: 37%;
    width: 34%;
    height: 24%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#bd-handle-hitbox {
    position: absolute;
    top: 47%;
    left: 20%;
    width: 7%;
    height: 17%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#bd-closed-hitbox {
    position: absolute;
    top: 34%;
    left: 17%;
    width: 64%;
    height: 36%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#bd-key-hitbox {
    position: absolute;
    top: 60%;
    left: 45%;
    width: 9%;
    height: 9%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#bd-slot-open-hitbox {
    position: absolute;
    top: 40%;
    left: 9%;
    width: 82%;
    height: 45%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#bd-door-handle-hitbox {
    position: absolute;
    top: 69%;
    left: 43%;
    width: 31%;
    height: 13%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#bd-door-keyhole-hitbox {
    position: absolute;
    top: 35%;
    left: 42%;
    width: 8%;
    height: 11%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#bd-back-door-hitbox {
    position: absolute;
    top: 22%;
    left: 52%;
    width: 9%;
    height: 52%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#bd-cart-hitbox {
    position: absolute;
    top: 64%;
    left: 37%;
    width: 5%;
    height: 24%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#bd-books-hitbox {
    position: absolute;
    top: 43%;
    left: 29%;
    width: 31%;
    height: 38%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#bd-fb-hitbox {
    position: absolute;
    top: 17%;
    left: 42%;
    width: 27%;
    height: 45%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#bd-fb-key-hitbox {
    position: absolute;
    top: 35%;
    left: 43%;
    width: 8%;
    height: 12%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#bd-fb-open-hitbox {
    position: absolute;
    top: 0%;
    left: 36%;
    width: 32%;
    height: 65%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#bd-back-handle-keyhole-hitbox {
    position: absolute;
    top: 31%;
    left: 44%;
    width: 8%;
    height: 10%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#bd-back-handle-handle-hitbox {
    position: absolute;
    top: 47%;
    left: 42%;
    width: 14%;
    height: 20%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#bd-back-door-enter-hitbox {
    position: absolute;
    top: 6%;
    left: 42%;
    width: 23%;
    height: 92%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#pr-pw-hitbox {
    position: absolute;
    top: 5%;
    left: 0%;
    width: 53%;
    height: 66%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#pr-wr-hitbox {
    position: absolute;
    top: 12%;
    left: 55%;
    width: 17%;
    height: 57%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#pr-pw-hb-hitbox {
    position: absolute;
    top: 37%;
    left: 40%;
    width: 6%;
    height: 9%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#pr-pw-hb-projector-hitbox {
    position: absolute;
    top: 17%;
    left: 47%;
    width: 19%;
    height: 20%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#pr-pw-he-hitbox {
    position: absolute;
    top: 42%;
    left: 31%;
    width: 7%;
    height: 11%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#pr-pw-he-projector-hitbox {
    position: absolute;
    top: 19%;
    left: 39%;
    width: 23%;
    height: 24%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#pr-pw-po-hitbox {
    position: absolute;
    top: 37%;
    left: 70%;
    width: 6%;
    height: 9%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#pr-pw-book-projector-hitbox {
    position: absolute;
    top: 36%;
    left: 19%;
    width: 44%;
    height: 59%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#pr-pw-book-projector-on-hitbox {
    position: absolute;
    top: 36%;
    left: 19%;
    width: 44%;
    height: 59%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#pr-pw-noBook-projector-hitbox {
    position: absolute;
    top: 36%;
    left: 19%;
    width: 44%;
    height: 59%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#pr-pw-noBook-projector-on-hitbox {
    position: absolute;
    top: 36%;
    left: 19%;
    width: 44%;
    height: 59%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#pr-po-pw-hitbox {
    position: absolute;
    top: 5%;
    left: 0%;
    width: 53%;
    height: 66%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#pr-steps-po-enter-hitbox {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#pr-pw-main-book-po-hitbox {
    position: absolute;
    top: 17%;
    left: 48%;
    width: 18%;
    height: 20%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#pr-pw-main-noBook-po-hitbox {
    position: absolute;
    top: 18%;
    left: 40%;
    width: 22%;
    height: 25%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#pr-pw-po-hb-hitbox {
    position: absolute;
    top: 37%;
    left: 40%;
    width: 6%;
    height: 9%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#pr-pw-po-he-hitbox {
    position: absolute;
    top: 42%;
    left: 31%;
    width: 7%;
    height: 11%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#pr-pw-po-he-diamond-hitbox {
    position: absolute;
    top: 31%;
    left: 81%;
    width: 8%;
    height: 18%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}


#pr-pw-po-hb-diamond-hitbox {
    position: absolute;
    top: 27%;
    left: 79%;
    width: 8%;
    height: 15%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}


#pr-po-wr-hitbox {
    position: absolute;
    top: 12%;
    left: 55%;
    width: 17%;
    height: 57%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#pr-pw-hole-book-hitbox {
    position: absolute;
    top: 55%;
    left: 27%;
    width: 27%;
    height: 22%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#pr-pw-hole-noBook-hitbox {
    position: absolute;
    top: 33%;
    left: 34%;
    width: 36%;
    height: 40%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#pr-wr-wires-hitbox {
    position: absolute;
    top: 0%;
    left: 25%;
    width: 48%;
    height: 99%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#pr-wr-box-hitbox {
    position: absolute;
    top: 6%;
    left: 48%;
    width: 24%;
    height: 78%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#pr-wr-puzzle-hitbox {
    position: absolute;
    top: 27%;
    left: 32%;
    width: 67%;
    height: 35%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}


/* ---- HINT BUTTON ---- */
#hint-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
    background: rgba(100, 20, 30, 0.85);
    color: #c9a84c;
    border: 1px solid rgba(180, 140, 40, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Special Elite', cursive;
    font-size: 28px;
    cursor: pointer;
    z-index: 300;
    transition: background 0.2s, transform 0.1s;
}

#hint-btn:hover {
    background: rgba(130, 30, 40, 0.95);
    transform: scale(1.05);
}

#hint-btn:active {
    transform: scale(0.95);
}

/* ---- HINT BOX ---- */
#hint-box {
    position: absolute;
    bottom: 86px;
    right: 20px;
    width: 320px;
    background: rgba(100, 20, 30, 0.92);
    color: #c9a84c;
    border: 0px solid rgba(180, 140, 40, 0.5);
    border-radius: 4px;
    font-family: 'Special Elite', cursive;
    font-size: 18px;
    letter-spacing: 1px;
    line-height: 1.7;
    padding: 16px 18px;
    z-index: 299;
    overflow: hidden;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#hint-box.hint-open {
    max-height: 300px;
    padding: 16px 18px;
    border-width: 1px;
}

/* ---- MAP SCREEN ---- */
#map-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #1a0f00;
    background-image: radial-gradient(ellipse at center, rgba(180, 120, 0, 0.35) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 400;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

#map-title {
    font-family: 'Special Elite', cursive;
    font-size: 50px;
    color: #c9a84c;
    text-shadow: 0 0 15px rgba(200, 160, 0, 0.5);
    letter-spacing: 3px;
    margin: 0;
}

#map-canvas {
    border: 2px solid rgba(180, 140, 40, 0.5);
    border-radius: 4px;
}

/* ---- IN-GAME SETTINGS PANEL ---- */
#ingame-settings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #1a0f00;
    background-image: radial-gradient(ellipse at center, rgba(180, 120, 0, 0.35) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 400;
    animation: fadeIn 0.5s ease forwards;
}

#ingame-settings-title {
    font-family: 'Special Elite', cursive;
    font-size: 50px;
    color: #c9a84c;
    text-shadow: 0 0 15px rgba(200, 160, 0, 0.5);
    letter-spacing: 3px;
    margin: 0;
}

/* ---- WIRE PUZZLE ---- */
#wire-puzzle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #1a0f00;
    background-image: radial-gradient(ellipse at center, rgba(180, 120, 0, 0.35) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 500;
    animation: fadeIn 0.5s ease forwards;
}

#wire-puzzle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
}

#wire-puzzle-title {
    font-family: 'Special Elite', cursive;
    font-size: 40px;
    color: #c9a84c;
    text-shadow: 0 0 15px rgba(200, 160, 0, 0.5);
    letter-spacing: 3px;
    margin: 0;
}

#wire-canvas {
    border: 2px solid rgba(180, 140, 40, 0.5);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
    cursor: crosshair;
}

#wire-exit-btn {
    opacity: 1;
}

/* ---- WIRE SOLVED POPUP ---- */
#wire-solved-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a0f00;
    border: 2px solid #c9a84c;
    border-radius: 8px;
    padding: 30px 40px;
    text-align: center;
    z-index: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 0 30px rgba(200, 160, 0, 0.4);
}

#wire-solved-popup p {
    font-family: 'Special Elite', cursive;
    font-size: 20px;
    color: #d4b896;
    margin: 0;
    letter-spacing: 1px;
}

#wire-code {
    font-family: 'Special Elite', cursive;
    font-size: 48px;
    color: #c9a84c;
    text-shadow: 0 0 20px rgba(200, 160, 0, 0.8);
    margin: 0;
    letter-spacing: 8px;
}

#wire-popup-close {
    opacity: 1;
}

#ki-door-handle-hitbox {
    position: absolute;
    top: 55%;
    left: 35%;
    width: 7%;
    height: 8%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#ki-door-handle-keyhole-hitbox {
    position: absolute;
    top: 34%;
    left: 40%;
    width: 6%;
    height: 7%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#ki-door-handle-handle-hitbox {
    position: absolute;
    top: 50%;
    left: 40%;
    width: 18%;
    height: 8%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#ki-door-open-hitbox {
    position: absolute;
    top: 7%;
    left: 36%;
    width: 31%;
    height: 90%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-door-handle-hitbox {
    position: absolute;
    top: 51%;
    left: 33%;
    width: 7%;
    height: 11%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-door-handle-keyhole-hitbox {
    position: absolute;
    top: 24%;
    left: 40%;
    width: 8%;
    height: 11%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-door-handle-handle-hitbox {
    position: absolute;
    top: 50%;
    left: 39%;
    width: 26%;
    height: 11%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}


/* ----- INVENTORY INSPECTION ---- */
/* Container holds the book and hitbox together */

/* Overlay wrapper */
#item-overlay {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Blurred background layer */
.overlay-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 1;
}

/* image container */
.item-container {
    position: relative;
    z-index: 2;
    background: transparent;
    box-shadow: none;
    padding: 0;
    pointer-events: none;
}
#item-overlay-img,
#overlay-hitbox-layer,
#item-close-btn {
    pointer-events: auto;
}

/* Item image */
#item-overlay-img {
    /* Increase these two values to zoom in */
    max-width: 95vw;   /* Was 70vw */
    max-height: 95vh;  /* Was 80vh */

    /* Keep these to ensure it stays centered and sharp */
    width: auto;
    height: auto;
    display: block;
    margin: auto;
}

/* Close button */
#item-close-btn {
    position: fixed !important; /* Changed from absolute to lock to screen */
    top: 30px !important;       /* Exactly 50px from top */
    right: 50px !important;     /* Exactly 50px from right */

    background: white !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer;
    font-size: 18px;
    padding: 5px 10px;
    z-index: 10005 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Wraps note image + optional reader side panel */
#item-overlay-body {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    pointer-events: none;
}

#item-overlay-body .item-container,
#item-overlay-body .note-open-reader-btn,
#item-overlay-body .note-reader-panel {
    pointer-events: auto;
}

/* Split view: note left, readable transcript right (wr-reddit etc.) */
#item-overlay.overlay-reader-active .item-overlay-body {
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
}

#item-overlay.overlay-reader-active .item-container {
    flex: 0 0 50%;
    max-width: 50%;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-width: 0;
}

#item-overlay.overlay-reader-active #item-overlay-img {
    max-width: 100%;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Yellow center → burgundy rim so “Open reader” reads clearly over overlays */
.note-open-reader-btn {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10003;
    width: 200px;
    height: 50px;
    padding: 0;
    font-size: 18px;
    font-family: 'Special Elite', cursive;
    letter-spacing: 2px;
    font-weight: normal;
    color: #2a0a0e;
    text-shadow: 0 1px 0 rgba(255, 230, 140, 0.75);
    background: radial-gradient(
        ellipse 85% 130% at 50% 45%,
        #ffcc00 0%,
        #f0b020 32%,
        #9c2838 68%,
        #5c141c 88%,
        #3a0c12 100%
    );
    border: 2px solid rgba(100, 25, 35, 0.95);
    box-shadow:
        0 2px 0 rgba(255, 220, 100, 0.35) inset,
        0 4px 16px rgba(0, 0, 0, 0.55),
        0 0 22px rgba(255, 200, 60, 0.25);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.note-open-reader-btn:hover {
    filter: brightness(1.08) saturate(1.05);
    transform: translateX(-50%) scale(1.06);
    box-shadow:
        0 2px 0 rgba(255, 235, 160, 0.45) inset,
        0 6px 22px rgba(0, 0, 0, 0.55),
        0 0 28px rgba(255, 210, 80, 0.45);
}

.note-open-reader-btn:active {
    filter: brightness(0.92);
    transform: translateX(-50%) scale(0.97);
}

/* Same palette as #menu-screen / info flow — deep brown + gold radial, extra darken for reader */
.note-reader-panel {
    flex: 0 0 50%;
    max-width: 50%;
    width: 50%;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    align-self: stretch;
    margin: 10px 14px 10px 8px;
    padding: 14px 18px 18px;
    background-color: #1a0f00;
    background-image:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0.5) 100%),
        radial-gradient(ellipse at center, rgba(180, 120, 0, 0.35) 0%, transparent 70%);
    border: 2px solid #c9a84c;
    border-radius: 8px;
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.75),
        inset 0 0 72px rgba(0, 0, 0, 0.5);
}

#item-overlay.overlay-reader-active .note-reader-panel:not(.hidden) {
    display: flex !important;
}

.note-close-reader-btn {
    flex: 0 0 auto;
    align-self: flex-start;
    margin-bottom: 12px;
    min-width: 180px;
    height: 44px;
    padding: 0 16px;
    font-size: 16px;
    font-family: 'Special Elite', cursive;
    letter-spacing: 1px;
    font-weight: normal;
    color: #c9a84c;
    background: rgba(100, 20, 30, 0.85);
    border: 1px solid rgba(180, 140, 40, 0.5);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: background 0.2s, transform 0.1s;
}

.note-close-reader-btn:hover {
    background: rgba(130, 30, 40, 0.95);
    transform: scale(1.03);
}

.note-close-reader-btn:active {
    transform: scale(0.97);
}

.note-reader-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 8px;
    -webkit-user-select: text;
    user-select: text;
}

/* Body copy: readable serif on burgundy; tint aligns with gold theme */
.note-reader-scroll p {
    color: #f0e4c8;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.45rem;
    line-height: 1.5;
    margin: 0 0 14px;
}

.note-reader-meta {
    font-size: 1.1rem !important;
    font-family: Georgia, 'Times New Roman', serif;
    color: #c9a84c !important;
    margin-bottom: 18px !important;
}

.note-reader-doc-heading {
    text-align: center;
    margin-bottom: 20px !important;
}

.note-reader-headline {
    font-size: 1.75rem;
    font-weight: bold;
    color: #c9a84c;
    margin: 0 0 6px !important;
    font-family: Georgia, 'Times New Roman', serif;
}

.note-reader-subhead {
    font-size: 1.25rem;
    color: #dcc896;
    margin: 0 0 16px !important;
    font-family: Georgia, 'Times New Roman', serif;
}

.note-reader-handwriting {
    font-style: italic;
    color: #e8dcc8;
    margin-top: 20px !important;
    padding-top: 12px;
    border-top: 1px solid rgba(201, 168, 76, 0.35);
}

/* Long article: slightly smaller body copy, still scrollable */
.note-reader-panel--long .note-reader-scroll p:not(.note-reader-headline):not(.note-reader-subhead):not(.note-reader-meta) {
    font-size: 1.2rem;
    line-height: 1.48;
}

.note-reader-scroll::-webkit-scrollbar {
    width: 8px;
}
.note-reader-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.45);
}
.note-reader-scroll::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.75);
    border-radius: 10px;
}
.note-reader-scroll::-webkit-scrollbar-thumb:hover {
    background: #c9a84c;
}

/* ---- WR whiteboard: fullscreen-style helper reader (info page–sized column) ---- */
#wr-note-reader-overlay {
    position: fixed;
    inset: 0;
    z-index: 450;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wr-note-reader-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(7px);
}

.wr-note-reader-close-btn {
    position: fixed !important;
    top: 28px !important;
    right: 44px !important;
    z-index: 3;
    background: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer;
    font-size: 18px;
    padding: 5px 10px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}

.wr-note-reader-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: min(24px, 4vh) min(20px, 3vw);
    pointer-events: none;
}

/* Match .info-tab-content width + max height; same menu brown as info flow */
.wr-note-reader-panel {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    width: min(700px, 50vw);
    max-width: 96vw;
    max-height: 70vh;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background-color: #1a0f00;
    background-image: radial-gradient(ellipse at center, rgba(180, 120, 0, 0.35) 0%, transparent 70%);
    border: 1px solid rgba(255, 204, 0, 0.25);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.6);
}

.wr-note-reader-title {
    flex: 0 0 auto;
    margin: 0;
    padding: 14px 24px 12px;
    border-bottom: 3px solid #ffcc00;
    color: #ffcc00;
    font-family: 'Special Elite', cursive;
    font-size: clamp(1.25rem, 2.5vw, 1.85rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 #000;
}

.wr-note-reader-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 24px;
    -webkit-user-select: text;
    user-select: text;
}

.wr-note-reader-scroll p {
    color: #fff1aa;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.6rem;
    line-height: 1.45;
    margin: 0 0 15px;
}

.wr-note-reader-scroll p:last-child {
    margin-bottom: 0;
}

.wr-note-reader-scroll::-webkit-scrollbar {
    width: 8px;
}
.wr-note-reader-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
.wr-note-reader-scroll::-webkit-scrollbar-thumb {
    background: #ffcc00;
    border-radius: 10px;
}

/* ---- Inventory Item Hitboxes ----*/

#overlay-hitbox-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 600;
}

#pw-book-hitbox {
    position: absolute;
    top: 20%;
    left: 34%;
    width: 36%;
    height: 73%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#pw-book-key-hitbox {
    position: absolute;
    top: 49%;
    left: 46%;
    width: 7%;
    height: 13%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#pw-book-open-hitbox {
    position: absolute;
    top: 16%;
    left: 10%;
    width: 66%;
    height: 71%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#sherlock-book-hitbox {
    position: absolute;
    top: 6%;
    left: 30%;
    width: 39%;
    height: 78%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#sherlock-book-open-hitbox {
    position: absolute;
    top: 9%;
    left: 9%;
    width: 77%;
    height: 82%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#sherlock-book-open-un-hitbox {
    position: absolute;
    top: 16%;
    left: 47%;
    width: 3%;
    height: 9%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#sherlock-book-open-der-hitbox {
    position: absolute;
    top: 17%;
    left: 69%;
    width: 2%;
    height: 7%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#sherlock-book-open-animals-hitbox {
    position: absolute;
    top: 83%;
    left: 39%;
    width: 8%;
    height: 8%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

/* KITCHEN HITBOXES */
#ki-main-pt-code-hitbox {
    position: absolute;
    top: 20%;
    left: 49%;
    width: 9%;
    height: 21%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#ki-main-pt-noCode-hitbox {
    position: absolute;
    top: 14%;
    left: 43%;
    width: 15%;
    height: 31%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#ki-pt-code-hitbox {
    position: absolute;
    top: 64%;
    left: 35%;
    width: 27%;
    height: 18%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#ki-pt-noCode-hitbox {
    position: absolute;
    top: 66%;
    left: 29%;
    width: 39%;
    height: 15%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#ki-pt-wall-code-hitbox {
    position: absolute;
    top: 0%;
    left: 33%;
    width: 47%;
    height: 99%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#ki-pt-wall-hitbox {
    position: absolute;
    top: 16%;
    left: 55%;
    width: 18%;
    height: 64%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

/* --- BACK HALL --- */
#bh-bath-hitbox {
    position: absolute;
    top: 1%;
    left: 25%;
    width: 22%;
    height: 84%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#bh-exit-door-hitbox {
    position: absolute;
    top: 1%;
    left: 63%;
    width: 33%;
    height: 56%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#bh-sh-cr-do-hitbox {
    position: absolute;
    top: 3%;
    left: 19%;
    width: 29%;
    height: 84%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#sh-entrance-hitbox {
    position: absolute;
    top: 0%;
    left: 25%;
    width: 57%;
    height: 99%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#bh-entrance-hitbox {
    position: absolute;
    top: 0%;
    left: 19%;
    width: 64%;
    height: 99%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#bh-sh-cr-dc-hitbox {
    position: absolute;
    top: 3%;
    left: 16%;
    width: 28%;
    height: 89%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#bh-sh-cr-dc-sh-hitbox {
    position: absolute;
    top: 3%;
    left: 55%;
    width: 20%;
    height: 89%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#bh-sh-cr-do-sh-hitbox {
    position: absolute;
    top: 3%;
    left: 59%;
    width: 20%;
    height: 89%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

/* Position the grid over the physical buttons in the photo */
.button-grid {
    position: absolute;
    /* Adjusted coordinates specifically for the blue buttons */
    top: 37.5%;
    left: 37.5%;
    width: 23.5%;
    height: 35.5%;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 8px; /* Gap in pixels works well here */
    z-index: 15;
}

/* Base style for the keypad buttons */
.button-grid .hitbox {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(8, 22, 8, 0.9);
    color: #26e600;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(38, 230, 0, 0.7);
    box-shadow: inset 0 0 0 1px rgba(38, 230, 0, 0.55);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.button-grid .hitbox:hover {
    background: rgba(12, 40, 12, 0.95);
}

/* --- REMOVE GLOW --- */
/* This specifically targets the ::after pseudo-element
   (your glow effect) only for hitboxes within the keypad container
   and hides it completely. */
#sh-cr-door-keypad-page .hitbox::after,
#bh-sh-cr-door-keypad-page .hitbox::after {
    display: none !important;
}

/* ----- CREEPY ROOM ----*/

#cr-door-open-hitbox {
    position: absolute;
    top: 0;
    left: 33%;
    width: 35%;
    height: 100%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#bh-sh-cr-door-closed-hitbox {
    position: absolute;
    top: 44%;
    left: 57%;
    width: 10%;
    height: 22%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#bh-sh-cr-door-handle-keypad-hitbox {
    position: absolute;
    top: 15%;
    left: 48%;
    width: 10%;
    height: 21%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#bh-sh-cr-door-handle-handle-hitbox {
    position: absolute;
    top: 54%;
    left: 35%;
    width: 20%;
    height: 14%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cr-board-hitbox {
    position: absolute;
    top: 16%;
    left: 10%;
    width: 66%;
    height: 71%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cr-main-2dc-couches-hitbox {
    position: absolute;
    top: 28%;
    left: 0%;
    width: 37%;
    height: 67%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cr-main-2dc-doors-hitbox {
    position: absolute;
    top: 16%;
    left: 59%;
    width: 35%;
    height: 67%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cr-main-1dc-couches-hitbox {
    position: absolute;
    top: 30%;
    left: 0%;
    width: 44%;
    height: 69%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cr-main-1dc-doors-hitbox {
    position: absolute;
    top: 11%;
    left: 68%;
    width: 24%;
    height: 55%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cr-doors-2dc-rd-hitbox {
    position: absolute;
    top: 12%;
    left: 68%;
    width: 21%;
    height: 82%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

/*#cr-doors-2dc-ld-hitbox {*/
/*    position: absolute;*/
/*    top: 18%;*/
/*    left: 40%;*/
/*    width: 17%;*/
/*    height: 59%;*/

/*    background-color: transparent;*/
/*    border: 2px solid transparent;*/
/*    cursor: pointer; !* makes 'hand' icon so players know to click *!*/
/*    z-index: 10;*/
/*}*/

/*#cr-doors-1dc-ld-hitbox {*/
/*    position: absolute;*/
/*    top: 9%;*/
/*    left: 28%;*/
/*    width: 20%;*/
/*    height: 70%;*/

/*    background-color: transparent;*/
/*    border: 2px solid transparent;*/
/*    cursor: pointer; !* makes 'hand' icon so players know to click *!*/
/*    z-index: 10;*/
/*}*/

#cr-doors-1dc-rd-hitbox {
    position: absolute;
    top: 3%;
    left: 65%;
    width: 21%;
    height: 87%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cr-1dc-ld-door-closed-hitbox {
    position: absolute;
    top: 9%;
    left: 28%;
    width: 20%;
    height: 70%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cr-doors-cam-ld-hitbox {
    position: absolute;
    top: 18%;
    left: 20%;
    width: 20%;
    height: 70%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cr-doors-ld-hitbox {
    position: absolute;
    top: 18%;
    left: 20%;
    width: 20%;
    height: 70%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cr-doors-rd-hitbox {
    position: absolute;
    top: 15%;
    left: 56%;
    width: 21%;
    height: 78%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cr-doors-cam-rd-hitbox {
    position: absolute;
    top: 15%;
    left: 56%;
    width: 21%;
    height: 78%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#clr-main-cloth-hitbox {
    position: absolute;
    top: 10%;
    left: 56%;
    width: 25%;
    height: 40%;
    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#clr-main-id-cloth-hitbox {
    position: absolute;
    top: 10%;
    left: 56%;
    width: 25%;
    height: 40%;
    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#clr-main-id-id-hitbox {
    position: absolute;
    top: 53%;
    left: 46%;
    width: 15%;
    height: 7%;
    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#clr-cloth-hitbox {
    position: absolute;
    top: 38%;
    left: 41%;
    width: 39%;
    height: 59%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#clr-cloth-octagon-hitbox {
    position: absolute;
    top: 37%;
    left: 43%;
    width: 30%;
    height: 40%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cr-main-couches-hitbox  {
    position: absolute;
    top: 42%;
    left: 11%;
    width: 32%;
    height: 45%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cr-main-doors-hitbox  {
    position: absolute;
    left: 64%;
    width: 23%;
    height: 49%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cr-couches-key-couch-hitbox {
    position: absolute;
    top: 26%;
    left: 56%;
    width: 34%;
    height: 49%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cr-couch-key-zoom-hitbox {
    position: absolute;
    top: 16%;
    left: 41%;
    width: 35%;
    height: 32%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cr-couch-key-hitbox {
    position: absolute;
    top: 44%;
    left: 42%;
    width: 9%;
    height: 14%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cr-couch-hitbox {
    position: absolute;
    top: 34%;
    left: 19%;
    width: 66%;
    height: 31%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cr-couch-zoom-hitbox {
    position: absolute;
    top: 0%;
    left: 35%;
    width: 49%;
    height: 53%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cr-couches-couch-hitbox {
    position: absolute;
    top: 37%;
    left: 56%;
    width: 27%;
    height: 43%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cr-doors-1dc-cam-ld-hitbox {
    position: absolute;
    top: 11%;
    left: 30%;
    width: 19%;
    height: 67%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cr-doors-1dc-cam-rd-hitbox {
    position: absolute;
    top: 5%;
    left: 64%;
    width: 17%;
    height: 86%;
    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

/* ----- CAMERA ROOM PAGES ----- */
#cr-camr-door-closed-hitbox {
    position: absolute;
    top: 3%;
    left: 39%;
    width: 30%;
    height: 96%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#camr-wp-hitbox {
    position: absolute;
    top: 20%;
    left: 34%;
    width: 23%;
    height: 66%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#camr-we-hitbox {
    position: absolute;
    top: 2%;
    left: 28%;
    width: 37%;
    height: 89%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#camr-mlo-we-hitbox {
    position: absolute;
    top: 3%;
    left: 65%;
    width: 21%;
    height: 87%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#camr-ml-off-hitbox {
    position: absolute;
    top: 16%;
    left: 5%;
    width: 91%;
    height: 72%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#camr-ml-on-hitbox {
    position: absolute;
    top: 23%;
    left: 12%;
    width: 77%;
    height: 57%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#camr-ml-on-person-hitbox {
    position: absolute;
    top: 24%;
    left: 18%;
    width: 45%;
    height: 49%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#camr-mr-off-hitbox {
    position: absolute;
    top: 18%;
    left: 6%;
    width: 90%;
    height: 72%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#camr-main-ml-hitbox {
    position: absolute;
    top: 30%;
    left: 39%;
    width: 20%;
    height: 24%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#camr-main-ml-on-person-hitbox {
    position: absolute;
    top: 30%;
    left: 39%;
    width: 20%;
    height: 24%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#camr-main-mlo-ml-hitbox {
    position: absolute;
    top: 30%;
    left: 39%;
    width: 20%;
    height: 24%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#camr-main-mlo-mr-hitbox {
    position: absolute;
    top: 30%;
    left: 39%;
    width: 20%;
    height: 24%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#camr-main-mlo-window-hitbox {
    position: absolute;
    top: 30%;
    left: 39%;
    width: 20%;
    height: 24%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#camr-main-mr-hitbox {
    position: absolute;
    top: 29%;
    left: 70%;
    width: 24%;
    height: 25%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#camr-main-window-hitbox {
    position: absolute;
    top: 19%;
    left: 15%;
    width: 17%;
    height: 66%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#camr-main-wp-ml-hitbox {
    position: absolute;
    top: 30%;
    left: 39%;
    width: 20%;
    height: 24%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#camr-main-wp-mr-hitbox {
    position: absolute;
    top: 29%;
    left: 70%;
    width: 24%;
    height: 25%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#camr-main-wp-window-hitbox {
    position: absolute;
    top: 19%;
    left: 15%;
    width: 17%;
    height: 76%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

/* ----- MAIN HALL PAGES ---- */
#mh-sl-right-endc-sl-hitbox {
    position: absolute;
    top: 3%;
    left: 9%;
    width: 13%;
    height: 95%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#mh-bh-right-endc-bh-hitbox {
    position: absolute;
    top: 13%;
    left: 72%;
    width: 17%;
    height: 67%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#mh-bd-right-endc-bd-hitbox {
    position: absolute;
    top: 4%;
    left: 13%;
    width: 11%;
    height: 90%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#mh-li-right-endc-li-hitbox {
    position: absolute;
    top: 3%;
    left: 14%;
    width: 14%;
    height: 96%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#mh-li-left-endc-li-hitbox {
    position: absolute;
    top: 9%;
    left: 75%;
    width: 14%;
    height: 90%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#mh-bd-left-endc-bd-hitbox {
    position: absolute;
    top: 3%;
    left: 77%;
    width: 16%;
    height: 94%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#mh-bh-left-endc-bh-hitbox {
    position: absolute;
    top: 10%;
    left: 16%;
    width: 13%;
    height: 77%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#mh-sl-left-endc-sl-hitbox {
    position: absolute;
    top: 8%;
    left: 77%;
    width: 14%;
    height: 87%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}


#mh-tu-stairs-door-hitbox {
    position: absolute;
    top: 3%;
    left: 28%;
    width: 41%;
    height: 96%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#mh-li-right-endc-sd-hitbox {
    position: absolute;
    top: 23%;
    left: 69%;
    width: 9%;
    height: 45%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#mh-cend-right-endc-ki-hitbox {
    position: absolute;
    top: 17%;
    left: 65%;
    width: 14%;
    height: 67%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#mh-cend-right-endc-cw-hitbox {
    position: absolute;
    top: 23%;
    left: 26%;
    width: 21%;
    height: 47%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

/* ----- C-WING PAGES ---- */
#cw-entrance-3-eh-hitbox {
    position: absolute;
    top: 7%;
    left: 62%;
    width: 30%;
    height: 82%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-left-2-oh1-entrance-hitbox {
    position: absolute;
    top: 4%;
    left: 13%;
    width: 10%;
    height: 89%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-left-bath-hitbox {
    position: absolute;
    top: 0%;
    left: 16%;
    width: 12%;
    height: 99%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-right-bath-hitbox {
    position: absolute;
    top: 2%;
    left: 78%;
    width: 20%;
    height: 97%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-right-bath-aw-hitbox {
    position: absolute;
    top: 12%;
    left: 66%;
    width: 8%;
    height: 66%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-left-eh-hitbox {
    position: absolute;
    top: 3%;
    left: 74%;
    width: 21%;
    height: 96%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-left-snh-wro-snh-hitbox {
    position: absolute;
    top: 2%;
    left: 71%;
    width: 24%;
    height: 96%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-left-snh-wrc-snh-hitbox {
    position: absolute;
    top: 2%;
    left: 71%;
    width: 24%;
    height: 96%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-right-snh-hitbox {
    position: absolute;
    top: 2%;
    left: 13%;
    width: 14%;
    height: 69%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-right-aw-hitbox {
    position: absolute;
    top: 2%;
    left: 70%;
    width: 16%;
    height: 95%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-right-aw-eh-hitbox {
    position: absolute;
    top: 10%;
    left: 25%;
    width: 7%;
    height: 63%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-right-eh-hitbox {
    position: absolute;
    top: 1%;
    left: 4%;
    width: 24%;
    height: 96%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-right-oh1-hitbox {
    position: absolute;
    top: 4%;
    left: 69%;
    width: 15%;
    height: 91%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-right-print-oh1-hitbox {
    position: absolute;
    top: 2%;
    left: 73%;
    width: 14%;
    height: 97%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-right-print-oh2-hitbox {
    position: absolute;
    top: 2%;
    left: 6%;
    width: 17%;
    height: 68%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-stairs-entrance-hitbox {
    position: absolute;
    top: 16%;
    left: 23%;
    width: 8%;
    height: 71%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-stairs-entrance-hitbox {
    position: absolute;
    top: 0%;
    left: 23%;
    width: 58%;
    height: 99%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-oh2-entrance-hitbox {
    position: absolute;
    top: 0%;
    left: 30%;
    width: 42%;
    height: 95%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-oh2-exit-oh1-hitbox {
    position: absolute;
    top: 0%;
    left: 30%;
    width: 37%;
    height: 95%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#oh1-exit-1-hitbox {
    position: absolute;
    top: 0%;
    left: 23%;
    width: 58%;
    height: 99%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#oh1-exit-2-hitbox {
    position: absolute;
    top: 0%;
    left: 23%;
    width: 58%;
    height: 99%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#oh1-right-2-exit-hitbox {
    position: absolute;
    top: 0%;
    left: 23%;
    width: 58%;
    height: 99%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#oh1-right-2-exit-hitbox {
    position: absolute;
    top: 0%;
    left: 68%;
    width: 14%;
    height: 99%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#oh1-right-3-exit-hitbox {
    position: absolute;
    top: 0%;
    left: 64%;
    width: 15%;
    height: 99%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#oh1-left-2-exit-hitbox {
    position: absolute;
    top: 0%;
    left: 16%;
    width: 12%;
    height: 99%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#oh2-exit-hitbox {
    position: absolute;
    top: 0%;
    left: 28%;
    width: 41%;
    height: 99%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}



#cw-aw-return-hitbox {
    position: absolute;
    top: 16%;
    left: 23%;
    width: 8%;
    height: 71%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#mh-cw-stairs-rubble-hitbox {
    position: absolute;
    top: 5%;
    left: 30%;
    width: 17%;
    height: 62%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#mh-cw-stairs-hitbox {
    position: absolute;
    top: 29%;
    left: 52%;
    width: 21%;
    height: 52%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#stairs-aw-door-hitbox {
    position: absolute;
    top: 5%;
    left: 30%;
    width: 27%;
    height: 87%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#mh-cw-stairs-door-hitbox {
    position: absolute;
    top: 5%;
    left: 30%;
    width: 17%;
    height: 62%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#mh-cw-door-hitbox {
    position: absolute;
    top: 50%;
    left: 28%;
    width: 12%;
    height: 38%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#mh-cw-door-plate-hitbox {
    position: absolute;
    top: 28%;
    left: 42%;
    width: 5%;
    height: 15%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#mh-cw-plate-hitbox {
    position: absolute;
    top: 43%;
    left: 37%;
    width: 23%;
    height: 31%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#mh-bw-door-hitbox {
    position: absolute;
    top: 15%;
    left: 37%;
    width: 22%;
    height: 53%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-stairs-door-hitbox {
    position: absolute;
    top: 0%;
    left: 21%;
    width: 52%;
    height: 99%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-bath-door-hitbox {
    position: absolute;
    top: 4%;
    left: 35%;
    width: 34%;
    height: 95%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#bath-sink-hitbox {
    position: absolute;
    top: 32%;
    left: 28%;
    width: 23%;
    height: 21%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#bath-sink-sink-hitbox {
    position: absolute;
    top: 22%;
    left: 24%;
    width: 52%;
    height: 33%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-wr-do-hitbox {
    position: absolute;
    top: 37%;
    left: 37%;
    width: 11%;
    height: 16%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-wr-dc-hitbox {
    position: absolute;
    top: 45%;
    left: 27%;
    width: 16%;
    height: 22%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-left-snh-wrc-hitbox {
    position: absolute;
    top: 22%;
    left: 24%;
    width: 52%;
    height: 33%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-left-snh-wro-hitbox {
    position: absolute;
    top: 22%;
    left: 24%;
    width: 52%;
    height: 33%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-elevator-hitbox {
    position: absolute;
    top: 56%;
    left: 21%;
    width: 6%;
    height: 15%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-wr-scanner-hitbox {
    position: absolute;
    top: 31%;
    left: 29%;
    width: 10%;
    height: 21%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-wr-unlocked-handle-hitbox {
    position: absolute;
    top: 41%;
    left: 52%;
    width: 22%;
    height: 33%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-wr-locked-handle-hitbox {
    position: absolute;
    top: 41%;
    left: 52%;
    width: 22%;
    height: 33%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#eh-door-plate-hitbox {
    position: absolute;
    top: 21%;
    left: 16%;
    width: 21%;
    height: 27%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#eh-door-sign-hitbox {
    position: absolute;
    top: 20%;
    left: 44%;
    width: 40%;
    height: 69%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#eh-door-stuff-hitbox {
    position: absolute;
    top: 27%;
    left: 41%;
    width: 27%;
    height: 25%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#oh3-entrance-hitbox {
    position: absolute;
    top: 0%;
    left: 61%;
    width: 31%;
    height: 99%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#oh1-left-4-key-books-hitbox {
    position: absolute;
    top: 37%;
    left: 49%;
    width: 15%;
    height: 15%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#oh1-books-key-hitbox {
    position: absolute;
    top: 30%;
    left: 37%;
    width: 7%;
    height: 14%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#oh1-books-hitbox {
    position: absolute;
    top: 29%;
    left: 28%;
    width: 57%;
    height: 33%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-oh1-entrance-hitbox {
    position: absolute;
    top: 0%;
    left: 27%;
    width: 45%;
    height: 99%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#wr-left-desk-key-hitbox {
    position: absolute;
    top: 35%;
    left: 39%;
    width: 27%;
    height: 33%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#wr-left-desk-hitbox {
    position: absolute;
    top: 33%;
    left: 42%;
    width: 28%;
    height: 32%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#wr-desk-key-hitbox {
    position: absolute;
    top: 53%;
    left: 60%;
    width: 6%;
    height: 6%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#wr-desk-hitbox {
    position: absolute;
    top: 10%;
    left: 5%;
    width: 83%;
    height: 55%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#wr-right-papers-hitbox {
    position: absolute;
    top: 58%;
    left: 36%;
    width: 10%;
    height: 7%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#wr-papers-tu-hitbox {
    position: absolute;
    top: 31%;
    left: 49%;
    width: 26%;
    height: 34%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#wr-papers-ogb-hitbox {
    position: absolute;
    top: 6%;
    left: 38%;
    width: 23%;
    height: 16%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#wr-papers-reddit-hitbox {
    position: absolute;
    top: 68%;
    left: 22%;
    width: 45%;
    height: 27%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#wr-right-note-papers-hitbox {
    position: absolute;
    top: 60%;
    left: 37%;
    width: 11%;
    height: 6%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#wr-right-note-note-hitbox {
    position: absolute;
    top: 28%;
    left: 49%;
    width: 21%;
    height: 20%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#wr-note-hitbox {
    position: absolute;
    top: 13%;
    left: 5%;
    width: 86%;
    height: 77%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#printer-hitbox {
    position: absolute;
    top: 33%;
    left: 39%;
    width: 24%;
    height: 46%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#printer-paper-hitbox {
    position: absolute;
    top: 36%;
    left: 38%;
    width: 25%;
    height: 48%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#print-paper-hitbox {
    position: absolute;
    top: 47%;
    left: 19%;
    width: 17%;
    height: 25%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#cw-right-print-room-hitbox {
    position: absolute;
    top: 17%;
    left: 37%;
    width: 23%;
    height: 68%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#print-screen-hitbox {
    position: absolute;
    top: 51%;
    left: 35%;
    width: 33%;
    height: 24%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#print-screen-2-hitbox {
    position: absolute;
    top: 25%;
    left: 14%;
    width: 79%;
    height: 54%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}


/* ----- LIBRARY HITBOXES -----*/
#li-flw-sk-hitbox {
    position: absolute;
    top: 39%;
    left: 11%;
    width: 26%;
    height: 32%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-lt-sk-paper-hitbox {
    position: absolute;
    top: 12%;
    left: 38%;
    width: 15%;
    height: 17%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-lt-sk-hitbox {
    position: absolute;
    top: 16%;
    left: 46%;
    width: 24%;
    height: 61%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-main-lw-lt-hitbox{
    position: absolute;
    top: 39%;
    left: 11%;
    width: 26%;
    height: 32%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-main-lw-mw-hitbox {
    position: absolute;
    top: 10%;
    left: 68%;
    width: 26%;
    height: 45%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-entrance-lw-hitbox {
    position: absolute;
    top: 22%;
    left: 21%;
    width: 26%;
    height: 45%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-entrance-nb-lw-hitbox {
    position: absolute;
    top: 22%;
    left: 21%;
    width: 26%;
    height: 45%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-entrance-tvo-nb-lw-hitbox {
    position: absolute;
    top: 22%;
    left: 21%;
    width: 26%;
    height: 45%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-entrance-tvo-lw-hitbox {
    position: absolute;
    top: 22%;
    left: 21%;
    width: 26%;
    height: 45%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-mw-tolkein-hitbox {
    position: absolute;
    top: 22%;
    left: 65%;
    width: 8%;
    height: 11%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-mw-esme-hitbox {
    position: absolute;
    top: 49%;
    left: 68%;
    width: 7%;
    height: 11%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-mw-nb-esme-hitbox {
    position: absolute;
    top: 49%;
    left: 68%;
    width: 7%;
    height: 11%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-mw-ruta-hitbox {
    position: absolute;
    top: 35%;
    left: 29%;
    width: 7%;
    height: 11%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-mw-nb-ruta-hitbox {
    position: absolute;
    top: 35%;
    left: 29%;
    width: 7%;
    height: 11%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-mw-russo-hitbox {
    position: absolute;
    top: 22%;
    left: 31%;
    width: 7%;
    height: 11%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-mw-nb-russo-hitbox {
    position: absolute;
    top: 22%;
    left: 31%;
    width: 7%;
    height: 11%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-tolkein-hitbox {
    position: absolute;
    top: 18%;
    left: 26%;
    width: 40%;
    height: 68%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-esme-hitbox {
    position: absolute;
    top: 18%;
    left: 36%;
    width: 31%;
    height: 61%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-russo-hitbox {
    position: absolute;
    top: 18%;
    left: 26%;
    width: 40%;
    height: 68%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-alston-hitbox {
    position: absolute;
    top: 23%;
    left: 22%;
    width: 58%;
    height: 53%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-ruta-hitbox {
    position: absolute;
    top: 18%;
    left: 26%;
    width: 40%;
    height: 68%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-rw-books-birb-hitbox {
    position: absolute;
    top: 35%;
    left: 51%;
    width: 13%;
    height: 18%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-birb-book-hitbox {
    position: absolute;
    top: 19%;
    left: 25%;
    width: 37%;
    height: 74%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-rw-barnes-hitbox {
    position: absolute;
    top: 58%;
    left: 74%;
    width: 7%;
    height: 11%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-rw-boulley-hitbox {
    position: absolute;
    top: 28%;
    left: 76%;
    width: 9%;
    height: 13%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-rw-alston-hitbox {
    position: absolute;
    top: 43%;
    left: 67%;
    width: 9%;
    height: 13%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}


#li-onoseta-hitbox {
    position: absolute;
    top: 10%;
    left: 49%;
    width: 29%;
    height: 45%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-smith-hitbox {
    position: absolute;
    top: 10%;
    left: 49%;
    width: 29%;
    height: 45%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-barnes-hitbox {
    position: absolute;
    top: 7%;
    left: 35%;
    width: 40%;
    height: 70%;
    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-boulley-hitbox {
    position: absolute;
    top: 24%;
    left: 43%;
    width: 32%;
    height: 62%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-left-lt-hitbox {
    position: absolute;
    top: 41%;
    left: 42%;
    width: 20%;
    height: 25%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-left-star-lt-hitbox {
    position: absolute;
    top: 41%;
    left: 42%;
    width: 20%;
    height: 25%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-lt-laptop-hitbox {
    position: absolute;
    top: 20%;
    left: 15%;
    width: 43%;
    height: 37%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-lt-star-laptop-hitbox {
    position: absolute;
    top: 22%;
    left: 16%;
    width: 42%;
    height: 34%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-laptop-hitbox {
    position: absolute;
    top: 24%;
    left: 20%;
    width: 54%;
    height: 58%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-laptop-star-hitbox {
    position: absolute;
    top: 24%;
    left: 20%;
    width: 54%;
    height: 58%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-lt-scanner-hitbox {
    position: absolute;
    top: 11%;
    left: 62%;
    width: 28%;
    height: 47%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

/* MID WALL SECTION HITBOXES */
#li-main-rw-rw-hitbox {
    position: absolute;
    top: 24%;
    left: 42%;
    width: 54%;
    height: 45%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-main-rw-animals-hitbox{
    position: absolute;
    top: 48%;
    left: 20%;
    width: 19%;
    height: 16%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-animals-1-hitbox {
    position: absolute;
    top: 47%;
    left: 12%;
    width: 38%;
    height: 17%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-animals-2-hitbox {
    position: absolute;
    top: 32%;
    left: 27%;
    width: 35%;
    height: 33%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-animals-open-1-hitbox {
    position: absolute;
    top: 48%;
    left: 27%;
    width: 28%;
    height: 16%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-animals-open-key-hitbox {
    position: absolute;
    top: 46%;
    left: 48%;
    width: 5%;
    height: 7%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}


#li-mw-tv-hitbox {
    position: absolute;
    top: 39%;
    left: 27%;
    width: 28%;
    height: 16%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-mw-read-hitbox {
    position: absolute;
    top: 16%;
    left: 57%;
    width: 25%;
    height: 14%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-read-hitbox {
    position: absolute;
    top: 21%;
    left: 11%;
    width: 65%;
    height: 33%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-read-on-hitbox {
    position: absolute;
    top: 25%;
    left: 12%;
    width: 64%;
    height: 32%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-tv-remotes-hitbox {
    position: absolute;
    top: 77%;
    left: 40%;
    width: 31%;
    height: 14%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-2r-wr-hitbox {
    position: absolute;
    top: 41%;
    left: 18%;
    width: 27%;
    height: 23%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-2r-br-hitbox {
    position: absolute;
    top: 49%;
    left: 46%;
    width: 39%;
    height: 24%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-wr-hitbox {
    position: absolute;
    top: 46%;
    left: 24%;
    width: 26%;
    height: 22%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-br-hitbox {
    position: absolute;
    top: 44%;
    left: 37%;
    width: 38%;
    height: 24%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-tv-br-hitbox {
    position: absolute;
    top: 80%;
    left: 50%;
    width: 22%;
    height: 14%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-tv-wr-hitbox {
    position: absolute;
    top: 76%;
    left: 44%;
    width: 14%;
    height: 11%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-tv-hitbox {
    position: absolute;
    top: 21%;
    left: 15%;
    width: 72%;
    height: 62%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-mr-ro-tv-hitbox {
    position: absolute;
    top: 0%;
    left: 27%;
    width: 45%;
    height: 99%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-main-mw-hitbox {
    position: absolute;
    top: 17%;
    left: 6%;
    width: 43%;
    height: 55%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-main-doors-hitbox {
    position: absolute;
    top: 33%;
    left: 50%;
    width: 20%;
    height: 28%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-main-ro-doors-hitbox {
    position: absolute;
    top: 33%;
    left: 50%;
    width: 20%;
    height: 28%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-main-tvo-doors-hitbox {
    position: absolute;
    top: 33%;
    left: 50%;
    width: 20%;
    height: 28%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-main-ro-tvo-doors-hitbox {
    position: absolute;
    top: 33%;
    left: 50%;
    width: 20%;
    height: 28%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-2dc-door-hitbox {
    position: absolute;
    top: 13%;
    left: 26%;
    width: 16%;
    height: 81%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-main-ro-mw-hitbox {
    position: absolute;
    top: 17%;
    left: 7%;
    width: 43%;
    height: 55%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-main-tvo-mw-hitbox {
    position: absolute;
    top: 17%;
    left: 7%;
    width: 43%;
    height: 55%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-main-ro-tvo-mw-hitbox {
    position: absolute;
    top: 17%;
    left: 7%;
    width: 43%;
    height: 55%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-wr-tvo-hitbox {
    position: absolute;
    top: 17%;
    left: 7%;
    width: 43%;
    height: 55%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-tv-wr-tvo-hitbox {
    position: absolute;
    top: 17%;
    left: 7%;
    width: 43%;
    height: 55%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-tv-on-hitbox {
    position: absolute;
    top: 17%;
    left: 7%;
    width: 43%;
    height: 55%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-mw-tvo-read-hitbox {
    position: absolute;
    top: 18%;
    left: 57%;
    width: 24%;
    height: 12%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-mw-tvo-tv-hitbox {
    position: absolute;
    top: 17%;
    left: 7%;
    width: 43%;
    height: 55%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-mw-ro-tvo-tv-hitbox {
    position: absolute;
    top: 40%;
    left: 27%;
    width: 28%;
    height: 15%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-mw-ro-read-hitbox {
    position: absolute;
    top: 18%;
    left: 58%;
    width: 20%;
    height: 13%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-mw-tvo-tv-hitbox {
    position: absolute;
    top: 40%;
    left: 27%;
    width: 28%;
    height: 15%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-mw-ro-tvo-hitbox {
    position: absolute;
    top: 17%;
    left: 7%;
    width: 43%;
    height: 55%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-mw-ro-tvo-read-hitbox {
    position: absolute;
    top: 19%;
    left: 57%;
    width: 24%;
    height: 11%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-mw-ro-tv-hitbox {
    position: absolute;
    top: 39%;
    left: 27%;
    width: 28%;
    height: 16%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-wr-tvo-hitbox {
    position: absolute;
    top: 47%;
    left: 24%;
    width: 26%;
    height: 21%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-tv-wr-tv-hitbox {
    position: absolute;
    top: 24%;
    left: 18%;
    width: 67%;
    height: 51%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-tv-wr-tvo-hitbox {
    position: absolute;
    top: 24%;
    left: 19%;
    width: 67%;
    height: 54%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-tv-tvo-wr-hitbox {
    position: absolute;
    top: 79%;
    left: 44%;
    width: 13%;
    height: 7%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-tv-on-hitbox {
    position: absolute;
    top: 22%;
    left: 14%;
    width: 72%;
    height: 55%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}



/* ---- LIBRARY OFFICE PAGES */

#li-office-door-closed-hitbox {
    position: absolute;
    top: 0%;
    left: 29%;
    width: 42%;
    height: 95%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#li-office-door-open-hitbox {
    position: absolute;
    top: 0%;
    left: 29%;
    width: 42%;
    height: 95%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#lo-main-desk-hitbox {
    position: absolute;
    top: 41%;
    left: 51%;
    width: 40%;
    height: 45%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#lo-main-left-ls-entrance-hitbox {
    position: absolute;
    top: 0%;
    left: 7%;
    width: 34%;
    height: 96%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#lo-storage-entrance-hitbox {
    position: absolute;
    top: 0%;
    left: 26%;
    width: 56%;
    height: 99%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#lo-main-right-desk-hitbox {
    position: absolute;
    top: 33%;
    left: 34%;
    width: 48%;
    height: 39%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#lo-desk-hitbox {
    position: absolute;
    top: 23%;
    left: 63%;
    width: 30%;
    height: 45%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#lo-desk-monitor-hitbox {
    position: absolute;
    top: 40%;
    left: 66%;
    width: 25%;
    height: 21%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#lo-monitor-hitbox {
    position: absolute;
    top: 22%;
    left: 14%;
    width: 72%;
    height: 55%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#lo-monitor-drive-hitbox {
    position: absolute;
    top: 20%;
    left: 8%;
    width: 15%;
    height: 55%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 1400;
}

#lo-monitor-drive-monitor-hitbox {
    position: absolute;
    top: 19%;
    left: 17%;
    width: 72%;
    height: 55%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

/* -------- LIBRARY STORAGE PAGES -----------*/

#ls-lo-entrance-hitbox {
    position: absolute;
    top: 0%;
    left: 20%;
    width: 55%;
    height: 99%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#ls-archives-mcduffie-hitbox {
    position: absolute;
    top: 38%;
    left: 63%;
    width: 5%;
    height: 16%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#ls-archives-black-hitbox {
    position: absolute;
    top: 0%;
    left: 49%;
    width: 4%;
    height: 18%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#ls-archives-harrell-hitbox {
    position: absolute;
    top: 19%;
    left: 48%;
    width: 5%;
    height: 17%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#ls-archives-keser-hitbox {
    position: absolute;
    top: 37%;
    left: 39%;
    width: 2%;
    height: 17%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#ls-archives-sk-hitbox {
    position: absolute;
    top: 59%;
    left: 20%;
    width: 25%;
    height: 31%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#ls-archives-note-hitbox {
    position: absolute;
    top: 14%;
    left: 38%;
    width: 6%;
    height: 8%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#ls-black-1997-hitbox {
    position: absolute;
    top: 0%;
    left: 20%;
    width: 55%;
    height: 99%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#ls-keser-1994-hitbox {
    position: absolute;
    top: 0%;
    left: 20%;
    width: 55%;
    height: 99%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#ls-mcduffie-1993-hitbox {
    position: absolute;
    top: 0%;
    left: 20%;
    width: 55%;
    height: 99%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#ls-harrell-1993-hitbox {
    position: absolute;
    top: 0%;
    left: 20%;
    width: 55%;
    height: 99%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#ls-note-hitbox {
    position: absolute;
    top: 19%;
    left: 20%;
    width: 55%;
    height: 66%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#ls-sk-note-hitbox {
    position: absolute;
    top: 55%;
    left: 46%;
    width: 28%;
    height: 38%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#ls-in-10-sk-hitbox {
    position: absolute;
    top: 33%;
    left: 30%;
    width: 17%;
    height: 32%;
    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#ls-in-10-sk-nd-sk-hitbox {
    position: absolute;
    top: 54%;
    left: 38%;
    width: 13%;
    height: 25%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#ls-10-sk-hitbox {
    position: absolute;
    top: 0%;
    left: 20%;
    width: 55%;
    height: 99%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#ls-10-sk-nd-note-hitbox {
    position: absolute;
    top: 59%;
    left: 34%;
    width: 20%;
    height: 15%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#ls-10-sk-nd-drive-hitbox {
    position: absolute;
    top: 68%;
    left: 61%;
    width: 8%;
    height: 10%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#ls-10-sk-note-hitbox {
    position: absolute;
    top: 56%;
    left: 36%;
    width: 19%;
    height: 16%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#ls-10-sk-drive-hitbox {
    position: absolute;
    top: 65%;
    left: 60%;
    width: 8%;
    height: 8%;
    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}


/* --------- TUNNEL PAGES ---- */
#tu-rubble-hitbox {
    position: absolute;
    top: 7%;
    left: 10%;
    width: 29%;
    height: 64%;
    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#tu-hatch-hitbox {
    position: absolute;
    top: 51%;
    left: 58%;
    width: 11%;
    height: 17%;
    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#tu-ho-rubble-hitbox {
    position: absolute;
    top: 7%;
    left: 10%;
    width: 29%;
    height: 64%;
    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#tu-ho-hitbox {
    position: absolute;
    top: 51%;
    left: 58%;
    width: 11%;
    height: 17%;
    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#apt-bed-hitbox {
    position: absolute;
    top: 37%;
    left: 19%;
    width: 51%;
    height: 43%;
    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#apt-fd-handle-hitbox {
    position: absolute;
    top: 54%;
    left: 58%;
    width: 5%;
    height: 11%;
    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#apt-fd-handle-handle-hitbox {
    position: absolute;
    top: 64%;
    left: 44%;
    width: 11%;
    height: 17%;
    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#apt-fd-handle-keyhole-hitbox {
    position: absolute;
    top: 27%;
    left: 44%;
    width: 11%;
    height: 15%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#apt-table-water-hitbox {
    position: absolute;
    top: 22%;
    left: 48%;
    width: 12%;
    height: 28%;
    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#apt-ki-2-sink-hitbox {
    position: absolute;
    top: 36%;
    left: 18%;
    width: 42%;
    height: 28%;

    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#apt-ki-sink-hitbox {
    position: absolute;
    top: 38%;
    left: 60%;
    width: 9%;
    height: 16%;
    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#apt-fd-open-hitbox {
    position: absolute;
    top: 0%;
    left: 15%;
    width: 71%;
    height: 99%;
    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 10;
}

#wb-hitbox {
    position: absolute;
    top: 14%;
    left: 29%;
    width: 34%;
    height: 29%;
    background-color: transparent;
    border: 2px solid transparent;
    cursor: pointer; /* makes 'hand' icon so players know to click */
    z-index: 1000;
}


/*--------- flicker animation ----- */
/* The Animation Definition */
@keyframes glitchFlicker {
    0%   { filter: brightness(1); opacity: 1; }
    4%   { filter: brightness(0.3); opacity: 0.7; } /* Darker + slightly transparent */
    8%   { filter: brightness(1); opacity: 1; }

    30%  { filter: brightness(0.4); opacity: 0.8; }
    34%  { filter: brightness(1); opacity: 1; }

    94%  { filter: brightness(0.4); opacity: 0.8; }
    97%  { filter: brightness(1); opacity: 1; }

    100% { filter: brightness(1); opacity: 1; }
}

.flicker-dark {
    animation: glitchFlicker 0.6s linear !important;
    /* Force GPU rendering to ensure the flicker is visible on large divs */
    backface-visibility: hidden;
    transform: translateZ(0);
}



/* ---- Monitor hatch camera feed overlay ---- */
/* ---- Monitor hatch camera feed overlay ---- */
#monitor-hatch-feed {
    position: absolute;
    /* Bigger: fills almost the whole visible monitor area */
    top: 19%;
    left: 17%;
    width: 72%;
    height: 55%;

    z-index: 30;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 120, 0.65);
    box-shadow: 0 0 16px rgba(0, 255, 120, 0.28);
    background: #000;
}

#monitor-hatch-feed-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.75) contrast(1.08) brightness(0.85);
}

/* scanline feel */
#monitor-hatch-feed::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.00) 0px,
            rgba(0, 0, 0, 0.00) 2px,
            rgba(0, 0, 0, 0.16) 3px,
            rgba(0, 0, 0, 0.16) 4px
    );
    pointer-events: none;
    z-index: 1;
}

/* clickable feed layer */
#monitor-hatch-feed-hitbox {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: transparent;
    border: 2px solid transparent;
    cursor: pointer;
}

/* close button */
#monitor-hatch-feed-close {
    position: absolute;
    top: 6px;
    right: 8px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 255, 120, 0.95);
    background: rgba(0, 0, 0, 0.88);
    color: #00ff41;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 120, 0.38);
}

#monitor-hatch-feed-close:hover {
    background: rgba(0, 255, 120, 0.2);
    transform: scale(1.06);
}

/* LO monitor terminal close control ([X]) */
#terminal-close-btn {
    top: 2px !important;
    right: 2px !important;
    font-size: 34px !important;
    font-weight: 800 !important;
    color: #00ff41 !important;
    opacity: 1 !important;
    padding: 6px 10px !important;
    border: 2px solid rgba(125, 255, 159, 0.92) !important;
    background: rgba(0, 0, 0, 0.75) !important;
    border-radius: 4px !important;
    box-shadow: 0 0 14px rgba(125, 255, 159, 0.45) !important;
}

#terminal-close-btn:hover {
    background: rgba(125, 255, 159, 0.18) !important;
    transform: scale(1.06);
}