body {
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
  margin: 0;
}

#chartdiv {
  width: 100%;
  max-height: 700px;
  height: 100vh;
}

* {
	box-sizing: border-box;
}

h1 {
  font-size: 24px;
  font-weight: 400;
}

h2 {
  font-size: 24px;
  font-weight: 400;
  margin: 0;
}

h3 { 
  font-size: 20px;
  font-weight: 400;
  margin: 0;
  line-height: 23px;
}

h3 { 
  font-size: 20px;
  font-weight: 400;
  margin: 0;
  line-height: 23px;
}

h4,
.infobox caption { 
  font-size: 16px;
  font-weight: 700;
  margin: 5px;
}

/* Bottom left */
.leaflet-bottom.leaflet-left {
  display: flex;
  flex-direction: row-reverse;
}

.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
  border: 0 !important;
}

.leaflet-touch .leaflet-bar a:first-child {
  border-top-left-radius: 8px !important;
  border-top-right-radius: 8px !important;
}

.leaflet-touch .leaflet-bar a:last-child {
  border-bottom-left-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
}

/* Tooltip */
.tooltip {
  display: none;
  position: absolute;
  background-color: #202124;
  color: #fff;
  font-size: 14px;
  line-height: 24px;
  padding: 10px 15px;
  margin-top: 5px;
  right: 37%;
  left: -37%;
  font-weight: 700;
  box-shadow: 0px 0px 4px rgb(0 0 0 / 25%);
  border-radius: 5px;
  max-width: 320px;
}

.tooltip-icon {
  cursor: pointer;
}

/* Style the header */
.header {
	background-color: #f1f1f1;
	padding: 0px;
	text-align: center;
}

/* Create three unequal columns that floats next to each other */
.column {
	height: 100vh;
}

/* Left column */
.column.left {
	width: 0%;
}

/* Right column */
.column.side {
  display: none;
  position: absolute;
  direction: rtl;
  z-index: 2;
  right: 0;
  top: 5vh;
	width: 20vw;
  text-align: right;
  background: #F5F5F5;
  box-shadow: -5px 0px 5px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

.sidebar-data {
  background: #FFF;
  padding: 16px 18px;
}
.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 5px 0 25px;
}
.sidebar-head img {
  cursor: pointer;
}

.sidebar-population {
  background: #FFF;
  margin-top: 1px;
  padding: 16px 18px;
}

.date-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 400;
  margin-top: 10px;
  width: 80%;
}

.data-result {
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
  margin-bottom: 10px;
}

/* Switch */

.toggle-switch {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    background: #FFF;
    margin-top: 10px;
    padding: 16px 18px;
    font-size: 18px;
    font-weight: 400;
}

.toggle-switch img {
    vertical-align: middle;
    max-width: 36px;
    max-height: 36px;
    margin-left: 14px;
}

.toggle-switch .ts-helper {
    display: inline-block;
    position: relative;
    width: 34px;
    height: 13px;
    border-radius: 8px;
    background: #D9D9D9;
    -webkit-transition: background .28s cubic-bezier(.4, 0, .2, 1);
    transition: background .28s cubic-bezier(.4, 0, .2, 1);
    vertical-align: middle;
    cursor: pointer;
}

.toggle-switch .ts-helper:before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 21px;
    height: 21px;
    background: #848484;
    border-radius: 50%;
    -webkit-transition: left .28s cubic-bezier(.4, 0, .2, 1), background .28s cubic-bezier(.4, 0, .2, 1), box-shadow .28s cubic-bezier(.4, 0, .2, 1);
    transition: left .28s cubic-bezier(.4, 0, .2, 1), background .28s cubic-bezier(.4, 0, .2, 1), box-shadow .28s cubic-bezier(.4, 0, .2, 1);
}


.toggle-switch input {
    position: absolute;
    z-index: 1;
    width: 46px;
    margin: 0 0 0 -4px;
    height: 24px;
    opacity: 0;
    filter: alpha(opacity=0);
    cursor: pointer;
}

.toggle-switch input:checked+.ts-helper:before {
    left: 20px;
}

.toggle-switch[data-ts-color=green] input:not(:disabled):checked+.ts-helper {
    background: #C9DAF9;
}

.toggle-switch[data-ts-color=green] input:not(:disabled):checked+.ts-helper:before {
    background: #5086EC;
}

#active_iso {
  width: 100%;
  margin-top: 30px;
  display: none;
  column-gap: 50px;
  font-size: 17px;
}

#active_iso label {
  display: flex;
  margin-bottom: 10px;
  margin-right: 25px;
  text-align: right;
  justify-content: flex-start;
  align-items: center;
}

#active_iso input {
  opacity: 1;
  height: 16px;
  width: 16px;
  margin-right: -25px;
}

/* Clear floats after the columns */
.row:after {
	content: "";
	display: table;
	clear: both;
}

/* Responsive layout - makes the three columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
	.column.side, .column.middle, .column.left {
		width: 100%;
	}
}

#map1 { width: 100%; height: 100%; }
#map2 { width: 100%; height: 100%; }

/* Info */
#top_five { 
  display: none;
  right: 20vw;
  opacity: 0.9;
}

.info {
  direction: rtl;
  width: 32vw; 
  padding: 10px; 
  background: #FFFFFF;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

.box {
  margin: 6px 0;
  padding: 6px;
  text-align: center;
}

.infobox {
  color: #202124;
  background: #FFF;
  border: 1px solid #DADCE0;
  border-radius: 8px;
}

.active-info {
  background: #F0F5FF;
  border: 3px solid #3474E0;
}

.infobox table {
  width: 100%;
}

.infobox table tr {
  align-items: center;
}

.infobox table td {
  text-align: right;
  width: 25%;
}

.infobox table tr:last-child td:nth-child(1)::before {
  content:url('../assets/icons/map-marker-distance.svg');
  margin-left: 8px;
}

.infobox table tr:last-child td:nth-child(2)::before {
  content:url('../assets/icons/clock-time-four.svg');
  margin-left: 8px;
}

.infobox table tr:last-child td:nth-child(3)::before {
  content:url('../assets/icons/percent.svg');
  margin-left: 8px;
}

.infobox table tr:last-child td:nth-child(4)::before {
  content:url('../assets/icons/star.svg');
  margin-left: 8px;
}

.info ul { padding-right: 20px}
.info li { max-width: 500px }
.info p {text-align: center; margin: 0px}



.slidecontainer {
  width: 100%;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 25px;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity .2s;
}

.slider:hover {
  opacity: 1;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  background: #4CAF50;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: #4CAF50;
  cursor: pointer;
}


html, body {
    height: 100%;
    margin: 0;
}

#map {
  z-index: 1;
  width: 100vw;
  height: 95vh;
}

.legend { max-width: 100px; text-align: center; line-height: 18px; color: #555; background: rgba(255,255,255,0.95); padding: 6px 8px; border-radius: 5px;}
.legend i { width: 18px; height: 18px; float: left; margin-right: 4px; opacity: 1.0; }
.legend h3 {margin: 0px 0px 5px 0px;}

.savefilecontrol .export-data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  direction: rtl;
  background: #5086EC;
  border-radius: 50px;
  padding: 5px 10px;
  cursor: pointer;
}
.savefilecontrol input {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
}


 
/* (B2) WARNING BOX */
.warnbox {
  color: darkmagenta;
  background: lightpink;
  border: 1px solid darkred;
}

.button_control {
  border: none;
  color: white;
  padding: 4px 8px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  margin: 2px 1px;
  transition-duration: 0.4s;
  cursor: pointer;
}

.button1 {
  background-color: white; 
  color: black; 
  border: 2px solid #4CAF50;
}

.button1:hover {
  background-color: #4CAF50;
  color: white;
}

.button2 {
  background-color: #4CAF50; 
  color: white; 
  border: 2px solid #4CAF50;
}

.button2:hover {
  background-color: white;
  color: black;
}

/*
.leaflet-popup-content {
    margin: 5px 5px;
    margin-top: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
    margin-left: 5px;
    line-height: 1.2;
}
*/
/* move popup to left of marker */
    /*
    .leaflet-popup {
        position: relative;
        top: -20px;
        text-align: center;
    }
    
    .leaflet-popup-content-wrapper {
        position: relative;
        padding: 1px;
        text-align: left;
        border-radius: 12px;
        left: -55%;
    }
    
    .leaflet-popup-tip-container {
        width: 40px;
        height: 20px;
        position: relative;
        left: 50%;
        top: -42px;
        margin-left: -20px;
        overflow: hidden;
        pointer-events: none;
        transform: rotate(270deg);
        }
    */

  @media (max-width:1600px) {
    .column.side {
      width: 25vw;
    }
    #top_five { 
      right: 25vw;
    }
  }

  @media (max-width:1440px) {
    .column.side {
      width: 35vw;
    }
    #top_five { 
      right: 35vw;
    }
    .toggle-switch {
      font-size: 17px;
    }
  }

  @media (max-width:768px) {
    .column.side {
      width: 45vw;
    }
    #top_five { 
      right: 45vw;
    }
    .toggle-switch {
      font-size: 16px;
    }
  }
  


