        :root {
            --color-bg-dark: #0d1117;
            --color-bg-medium: #1f2937;
            --color-bg-panel: #1f2937;
            --color-text-light: #f3f4f6;
            --color-text-secondary: #9ca3af;

            --color-purple-primary: #a78bfa;
            --color-purple-light: #c4b5fd;
            --color-yellow-primary: #f59e0b;
            --color-red-primary: #dc2626;

            --color-red-summary-bg: rgba(220, 38, 38, 0.7);
            --color-red-summary-text: #fca5a5;
            --color-yellow-summary-bg: rgba(245, 158, 11, 0.5);
            --color-yellow-summary-text: #fde68a;
            --color-green-summary-bg: rgba(16, 185, 129, 0.5);
            --color-green-summary-text: #a7f3d0;
            --color-blue-secondary: #3b82f6;
        }

        body {
            font-family: "Alan Sans", sans-serif;
            background-color: #000000;
            background-image: url('../images/bg3.png');
            background-repeat: no-repeat;
            background-position: center top;
            background-attachment: fixed;
            background-size: cover;
            /*background-image: url("https://www.transparenttextures.com/patterns/3px-tile.png");*/
            min-height: 100vh;
            padding: 1rem;
            color: white;

        }

        .title {
            font-family: "Pixelify Sans", sans-serif;
            color: rgb(255, 255, 255);
            font-size: 80px;
            margin-bottom: 10px;
            letter-spacing: 5px;
            transition: color 0.5s ease;

        }

        .title:hover {
            font-family: "Pixelify Sans", sans-serif;
            color: rgb(39, 38, 38);
            font-size: 80px;
            margin-bottom: 10px;
            transition: color 0.5s ease;
        }

        .title2 {
            font-family: "Pixelify Sans", sans-serif;
            color: rgb(255, 255, 255);
            font-size: 40px;
            margin-bottom: 10px;
            letter-spacing: 4px;
        }

        .title5 {
            color: rgb(255, 255, 255);
            font-size: 40px;
            margin-bottom: 10px;
            letter-spacing: 10px;
            text-align: left;
        }

        .title3 {
            font-family: "Pixelify Sans", sans-serif;
            color: rgb(255, 255, 255);
            font-size: 34px;
            margin-bottom: 10px;
            letter-spacing: 7px;
        }

        .tag {
            font-family: monospace;
            color: rgb(160, 160, 160);
            font-size: 10px;
            margin-top: -10px;
            margin-bottom: 20px;
        }

        @media (min-width: 768px) {
            body {
                padding: 2rem;
            }
        }

        .container-main {
            max-width: 1280px;
            margin-left: auto;
            margin-right: auto;
            background-color: rgba(0, 0, 0, 0);
        }

        header {
            margin-bottom: 2rem;
            text-align: center;
        }

        header h1 {
            font-size: 2.25rem;
            line-height: 2.5rem;
            font-weight: 800;
            color: var(--color-purple-light);
        }

        @media (min-width: 768px) {
            header h1 {
                font-size: 3rem;
                line-height: 1;
            }
        }

        header p {
            font-size: 1.25rem;
            margin-top: 0.5rem;
            color: var(--color-text-secondary);
        }

        .panel {
            background-color: rgba(64, 63, 63, 0.619);
            padding: 1.5rem;
            border-radius: 0.75rem;
            box-shadow: 0 10px 15px rgba(121, 121, 121, 0.3);
            margin-bottom: 2rem;
        }

        .panel-header {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
            color: white;
            font-family: "Pixelify Sans", sans-serif;
        }

        .control-panel-header {
            font-size: 1.875rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            color: var(--color-yellow-primary);
        }

        #city-view {
            width: 100%;
            height: 600px;
            background-color: var(--color-bg-dark);
            border-radius: 0.75rem;
            box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.6);
            position: relative;
            cursor: grab;
        }

        .interaction-guide {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            padding: 0.5rem;
            background-color: rgba(75, 85, 99, 0.8);
            border-radius: 0.5rem;
            font-size: 0.875rem;
            z-index: 10;
        }

        .interaction-guide p {
            color: white;
            font-weight: bold;
        }

        .interaction-guide p:last-child {
            font-weight: normal;
        }

        .selector-container {
            margin-bottom: 1.5rem;
        }

        .selector-container label {
            display: block;
            font-size: 0.875rem;
            font-weight: 500;
            margin-bottom: 0.5rem;
        }

        .select-input {
            width: 100%;
            padding: 0.5rem;
            border-radius: 0.5rem;
            background-color: #374151;
            border: 2px solid var(--color-purple-primary);
            color: white;
            cursor: pointer;
            transition: background-color 0.2s;
            font-family: "Inter", sans-serif;
        }

        .select-input:hover {
            background-color: #4b5563;
        }

        #api-status {
            font-size: 0.75rem;
            margin-top: 0.25rem;
            color: var(--color-text-secondary);
        }

        .input-grid {
            display: grid;
            grid-template-columns: repeat(1, minmax(0, 1fr));
            gap: 1.5rem;
        }

        @media (min-width: 768px) {
            .input-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
        }

        .control-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .input-label {
            display: block;
            font-size: 0.875rem;
            font-weight: 500;
        }

        .input-value {
            font-weight: 700;
            font-size: 1.125rem;
            color: white;
        }

        .input-description {
            font-size: 0.75rem;
            color: var(--color-text-secondary);
            margin-top: 0.25rem;
        }

        input[type="range"] {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 0.5rem;
            border-radius: 0.5rem;
            cursor: pointer;
            background: rgba(167, 139, 250, 0.5);
        }

        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 1rem;
            height: 1rem;
            background: var(--color-purple-primary);
            border-radius: 50%;
            cursor: pointer;
        }

        input[type="range"]::-moz-range-thumb {
            width: 1rem;
            height: 1rem;
            background: var(--color-purple-primary);
            border-radius: 50%;
            cursor: pointer;
            border: none;
        }

        .date-button-grid {
            display: none;
        }

        .date-preset-button {
            display: none;
        }

        .results-box {
            margin-top: 2rem;
            padding: 1rem;
            background-color: var(--color-bg-dark);
            border-radius: 0.5rem;
            border-top: 2px solid var(--color-purple-primary);
        }

        .results-header {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--color-yellow-primary);
            margin-bottom: 0.5rem;
        }

        .results-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 1rem;
        }

        .results-grid p {
            color: var(--color-text-secondary);
        }

        .results-grid .data-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: white;
        }

        .thermal-risk-note {
            margin-top: 1rem;
        }

        .thermal-risk-note p {
            font-size: 0.75rem;
            color: var(--color-red-primary);
            margin-top: 0.25rem;
        }

        .damage-summary-box {
            padding: 0.75rem;
            margin-top: 1rem;
            text-align: center;
            font-size: 1.125rem;
            border-radius: 0.5rem;
            font-weight: 700;
        }

        .summary-red {
            background-color: var(--color-red-summary-bg);
            color: var(--color-red-summary-text);
            animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
        }

        .summary-yellow {
            background-color: var(--color-yellow-summary-bg);
            color: var(--color-yellow-summary-text);
        }

        .summary-green {
            background-color: var(--color-green-summary-bg);
            color: var(--color-green-summary-text);
        }

        @keyframes pulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.5;
            }
        }

        .sentry-panel {
            padding-top: 1rem;
            margin-top: 1.5rem;
            border-top: 1px solid #374151;
        }

        .sentry-panel .data-value {
            font-size: 1.25rem;
        }

        .sentry-torino {
            font-size: 1.75rem;
            font-weight: 900;
            color: var(--color-yellow-primary);
        }

        .sentry-description {
            font-size: 0.875rem;
            color: var(--color-text-secondary);
            margin-top: 0.25rem;
        }

        .sentry-risk-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin-top: 0.75rem;
        }

        .fireball-button {
            background-color: var(--color-blue-secondary);
            border: none;
            margin-top: 1rem;
            font-size: 0.875rem;
            padding: 0.6rem;
            width: 60%;
            height: 70px;
        }

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .modal-content {
            background: var(--color-bg-medium);
            padding: 2rem;
            border-radius: 0.75rem;
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
            width: 70%;
            max-width: 800px;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
        }

        .modal-content-ar {
            padding: 0;
            background: none;
            width: 100%;
            height: 100%;
            max-width: 100vw;
            max-height: 100vh;
            box-shadow: none;
        }

        .modal-close {
            position: absolute;
            top: 10px;
            right: 10px;
            background: var(--color-bg-dark);
            /* Dark background for visibility */
            border: 2px solid white;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            font-size: 1rem;
            color: var(--color-text-light);
            cursor: pointer;
            z-index: 100;
        }

        .fireball-list table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 1rem;
            font-size: 0.875rem;
        }

        .fireball-list th,
        .fireball-list td {
            border: 1px solid #374151;
            padding: 0.5rem;
            text-align: left;
        }

        .fireball-list th {
            background-color: #2c3e50;
            color: var(--color-purple-light);
        }

        #tooltip-box {
            position: fixed;
            display: none;
            padding: 10px 15px;
            background: #111827;
            color: var(--color-text-light);
            border: 1px solid var(--color-purple-primary);
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
            font-size: 0.875rem;
            max-width: 300px;
            pointer-events: none;
            z-index: 10000;
            line-height: 1.4;
        }

        .tooltip-title {
            font-weight: bold;
            color: var(--color-yellow-primary);
            margin-bottom: 5px;
            display: block;
        }

        .navbar {
            background-color: rgba(255, 255, 255, 0.1);
            margin: 10px auto 0 auto;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;

            overflow: hidden;
            width: 100%;
            max-width: 1200px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            box-shadow: 0px 20px 30px rgba(255, 255, 255, 0.1);
            height: 60px;
            z-index: 1000;
            border-radius: 20px;
            box-sizing: border-box;
        }

        .navbar.navbar-hidden {
            transform: translateY(-100%);
            opacity: 0;
        }

        .navbar-brand {
            color: #f2f2f2;
            padding: 0;
            text-decoration: none;
            font-size: 24px;
            font-weight: bold;
            cursor: pointer;
        }

        .navbar-links {
            list-style-type: none;
            margin: 0;
            padding: 0;
            display: flex;
        }

        .navbar-links li a {
            color: #f2f2f2;
            padding: 14px 16px;
            text-decoration: none;
            font-size: 17px;
            display: block;
        }

        .navbar-links li a:hover {
            background-color: rgba(255, 255, 255, 0.15);
            border-radius: 4px;
        }

        .menu-toggle {
            display: none;
        }

        @media screen and (max-width: 600px) {

            body {
                padding-top: 70px;
            }


            .navbar {
                position: fixed;
                width: 100%;
                max-width: none;
                margin: 0;
                border-radius: 0;
                height: 70px;
                padding: 0 15px;
            }

            .menu-toggle {
                display: block;
                background: none;
                border: none;
                cursor: pointer;
                padding: 15px 0;
                z-index: 1001;
            }

            .bar {
                display: block;
                width: 25px;
                height: 3px;
                margin: 5px 0;
                background-color: white;
                transition: 0.3s;
            }

            .navbar-links {
                display: none;
                flex-direction: column;
                width: 100%;

                position: absolute;
                top: 70px;
                left: 0;
                background-color: rgba(0, 0, 0, 0.95);
                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
                border-radius: 0 0 5px 5px;
            }

            .navbar-links li {
                width: 100%;
                border-top: 1px solid rgba(255, 255, 255, 0.1);
                padding: 0;
                text-align: center;
            }

            .navbar-links li a {
                padding: 15px 0;
                width: 100%;
                font-size: 16px;
            }

            .navbar-links.open {
                display: flex;
            }
        }

        @keyframes flyAround {
            0% {
                transform: translate(0vw, 0vh) rotate(14deg);
            }

            25% {
                transform: translate(10vw, -30vh) rotate(25deg);
            }

            50% {
                transform: translate(-10vw, -30vh) rotate(-45deg);
            }

            75% {
                transform: translate(-10vw, 0vh) rotate(34deg);
            }

            85% {
                transform: translate(-10vw, 0vh) rotate(80deg);
            }

            100% {
                transform: translate(0vw, 0vh) rotate(23deg);
            }
        }

        @keyframes flyAround2 {
            0% {
                transform: translate(6vw, 7vh) rotate(14deg);
            }

            25% {
                transform: translate(40vw, -30vh) rotate(25deg);
            }

            50% {
                transform: translate(-160vw, -20vh) rotate(-45deg);
            }

            75% {
                transform: translate(-10vw, 0vh) rotate(34deg);
            }

            85% {
                transform: translate(0vw, 24vh) rotate(80deg);
            }

            100% {
                transform: translate(7vw, 6vh) rotate(23deg);
            }
        }

        #rocket-flyer {
            position: fixed;
            z-index: -0;
            font-size: 50px;
            animation: flyAround 15s ease-in-out infinite alternate;
            transition: none;
            filter: blur(0.5px) drop-shadow(2px 7px 6px black);
            filter: opacity(4);
            user-select: none;
            width: 50px;
            height: 20px;
        }

        #rocket-flyer2 {
            position: fixed;
            z-index: -0;
            font-size: 50px;
            animation: flyAround2 15s ease-in-out infinite alternate;
            transition: none;
            filter: blur(0.5px) drop-shadow(2px 7px 6px black);
            filter: opacity(4);
            user-select: none;
            width: 50px;
            height: 20px;
        }

        #rocket-flyer:hover {
            position: fixed;
            z-index: 9999;
            font-size: 50px;
            animation: flyAround 15s ease-in-out infinite alternate;
            transition: none;
            filter: blur(0.5px) drop-shadow(2px 7px 6px black);
            filter: opacity(4);
            user-select: none;
            filter: hue-rotate(90deg);
        }

        .m1 {
            width: 50px;
            height: 50px;
            filter: drop-shadow(2px 4px 5px rgba(255, 146, 21, 0.363));
            filter: opacity(0.5);
        }

        .thm-sm {
            font-size: 14px;
            color: var(--color-red-primary);
            margin-top: 0.25rem;
        }

        .cityData {
            font-family: "Pixelify Sans", sans-serif;
            background: none;
            border: none;
            font-size: x-small;
            color: #f59e0b;
            cursor: pointer;
            font-style: italic;
            font-weight: lighter;
        }

        .ftr {
            text-align: center;
            color: white;
            margin-top: 40px;
            margin-bottom: 20px;
            font-size: 10px;
        }

        .container3 {
            background-color: #0d1117;
        }

        .astv {
            width: 20%;
            padding: 0.5rem;
            border-radius: 0.5rem;
            background-color: #000000;
            color: white;
            cursor: pointer;
            transition: background-color 0.2s;
            border: none;
        }

        .fetchd {
            background-color: #3b82f6;
            border: none;
            margin-top: 9px;
            border-radius: 7px;
            color: white;
            height: 37px;
            width: 240px;
            font-size: 9px;
            font-family: monospace;
        }

        .sh-bth {
            font-family: monospace;
        }

        .info-panel {
            position: absolute;
            top: 10px;
            left: 10px;
            background: rgba(0, 0, 0, 0.5);
            color: #fff;
            padding: 10px;
            border-radius: 8px;
            font-family: 'Inter', sans-serif;
            font-size: 14px;
        }

        .frame {
            border: 1px solid rgb(61, 61, 61);
            border-radius: 15px;
            box-shadow: 0 4px 22px rgba(28, 28, 28, 0.5);
            margin-top: 20px;
            margin-bottom: 20px;
        }

        .bg4 {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -1;
            opacity: 0.3;
            filter: contrast(4);
        }
        .sec2 {
            background-color: rgba(73, 73, 73, 0.508);
            padding-bottom: 20px;
            padding-top:20px;
            padding-left:20px;
            border-radius: 20px;

        }
