body {
    padding: 0;
    margin: 0;
}

html, body, #whole, #container, #earth2D {
    height: 100dvh; 
    width: 100vw;
    max-height: 100dvh; 
    max-width: 100vw;
    min-height: 100dvh; 
    min-width: 100vw;
    overflow: hidden;
}

span.button {
	cursor: pointer;
}

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

div.pad20 {
	padding: 20px;
}

span.badState, span.blueState, span.ltBlueState, span.goodState, span.noState, span.selectState, span.checkState, span.blankState {
	text-align: center;
	cursor: default;
	margin: 6px 1px;
	padding: 2px 0px;
	white-space:nowrap;
	padding: 2px 6px;
    text-decoration: none;
    border-radius: 4px;
    border: solid 1px #FFF;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
}

span.badState {
    background: #BC645A;
    color: #FFF !important;
}

span.blueState {
    background: #5C749A;
    color: #FFF !important;
}

span.ltBlueState {
    background: #EEE;
    color: blue !important;
}

span.noState {
    background: #999;
    color: #FFF !important;
}

span.selectState {
    background: #D80;
    color: #FFF !important;
}

span.goodState {
    background: #549C5A;
    color: #FFF !important;
}

span.checkState {
    background: #AA9944;
    color: #FFF !important;
}

span.blankState {
    background: #FFF;
    color: #000 !important;
}

/* 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;
}

/* FULL SCREEN IE FIX */
.leaflet-control-fullscreen a {
  background:#fff url(/assets/scripts/leaflet/images/fullscreen.png) no-repeat 0 0;
  background-size:26px 52px;
  }
  .leaflet-fullscreen-on .leaflet-control-fullscreen a {
    background-position:0 -26px;
    }

/* Do not combine these two rules; IE will break. */
.leaflet-container:-webkit-full-screen {
  width:100%!important;
  height:100%!important;
  }
.leaflet-container.leaflet-fullscreen-on {
  width:100%!important;
  height:100%!important;
  }

.leaflet-pseudo-fullscreen {
  position:fixed!important;
  width:100%!important;
  height:100%!important;
  top:0!important;
  left:0!important;
  z-index:99999;
  }

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

 /* TILE LEGEND STLYES */

div.legendContainer > ul > li {
	border: 0px;
	margin-bottom: 3px;
}

div.legendLabelKey {
	margin: 0px;
	padding: 0px;
}

div.legendStatKey {
    margin: 0px;
    padding: 0px;
    margin-left: -15px;
}


div.legendLabelKey > span {
	font-size: 1.2em !important;
	vertical-align: middle;
	color: black;
	margin: 0px;
	margin-left: 5px;
}

 .leaflet-control-tilelegend *,
.leaflet-control-tilelegend {
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
    box-sizing: border-box;
}
.tilelegend-content {
    display: none;
}
.tilelegend-expended .tilelegend-content {
    display: block;
}
.tilelegend-expended .leaflet-control-tilelegend {
    box-shadow: none;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    height: auto;
    width: 170px;
    max-height: 381px;
    background-color: #bbb;
    border-left: 1px solid #ddd;
    font-family: sans-serif;
}

.tilelegend-expended > .leaflet-control-container > .leaflet-bottom,
.tilelegend-expended > .leaflet-control-container > .leaflet-right {
    height: 100%;
    width: 100%;
}

.tilelegend-maximized .leaflet-control-tilelegend {
    width: 100%;
}
.leaflet-control-tilelegend ul {
    list-style: none;
    padding: 0;
    display: none;
}
.tilelegend-maximized ul,
.leaflet-control-tilelegend .expended ul {
    display: block;
}
.leaflet-control-tilelegend .tilelegend-header {
    padding: 0 10px;
}
.leaflet-control-tilelegend h4 {
    color: #FFF;
    cursor: pointer;
    font-size: 1.3em;
    font-weight: bolder;
    background-color: #333;
    width: 100%;
}
.leaflet-control-tilelegend h4:before {
    content: '▶ ';
}
.tilelegend-maximized h4:before,
.leaflet-control-tilelegend .expended h4:before {
    content: '▼ ';
}
.leaflet-control-tilelegend h1 {
    margin-top: 0;
    padding-top: 10px;
    font-size: 1.7em;
    font-weight: bold;
}
.leaflet-control-tilelegend .tilelegend-header {
    background-color: #999;
    border-bottom: 1px solid #eee;
}
.leaflet-control-tilelegend p {
    margin: 0;
    padding: 5px;
    font-size: 0.9em;
}
.leaflet-control-tilelegend li {
    position: relative;
    margin-bottom: 10px;
    border: 1px solid #eee;
}
.tilelegend-map {
    width: 40px;
    height: 40px;
    overflow: hidden;
}
.leaflet-control-tilelegend li .tilelegend-zoom-to {
    background-image: url('/assets/scripts/leaflet/images/zoom_to.png');
    background-repeat: no-repeat;
    background-position: center center;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background-color: #f1f2f3;
    opacity: 0.6;
    cursor: pointer;
}
.leaflet-control-tilelegend li:hover .tilelegend-zoom-to {
    display: block;
}
.tilelegend-key {
    padding: 10px;
}
.tilelegend-section {
    width: 160px;
    display: inline-block;
    vertical-align: top;
    padding-left: 5px;
    border-bottom: 1px solid #eee;
}
.tilelegend-toolbox {
    display: inline-block;
}
.tilelegend-minimize,
.tilelegend-maximize,
.tilelegend-close {
    background-image: url('/assets/scripts/leaflet/images/toolbox.png');
    background-repeat: no-repeat;
    background-position: center center;
    width: 12px;
    height: 12px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
    cursor: pointer;
}
.tilelegend-minimize {
    background-position: left center;
    display: none;
}
.tilelegend-close {
    background-position: right center;
    display: none;
}
.tilelegend-maximize {
    display: none;
}
.tilelegend-expended .tilelegend-minimize,
.tilelegend-maximized .tilelegend-maximize {
    display: none;
}
.tilelegend-maximized .tilelegend-minimize,
.tilelegend-expended .tilelegend-close {
    display: inline-block;
    display: inline-block;
}
.tilelegend-expended .tilelegend-toolbox {
    position: absolute;
    top: 5px;
    right: 20px;
}
.tilelegend-attribution {
    margin-right: 5px;
}
.tilelegend-expended .tilelegend-attribution,
.tilelegend-expended .tilelegend-prefix {
    display: none;
}

span.tilelegend-prefix {
    display: none !important;
}
span.tilelegend-attribution:empty {
    display: none !important;
}

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

a.leaflet-control-sunToggleButton {
    background:#fff url(/assets/images/mapGL/light_off.png) no-repeat 0 0;
    background-size:31px 31px;
    background-position: 2px 3px;
    cursor: pointer;
    opacity: .85;
    width: 35px;
    height: 35px;
    display: block;
}

div.leaflet-control-tilelegend {
    overflow-y:     visible !important;
}

.hide {
    display: none;
}

#bannerTop {
    position: fixed;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    grid-gap: 1em;
    top: 0px;
    left: 0px;
    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;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    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;
    font-size: 95%;
    margin: 0;
}

.markerIcon {
    animation-name: markerFall;
    animation-duration: .5s;
    animation-timing-function: linear;
    border-radius: 100px;
    will-change: height, width, opacity;
    border: none;
    transform-origin: bottom right;
    opacity: 1;
}

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

.legendLabelImg.cat1, .markerIcon.cat1 { background-color: #2b9fde; }
.legendLabelImg.cat2, .markerIcon.cat2 { background-color: #C907FF; }
.legendLabelImg.cat3, .markerIcon.cat3 { background-color: #5FCE5E; }
.legendLabelImg.cat4, .markerIcon.cat4 { background-color: #D16002; }
.legendLabelImg.cat5, .markerIcon.cat5 { background-color: #99c9f0; }
.legendLabelImg.cat6, .markerIcon.cat6 { background-color: #ac9068; }

@keyframes markerFall {
    0% {
        height: 12px;
        width: 12px;
        opacity: 1;
    }
    50% {
        opacity: .2;
    }
    100% {
        opacity: 1;
    }
}

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