/*
 * Optional: Makes the sample page fill the window.
 */
html,
body,
#map {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Roboto", "Arial", sans-serif;
}

main,
footer {
  max-width: 650px;
}

input.form-control[type="date"]::-webkit-calendar-picker-indicator,
input.form-control[type="time"]::-webkit-calendar-picker-indicator {
  display: none;
}

#data-box {
  top: 10px;
  left: 500px;
  background-color: #fff;
}

.map-box {
  position: relative;
}

.info-box {
  position: absolute;
  top: 50px;
  left: 10px;
  width: 50px;
  height: auto;
  background-color: #fff;
  border: 1px solid #ccc;
  z-index: 1000;
  text-align: center;
}

#legend {
  display: flex;
  display: -webkit-box;
  flex-direction: column;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  height: 200px;
}

.legend-label {
  height: 24px;
}

.legend-bar {
  flex: 1;
  -webkit-box-flex: 1;
  display: flex;
  display: -webkit-box;
  flex-direction: row;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  height: calc(100% - 48px);
}

.color-key {
  background: linear-gradient(to bottom, hsl(5, 69%, 54%) 0%, hsl(38, 71%, 55%) 17%, hsl(70, 74%, 57%) 33%, hsl(103, 76%, 58%) 50%, hsl(135, 78%, 59%) 67%, hsl(168, 81%, 61%) 83%, hsl(200, 83%, 62%) 100%);
  margin: 8px 1px 8px 5px;
  text-align: center;
  font-size: 1em;
  line-height: 1em;
  height: calc(100% - 16px);
  width: 40%;
}

.legend-scale {
  display: flex;
  display: -webkit-box;
  flex-direction: column;
  justify-content: space-between;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-box-pack: justify;
  height: 100%;
}

.legend-scale-item {
  font-size: 0.8em;
  text-align: start;
}

#data-label {
  font-weight: bold;
}

#data-value {
  display: none;
  position: absolute;
  background-color: rgba(255, 255, 255, 1);
  border: 1px solid #000;
  border-radius: 5px;
  padding: 5px;
  z-index: 1000;
  font-weight: bold;
  color: #000;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

#data-value::before {
  content: "";
  position: absolute;
  top: 1px;
  left: -15px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 15px solid #000;
  transform-origin: right;
  transform: skewY(40deg);
}

#data-value::after {
  content: "";
  position: absolute;
  top: 2px;
  left: -13px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 15px solid #fff;
  transform-origin: right;
  transform: skewY(39deg);
}

#data-caret {
  display: none;
  font-size: 14px;
  width: 14px;
  margin: 0 auto;
}

#data-modified-time {
  position: absolute;
  font-size: 10px;
  background-color: rgba(245, 245, 245, 0.7);
  top: -40px;
  left: -5px;
  white-space: nowrap;
  padding: 0 6px;
}

#modal-play-map {
  position: relative;
}