body {
    overflow-y: hidden;
    font-family: "Roboto", sans-serif;
    background-color: #212529;
}

button,
input[type="submit"] {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}

a.modebar-btn {
    font-size: 2rem !important;
    margin: 1rem .2rem;
}

.modal {
    --bs-modal-width: 800px !important;
}

.modal-body {
    padding: 0;
}

.modal-content {
    padding: 20px;
}

.modal-body>.dash-graph>.js-plotly-plot>.plot-container>.svg-container>.modebar-container>.modebar>.modebar-group>a.modebar-btn {
    font-size: 1.2rem !important;
    margin: .25rem .2rem;
}

.modal-body>.dash-graph>.js-plotly-plot>.plot-container>.svg-container>.modebar-container>.modebar {
    top: 0;
    margin-top: 0;
    padding-top: 0;
}

.tab-container {
    background-color: var(--principal_blue) !important;
    height: var(--header_height);
    padding-bottom: 20px;
}

.tab-content {
    background-color: #F0F1F2;
    height: -moz-fit-content;
    height: 96.3vh !important;
    position: relative;
    bottom: 0;
    box-shadow: inset 5px 0px 5px lightgrey;
}

:hover.tab.horizontal-menu:not(.tab--disabled)>span,
.tab.horizontal-menu.tab--selected>span {
    color: var(--lime);
    border-bottom: 4px solid var(--lime);
    padding-bottom: 1rem;
}

.tab.horizontal-menu.tab--disabled>span {
    color: #EBEBE4 !important;
}

#evaluation-tab-tooltip {
    margin-top: 0.6rem;
}

#login-modal-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#login-close {
    display: block;
    margin-left: auto;
}

#login-button {
    color: white;
    background-color: var(--principal_blue);
    display: flex;
    align-items: center;    
    justify-content: center;
    gap: 6px;
}

#login-button p {
    margin-bottom: 0;
}

#login-error {
    border: 2px solid hsl(0, 100%, 36%);
    background-color: rgb(255, 219, 218);
    padding: 1rem .75rem;
    border-radius: 5px;
}

#fullscreen-tab {
    position: fixed;
    top: 12px;
    right: 5px;
    background-image: url('./images/icons/Icon_Fullscreen.svg');
    background-repeat: no-repeat;
    background-position: 50%;
    height: 40px;
    width: 40px !important;
}

#fullscreen-tab:hover {
    background-image: url('./images/icons/Icon_Fullscreen_Lime.svg');
    cursor: pointer;
}

.horizontal-menu {
    background-color: var(--principal_blue) !important;
    font-weight: bold;
    border: none !important;
    color: white !important;
    padding-bottom: 0 !important;
    width: 136px !important;
    font-size: 20px;
}

#forecast-graph,
#evaluation-graph,
.leaflet-container {
    height: calc(100vh - var(--header_height));
    bottom: 0;
}

.description-title>p {
    height: 35px;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 0;
    line-height: 35px;
    margin: 1rem;
}

.description-body>p {
    opacity: 0.8;
    color: var(--principal_blue);
    font-size: 14px;
    letter-spacing: 0;
    line-height: 22px;
    margin: .5rem 1rem;
}

.btn-link {
    color: var(--principal_blue);
}

.date-picker .mantine-Input-input,
.date-picker .mantine-Input-input:focus {
    color: white !important;
    font-size: 1rem;
    font-weight: bold;
    padding: 0.7rem 0rem 0.5rem 1.1rem;
    background-color: var(--principal_blue) !important;
    border-color: white;
    border-style: solid;
    border-width: 1px 0px 1px 1px;
    cursor: pointer;
    height: var(--timeslider_height);
    border-radius: 5px 0px 0px 5px;
    width: 130px;
}

.date-picker .mantine-DateInput-input:hover {
    color: var(--lime);
}

.mantine-DateInput-monthCell:has(.mantine-DateInput-day[data-selected]) {
    background-color: var(--secondary_blue);
    color: white;
}

.mantine-DateInput-monthCell[data-with-spacing] {
    padding: 0px;
}

.mantine-DateInput-monthCell:hover,
.mantine-DateInput-monthCell:has(.mantine-DateInput-day[data-selected]):hover,
.mantine-DateInput-monthPickerControl:hover,
.mantine-DateInput-yearPickerControl:hover {
    background-color: var(--lime);
    color: var(--principal_blue);
}

.mantine-DateInput-calendarHeader {
    display: grid;
    grid-template-columns: auto auto auto;
    justify-content: space-between;
    margin-bottom: 0.5em;
}

.mantine-DateInput-month,
.mantine-DateInput-monthsList,
.mantine-DateInput-yearsList,
.mantine-DateInput-calendarHeader {
    width: 250px;
    text-align: center;
}

.mantine-DateInput-calendarHeaderLevel {
    text-align: center;
    font-weight: bold;
}

.mantine-DateInput-calendarHeaderControl {
    width: 14px;
}

.mantine-DateInput-weekday {
    font-weight: 500;
    font-size: .875em;
    color: rgb(117, 117, 117);
}

.mantine-DateInput-month tbody,
.mantine-DateInput-month td,
.mantine-DateInput-month tfoot,
.mantine-DateInput-montht head {
    border-width: 1px;
    border-color: rgb(228, 231, 231);
}

.SingleDatePicker_picker {
    position: absolute;
    bottom: 60px;
}

.DayPicker {
    position: absolute;
    bottom: 0px;
}

.mantine-DateInput-calendarHeaderControl[data-direction="previous"] {
    rotate: 90deg;
}

.mantine-DateInput-calendarHeaderControl[data-direction="next"] {
    rotate: 270deg;
}

.mantine-DateInput-calendarHeaderControlIcon {
    width: 100% !important;
    height: 100% !important;
}

.mantine-DateInput-day:disabled {
    color: rgb(206, 212, 218);
}

.mantine-DateInput-monthPickerControl:disabled:hover,
.mantine-DateInput-yearPickerControl:disabled:hover {
    color: rgb(206, 212, 218);
}

.mantine-DateInput-monthPickerControl {
    text-transform: capitalize;
}

.centered-image .layout-dropdown {
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    bottom: 18px !important;
}

.timesliderline>button {
    border-radius: 50%;
    border: none !important;
    outline: none !important;
    color: var(--principal_blue);
    background-color: white;
    display: inline-flex;
    margin-right: 0.5rem;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding-left: 4px;
}

.timesliderline>button:hover {
    background-color: var(--lime) !important;
}

.timesliderline>button:focus {
    background-color: white !important;
}

.timesliderline {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#clear-button>button {
    height: 28px;
    width: 28px;
}

.anim-buttons>button {
    width: 34px;
    height: 34px;
    margin: 0 4px;
}

/* Only the play icon needs the left padding to look centered */
.anim-buttons>.fa-grip-lines-vertical {
    padding-left: 0;
}

#utc {
    position: relative;
    right: 32px;
    margin-right: -25px;
    top: 22.5px;
    font-size: 12px;
    color: white;
}

.text-center {
    display: inline-block;
    text-align: center;
}

#clear-button {
    padding-left: 0.3rem !important;
}

.card-body>label {
    padding-bottom: 10px;
}

.Select-menu-outer {
    z-index: 10000 !important;
}

.navbar-timebar {
    height: 20px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    background-color: var(--principal_blue) !important;
    padding: 0 !important;
}

.centered-image>.layout-dropdown>#rgb-navbar>.container-fluid>.collapse>.navbar-nav {
    justify-content: center;
}

.navbar {
    background-color: transparent !important;
}

.navbar-nav {
    margin: 0px;
    width: -webkit-fill-available;
    width: -moz-available;
}

.navbar>.container-fluid {
    padding: 0px !important;
}

.navbar-toggler {
    height: 5vh;
    border-radius: 0px !important;
    border-bottom: none !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

#date-container {
    z-index: 1000;
    position: absolute;
    bottom: calc(var(--timeslider_height) - 22px);
    left: 235px;
    height: 20px;
    opacity: 1;
}

/* Lime line on top of the slider rail, over the day of the active timestep (set in
dateline.js). It is drawn inside the slider so that the thumb stays above it */
#pollutants-slider-container[data-date-line-day] .dash-slider-track::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 48.9362%;
    height: 2px;
    border-radius: 9999px 9999px 0px 0px;
    background-color: var(--lime);
}

#pollutants-slider-container[data-date-line-day="1"] .dash-slider-track::before {
    left: 51.0638%;
}

/* Ring around the thumb so the lime line does not stick out of it */
#pollutants-slider-graph .dash-slider-thumb,
#pollutants-slider-graph .dash-slider-thumb:hover,
#pollutants-slider-graph .dash-slider-thumb:focus {
    box-shadow: 0 0 0 2px var(--principal_blue);
}

#date-0,
#date-1 {
    z-index: 1100;
    position: absolute;
    height: 12px;
    /* 10px above the lime line, measured from the slider rail (set in dateline.js) */
    bottom: calc(var(--date_line_bottom, calc(var(--timeslider_height) - 30px)) + 10px);
    left: 235px;
    font-size: 12px;
    line-height: 1;
    font-weight: bold;  
    color: white;
    text-align: center;
    display: none;
}

#date-0.on-date-line,
#date-1.on-date-line {
    color: var(--lime);
}

.dash-slider-root.has-marks {
    padding: 6px 0 22px 0;
}

.forecast-issued-label>p {
    /* to adapt for sidebar width; */
    left: 295px;
    z-index: 1000;
    position: fixed;
    bottom: var(--timeslider_height);
    font-size: 10px;
    color: var(--principal_blue);
}

.fixed-bottom {
    /* to adapt for sidebar width; */
    left: 300px;
    width: fit-content;
}

.timeslider {
    display: flex;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    justify-content: flex-start;
}

#pollutants-timeslider {
    width: 40vw;
    min-width: 520px;
}

.timesliderline {
    background-color: transparent !important;
    border-right: 1px solid var(--dark_grey);
}

.slider-graph {
    background-color: var(--principal_blue);
    height: var(--timeslider_height);
}

#pollutants-slider-graph,
#aqi-slider-graph {
    border-radius: 0px 5px 5px 0px;
    border-color: white;
    border-style: solid;
    border-width: 1px 1px 1px 0px;
}

#pollutants-slider-container {
    width: 100%;
}

#pollutants-slider-graph {
    padding: 18px 20px 0px 15px !important;
    width: auto;
}

#aqi-slider-graph {
    padding: 14px 40px 10px 20px !important;
    width: 200px;
}

.anim-buttons,
#clear-button {
    background-color: var(--principal_blue) !important;
    height: var(--timeslider_height);
    border-color: white;
    border-style: solid;
    border-width: 1px 0px 1px 0px;
    padding: 0;
    border-right: none !important;
}

:not(body):has(>.driver-active-element) {
    overflow: clip !important;
}


.fa-play:hover,
.fa-circle:hover {
    background-color: var(--lime) !important;
}

.fa-play,
.fa-circle {
    transform: scale(0.8, 0.8);
}

.fa-grip-lines-vertical {
    font-size: 20px !important;
}

/* Position the parent of the timeslider */
.layout-dropdown {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.layout-dropdown .dropdown,
.layout-dropdown .timeslider {
    z-index: 1002 !important;
}

.layout-dropdown #map-view-dropdown,
.layout-dropdown #layers-dropdown {
    height: var(--timeslider_height);
    ;
    width: var(--timeslider_height);
    ;
    margin-left: 5px;
    border: 1px solid white;
    border-radius: 5px;
}

#map-view-dropdown.dropup.dropdown.show,
#layers-dropdown.dropup.dropdown.show {
    z-index: 1003 !important;
}

#layers-checklist {
    padding: 2px;
}

#layers-checklist .form-check {
    padding-left: 5px;
}

.form-check-label {
    font-size: 16px;
}

.form-check-input:checked {
    background-color: var(--principal_blue);
    border-color: var(--principal_blue);
}

.form-check-input:focus {
    box-shadow: none;
}

.dropup .dropdown-menu[data-bs-popper] {
    left: -107px;
}

.dropup .dropdown-toggle::after {
    display: none;
}

.layout-dropdown #map-layers-dropdown {
    bottom: 0;
    width: 127px;
}

.btn-primary {
    box-shadow: none !important;
    border: 0 !important;
}

.layout-dropdown #map-view-dropdown>button,
.layout-dropdown #layers-dropdown>button {
    background-color: var(--principal_blue) !important;
    background-repeat: no-repeat;
    background-position: 50%;
    text-align: right;
}

.layout-dropdown #map-view-dropdown>button {
    background-image: url('./images/icons/Icon_Map.png');
    width: 100%;
    height: 100%;
}

.layout-dropdown #layers-dropdown>button {
    width: 100%;
    height: 100%;
}

.layout-dropdown #layers-dropdown>button {
    background-image: url('./images/icons/Icon_Layers.svg');
}

.layout-dropdown #layers-dropdown>button:hover {
    background-image: url('./images/icons/Icon_Layers_Lime.svg');
}

div.dropdown-menu.show {
    position: absolute;
    z-index: 10000;
}

.layout-dropdown .dropdown-menu {
    padding: 0;
    margin-top: 0;
}

.layout-dropdown .dropdown-item {
    font-size: 16px;
    color: var(--principal_blue);
    background-color: white;
    padding: 0.3rem 0.3rem 0.3rem 0.6rem;
}

.dropdown-item:focus,
.dropdown-item:hover {
    background-color: rgba(0, 126, 255, 0.1);
    color: var(--principal_blue);
}

#graph-collection {
    height: 93vh !important;
    padding: 0 !important;
}

.info {
    padding: 0.75rem;
    font-size: 16px;
    box-shadow: none !important;
    line-height: 1.8 !important;
    left: 0;
    top: 0;
}

.info>p {
    white-space: nowrap;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.popup-map-point {
    z-index: 1001;
}

.leaflet-container .leaflet-popup-content-wrapper {
    font-size: 12px !important;
    border-radius: 5px !important;
    display: inline-flex !important;
    background-color: #ffffffcc;
}

.leaflet-popup-tip {
    background-color: #ffffffcc;
}

.pollutants-graph .leaflet-popup-content {
    margin: 0.5rem 0.2rem 0.5rem 0.5rem !important;
    line-height: 0.6 !important;
    width: auto !important;
}

.aqi-graph .leaflet-popup-content {
    margin: 0.8rem 0.5rem 0.8rem 0.5rem !important;
}

#evaluation-graph .leaflet-popup-content {
    width: auto !important;
}

.leaflet-container .leaflet-popup-content {
    display: block;
}

.pollutants-graph .leaflet-container .leaflet-popup-content .popup-map-value {
    width: 3.2rem;
    color: white;
    border-radius: 50%;
}

.leaflet-container .leaflet-popup-content .popup-map-value p {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    display: block;
    margin: 1.8em 0;
}

.leaflet-container .leaflet-popup-content-wrapper .popup-ts-right {
    float: left;
    padding-left: 0.5rem !important;
    padding-right: 0.2rem !important;
    margin-right: 0 !important;
    line-height: 0.4;
}

.pollutants-graph .leaflet-container .leaflet-popup-content .popup-map-value {
    float: left;
    height: 3.2rem;
}

.aqi-graph .leaflet-container .leaflet-popup-content .popup-map-value {
    display: flex;
    height: 2.2rem;
    padding-left: 5px;
    padding-bottom: 10px;
    justify-content: flex-start;
}

#evaluation-graph .leaflet-container .leaflet-popup-content-wrapper .popup-ts-right {
    line-height: 1.8;
}

#evaluation-graph .leaflet-popup-content {
    margin: 8px;
}

.popup-ts-body {
    display: flex;
    align-items: center;
}

.popup-ts-left p {
    margin: 0 !important;
}

.popup-ts-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.popup-map-value {
    display: flex;
}

.pollutants-graph .popup-map-value {
    align-items: center;
    justify-content: center;
}

.aqi-graph .popup-map-value {
    justify-content: flex-start;
}

.popup-ts-button {
    background-color: var(--principal_blue) !important;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    border: none;
    /* Side padding leaves room for the loader, so the button keeps its width when it appears */
    padding: 0.25rem 22px;
    border-radius: 5px;
    margin-top: 10px;
    height: 30px;
    display: flex;
    position: relative;
    font-size: 13px;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.popup-ts-button .ts-loader {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.popup-ts-button:hover {
    color: var(--lime);
}

/* .leaflet-container a.leaflet-popup-close-button {
    background-color: var(--principal_blue) !important;
    color: white !important;
    padding: 0 ! important;
    margin: 0 ! important;
    border-radius: 50% !important;
    top: -7px !important;
    right: -9px !important;
    height: 20px !important;
    width: 20px !important;
    font-size: 22px !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
    line-height: 20px !important;
}

.leaflet-container a.leaflet-popup-close-button:hover {
    color: var(--lime) !important; 
} */

.leaflet-popup-pane {
    z-index: 10001 !important;
}

.leaflet-control-colorbar {
    font-size: 1em !important;
}

.aqi-graph .leaflet-control-colorbar.leaflet-control {
    position: fixed;
    right: 0px;
    z-index: 1000;
}

.pollutants-graph .leaflet-control-colorbar.leaflet-control {
    position: fixed;
    bottom: 120px;
    right: 0px;
    background-color: var(--principal_blue);
    color: white;
    padding: 5px;
    border: 1px solid white;
    font-size: 10px !important;
    border-radius: 5px;
    padding-bottom: 25px;
}

.pollutants-graph .leaflet-control-colorbar.leaflet-control>div:first-child {
    background-color: #f5f8f4;
}

.pollutants-graph .leaflet-control-colorbar.leaflet-control>div:first-child>span {
    position: relative;
    z-index: 1000;
}

/* .leaflet-control-colorbar div:nth-child(2) span { */
/*     transform: rotate(20deg) !important; */
/* } */
/**/

.leaflet-control-zoom-fullscreen {
    display: none !important;
}

.eval-statistics-nav {
    display: flex;
    flex-flow: wrap;
    max-width: 94%;
    padding: 0.8rem 0 0 0.8rem;
}

.statistics-inputs {
    display: inline-flex;
    flex-flow: wrap;
}

.statistics-inputs .linetool {
    display: block !important;
    float: none !important;
    padding: 0 !important;
    margin: 0.2rem;
}

.statistics-ctas {
    display: inline-flex;
    padding-top: 1.5rem;
}

.statistics-ctas .linetool {
    display: block !important;
    float: none !important;
    padding: 0 !important;
    margin: 0.2rem;
}

/* @media screen and (max-width: 1250px) { */
/*     .layout-dropdown #map-view-dropdown { */
/*         left: 24px; */
/*         bottom: 120%; */
/*         height: 80%; */
/*     } */
/**/
/*     .layout-dropdown #map-layers-dropdown { */
/*         left: 156px; */
/*         bottom: 120%; */
/*         height: 80%; */
/*     } */

/* } */


.download-section {
    background-color: var(--secondary_blue);
}

.download-section:hover {
    background-color: var(--secondary_blue);
    color: var(--lime);
}

#downloads-selector-container-flex {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media screen and (max-width: 870px) {

    .tab.jsx-2137964197 {
        display: block !important;
        display: inline-block !important;
    }

    #forecast-tab,
    #evaluation-tab,
    #observations-tab {
        display: block !important;
        display: inline-block !important;
    }

    .tab-container.jsx-4017309047 {
        display: flex !important;
        flex-flow: row !important;
    }

}

.dash-slider-wrapper {
    height: 24px;
}

.dash-slider-mark {
    pointer-events: auto !important;
    color: var(--lime) !important;
}

.dash-slider-mark-outside-selection {
    color: #999 !important;
}

.dash-slider-thumb {
    background-color: var(--lime) !important;
    border: none;
}

.dash-slider-track {
    background-color: #3C3F5B;
}

.dash-slider-root:not([data-included='false']) .dash-slider-range {
    background-color: white;
}



#pollutants-slider-graph .dash-slider-mark-text {
    font-size: 12px;
}

#aqi-slider-graph .dash-slider-mark-text {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
}

.dash-slider-thumb {
    width: 14px;
    height: 14px;
}

.dash-slider-thumb:hover, .dash-slider-thumb:focus {
    outline: none;
    box-shadow: none;
    transform: none;
}

.dash-slider-wrapper {
    cursor: pointer;
}

.dash-range-slider-input {
    display: none;
}

.pollutants-graph .leaflet-interactive,
.aqi-graph .leaflet-interactive {
    cursor: pointer !important;
}

.pollutants-graph .leaflet-interactive:active,
.leaflet-interactive .leaflet-interactive:active {
    cursor: grabbing !important;
}

.leaflet-interactive {
    cursor: crosshair !important;
}

#open-timeseries>div {
    width: calc(100vw - 280px) !important;
}

/*styles for 404 page*/
.background {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url(./images/img-bg-404.jpg);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.error_links {
    color: var(--lime);
    text-decoration: underline;
    font-size: 1.3rem;
}

#error_title {
    font-size: 5rem;
}

#error_div {
    text-align: center;
    color: white;
    font-size: 1.1rem;
}

.table_caret_down {
    display: flex;
}

.table_caret_down:after {
    content: "\f107";
    font-weight: 900;
    font-size: 1.3rem;
}

.table_caret_up {
    display: flex;
}

.table_caret_up:after {
    content: "\f106";
    font-weight: 900;
    font-size: 1.3rem;
}

td.column-0 {
    max-width: 100%;
    min-width: 10%;
}

.toast-body {
    padding: .25rem .75rem;
}

#toast {
    left: 340px;
    bottom: 80px;
    z-index: 10000;
    position: absolute;
}

.fa-caret-down {
    color: white;
    position: absolute;
    top: 59px;
    left: 15px;
    font-size: xxx-large;
}

#domain-tooltip-target {
    position: fixed;
    top: 20px;
    right: 315px;
    background-image: url('./images/icons/Icon_Info_Lime.svg');
    background-repeat: no-repeat;
    background-position: 50%;
    background-color: var(--principal_blue);
    height: 20px;
    width: 20px;
    z-index: 1;
}

#urban-domain-tooltip-target {
    background-image: url('./images/icons/Icon_Info_Blue.svg');
    background-repeat: no-repeat;
    background-position: 50%;
    background-color: white;
    height: 20px;
    width: 20px;
}

.domain-dropdown {
    position: fixed;
    top: 15px;
    right: 50px;
    width: 260px;
    z-index: 1;
    background-color: transparent;
    color: white;
    border-color: rgb(204, 204, 204);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.domain-dropdown .dash-dropdown-value {
    max-width: none;
}

.domain-dropdown:focus {
    border-color: rgb(204, 204, 204);
}

.domain-dropdown svg {
    color: white;
}

.domain-dropdown svg:hover {
    color: var(--lime) !important;
}

.domain-dropdown .dash-dropdown-placeholder {
    color: white;
}

button#forecast-tab-domain-dropdown[aria-expanded="true"]
+ div .dash-options-list-option-text {
    font-size: 14px;
}

#timeseries-modal {
    margin: 20px !important;
    height: 300px;
}

.timeseries-logo {
    height: 30px;
}

.timeseries-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.timeseries-subheader {
    display: flex;
    flex-grow: 1;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.timeseries-download-button {
    background-color: var(--principal_blue);
}

.download-ts-button:hover, .download-ts-button:active {
    background-color: var(--principal_blue) !important;
    color: var(--lime);
}

/* Long station names must wrap instead of pushing the buttons out of the modal */
.timeseries-text {
    font-size: 14px;
    overflow-wrap: break-word;
}

.timeseries-text>p {
    margin: 0;
}

.tap-note {
    background-color: #F4F4F4;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 10px;
    font-size: 12px;
}

.tap-note img {
    height: 18px;
    width: 18px;
}

.timeseries-download-button {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-content: space-around;
    background-color: var(--principal_blue);
    background-image: url("./images/icons/Icon_Download.svg");
    background-repeat: no-repeat;
    background-position: 8% 50%;
    border-radius: 5px;
    font-size: 14px;
    width: fit-content;
    white-space: nowrap;
    padding-left: 35px;
    height: 37.6px;
}

.colorbar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    z-index: 1000;
}

#aqi-map-colorbar {
    right: 0;
    padding: 5px;
    margin: 10px;
    position: fixed;
    background-color: white;
}

#pollutants-map-colorbar {
    width: 500px;
    right: 0px;
    position: fixed;
    padding: 15px;
}

.colorbar-units {
    font-size: 12px;
    color: var(--principal_blue);
    opacity: 0.6;
    font-weight: 500;
    white-space: nowrap;
}

.colorbar-tick-labels {
    position: relative;
    width: 100%;
    font-size: 12px;
}

.colorbar-segments {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    background-color: white;
}

.colorbar-segment {
    height: 20px;
    border: 0.5px solid #B2B2B2;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    font-size: 12px;
}

#aqi-map-colorbar .colorbar-segment {
    flex: 0 0 130px;
}

#pollutants-map-colorbar .colorbar-segment,
#timeseries-colorbar .colorbar-segment {
    flex: 1;
}

#timeseries-colorbar {
    padding: 10px 200px;
}

.timeseries-utc {
    position: absolute;
    font-size: 10px;
    bottom: 228px;
    right: 30px;
}

.timeseries-download-button:hover,
.timeseries-download-button:focus {
    background-color: var(--principal_blue) !important;
    color: var(--lime);
    background-image: url("./images/icons/Icon_Download_Lime.svg");
}

#signup-section {
    display: grid;
    grid-template-columns: 20% 80%;
    height: 500px;
}

#login-form-welcome,
#signup-form-join {
    color: var(--principal_blue);
    text-align: center;
    font-size: 38px;
    font-weight: 700;
    margin: 10px;
}

#login-form-email,
#login-form-password,
#signup-form-name,
#signup-form-surname,
#signup-form-email,
#signup-form-password,
#signup-form-institution,
#signup-form-position,
#signup-form-interest {
    border: 1px solid var(--principal_blue);
    border-radius: 23.824px;
    padding: 15px;
    height: 40px;
    margin: 5px;
}

#login-form-email,
#login-form-password {
    width: 464px;
}

#login-form-button,
#signup-form-button {
    width: 263px;
    height: 47px;
    background-color: var(--principal_blue);
    border-radius: 23.824px;
    margin: 5px;
}

#login-form-register,
#signup-form-login {
    color: var(--green);
}

#signup-form-email,
#signup-form-password,
#signup-form-interest {
    width: 510px;
}

#signup-form-name,
#signup-form-surname,
#signup-form-institution,
#signup-form-position {
    width: 250px;
}

#signup-barcelona {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    height: 500px;
}

#signup-form-check>label>input,
#login-form-check>label>input {
    margin-right: 5px;
}

.leaflet-top {
    bottom: 0;
}

.leaflet-top .leaflet-control-zoom {
    position: fixed;
    bottom: 10px;
    right: 10px;
}

.leaflet-right .leaflet-control {
    margin: 0 !important;
    font-size: 8px !important;
}

.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
    border: 1px solid white !important;
}

.leaflet-top .leaflet-control-zoom-in,
.leaflet-top .leaflet-control-zoom-out {
    background-color: var(--principal_blue);
    color: white;
    height: 50px !important;
    width: 50px !important;
    font-size: 30px !important;
    font-weight: 50;
    padding-top: 8px;
}

.leaflet-touch .leaflet-bar a:first-child {
    border-radius: 5px 5px 0px 0px !important;
}

.leaflet-touch .leaflet-bar a:nth-child(2) {
    border-radius: 0px 0px 5px 5px !important;
}

.leaflet-top .leaflet-control-zoom-in:hover,
.leaflet-top .leaflet-control-zoom-out:hover {
    background-color: var(--secondary_blue) !important;
    color: var(--lime);
}

.leaflet-bar a.leaflet-disabled:hover {
    background-color: white !important;
    color: #bbb !important;
}

#human-health-note {
    font-size: 13px;
    padding: 20px;
}

.Select-value-label {
    white-space: normal;
    overflow-wrap: break-word;
}

.daily-stat-dropdown {
    position: relative;
    top: 0;
    background-color: var(--principal_blue);
    width: 7.5vw;
    height: var(--timeslider_height);
    color: white;
    margin-left: 5px;
    border: 1px solid white;
    border-radius: 5px;
    z-index: 1000;
}

/* Keep the white border when focused, dash recolours it and adds an outline */
.daily-stat-dropdown:focus {
    border: 1px solid white;
    outline: none;
}

.daily-stat-dropdown .Select-control {
    height: var(--timeslider_height);
}

.daily-stat-dropdown .dash-dropdown-value,
.daily-stat-dropdown .dash-dropdown-placeholder {
    color: white !important;
}

.daily-stat-dropdown::before {
    position: absolute;
    color: white;
    z-index: 10000;
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
    top: 5px;
    left: 25px;
}

#daily-average-dropdown.lang-en::before {
    content: "Average";
}

#daily-average-dropdown.lang-es::before {
    content: "Media";
}

#daily-average-dropdown.lang-ca::before {
    content: "Mitjana";
}

#daily-maximum-dropdown.lang-en::before {
    content: "Maximum";
}

#daily-maximum-dropdown.lang-es::before {
    content: "Máximo";
}

#daily-maximum-dropdown.lang-ca::before {
    content: "Màxim";
}

.daily-stat-dropdown .dash-dropdown-placeholder,
.daily-stat-dropdown .dash-dropdown-value {
    margin-top: 18px;
}

.daily-stat-dropdown .dash-dropdown-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: absolute;
}

.daily-stat-dropdown .dash-dropdown-value-count, .daily-stat-dropdown .dash-dropdown-trigger-icon {
    display: none;
}

.daily-stat-dropdown .dash-dropdown-value,
.daily-stat-dropdown .dash-dropdown-placeholder {
    font-size: 15px;
    cursor: pointer;
}

.daily-stat-dropdown .dash-dropdown-value {
    color: white;
}


.daily-stat-dropdown .dash-dropdown-placeholder {
    color: #999;
}

.daily-stat-dropdown .dash-dropdown-value:hover {
    color: var(--lime);
}

.daily-stat-dropdown[aria-expanded="true"]
+ div .dash-options-list-option-text {
    font-size: 14px;
}

/* On variable selector */
.selector-container .dash-options-list-option[aria-selected="true"], 
#forecast-sidebar-central-items .dash-options-list-option[aria-selected="true"] {
    background-color: transparent;
    font-weight: bold;
}

.dash-options-list-option[aria-selected="true"] {
    background-color: var(--sky_blue);
    font-weight: bold;
}

.dash-options-list-option[aria-selected="false"] {
    font-weight: normal;
}

.dash-dropdown[aria-expanded="true"]
+ div .dash-options-list-option:not(:has(input[disabled])):hover {
    background-color: var(--sky_blue) !important;
    color: black !important;
}

.dash-dropdown[aria-expanded="true"]
+ div .dash-options-list-option:not(:has(input[disabled])):focus-within {
    color: black !important;
}

.dash-dropdown[aria-expanded="true"]
+ div .dash-options-list-option[aria-selected="true"] {
    font-weight: 500;
    color: black !important;
}

#return-button-div {
    height: var(--timeslider_height);
    width: var(--timeslider_height);
    text-align: center;
    margin-left: 5px;
    z-index: 1000;
    right: 10px;
    top: 70px;
}

.hidden-vis {
    visibility: hidden;
}

#return-tooltip-target {
    background-repeat: no-repeat;
    background-position: 50%;
    height: var(--timeslider_height);
    width: var(--timeslider_height);
    border: 1px solid white;
    border-radius: 5px;
    background-color: var(--principal_blue);
    background-image: url('./images/icons/Icon_Refresh.svg');
}

#return-tooltip-target:hover {
    background-image: url('./images/icons/Icon_Refresh_Lime.svg');
}

#hide-slider,
#hide-daily-maximum,
#hide-daily-average,
#hide-return-button {
    position: absolute;
    background-color: white;
    opacity: 0.3;
    z-index: 1200;
    height: var(--timeslider_height);
    display: none;
}

#hide-slider {
    width: 40vw;
    min-width: 520px;
    left: 0;
    border-radius: 5px;
    border: 1px solid white;
}

#hide-daily-maximum,
#hide-daily-average {
    width: 7.5vw;
    top: 0;
    border-radius: 5px;
    border: 1px solid white;
    margin-left: 5px;
}

.tooltip-inner {
    background-color: var(--lime);
    color: var(--principal_blue);
}

.tooltip-arrow::before {
    border-top-color: var(--lime) !important;
    border-bottom-color: var(--lime) !important;
}

.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: var(--lime) !important;
    border-top-color: transparent !important;
    border-bottom-color: transparent !important;
}

#aqi-map-colorbar-tooltip-target {
    position: absolute;
    top: 10px;
    right: 800px;
    background-image: url('./images/icons/Icon_Info_Blue_L.svg');
    background-repeat: no-repeat;
    background-position: 50%;
    background-color: transparent;
    z-index: 1000;
    width: 14px;
    height: 14px;
}

#average-date-tooltip-target,
#maximum-date-tooltip-target {
    position: absolute;
    background-image: url('./images/icons/Icon_Info_Lime.svg');
    background-repeat: no-repeat;
    background-position: 50%;
    background-color: transparent;
    z-index: 10000;
    padding: 15px 20px;
}

#colorbar-units {
    position: fixed;
    bottom: 120px;
    right: 17px;
    font-size: 14px;
    color: white;
    z-index: 1000;
}

.edit-button {
    background-image: url('./images/icons/Icon_Calendar_Edit.svg');
    background-repeat: no-repeat;
    background-position: 50%;
}

#layers-dropdown-div {
    z-index: 1000;
    position: relative;
}

#layers-count {
    background-color: var(--lime);
    color: var(--principal_blue);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    position: absolute;
    top: -6px;
    right: -6px;
    z-index: 1000;
}

.modal-lg,
.modal-xl {
    --bs-modal-width: 950px;
}

.eval-tooltip-target {
    background-image: url('./images/icons/Icon_Info_Blue.svg');
    background-repeat: no-repeat;
    background-position: 50%;
    background-color: transparent;
    height: 20px;
    width: 20px;
}

.eval-tooltip-target:hover,
.eval-tooltip-target:focus {
    background-color: transparent !important;
}

/* Decrease sizes in layout when resolution is too high */
@media (min-resolution: 120dpi) {
    .jsx-3468109796 {
        font-size: 17px;
    }

    .info {
        font-size: 13px !important;
    }

    .fixed-bottom {
        /* to adapt for sidebar width; */
        left: 250px;
    }

    .forecast-issued-label>p {
        /* to adapt for sidebar width; */
        left: 245px;
    }

    .sidebar-bottom .card-text>.download-section {
        font-size: 12px !important
    }

    #aqi-map-colorbar-tooltip-target {
        right: 605px;
    }

    #date-container {
        height: 25px;
    }

    .daily-stat-dropdown::before {
        font-size: 13px;
    }

    .timeseries-text {
        font-size: 12px;
    }

    #threshold-grid {
        top: 60px;
    }

    .info,
    .colorbar-units,
    .timesliderline #date,
    .daily-stat-dropdown::before {
        font-weight: 500;
    }

}

@media (max-width: 1149px) {
    .timesliderline #date {
        font-size: 13px;
        padding: 10px !important;
    }

    .DateInput {
        width: 100px;
    }

    #date-container,
    #date-0,
    #date-1 {
        left: 185px;
    }

    /* Hide 06:00 and 12:00 and 16:00 to show only 00:00 08:00 16:00 00:00 08:00 16:00  */
    #pollutants-slider-graph .dash-slider-mark:nth-of-type(2),
    #pollutants-slider-graph .dash-slider-mark:nth-of-type(4),
    #pollutants-slider-graph .dash-slider-mark:nth-of-type(6),
    #pollutants-slider-graph .dash-slider-mark:nth-of-type(8),
    #pollutants-slider-graph .dash-slider-mark:nth-of-type(10),
    #pollutants-slider-graph .dash-slider-mark:nth-of-type(12) {
        display: none;
    }

    #pollutants-timeslider,
    #hide-slider {
        min-width: 400px;
    }

    #daily-average-dropdown.lang-en::before {
        content: "AVG";
    }

    #daily-average-dropdown.lang-es::before {
        content: "MED";
    }

    #daily-average-dropdown.lang-ca::before {
        content: "MIT";
    }

    #daily-maximum-dropdown:before {
        content: "MAX" !important;
    }

    .daily-stat-dropdown,
    #hide-daily-maximum,
    #hide-daily-average {
        min-width: 50px;
        margin-left: 0px;
    }

    .layout-dropdown #map-view-dropdown,
    .layout-dropdown #layers-dropdown,
    #return-button-div {
        margin-left: 0px;
    }

}

@media (min-width: 1150px) {

    /* Hide 08:00 and 16:00 to show only 00:00 06:00 12:00 18:00 00:00 06:00 12:00 18:00  */
    #pollutants-slider-graph .dash-slider-mark:nth-of-type(3),
    #pollutants-slider-graph .dash-slider-mark:nth-of-type(5),
    #pollutants-slider-graph .dash-slider-mark:nth-of-type(9),
    #pollutants-slider-graph .dash-slider-mark:nth-of-type(11) {
        display: none !important;
    }
}

@media (max-width: 1299px) {

    #aqi-map-colorbar .colorbar-segment {
        flex: 0 0 80px !important;
        font-size: 12px !important;
        height: 40px !important;
        white-space: wrap !important;
        text-align: center !important;
    }

    #aqi-map-colorbar-tooltip-target {
        right: 500px;
        height: 25px;
    }
}

.hidden {
    display: none;
}

#popup-close {
    float: right;
    position: absolute;
    background-color: var(--principal_blue);
    border-radius: 50%;
    top: -7px;
    right: -9px;
    height: 20px;
    width: 20px;
    padding: 0;
    margin: 0;
    background-image: url('./images/icons/Icon_Close.svg');
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: 10px;
}

#popup-close:hover {
    color: var(--lime);
}

#group-1-toggle,
#group-2-toggle {
    cursor: auto;
}

.tooltip {
    z-index: 100000;
}

.Select--single>.Select-control .Select-value,
.dash-dropdown-placeholder {
    line-height: 38px;
}

.map-wrapper, #open-timeseries > div {
    position: absolute !important;
    height: 100%;
    width: 100%;
}

.map-loader {
    position: absolute;
    z-index: 1000;
    width: calc(100vw - var(--sidebar_width));
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    background-color: black;
    opacity: 0.4;
}

.spinner {
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.map-loader .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #ccc;
    border-top-color: var(--principal_blue);
}

.ts-loader .spinner {
    width: 15px;
    height: 15px;
    border: 2px solid white;
    border-top-color: var(--principal_blue);
}

.popup-ts-button:hover .ts-loader .spinner {
    border: 2px solid var(--lime);
    border-top-color: var(--principal_blue);
}

.login-loader .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid white;
    border-top-color: var(--principal_blue);
}

#open-timeseries > div > div {
    position: relative !important;
    width: calc(100vw - var(--sidebar_width)) !important;
    height: 100% !important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#timeseries-zoom-buttons {
    display: flex;
    justify-content: flex-end;
}

.timeseries-button {
    background-repeat: no-repeat;
    background-position: 50%;
    height: 20px;
    width: 20px;
    padding: 20px;
}

.timeseries-button:hover {
    cursor: pointer;
}

#timeseries-zoom-in {
    background-image: url('./images/icons/Icon_Timeseries_Plus.svg');
}

#timeseries-zoom-out {
    background-image: url('./images/icons/Icon_Timeseries_Minus.svg');
}

#timeseries-zoom-reset {
    background-image: url('./images/icons/Icon_Timeseries_Reset.svg');
}

#start-date-picker,
#end-date-picker {
    cursor: pointer;
    caret-color: transparent;
}

#start-date-picker::selection,
#end-date-picker::selection {
    background: transparent;
}

#evaluation-tab-domain-dropdown .Select--single>.Select-control .Select-value, 
#evaluation-tab-domain-dropdown .Select-placeholder {
    background-color: var(--principal_blue);
}

.tabs-disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

.tabs-disabled * {
    cursor: not-allowed !important;
}

.mantine-DateInput-calendarHeader button:first-child svg {
    transform: rotate(360deg);
}

.mantine-DateInput-calendarHeader button:last-child svg {
    transform: rotate(360deg);
}

#desktop-guide-selector {
    position: fixed;
    bottom: 120px;
    right: 10px;
    height: 50px;
    width: 50px;
    z-index: 1000;
    background-color: var(--principal_blue);
    border-radius: 5px;
    background-image: url('./images/icons/Icon_Info.svg');
    background-repeat: no-repeat;
    background-position: 50%;
}

#desktop-guide-selector:hover {
    cursor: pointer;
}