 body, html {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            font-weight: bold !important;
            font-family: Cairo, "Century Gothic", sans-serif;
        }

        #map {
            flex: 1;
        }

        .footer {
            background-color: #006699;
            padding: 10px 0;
            text-align: center;
            color: white;
            font-size: 10px;
        }

        .legend {
            background: white;
            padding: 10px;
            border-radius: 5px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            font-size: 14px;
            display: none; /* Initially hide the legend */
        }

        .legend i {
            width: 18px;
            height: 18px;
            float: left;
            margin-right: 8px;
            opacity: 0.7;
        }

        .leaflet-control-layers {
            background-color: #006699;
            width: 230px; /* Increase width to make space for group layer names */
            margin-left: 20px; /* Add left margin */
        }

        .leaflet-control-layers-toggle, .leaflet-control-layers label {
            color: white;
            font-weight: bold;
            font-family: Cairo;
        }

       
        @media (max-width: 768px) {
            .legend {
                font-size: 12px;
            }
        }

        .popup-content {
            font-family: 'Cairo', sans-serif;
        }

        .navbar-dark {
            background-color: #006699 !important;
        }
        .navbar-nav li a.nav-link {
            color: white !important;
            font-weight: bold;
        }
        .navbar-nav li a.nav-link:hover {
            color: #66cccc !important;
        }
        .nav-icon {
            display: inline-block;
            vertical-align: middle;
            margin-right: 10px;
        }
        .nav-link {
            display: inline-block;
            vertical-align: middle;
        }

        .legend-toggle {
            cursor: pointer;
            color: #003366;
            font-weight: bold;
            margin-bottom: 10px;
            text-align: center;
        }

        .legend-content {
            display: none;
        }

        .legend-toggle.opened + .legend-content {
            display: block;
        }

        /* Custom styles for overlay titles */
        .leaflet-control-layers-overlays .leaflet-control-layers-group-label {
            font-family: 'Cairo', sans-serif;
            font-size: 16px;
            font-weight: bold;
            margin-top: 10px;
            margin-bottom: 5px;
        }

        /* Add separation between groups */
        .leaflet-control-layers-overlays .leaflet-control-layers-group {
            margin-bottom: 10px;
        }

        /* Style for checkboxes and labels */
        .leaflet-control-layers-overlays label {
            color: white !important; /* Font color for layer titles */
            display: block;
            margin-left: 20px; /* Adjust as needed */
            position: relative;
        }

        .leaflet-control-layers-overlays input[type="radio"] {
            display: inline-block; /* Show radio buttons by default */
            margin-right: 20px; /* Adjust spacing */
        }

        .leaflet-control-layers-overlays input[type="radio"] + span {
            color: rgb(102, 204, 204); /* Font color for layer titles */
        }

        /* Show radio buttons when a radio button is selected */
        .leaflet-control-layers-overlays .active-group input[type="radio"] {
            display: inline-block;
        }

        .leaflet-control-layers-separator {
            border-bottom: 3px solid white;
            margin: 5px 0;
        }

        .contour-label {
            font-size: 10px;
            background: none;
            border: none;
            color: rgb(18, 70, 242);
        }

        .legend-group {
            display: none; /* Hide all legends by default */
        }

        .legend-group.active {
            display: block; /* Show active legend */
        }

        .opacity-slider {
            width: 80%;
            margin: 5px 10%;
        }

        .leaflet-control-layers-expanded .leaflet-control-layers-selector:checked + span {
            background-color: #39acac;
            border-radius: 3px;
            padding: 2px;
        }

        .leaflet-control-layers-expanded input[type="radio"]:checked + span {
            background-color: #3091db;
            border-radius: 3px;
            padding: 2px;
        }

        .leaflet-control-layers-expanded .leaflet-control-layers-group-radio:checked + span {
            background-color:#3091db;
            border-radius: 3px;
            padding: 2px;
        }
        .leaflet-draw-toolbar a {
            background-color:#39acac !important;
            color: white !important;
        }

        .leaflet-draw-toolbar a:hover {
            background-color: #005580 !important;
            color: white !important;
        }

        .leaflet-draw-tooltip {
            background-color: #003366 !important;
            color: white !important;
        }

        .leaflet-draw-tooltip-subtext {
            color: white !important;
        }