.legend-container{
    position: relative;
    top: 240px;
    width: 190px;
    /* background-color: violet; */
    height: 160px;

}

.dropdown {
    position: relative;
    width: 100%;
    /* display: inline-block; */
}


#dropdown-rad{
    width: 90px;
    margin-left: 8px;
}

.button-container{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    /* padding: 8px; */
}

button{
    background-color: #ffffff;
    color: rgba(8,0,242,1);
    /* padding: 5px 20px; */
    border: 0.5px solid rgba(8,0,242,1);
    border-radius: 5px;
    cursor: pointer;
    font-weight:bolder;
    font-size: 14px;
    padding: 8px;
    text-align: left;
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

button:hover{
    background-color: rgb(245, 245, 255);
}


#dropdownButton{
    flex: 1;
    margin-right: 8px;
}

#search-rad{
    flex: 1;
}

#dropdownButton-rad{
    width: 90px;
}

/* .dropdown-button { */
    /* width: 100%; */
    /* height: 28px; */
    /* background-color: #ffffff;
    color: rgba(8,0,242,1); */
    /* padding: 5px 20px; */
    /* border: 0.5px solid rgba(8,0,242,1);
    border-radius: 5px;
    cursor: pointer;
    font-weight:bolder;
    font-size: 14px;
    padding: 8px;
    text-align: left;
    display: flex;
    justify-content: space-between; 
    align-items: center; */
/* } */

.dropdown-content {
    width: 100%;
    /* height: 28px;    */
    font-size: 14px;
    color: rgba(8,0,242,1);
    display: none;
    position: absolute;
    background-color: white;
    /* min-width: 200px; */
    box-shadow: 0px 4px 6px rgba(8,0,242,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.dropdown-content div {
    padding: 8px;
    cursor: pointer;
    /* border: 0.5px solid rgba(8,0,242,0.2); */
    border-bottom: 0.5px solid rgba(8,0,242,0.2);
    /* text-align: center; */
}

.dropdown-content div:last-child {
    border-bottom: none;
}

.dropdown-content div:hover {
    background-color: rgb(245, 245, 255);
}

.show {
    display: block;
}

.arrowDown{
    height: 14px;
    width: auto;
    /* margin-left: 8px; */
}

.kebab{
    height: 18px;
    width: auto;
    /* margin-left: 8px; */
}

.legend.hide{
    display: none;
}

.legend{
    height: 120px;
    display: flex;
    flex-direction: row;
    justify-content: start;
    padding-right: 8px;
    padding-left: 10px;
    padding-top: 16px;
}

.gradient{
    background: linear-gradient(to top, rgba(8,0,138,0.7), rgba(25,146,167,1), rgba(9,119,121,1), rgba(0,255,53,1));
    width: 24px;
    height: 100%;
    border-radius: 5px;
    opacity: 0.8;
    z-index: -1;
}

.gradient-labels{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-left: 12px;
    padding-right: 8px;
    height: 100%;
    font-size: 14px;
    color: rgba(8,0,242,1);
}

.category{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    /* padding: 8px; */
}

.category-color{
    height: 24px;
    width: 24px;
    border-radius: 5px;
}

label { display: block; margin: 5px 0; }

.label-bar{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/* .slider-container{
    margin-top: 8px;
    margin-bottom: 20px;
} */

#slider-bottom{
    margin-top: 30px;
}

.settings-menu{
    /* position: absolute;
    top: 100%; */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
    margin-top: 12px;
    border: 0.5px solid rgba(8,0,242,0.2);
    border-radius: 5px;
    opacity: 1;
    box-shadow: 0px 4px 6px rgba(8,0,242,0.1);
}

/* .settings-menu.hide{
    display: none;
} */

.settings-menu.hide {
    opacity: 0;
    pointer-events: none; /* Prevent interaction when hidden */
}

.settings-menu * {
    color: rgba(8,0,242,1);
}

.settings-subcontainer{
    padding-top: 20px;
    padding-bottom: 20px;
}

#settings-radius{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}


/* spinning wheel */

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 10px solid rgba(8,0,242,0.1);
    border-top: 10px solid rgba(8,0,242,0.8); /* Spinner color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}





/* Style the track (the rail) */
.slider {
    margin-top: 16px;
    width: 100%;
    margin-right: 8px;
    -webkit-appearance: none;
    appearance: none;
    /* width: 100%; */
    height: 2px; /* Thin blue rail */
    background: rgba(8,0,242,0.2);
    border-radius: 2px;
    outline: none;
}

/* Style the thumb (the draggable node) for WebKit browsers (Chrome, Safari, Edge) */
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 8px; /* Rectangle width */
    height: 24px; /* Rectangle height */
    background: rgba(8,0,242,0.8);
    border-radius: 2px; /* Slightly rounded edges */
    cursor: pointer;
}

/* Style the thumb for Firefox */
.slider::-moz-range-thumb {
    width: 16px;
    height: 24px;
    background: green;
    border-radius: 4px;
    cursor: pointer;
}

.legend-subcontainer{
    display: block;
}

.legend-subcontainer.hide{
    display: none;
}
