#loader {
    color: #008cff;
    font-family: 'Helvetica Neue','calibiri';
    font-size: 14px;
    height: 40px;
    left: 45%;
    position: absolute;
    top: 45%;
    width: 30%;
  }
  
  .wrap {
    box-sizing: border-box;
    height: 260px;
    margin: 0 auto;
    /* padding: 30px 10px; */
    width: 260px;
  }



.selector-container input[type="radio"] {
    display: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.slider-container label {
    font-weight: bold;
    padding-top: 10px;
    display: block;
    width: 90%;
}

.selector-container input[type="radio"]:checked + .button {
    background-color: #6f518a;
    box-shadow: #3f324a;
    color: white;
    border-color: #6f518a;;
}
.e-control-wrapper.e-slider-container .e-slider .e-handle {
    background-color:#6f518a;
    border-color: #6f518a;
}
.e-slider-tooltip.e-tooltip-wrap.e-popup.e-tooltip-wrap.e-popup.e-material-default {
    background-color: #6f518a;
}
.e-control-wrapper.e-slider-container.e-horizontal {
    height: 48px;
    width: 90%;
    display: flex;
    justify-content: center;
}
.e-scale .e-tick.e-custom::before {
    content: '\e967';
    position: absolute;
}
/* #time-slider .e-handle {
    height: 25px;
    width: 2px;
    top: 3px;
    border-radius: 15px;
    background-color: #f9920b;
  } */
.map-section-header {
    background-color: #6f518a;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    padding: 5px 8px;
    border-radius: 4px;
    margin: 8px 0 4px 0;
    width: 90%;
}

#census-variable {
    width: 90%;
    padding: 6px 8px;
    border: 1px solid #6f518a;
    border-radius: 4px;
    font-family: 'Inter', 'DM Sans', sans-serif;
    font-size: 14px;
    color: #333;
    background-color: white;
    cursor: pointer;
    margin-top: 6px;
    display: block;
}

#census-variable:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(111, 81, 138, 0.2);
}

.DateTime-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}
.map-label {
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    width: 90%
}
.mapboxgl-compare .compare-swiper-vertical {
    background-color:#6f518a;
}

#console {
    position: absolute;
    box-shadow: inset 0 0 0 2px #fff;
    display:flex;
    top: 10px;
    left: 52px;
    flex-direction: column;
    width: 300px;
    height: fit-content;
    padding: 10px;
    background-color: white;
    overflow-y: auto;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: 'DM Sans', 'Inter', sans-serif;
}
.selector-container.hidden {
    display: none;
}
.selector-container {
    margin-top: 20px;
}

.console-content {
    flex: 1;
    overflow: hidden;
    height: fit-content;
    transition: height 0.3s ease;
    border:none;
}
.panel-collapsed {
    opacity: 0 !important;
    transform: translateY(-6px) !important;
    pointer-events: none !important;
}

.console-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: fit-content

}
#census-colorbar {
    display: flex;
    height: 20px;
    width: 100%;
}
.colorbar-segment {
    flex: 1;
    height: 100%;
}

.draggable {
    width: 300px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ffffff;
    background-color: #ffffff;
    position: absolute;
    top: 75%;
    left: 52px;
    cursor: move;
    z-index: 1000;
    font-family: 'DM Sans', 'Inter', sans-serif;
    box-sizing: border-box;
}
.slider-container {
    display: block;
    margin: 10px;
}

.slider-container.hidden {
    display: none;
}
.draggable h3 {
    margin: 0;
    padding: 0;
    cursor: move;
}
#toggle-button {
    background: none;
    border: none;
    font-size: 1em;
    cursor: pointer;
}

/* For the legend */
.map-legend {
    height: 8px;
    margin: 0;
    position: relative;
    pointer-events: none;
    width: 100%;
}
.map-legend-bar {
    position: relative;
}

.legend-bar {
    box-shadow: inset 1px 0 0 0 rgba(0, 0, 0, .1), inset 0 1px 0 0 rgba(0, 0, 0, .1), inset 0 -1px 0 0 rgba(0, 0, 0, .1);
    position: absolute;
    height: 8px;
    z-index: 0;
}
.map-legend-gradient {
    box-shadow: inset 1px 0 0 0 rgba(0, 0, 0, .1), inset 0 1px 0 0 rgba(0, 0, 0, .1), inset 0 -1px 0 0 rgba(0, 0, 0, .1);
    z-index: 0;
}
.map-legend-container {
    margin-top: 0;
    margin-bottom: 55px;
    width: 100%;
    padding: 0 30px 0 6px;
    box-sizing: border-box;
}
.census-legend-container {
    margin-top: 50px;
    margin-bottom: 55px;
    width: 100%;
    padding: 0 30px 0 6px;
    box-sizing: border-box;
}

.tick-text {
    font-family: "DM Sans";
    font-size: 12px;
    color: #6e6e6e;
    position: absolute;
    text-align: center;
    top: 13px;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}
.tick-text.guideline {
    color: #121212;
    font-weight: 700;
}

.tick-mark {
    background-color: #dcdcdc;
    height: 4px;
    position: absolute;
    top: 8px;
    width: 1px;
}

.tick-mark.guideline {
    background-color: #333;
    top: 0;
    height: 12px;
}
.tick-text-two-line {
    display: block;
    line-height: 1;
    position: relative;
}


.console-collapsed {
    transform: scale(0);
    opacity: 0;
}

/* Panel open/close transitions */
#console {
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.draggable {
    transition: opacity 0.25s ease, transform 0.25s ease, top 0.25s ease;
}

/* Toggle button hover */
#console-button-icon {
    transition: background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
#console-button-icon:hover {
    background-color: #f5f0f8;
    box-shadow: 0 2px 6px rgba(111, 81, 138, 0.25);
    color: #6f518a;
}

/* Radio button labels */
.toggle input + label {
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Checkbox labels */
.checkbox-container label {
    transition: color 0.15s ease;
    cursor: pointer;
}
.checkbox-container label:hover {
    color: #6f518a;
}

/* Census dropdown */
#census-variable {
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#census-variable:hover {
    border-color: #523d6f;
}

/* Map section header */
.map-section-header {
    transition: background-color 0.15s ease;
}

#console-button.visible {
    opacity: 1;
}

#console-button-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1001;
    background: white;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    font-size: 14px;
}
#mobile-datetime{
    display:none;}
.console-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}
#before, #after {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}


@media (max-width: 768px) {
    #console {
        top:1vh;
        width:100vw;
        height:auto;
        border-radius: 0;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        -ms-border-radius: 0;
        -o-border-radius: 0;
}
#console-button{
    display:flex;
    flex-direction: row;
    width:100vw;
}
    #comparison-container{
        height: 94vh;
        top: 6vh;
        position: relative;
        /* top:20vh; */
    }
    #draggable-div {
        width: 100vw;
        border: 1px solid #ffffff;
        background-color: #ffffff;
        position: absolute;
        cursor: move;
        z-index: 1000;
}
    #console {
        top: 1vh;
        left: 0;
    }
    #console-button-icon {
        position: static;
        width: auto;
        height: auto;
        box-shadow: none;
        border-radius: 0;
        padding: 0 8px;
    }
#mobile-datetime{
    display:flex;
    flex-direction: row;
    width:94vw;
    right:0;
    top:0
}
    .draggable{
        width: 100vw;
        left:0;
        border-radius:0;
        position: absolute;
        cursor: move;
        z-index: 1000;
        -webkit-border-radius:0;
        -moz-border-radius:0;
        -ms-border-radius:0;
        -o-border-radius:0;
}
    #explain{
        display:none
    }
    .mapboxgl-ctrl-geocoder {
        display: none;
    }
    .search-icon {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
        background: white;
        border-radius: 50%;
        cursor: pointer;
        z-index: 1;
    }
}
#explain{
    bottom:10px;
    right:10px;
    display: none;
}
.show-search .mapboxgl-ctrl-geocoder {
    display: block;
}

/* Style for the dimmed background */
.info-popup {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1001; /* Ensure it is above other content */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Black with opacity */
}

/* Style for the popup content */
.info-popup-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 600px; /* Maximum width */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

/* Style for the close button */
.info-popup .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}


.info-popup .close:hover,
.info-popup .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.mobile-console {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    transform: translateY(0);
    z-index: 1000;
}
.mobile-console.hidden {
    transform: translateY(100%);
}