*, ::after, ::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    background-color: #303030;
    font-family: sans-serif;
}


/* ===== Scrollbar CSS ===== */
/* Firefox */
* {
    scrollbar-width: 10px;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
    width: 10px;
}
*::-webkit-scrollbar-track {
    background: transparent;
}
*::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 0;
    border: 3px solid transparent;
}


/* Utilities  */
.visually-hidden, 
.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.unselectable {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}


/* Loader screen  */
.fullscreen-spinner {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000000;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: inherit;
}
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: -.125em;
    border: .25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    -webkit-animation: .75s linear infinite spinner-border;
    animation: .75s linear infinite spinner-border;
    color: rgba(255, 255, 255, 0.2);
}
@-webkit-keyframes spinner-border { to { transform: rotate(360deg) } }
@keyframes spinner-border { to { transform: rotate(360deg) } }


/* Layout  */
.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}
.header, .footer {
    flex-shrink: 0;
}
.header {
    height: 80px;
    margin: 0 20px;
    display: flex;
    flex-direction: row;
}
.header:before {
    position: absolute;
    top: 0;
    right: 20px;
    left: 20px;
    display: block;
    width: calc(100% - 40px);
    height: 4px;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    background-color: rgb(0, 165, 235);
    content: " ";
}
.header > section {
    flex-grow: 1;
}
.footer {
    height: 20px;
}
.content {
    /* Take the remaining height */
    flex-grow: 1;
    margin: 0 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    border-radius: 20px;

    /* Layout the main content and sidebar */
    display: flex;
    flex-direction: row;
}
.static-page-content {
    display: none;
    /*box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);*/
    border-radius: 20px;
    position: absolute;
    z-index: 99999;
    background-color: #303030;
    top: 80px;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: calc(100% - 100px);
    width: calc(100% - 40px);
    overflow-y: auto;
}
.static-page-content section {
    margin: 50px auto;
    width: 600px;
    width: 60ch;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}
.static-page-content p {
    margin: 1em 0;
}
.static-page-content a {
    color: inherit;
}
.static-page-content svg {
    position: absolute;
    top: 50px;
    right: 50px;
    width: 24px;
    height: 24px;
    fill:  rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition-duration: 0.2s;
}
.static-page-content svg:hover {
    fill:  rgba(255, 255, 255, 0.85);
}
.sidebar {
    width: 250px;
    height: calc(100vh - 100px);
    background-color: #2e2e2e;
    border-left: 1px solid #404040;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    padding: 15px;
    padding-right: 5px;
    display: flex;
    flex-direction: column;
}
.sidebar-note {
    margin: -15px -5px -15px -15px;
    padding: 9px 15px 11px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
}
.sidebar-note:first-of-type {
    margin-bottom: 15px;
    border-top-right-radius: 20px;
}
.sidebar-note:last-of-type {
    margin-top: 15px;
    border-bottom-right-radius: 20px;
}
.map {
    flex-grow: 1; /* Take the remaining width */
    background-color: transparent;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}


/* Country selector */
.country-selector {
    position: relative;
    width: 180px;
    margin: 17px 0 17px 15px;
    font-size: 14px;
}
.country-selector label {
    display: block;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.3);
}
.country-selector select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    min-width: 70px;
    outline: none;
    border: none;
    border-radius: 5px;
    padding: 6px 8px 5px;
    background: #444;
    color: rgb(220, 220, 220);
    font-size: inherit;
}
.country-selector svg {
    position: absolute;
    right: 10px;
    top: 28px;
    width: 10px;
    height: 10px;
    fill: rgba(255, 255, 255, 0.4);
}


/* Logo  */
.logo {
    /*flex-grow: 1;*/
    text-align: center;
    padding: 28px 0 24px;
}
.logo img {
    height: 30px;
    margin-bottom: -5px;
}


/* Nav */
.nav {
    width: 250px;
    padding: 21px 15px 17px 0;
    text-align: right;
    float: right;
}
.nav span {
    color: rgba(255, 255, 255, 0.3);
    padding: 10px 14px 11px;
    text-align: left;
    line-height: 1;
    transition-duration: 0.15s;
    cursor: pointer;
    float: right;
    border: 0;
    outline: 0;
    font-size: 18px;
}
.nav span:hover {
    color: rgb(255, 149, 2);
}
.nav .nav-elva-logo {
    float: right;
    margin-left: 10px;
    margin-right: 2px;
}


/* Leaflet layout */
.leaflet-left .leaflet-control {
    margin-left: 15px;
}
.leaflet-top .leaflet-control {
    margin-top: 15px;
}


/* Leaflet zoom control */
.map .leaflet-control-zoom {
    box-shadow: none;
    border: none;
}
.map .leaflet-control-zoom a,
.map .leaflet-control-zoom a:hover {
    border-color: transparent;
    background-color: rgba(70, 70, 70, 0.7);
    color: rgba(255, 255, 255, 0.4);
    transition-duration: 0.15s;
}
.map .leaflet-control-zoom a:hover {
    color: rgba(255, 255, 255, 0.55);
    background-color: rgba(85, 85, 85, 0.7);
}
.map .leaflet-control-zoom a:first-child {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
.map .leaflet-control-zoom a:last-child {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}


/* Leaflet scale info control */
.map .leaflet-control-scale {
    margin-left: 15px;
    margin-bottom: 15px;
}
.map .leaflet-control-scale-line {
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.2);
    background: none;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    padding: 4px 5px 2px;
}
.glmap .mapboxgl-ctrl-scale {
    float: right;
    margin: 0 0 7px 0;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.2);
    background: none;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    padding: 2px 5px 1px;
}


/* Leaflet attribution control */
.map .leaflet-control-attribution {
    background: none;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    margin-right: 15px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.4);
}
.map .leaflet-control-attribution a,
.map .leaflet-control-attribution a:hover,
.glmap .mapboxgl-ctrl-attrib a,
.glmap .mapboxgl-ctrl-attrib a:hover {
    color: inherit;
}
.map .leaflet-control-attribution a:hover,
.glmap .mapboxgl-ctrl-attrib a:hover {
    text-decoration: underline;
}
.glmap .mapboxgl-ctrl-attrib {
    background: none;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    margin-left: 15px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.4);
}
.glmap .mapboxgl-ctrl-logo-container {
    position: absolute;
    bottom: 47px;
    left: 18px;
    margin: 0;
    opacity: 0.55;
}


/* Leaflet map marker */
.base-marker-icon > div {
    display: block;
    font-size: 9px;
    color: #fff;
    width: 14px;
    height: 14px;
    border-radius: 100%;
    box-sizing: border-box;
    background-color: #000;
    opacity: 0.85;
}
.light .base-marker-icon > div {
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}
.base-marker-icon > div > span {
    position: absolute;
    line-height: 0;
    letter-spacing: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}


/* Leaflet label marker */
.label-marker {
    font-size: 15px;
    line-height: 1;
    color: #000;
    text-shadow:
       -2px -2px 0 #fff,  
        2px -2px 0 #fff,
        -2px 2px 0 #fff,
         2px 2px 0 #fff;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    width: auto !important;
    height: auto !important;
    white-space: nowrap;
}
.dark .label-marker {
    color: rgb(245, 245, 245);
    text-shadow:
       -1px -1px 0 rgba(0, 0, 0, 0.5),  
        1px -1px 0 rgba(0, 0, 0, 0.5),
        -1px 1px 0 rgba(0, 0, 0, 0.5),
         1px 1px 0 rgba(0, 0, 0, 0.5);
}
.circle-marker-label {
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;

    color: rgba(0, 0, 0, 0.7);
    font-size: 9px;
    line-height: 0;
    letter-spacing: 0;
    z-index: 201;
}
.circle-marker-label-white {
    color: rgba(255, 255, 255, 0.8);
}


/* Leaflet popup */
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
    background: rgba(35, 35, 35, 0.9);
    color: rgba(255, 255, 255, 0.8);
}
.leaflet-popup-content {
    margin: 20px;
    margin-right: 35px;
}
.leaflet-popup-content li {
    display: block;
    list-style-type: none;
    margin: 0.2em 0;
}
.leaflet-popup-content span,
.leaflet-popup-content em {
    display: inline-block;
    width: 50px;
    color: rgba(255, 255, 255, 0.4);
    font-style: normal;
}
.leaflet-popup-content em {
    /*width: 4ch;*/
    color: #fff;
}
.leaflet-container a.leaflet-popup-close-button {
    padding: 0;
    top: 10px;
    right: 10px;
}


/* Playback  */
.playback {
    position: absolute;
    z-index: 9999;
    bottom: 33px;
    right: 285px;
    display: flex;
    visibility: hidden;
    background-color: rgba(60, 60, 60, 0.8);
    padding: 5px 0;
    border-radius: 5px;
}
.playback-show {
    visibility: visible;
}
.playback-date-selector {
    position: relative;
    padding: 0 5px;
}
.playback-date-selector select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    min-width: 94px;
    outline: none;
    border: none;
    border-radius: 5px;
    padding: 8px 8px 8px;
    background: #444;
    background-color: #505050;
    color: rgb(220, 220, 220);
    font-size: 12px;
    line-height: 1;
}
.playback-date-selector select:disabled {
    color: rgb(120, 120, 120);
}
.playback-date-selector select + svg {
    position: absolute;
    right: 12px;
    top: 8px;
    width: 10px;
    height: 10px;
    fill: rgba(255, 255, 255, 0.5);
}
.pbtn {
    width: 28px;
    border: 0;
    margin: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    background-color: #505050;
    transition-duration: 0.15s;
    outline: 0;
}
.pbtn:first-of-type {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    margin-left: 5px;
}
.pbtn:last-of-type {
    border-right: none;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}
.pbtn:hover {
    background-color: #707070;
}
.pbtn > svg {
    position: relative;
    top: -1px;
    vertical-align: middle;
    width: 14px;
    height: 14px;
    fill: rgb(190, 190, 190);
}
.btn-prev > svg {
    transform: rotate(180deg);
}
.btn-pause {
    display: none;
}

/* Style range */
.playback-range {
    /*padding-left: 5px;*/
    color: rgba(255, 255, 255, 0.7);
}
.playback-range > label {
    display: block;
    font-size: 10px;
    font-family: sans-serif;
    line-height: 1;
    text-align: center;
    margin-top: 3px;
    margin-bottom: -4px;
    font-style: italic;
}
.dark .playback-range > label {
    color: rgb(220, 220, 220);
}
input[type=range] {
    -webkit-appearance: none;
    width: 300px;
    background: transparent;
    vertical-align: middle;
    line-height: 1.2;
    /*margin-top: 10px;*/
}
input[type=range]:focus {
    outline: none;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    cursor: pointer;
    border-radius: 0;
    border: none;
    width: 5px;
    height: 10px;
    margin-top: -4px;
}
input[type=range]::-moz-range-thumb {
    cursor: pointer;
    border-radius: 0;
    border: none;
    width: 5px;
    height: 10px;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    cursor: pointer;
    height: 2px;
}
input[type=range]::-moz-range-track {
    width: 100%;
    cursor: pointer;
    height: 2px;
}
input[type=range]::-webkit-slider-runnable-track { background: #555; }
input[type=range]::-moz-range-track { background: #555; }
input[type=range]::-webkit-slider-thumb { background: rgb(220, 220, 220); }
input[type=range]::-moz-range-thumb     { background: rgb(220, 220, 220); }


/* Datamenus */
.datamenus {
    flex-grow: 1;
    padding-right: 10px;
    overflow-y: auto;
}
.datamenu {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
}
.datamenu-title {
    /*font-weight: normal;*/
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    transition-duration: 0.15s;
}
.datamenu-title:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.datamenu-title.enabled {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.3);
}
.datamenu-title.enabled + .datamenu-items {
    max-height: 240px;
}
.datamenu-disclaimer {
    margin: 5px 1px 0 8px;
    padding: 3px 5px 5px 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    line-height: 1;
    font-size: 11px;
    hyphens: auto;
}
.datamenu-disclaimer > a {
    color: inherit;
    text-decoration: none;
}
.datamenu-disclaimer > a:hover {
    text-decoration: underline;
}
.datamenu-items {
    position: relative;
    max-height: 0;
    overflow-y: hidden;
    padding-top: 5px;
    /*transition: max-height 0.1s ease-in-out;*/
}
.datamenu-item {
    padding: 5px 8px;
    border-radius: 5px;
    transition-duration: 0.1s;
    cursor: pointer;
    line-height: 1;
}
.datamenu-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
.datamenu-item.unclickable {
    cursor: default;
}
.datamenu-item.unclickable:hover {
    background-color: inherit;
}
.datamenu-item-icon {
    display: inline-block;
    border-radius: 100%;
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.1);
}
.datamenu-item.enabled .datamenu-item-icon {
    background-color: currentColor;
}
.datamenu-item.enabled .datamenu-item-label {
    color: rgba(255, 255, 255, 0.7);
}
.datamenu-selector {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    min-width: 70px;
    outline: none;
    border-radius: 0;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    padding: 5px 5px 7px;
    background: #2e2e2e;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 12px;
    max-width: 100%;
    margin: 5px 0 4px 0;
}
.datamenu-selector + svg {
    position: absolute;
    right: 10px;
    top: 19px;
    width: 10px;
    height: 10px;
    fill: rgba(255, 255, 255, 0.7);
}
.datamenu-items-unit-label {
    padding: 3px 8px 6px;
}