.custom-spinner .dash-spinner {
    margin: auto;
    width: 70px;
    height: 70px;
    text-align: center;
    font-size: 50px;
    margin-left: 1%;
    position: relative;
}

/* Effectively the cards that holds all the stuff in */
#mapbox_div {
    position: relative;
    width: 100%;
    height: 50vh;
    margin:0px;
    border-radius: 10px;
    font-size: var(--font-size-dropdown); /* Seems to chagne the selection box for base map*/
    margin:0px;
    overflow: hidden;/* Corrected the property name to 'padding-top' */

}

#main_dash_map_div {
    width: 100%;
    height: 50vh;
}

#example-map  {
     position: relative;
     width: 100%;
     height:50vh;
     display: block;
     margin:0px;

}


@media screen and (max-height:500px) and (orientation: landscape) {
    #example-map  {
        height:100vh;

    }
    #main_dash_map_div  {
        height:100vh;

    }
    #mapbox_div {
        height:100vh;

    }
}

@media screen and (min-width:992) and (max-width:1200px){
    #example-map  {
        height:55vh;

    }
    #main_dash_map_div  {
        height:55vh;

    }
    #mapbox_div {
        height:55vh;

    }
}

@media screen and (max-width:992px) and (min-height:500px){
    #example-map  {
        height:60vw;

    }
    #main_dash_map_div  {
        height:60vw;

    }
    #mapbox_div {
        height:60vw;

    }
}

#change_range_radio_button {
    position: relative;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 100;
    border-radius: 5px;
    padding-top: 2px;
    padding-right: 5px;
    padding-bottom: 0px;
    padding-left: 8px;
    font-size: var(--font-size-dropdown);
}


#change_range_radio_button .form-check {
    margin-bottom: 0px;
    padding-bottom: 0px;
}

#change-range-radio-div {
    display: flex;
    position: absolute;
    top: 10px;
    left: 13px;
    z-index: 100;
}

.change-range-radio-label {
    display: inline-block;
    -webkit-font-smoothing: antialiased;;
    transition: all 0.2s ease;
}


#basemap-dropdown {
    font-size: var(--font-size-dropdown);
    z-index: 101;
    border-radius: 5px;
    width: 170px;
    height: 30px;
}

#basemap-dropdown-div {
    position: absolute;
    top: 63px;
    left: 13px;
    height: 45px;
    width: 270px;
    z-index: 100;
}

#basemap-dropdown .Select-control {
    border-radius: 5px !important;
    min-height: 30px;
    height: 30px;
}

#basemap-dropdown .Select-placeholder,
#basemap-dropdown .Select-value-label {
    font-size: var(--font-size-dropdown);
    line-height: 30px;
}

#basemap-dropdown .Select-menu-outer {
    top:30px; 
    margin-top: 7px !important;
    border-radius: 5px;
    z-index: 2000;
}


@media screen and (max-width:450px) {
    #basemap-dropdown {
        font-size: 12px;
        width: 140px;
    }

    #basemap-dropdown-div {
        position: absolute;
        top: 56px;
    }

    #basemap-dropdown .Select-placeholder,
    #basemap-dropdown .Select-value-label {
        font-size: 12px !important;
        line-height: 30px;
    }

    #change_range_radio_button,
    .change-range-radio-label {
        font-size: 12px;

    }

    #change-range-radio-div {
        height: 45px;
    }

}


/* Default div that holds the map and the dropdown card */

/* LIGHT MODE STYLES */
.light-mode #mapbox_div {
    box-shadow: none;
    border-color: none;
}

.light-mode #change_range_radio_button {
    border: 1px solid #cccccc;
    box-shadow: none;
    background-color: white;

}

.light-mode .change-range-radio-label {
    color:#A4AAAD;
}

.light-mode .change-range-radio-label.change-range-radio-input {
    color:#484856;
} 

.light-mode .form-check-input:checked {
    background-color: rgb(16, 51, 91);
    border: none;
}

.light-mode .form-check-input:focus {
    box-shadow: 0 0 2px 3px #d4f7ff;
}


.light-mode #basemap-dropdown {
    box-shadow: none;
}

.light-mode #basemap-dropdown .Select-control {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
}

.light-mode #basemap-dropdown .Select-control:focus {
    box-shadow: none !important;
}




/* DARK MODE STYLES */
.dark-mode #mapbox_div {
    box-shadow: none;
    border: 2px solid #424242
}

.dark-mode #change_range_radio_button {
    border:none;
    box-shadow: none;
    background-color: #212121;
}

.dark-mode .change-range-radio-label {
    color:#9E9E9E;
}

.dark-mode .change-range-radio-label.change-range-radio-input {
    color:white;
} 

.dark-mode .form-check-input {
    background-color:#BDBDBD;
    border-color: #757575;
}

.dark-mode .form-check-input:checked {
    background-color: #0277BD;
    border: #a4c7ef;
}




.dark-mode #basemap-dropdown .Select-control {
    background-color: #212121;
    border:none
}