@font-face {
  font-family: TTCommonsExtraBold;
  src: url("ExtraBold.otf") format('opentype');
}

@font-face {
  font-family: TTCommonsRegular;
  src: url("Regular.otf") format('opentype');
}

@font-face {
  font-family: TTCommonsDemiBold;
  src: url("DemiBold.otf") format('opentype');
}

html, body, #map {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  font-family: 'TTCommonsRegular', sans-serif;
  font-size: 18px;
  color: #181616;
  background: white;
  scroll-behavior: smooth;
}

#map {}

.display-block {
  width: 100%;
}

.desktop-display-none {
  display: none;
}

.scroll-down-button-container {
  position: absolute;
  bottom: 0px;
  z-index: 1000;
  padding: 10px;
  width: 100%;
  max-height: 75px;
}

.scroll-down-button-container p {
  font-size: .8em;
  line-height: 1.2em;
  max-width: 150px;
  text-align: center;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.75);
  font-family: 'TTCommonsExtraBold', sans-serif;
}

.scroll-down-button {
  margin: 0 auto;
  height: 30px;
  width: 30px;
  border-radius: 100px;
  position: relative;
  background: rgb(237, 237, 237);
  border: 0px;
}

.fa-down-arrow {
  background: url('../assets/arrow-down-solid.svg');
  background-repeat: no-repeat;
  padding: 5px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 15px;
  height: 15px;
  display: block;
}

.leaflet-control-attribution {
  display: inline-flex;
  align-items: center;
}

.attribution-container {
  display: inline-flex;
}

.zrsa-logo {
  background: url('../assets/main-logo-dark.svg');
  display: inline-block;
  background-size: cover;
  height: 14px;
  width: 15px;
  background-repeat: no-repeat;
  -webkit-filter: grayscale(100%) brightness(125%);
  /* Safari 6.0 - 9.0 */
  filter: grayscale(100%) brightness(125%);
  cursor: pointer;
  margin-left: 2px;
}

.attribution-container:hover>.zrsa-logo {
  -webkit-filter: grayscale(0%) brightness(100%);
  /* Safari 6.0 - 9.0 */
  filter: grayscale(0%) brightness(100%);
}

::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

h2, h3 {
  font-family: 'TTCommonsExtraBold', sans-serif;
}

#infobox {
  background-color: white;
  min-height: 100px;
  max-height: 100vh;
  padding: 15px;
  font-size: 1.1em;
  overflow-y: scroll;
}

#info h3 {}

.info-head h2 {
  color: #293783;
  /* margin: 0px 0px 15px 0px;
  padding-bottom: 12px;
  border-bottom: thin dotted black; */
  font-size: 1.8em;
  line-height: 0.9em;
  letter-spacing: -0.022em;
}

#info {
  /* background-color: yellow; */
}

#info-body {
  /* border-bottom: thin black dotted;
	border-top: thin black dotted; */
  padding: 0px;
  margin: 0px;
}

#info-body p {
  color: gray;
}

#info-cnty-name h3 {
  color: #293783;
  font-size: 1.2em;
  font-weight: bold;
  line-height: 1.1em;
  margin: 0px 0px 10px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

table:nth-of-type(2) {
  /* margin-top: 20px; */
}

th, td {
  text-align: left;
  /* padding: 8px; */
  padding: 8px;
  line-height: 1em;
  font-size: .7em;
  vertical-align: middle;
}

th {
  width: 30%;
  font-size: .7em;
  text-align: right;
}

tr:nth-child(odd) {
  background: #E9EFF2;
}

table tr .head {
  /* background-color: #005CB9; */
  background-color: #06A3D7;
  font-size: .7em;
  font-weight: bold;
  color: white;
}

.custom .leaflet-popup-tip,
.custom .leaflet-popup-content-wrapper {
  font-size: 14px;
  /* max-width: 300px; */
}

/* thead td {
  font-size: 1.5em;
  font-weight: bolder;
  letter-spacing: -0.022em;
  line-height: 1em;
  font-family: 'TTCommonsDemiBold', sans-serif;
} */
.charts-head {
  /* padding: 8px; */
}

#charts-pane .charts-head {
  /* padding-top: 0px; */
}

.charts-head p {
  margin: 0px;
  /* padding: 10px 5px;	 */
  font-size: 1.2em;
  line-height: 1.1em;
  letter-spacing: -0.01em;
}

/* .info h4 { */
/* margin: 0 0 5px; */
/* color: #777; */
/* } */
#legend-pane {
  background: rgba(255, 255, 255, 0.8);
  padding: 5px;
}

#legend-pane h3 {
  margin: 0px;
  padding-bottom: 5px;
  font-size: 1.1em;
  font-family: 'TTCommonsDemiBold', sans-serif;
  letter-spacing: -0.022em;
  line-height: 1em;
}

.legend {
  text-align: left;
  line-height: 16px;
  /* color: #555; */
  font-size: 0.8em;
}

.legend i {
  width: 11px;
  height: 11px;
  float: left;
  margin-right: 6px;
  opacity: 1;
}

/* .info button {
  width: 20px;
  height: 20px;
  border-radius: 100%;
  text-align: center;
  float: right;
  position: relative;
  border: none;
}

.info button:hover {
  background-color: #E5E5E5;
}

.info button i {
  font-style: normal;
  font-weight: normal;
  position: absolute;
  top: 50%;
  left: 50%;
  height: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  display: block;
} */
.plus-icon {
  background-image: url('./../fonts/icon_plus_large.svg');
}

#legend-button {
  -webkit-transition-duration: .5s;
  -moz-transition-duration: .5s;
  -o-transition-duration: .5s;
  transition-duration: .5s;
  -webkit-transition-property: -webkit-transform;
  -moz-transition-property: -moz-transform;
  -o-transition-property: -o-transform;
  transition-property: transform;
}

#charts-button {
  -webkit-transition-duration: .5s;
  -moz-transition-duration: .5s;
  -o-transition-duration: .5s;
  transition-duration: .5s;
  -webkit-transition-property: -webkit-transform;
  -moz-transition-property: -moz-transform;
  -o-transition-property: -o-transform;
  transition-property: transform;
}

.active {
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

@media (max-width: 1024px) {
  #legend-pane {
    display: block;
  }

  .info-head h2 {
    font-size: 1.5em;
  }

  #info-cnty-name h3 {
    font-size: 1.5em;
  }

  th, td {
    text-align: left;
    /* padding: 8px; */
    padding: 8px;
    line-height: 1em;
    font-size: .7em;
    vertical-align: middle;
  }

  th {
    font-size: .7em;
  }

  table tr .head {
    font-size: .7em;
  }
}

@media (max-width: 991px) {

  #map{
    height: 500px;
  }

  #infobox {
    overflow: visible;
  }

  .mobile-only {
    display: block;
  }

  .desktop-only {
    display: none;
  }

  .desktop-display-none {
    display: block;
  }
}

@media (max-width: 375px) {

  #map{
    height: 300px;
  }

  #legend-pane {
    display: none;
  }

  .scroll-down-button-container {
    top: 0;
  }
}

@media (hover:hover) {
  .scroll-down-button:hover {
    background: yellow;
  }
}

@media (hover:none) {
  .scroll-down-button:hover {
    background: inherit;
  }
}
