html, body, #whole, #container, #earth2D {
    padding: 0;
    margin: 0;
    width: 100vw;
    max-width: 100vw;
    min-width: 100vw;
    overflow: hidden;
    background-color: black;
}

#bodTag > #whole {
    padding-top: 0;
    background: none;
    height: 100dvh;
}

#container {
    display: flex;
    flex-direction: column;
}

#earth2D {
    flex: 1;
}

.we-pm-icon, .leaflet-marker-icon {
	background-position: bottom;
	background-repeat: no-repeat;
	background-size: 100%;
	border: 0px;
}

/* LEAFLET CONTROL STYLES */
div.leaflet-control-layers {
	background: none repeat scroll 0 0 #FFF;
	border: 2px black inset;
    opacity: .85;
}

div.leaflet-control-legendButton {
    margin-right: 10px;
    margin-top: 30px;
    float: right;
    border: 2px black inset;
    opacity: .85;
    width: 40px;
    height: 40px;
}

div.leaflet-control-legendButton > a {
    background:#fff url(/assets/scripts/leaflet/images/legend.png) no-repeat 0 0;
    background-size:25px 25px;
    background-position: 5px 5px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: block;
}

/* PRUNE CLUSTER ANIMATIONS */

.prunecluster {
	font-size: 12px;
	border-radius: 20px;
	transition: all 0.3s linear;
}
.leaflet-marker-icon.prunecluster-anim,
.leaflet-marker-shadow.prunecluster-anim,
.leaflet-markercluster-icon.prunecluster-anim {
	transition: all 0.3s linear;
}

.leaflet-zoom-anim .leaflet-zoom-animated.leaflet-marker-icon,
.leaflet-zoom-anim .leaflet-zoom-animated.leaflet-marker-shadow,
.leaflet-zoom-anim .leaflet-zoom-animated.leaflet-markercluster-icon {
    transition: transform 0.25s cubic-bezier(0,0,0.25,1);
}
.prunecluster div {
	width: 30px;
	height: 30px;
	text-align: center;
	margin-left: 5px;
	margin-top: 5px;
	border-radius: 50%;
}
.prunecluster div span {
	line-height: 30px;
}

.prunecluster-small {
	background-color: #b5e28c;
	background-color: rgba(181, 226, 140, 0.6);
}

.prunecluster-small div {
	width: 28px;
	height: 28px;
	background-color: #6ecc39;
	background-color: rgba(110, 204, 57, 0.6);
}

.prunecluster-small div span {
	line-height: 28px;
}

.prunecluster-medium {
	background-color: #f1d357;
	background-color: rgba(241, 211, 87, 0.6);
}

.prunecluster-medium div {
	background-color: #f0c20c;
	background-color: rgba(240, 194, 12, 0.6);
}

.prunecluster-large {
	background-color: #fd9c73;
	background-color: rgba(253, 156, 115, 0.6);
}

.prunecluster-large div {
	width: 34px;
	height: 34px;
	background-color: #f18017;
	background-color: rgba(241, 128, 23, 0.6);
}

.prunecluster-large div span {
	line-height: 34px;
}


@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi) {
    .leaflet-control-fullscreen a {
      background-image:url(/assets/scripts/leaflet/images/fullscreen@2x.png);
    }
}

.hide {
    display: none;
}

#legendBottom, #bannerTop {
    display: flex;
    flex: 0;
}

#bannerTop {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    grid-gap: 1em;
    font-size: clamp(1.35em, 2vw, 2.85em);
    padding: .5em;
    color: white;
    z-index: 1000;
    width: 100vw;
    background-color: rgba(43, 98, 154, 0.85);
}

#bannerTop > svg {
    height: clamp(30px, 2.6vw, 85px);
    fill: white;
}

#bannerTop > span {
    font-weight: bold;
}

#legendBottom {
    width: 100vw;
    background-color: gray;
    z-index: 1000;
    font-size: clamp(.85em, 1vw, 2.25em);
}

#legendBottom > .colorGuide, #legendBottom > .statsGroup {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: black;
    color: white;
}

#legendBottom > .colorGuide {
    border-right: 1px solid white;
}

#legendBottom > .colorGuide * img.legendLabelImg {
    width: clamp(12px, 1.15vw, 35px);
    height: clamp(12px, 1.15vw, 35px);
}

#legendBottom > div > .header {
    width: 100%;
    text-align: center;
    padding-top: clamp(2px, .85vh, 10px);
    padding-bottom: clamp(2px, .85vh, 10px);
    margin-bottom: clamp(2px, .85vh, 10px);
    border-bottom: 1px solid white;
    background-color: #4A4444;
    font-size: 115%;
    font-weight: bold;
}

#legendBottom > div > .legendContent {
    display: grid;
    grid-gap: clamp(.33em, .5vw, 1em);
    width: 100%;
    height: 100%;
}

#legendBottom > .colorGuide > .legendContent {
    grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
}
#legendBottom > .statsGroup > .legendContent {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

#legendBottom > div > .legendContent > .legendContentUnit {
    font-size: 75%;
}

#legendBottom > div > .legendContent > .legendContentUnit, 
#legendBottom > div > .legendContent .legendKey {
    display: flex;
    grid-gap: clamp(.25em, .5vw, 1em);
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
}

#legendBottom > div > .legendContent .legendLabel-StatValue,
#legendBottom > div > .legendContent .legendLabel-StatLabel {
    background-color: transparent;
    border: none;
    box-shadow: none;
    text-shadow: none;
    font-family: monospace;
    font-size: 85%;
}

#legendBottom > div > .legendContent .legendLabel-StatValue {
    color: #F2AB3C !important;
    font-weight: bold;
    margin: 0;
    min-width: 50px;
    text-align: center;
}

.legendLabelImg {
    width: clamp(10px, 1.5vw, 20px);
    aspect-ratio: 1;
    border-radius: 100%;
    will-change: height, width;
}

.legendLabelImg.cat1, .markerIcon.cat1 { background-color: #2b9fde; z-index: 1; }
.legendLabelImg.cat2, .markerIcon.cat2 { background-color: #D16002; z-index: 2; }
.legendLabelImg.cat3, .markerIcon.cat3 { background-color: #5FCE5E; z-index: 3; }
.legendLabelImg.cat4, .markerIcon.cat4 { background-color: #FFFF00; z-index: 4; }
.legendLabelImg.cat5, .markerIcon.cat5 { background-color: #99c9f0; z-index: 5; }
.legendLabelImg.cat6, .markerIcon.cat6 { background-color: #C907FF; z-index: 6; }

.markerIcon {
    border-radius: 20px;
    border: none;
    transform-origin: bottom right;
    opacity: .85;
}

.markerIcon.twinkle { 
    animation-name: markerTwinkle; 
    animation-duration: .5s;
    will-change: height, width, opacity;
    animation-timing-function: linear;
}
.markerIcon.fall { 
    animation-name: markerFall; 
    animation-duration: 1s;
    will-change: height, width, opacity filter;
    animation-timing-function: ease-out;
}
.markerIcon.stream { 
    animation-name: markerStream; 
    animation-duration: .7s;
    will-change: height, width, rotate, filter;
    animation-timing-function: ease-out;
    transform-origin: bottom right;
}

@keyframes markerTwinkle {
    0% {
        z-index: 100;
        height: 24px;
        width: 24px;
        opacity: .9;
    }
    50% { opacity: .5 }
    100% {
        height: 5px;
        width: 5px;
        opacity: .85;
    }
}

@keyframes markerFall {
    0% {
        z-index: 100;
        height: 40px;
        width: 40px;
        opacity: .2;
        filter: blur(3px);
    }
/* Bounce Anim
    60% {
        height: 5px;
        width: 5px;
        opacity: .7;
        filter: blur(0px);
    }
    80% {
        height: 8px;
        width: 8px;
        opacity: .5;
        filter: blur(2px);
    }
*/
    100% {
        height: 5px;
        width: 5px;
        opacity: .85;
        filter: blur(0px);
    }
}

@keyframes markerStream {
    0% {
        z-index: 100;
        height: 40px;
        width: 40px;
        filter: blur(20px);
        rotate: -5deg;
    }
    100% {
        height: 5px;
        width: 5px;
        filter: blur(0px);
        rotate: 0deg;
    }
}

@media screen and (max-width: 850px) and (max-height: 600px) {
    #bannerTop, .colorGuide {
        display: none !important;
    }
}