#slider-text {
    font-size: 0.9em;
    text-align: center;
}

#accordion-odors .ui-accordion .ui-accordion-content{
    border-top: 0;
    overflow: visible !important;
    display: block;
    height: auto;
}

#overlayBox {
    transition: transform 0.5s ease-out;
    position: absolute;
    /* padding: 15px; */
    height: auto;
    overflow: auto;
    top: 60px;
    right: 10px;
    width: 24em;
    border-radius: 5px;
}

#showBox {
    display: none;
    position: absolute;
    right: 10px;
    top: 60px;
    /* Add additional styles to make the showBox visible */
    width: 30px;
    height: 30px;
    background-color: #ccc;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
}

/* Separate */

.map-legends {
    display: flex;
    position: absolute;
    bottom: 20px; /* TODO: RB - magic numbers are bad */
    right: 55px;
    height: auto;
    flex-direction: column;
    align-items: end;
    gap: 0.4em;
}

.map-legends-sub {
    display: flex;
    gap: 0.4em;
}

#odorLegendBox {
    background-color: white;
    border: 2px solid #434343;
    width: 25em;
    height: fit-content;
    display: none;
    border-radius: 5px;
    box-sizing: border-box;
}

#odorLegendBox h4 {
    text-align: center;
    font-weight: bold;
    margin: 5px;
}

#odorLegend {
    padding: 1em;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6em;
    max-height: 6.2em;
    overflow-y: auto;
    justify-content: center;
}

#odorLegend > div {
    display: flex;
    align-items: center;
    padding: 0.4em 1em;
    background-color: #f0f0f0;
    font-size: 0.8em;
    border-radius: 0.6em;
    gap: 0.6em;
}

/* Map and Odor Reports Legend */
#mapLegend, #odorReportsLegend {
    background-color: white;
    box-sizing: border-box;
    border-radius: 5px;
    overflow: hidden;
    border: 2px solid #434343;
    font-weight: 600px;
}

#mapLegend > div:first-child, #odorReportsLegend > div:first-child {
    text-align: center;
    padding: 3px;
    font-weight: bold;
}

#mapLegend > div:last-child, #odorReportsLegend > div:last-child {
    display: flex;
    height: 3em;
    width: 100%;
}

#mapLegend {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.legend-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6em;
    padding: 0.4em;
    color: white;
    text-align: center;
    flex: 1;
    text-shadow: 1px 1px 2px #000000;
    font-weight: bold;
}

.legend-gradient {
    width: 0.4em;
    max-width: 0.4em;
}

#mapLegend .legend-label:nth-child(1) {
    background: #9cd9ee;
}

#mapLegend .legend-label:nth-child(3) {
    background: #ffc874;
}

#mapLegend .legend-label:nth-child(5) {
    background: #781041;
}

#mapLegend .legend-label:nth-child(7) {
    background: grey;
}

#mapLegend .legend-label span {
    font-size: 0.85em;
}

#mapLegend .legend-gradient:nth-child(2) {
    background: linear-gradient(to right, #9cd9ee, #ffc874);
}

#mapLegend .legend-gradient:nth-child(4) {
    background: linear-gradient(to right, #ffc874, #781041);
}

#mapLegend .legend-gradient:nth-child(6) {
    background: linear-gradient(to right, #781041, grey);
}

#odorReportsLegend .legend-label:nth-child(1) {
    background: #f1f426;
}

#odorReportsLegend .legend-label:nth-child(3) {
    background: #cb4779;
}

#odorReportsLegend .legend-label:nth-child(5) {
    background: #571fa4;
}

#odorReportsLegend .legend-label:nth-child(7) {
    background: #01004a;
}

#odorReportsLegend .legend-gradient:nth-child(2) {
    background: linear-gradient(to right, #f1f426, #cb4779);
}

#odorReportsLegend .legend-gradient:nth-child(4) {
    background: linear-gradient(to right, #cb4779, #571fa4);
}

#odorReportsLegend .legend-gradient:nth-child(6) {
    background: linear-gradient(to right, #571fa4, #01004a);
}

/* Map and Odor Reports Legend */

/* Slider */

.noUi-handle {
    top: 0 !important;
    right: -4px !important;
    height: 15px !important;
    width: 8px !important;
    border: none;
    outline: 2px solid var(--dark-grey);
    box-shadow: none;
    cursor: pointer;
}

.noUi-handle:before, .noUi-handle:after {
    display: none;
}

.noUi-connect {
    background: var(--secondary);
}

.noUi-pips {
    display: none;
}

/* Slider */

/* TODO/NOTE: RB - this will do for now */

@media (max-width: 1200px) {
    #overlayBox, .map-legends {
        display: block;
        width: auto;
        position: static;
        margin: 0.4em;
        height: auto;
    }

    .map-legends {
        display: flex;
    }

    .map-legends > * {
        width: 100%;
    }

    .map-legends-sub {
        display: flex;
        flex-direction: column;
    }

    #mapLegend, #odorReportsLegend, #odorLegendBox {
        width: 100% !important;
    }
}

/* RB - Hide sub menus on map and satellite buttons; TODO: move to other file */
.gm-style-mtc ul {
    display: none;
}
