        body,
        html {
            height: 100dvh;
            width: 100dvw;
            margin: 0;
            font-family: Arial, sans-serif;
            background-color: black;
            display: flex;
            flex-direction: column;
            align-items: center;
            overflow: hidden;
            color: white;
        }

        .header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 60px;
            background-color: #333;
            color: white;
            padding: 10px 0;
            text-align: center;
            z-index: 1000;
        }

        /* Hamburger Menu Styling */
        #menuButton {
            position: absolute;
            left: 15px;
            top: 10px;
            background: none;
            border: none;
            font-size: 30px;
            color: white;
            cursor: pointer;
            z-index: 2001;
        }

        #menuBackdrop {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1999;
            display: none;
        }

        #sideMenu {
            position: fixed;
            top: 0;
            left: -100vw; 
            width: 100vw; 
            height: 100%;
            background: #222;
            z-index: 2000;
            padding-top: 60px;
            transition: left 0.3s ease-in-out;
            overflow-y: auto;
        }
        
        #closeMenuButton {
            position: absolute;
            top: 10px;
            right: 15px;
            background: none;
            border: none;
            font-size: 30px;
            color: white;
            cursor: pointer;
            z-index: 2002;
        }

        #sideMenu ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        #sideMenu li {
            padding: 15px;
            border-bottom: 1px solid #444;
            width: 100%;
        }

        #sideMenu a,
        #areaSelect {
            color: white;
            padding: 15px 12px;
            border-radius: 5px;
            background-color: #333;
            font-size: 1.1em;
            box-sizing: border-box;
            display: block;
            text-decoration: none;
            width: 80%;
        }

        #areaSelect option {
            font-size: 1em;
        }

        /* Main Content Container */
        .container {
            margin-top: 70px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-evenly;
            height: calc(100vh - 80px);
            width: 100vw;
            padding: 10px 0;
        }
        
        /* Row for arrows - SIMPLE FLEXBOX LAYOUT */
        .arrow-row {
            display: flex;
            flex-wrap: nowrap;
            justify-content: space-evenly; 
            align-items: flex-start;
            width: 95%;
            max-width: 650px;
            min-height: 140px; 
            margin-bottom: 5px;
            z-index: 50; 
        }

        /* Center Compass Row */
        .north-arrow-row {
            display: flex;
            justify-content: center; 
            align-items: center;
            width: 100%; 
        }

        /* Arrow containers and sizing */
        .arrow-container {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 5px 10px; 
            padding: 0 5px; 
            flex-grow: 1; 
            flex-basis: 0; 
            min-width: 100px; 
            max-width: 180px; 
            cursor: pointer; 
            z-index: 10; 
        }

        .arrow {
            width: 95px; 
            height: 95px;
            background: url('arrow.png') center/contain no-repeat;
            transform-origin: center;
            transition: transform 0.1s linear;
            pointer-events: none; 
        }

        #north {
            width: 170px; 
            height: 170px;
            background: url('arrow-north.png') center/contain no-repeat;
            transform-origin: center;
            transition: transform 0.1s linear;
        }

        .arrow-name {
            color: white;
            font-size: 16px; 
            font-weight: bold;
            margin-top: 5px;
            pointer-events: none; 
        }

        .info {
            color: white;
            font-size: 14px; 
            text-align: center;
            margin-top: 5px;
            pointer-events: none; 
        }

        /* Splash Screen & Permission Button */
        .splash-screen {
            position: absolute;
            width: 100%;
            height: 100%;
            background: black;
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
            z-index: 10000;
        }
        .permission-button { 
            padding: 10px 20px;
            font-size: 1.1em;
            cursor: pointer;
            background: #007bff;
            color: white;
            border: none;
            border-radius: 5px;
            width: 80%;
            box-sizing: border-box; 
            text-align: center;
        }

        /* About Modal CSS */
        .full-screen-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85); 
            display: none; 
            justify-content: center;
            align-items: center;
            z-index: 5000;
            overflow-y: auto;
        }
        .modal-content {
            background: #333; 
            color: white;
            padding: 25px; 
            margin: 20px;
            border-radius: 10px;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
            max-width: 90%;
            max-height: 90%;
            overflow-y: auto;
            line-height: 1.5; 
        }
        .modal-content ul {
            margin-top: 10px;
            padding-left: 20px;
        }
        .modal-content h3 {
            border-bottom: 2px solid #007bff;
            padding-bottom: 5px;
        }

        /* SITE INFO PANEL CSS (FINAL FIX) */
        #siteInfoPanel {
            position: fixed;
            bottom: -50vh; 
            left: 0;
            width: 100%;
            height: 40vh; 
            background: #222; 
            z-index: 1500; 
            transition: bottom 0.3s ease-out;
            box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
            
            /* Flex center for content */
            display: flex;
            justify-content: center;
            align-items: flex-start;
            padding-top: 20px;
            box-sizing: border-box;
            overflow-y: auto;
        }

        #siteInfoPanel.active {
            bottom: 0; 
        }
        
        #panel-close-btn {
            position: absolute;
            top: 10px;
            right: 15px;
            background: none;
            border: none;
            font-size: 30px;
            color: white;
            cursor: pointer;
            z-index: 1600;
        }

        #siteInfoContent {
            width: 90%;
            max-width: 400px;
            color: white;
            padding: 0;
            margin: 0;
        }

        /* Site Info Specific Styles */
        #site-info-grid {
            display: grid;
            grid-template-columns: auto 1fr;
            gap: 5px 10px;
            margin-bottom: 10px;
        }
        .info-label {
            font-weight: bold;
            color: #ccc;
        }
        #modal-polarity {
            font-size: 2em;
            font-weight: 900;
            display: block;
            text-align: center;
            color: #007bff;
            margin: 10px 0;
        }

        #about-close-btn {
            width: 80%;
            max-width: 500px;
            margin: 10px auto;
            margin-left: 10%;
            padding: 10px 20px;
            font-size: 1.1em;
            cursor: pointer;
            background: #007bff;
            color: white;
            border: none;
            border-radius: 5px;
            box-sizing: border-box;
        }

        .myHeading {
            color: #007bff;
            font-weight: bold;
        }