:root {
    --primary:#1b1543;
}

body { 
    margin: 0; 
    padding: 0; 
}

.map-container {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#map { 
    position: absolute; 
    top: 0; 
    bottom: 0; 
    width: 100vw; 
    margin: 0 auto;
}

.mapboxgl-popup-close-button {
    font-size: 20px;
    right: 3px;
    top: 3px;
}

.mapboxgl-popup-content {
    padding:0px !important;
}

.popup-header {
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #999;
    padding:3px 5px; 
}

.popup-body {
    padding:10px;
}

.popup-body .field-header {
    font-weight: bold;
}

.slider-section {
    position: absolute;
    bottom: 0px;
    left:0px;
    z-index: 2;
    width: 100%;
    min-height: 100px;
    height: auto;

    margin:0px;
    padding: 10px 15px;
    background-color: #1b1b1bea;
    border-radius: 0px;
    box-shadow: 0px 0px 0.5rem #999;
}

.map-slider {
    display: flex;
    align-items: center;
    padding:0.25rem 0.5rem;
    color:white;
    margin-top: -20px;
}

.continent-selector {
    position: absolute;
    top:0px;
    right:10px;
    z-index: 2;
    margin: 10px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0px 0px 0.5rem #999;

    width: 220px;
    height: 30px;

    text-align: center;

    max-width: 1080px;
    margin: 10px auto;
    display: flex;
}

.continent-selector select {
    width: 100%;
}

select:focus {
    outline: none;
}

.legend-container {
    position: absolute;
    top: 150px;
    right: 30px;
    display: none !important;
    height: auto;
    padding: 5px;
    border-radius: 5px;
    z-index: 2;
    background-color: rgb(47 47 47);
}

.legend-header {
    color:white;
}

.legend-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
}

.legend-item {
    position: relative;
    display: flex;
}

.legend-item .legend-card {
    width: 40px;
    height: 20px;
    flex: 1;
}

.legend-item .text-item {
    /* position: absolute; */
    width: 40px;
    left:-15px;
    font-size: 12px;
    color:white;
    margin-left: 4px;
    flex: 1;
}

.kpi-indicator {
    position: absolute;
    top:0px;
    left: 50px;
    padding: 10px;

    font-size: 20px;
    font-weight: 600;

    z-index: 2;
    margin: 10px;
    background-color: rgb(47 47 47);
    border-radius: 5px;
    /* box-shadow: 0px 0px 0.5rem #999; */

    /* width: 200px; */
    /* height: 30px; */

    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kpi-indicator div {
    min-width: 200px;
    color:aquamarine;
}

.tooltip.tooltip-main.bs-tooltip-top {
    position: absolute;
    margin-top: -25px;
    margin-left: -10px;
    color: white;

}

.tooltip .tooltip-inner {
    background-color: #8a2020;
    border-radius: 2px;
    font-size: 14px;
    padding: 1px 2px;
}

.slider-body {
    width: 80%;
    margin: 0 auto;
    position: relative;
}

.slider-text {
    position: absolute;
    top:-15px;
    font-size: 15px;
}

.slider-text.last-year {
    right:0px;
}

.slider-body .slider.slider-horizontal {
    width: 98% !important;
    margin:0 auto;
}

.slider-tick.round {
    border-radius: 0px;
}

/* .slider-tick {
    width: 3px;
    height: 15px;
    margin-left: -2px !important;
    border-radius: 0px;
    margin-top: 10px;
} */

.slider-track {
    background-color: #999 !important;
}

.slider-selection {
    background-image: linear-gradient(to bottom, #8a2020, #b40e0e);
}

.slider-selection.tick-slider-selection, .slider-handle.max-slider-handle.round, .slider-handle.min-slider-handle.round {
    background-image: linear-gradient(to bottom, #8a2020, #b40e0e);
    border-radius: 2px;
    /* width: 5px; */
}

.sliderplay-options {
    margin-right: 0.8rem;
    display: flex;
}

.slider-horizontal.slider-handle {
    margin-left: -5px;
}

.sliderplay-options .slider-text {
    margin:0 0.5rem;
}

.slider-tick.in-selection {
    background-color: orange !important;
    background-image: linear-gradient(to bottom, #a31313, #840606);
    /* border-radius: 0px;
    width: 3px;
    height: 15px;
    margin-top: 10px;
    background: #b40e0e; */
}

#play-btn {
    font-size: 25px;
    position: absolute;
    top:60px;
    left:60px;
}
#play-btn > * {
    pointer-events: none;
}

#play-btn i:first-child {
    display: block;
}

#play-btn i:last-child {
    display: none;
}

#play-btn.play-mode i:last-child {
    display: block;
}

#play-btn.play-mode i:first-child {
    display: none;
}

.year-header {
    position: absolute;
    bottom: 100px;
    right:30px;
    color:#ddd;
    font-size: 35px;
    font-weight: 600;
    z-index: 3;
}

#year-header {
    margin-left: 5px;
    font-size: 25px;
    color: aquamarine;
    font-weight: 600;
}

.card-section {
    max-width: 1080px;
    margin: 10px auto;
    display: flex;
}

.card-section .card {
    color:#fff;
    display: flex;
    align-items: center;
    min-width: 200px;
}

.card span {
    border-radius: 50%;
    border:3px solid #fff;
    color:#e4e3ef;

    width: 40px;
    height: 40px;
    font-size: 22px;
    margin-right: 5px;

    display: flex;
    align-items: center;
    justify-content: center;
    padding:3px;
}

.card .text-value {
    color:aquamarine;
    font-weight: 600;
    font-size: 18px;
}


.spinner-container {
    position: absolute;
    z-index: 3;
    top:0;
    left:0;
    width: 100%;
    height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    background-color: black;

    /* display: none !important; */
    
}

.spinner {
    border:4px solid aquamarine;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding:2px;
    border-color:aquamarine transparent aquamarine;
    animation: spin 1s infinite;
}

.spinner-container p {
    color:white;
    margin-top: 10px;
}

.d-none {
    display: none !important;
}


@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
