* {
  font-family: Arial, Helvetica, sans-serif;
}
body {
  margin: 0;
  background-color: #f7f7f7;
  overflow: hidden;
}
#app {
  width: 100%;
  margin: 0 auto;
}
#map {
  height: 100vh;
  width: 100%;
}
.pm25-text, .aqi-text, .selva-text {
  margin: 0 !important;
}
.pm25-text span, .aqi-text span, .selva-text span {
  font-size: 14px;
  box-sizing: border-box;
  border-radius: 3px;
  font-weight: bold;
  padding: 0 3px;
}
.aqi-text span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 36px;
}
.selva-text span {
  height: 36px;
  border-radius: 0 36px 36px 36px;
}

input[type=range] {
  width: 100%;
}
.slider-text {
  text-align: center;
  display: inline-block;
  background-color: #e53935;
  border: 1px solid #ab000d;
  padding: 2px 5px;
  border-radius: 3px;
  color: white;
  font-size: 12px;
}

#menu {
  display: flex;
  align-items: center;
  position: absolute;
  z-index: 999;
  right: 0;
  top: 0;
  margin: 15px;
  width: 220px;
  box-sizing: border-box;
  flex-direction: column;
}
#menu img {
  width: 100%;
  margin-bottom: 5px;
}

#app-links {
  position: absolute;
  z-index: 999;
  right: 0;
  bottom: 0;
  margin: 30px 60px;
}
#app-links a {
  text-decoration: none;
}

#slider span {
  display: flex;
  align-items: center;
  justify-content: center;
}
#slider-play {
  margin-right: 10px;
}

@media (max-width: 500px) {
  #menu {
    width: 170px;
  }
}

div.tooltip {	
  position: absolute;
  text-align: center;
  font: 0.75em Arial, Helvetica, sans-serif;
  background: white;
  border: 1px solid black;
  border-radius: 3px;
  padding: 5px;
}

.about-us-btn {
  background-color: rgba(0,0,0,0.8);
  padding: 5px 10px;
  border-radius: 3px;
  color: white;
  font-size: 0.75em;
  cursor: pointer;
}

.info-popup-disclaimer {
  background-color: rgba(255,0,0,0.8);
  padding: 5px 10px;
  border-radius: 3px;
  color: white;
  font-size: 1em;
  cursor: pointer;
  text-align: center;
  display: inline-block;
  margin-top: 10px;
}

.text-modal {
  font-size: 0.9em;
  overflow-y: scroll;
  max-height: 400px;
  margin: 30px 7px 10px 10px;
  padding: 8px;
}
.text-modal h2 {
  margin-top: 0;
}
#aqi-plot-svg {
  padding: 15px;
}

.modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255,255,255,0.5);
  z-index: 9999;
  margin: auto;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-container {
  width: 600px;
  background-color: rgba(255,255,255,1);
  border: 1px solid;
  border-color: rgb(0, 0, 0, 0.2);
  position: relative;
  border-radius: 5px;
  box-sizing: border-box;
}

.modal-close {
  position: absolute;
  right: 0;
  top: 0;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  color: white;
  background-position: center;
  background-image: url(../img/icons/close.png);
  width: 20px;
  height: 20px;
  background-size: 15px 15px;
  background-repeat: no-repeat;
}

.modal-close-white {
  background-image: url(../img/icons/close-white.png);
}


.tag {
  margin: 5px 0;
  display: block;
}
.tag-title {
  display: inline-block;
  background-color: #CCC;
  padding: 3px 5px;
  border-radius: 3px;
  font-size: 0.75em;
  text-transform: uppercase;
  font-weight: 600;
  margin-right: 5px;
  line-height: 1.2em;
}

.logo-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 65px;
  align-items: center;
  column-gap: 10px;
  row-gap: 10px;
  margin-bottom: 20px;
}
.logo-list a {
  text-align: center;
}
.logo-list a img {
  max-width: 100%;
  max-height: 65px;
}


#controls {
  margin: 0px;
  position: absolute;
  z-index: 9999;
  width: 450px;
  bottom: 0;
  left: 0;
}
#controls > div {
  text-align: center;
  background: rgba(255,255,255,0.4);
  border: 1px solid white;
  border-radius: 5px;
  padding: 15px;
  display: none;
  margin: 10px;
  box-sizing: border-box;
}

#aqi-legend {
  padding: 10px !important;
}

@media (max-width: 500px) {
  #controls {
    right: 10px;
    width: auto !important;
  }
}


#quero-um-sensor {
  background: rgba(0,0,0,0.8);
  margin-top: 30px;
  width: 100%;
  border-radius: 10px;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 10px;
  text-align: center;
  font-size: 0.8em;
  box-sizing: border-box;
}
#quero-um-sensor img {
  height: 150px;
  margin: 10px 0;
  border-radius: 10px;
}
#quero-um-sensor strong {
  font-weight: 100;
}
#quero-um-sensor a {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 500px) {
  #quero-um-sensor img {
    height: auto;
    width: 100%;
  }
  #quero-um-sensor {
    margin-top: 50px;
  }
}


#rain-legend > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 120px;
  justify-content: space-between;
}
#rain-legend h5 {
  margin: 0;
}
#rain-legend .gradient {
  width: 100%;
  height: 30px;
  background: linear-gradient(90deg, rgba(206,192,135,0.8), #8de, #09c, #07a, #058, #fe0, #fa0, #f70, #f40, #e00, #900, #faf);
  border-radius: 5px;
  box-shadow: 0 0 2px 1px rgba(0,0,0,0.3) inset;
}
#rain-legend .scheme {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
#rain-legend .scheme li {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 12px;
  line-height: 24px;
  white-space: nowrap;
}
#rain-legend .scheme div {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border-radius: 50%;
  box-shadow: 0 0 2px 1px rgba(0,0,0,0.2) inset;
}
.color-overcast {
  background-color: #8def;
}
.color-drizzle {
  background-color: #09cf;
}
.color-light-rain {
  background-color: #058f;
}
.color-moderate-rain {
  background-color: #fa0f;
}
.color-shower {
  background-color: #f40f;
}
.color-hail {
  background-color: #900f;
}