body {
  font-family: proxima-nova, sans-serif;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

h1, h2, h3 {
  clear: both;
  font-family: futura-pt, sans-serif;
  margin: 0;
}

h2 {
  font-weight: 300;
  padding-bottom: 5px;
  border-bottom: 2px solid rgba(232, 12, 48, 0.4);
}

h3 {
  font-size: 1.5em;
  padding-bottom: 5px;
  border-bottom: 2px solid rgba(232, 12, 48, 0.4);
}

#map {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 250px;
  width: calc(100% - 250px);
  z-index: 1;
}

#sidebar {
  position: absolute;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background-color: white;
}

#sidebar > section {
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 10px;
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  transition: 500ms;
}

#sites {
  list-style-type: none;
  padding: 0;
}

#sites a {
  color: black;
  cursor: pointer;
  margin-bottom: 15px;
  text-decoration: none;
  display: list-item;
}

#sites a b{
  text-decoration: underline;
}

#sites a:hover {
  background: #5F5F5F;
  color: white;
  transition: all 0.1s ease-in;
  margin: -5px -10px 10px;
  padding: 5px 10px;
}

#sidebar > #details {
  left: 300px;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}

#sidebar.details .container {
  left: -300px;
}

#sidebar.details > #details {
  left: 0;
}

#description:focus, #sites:focus{
  outline: none;
}

#description h2{
  font-family: 'Open Sans', sans-serif;
}

#description img{
  max-width: 100%;
}

.back {
  font-size: 0.85em;
  color: #003087;
  float: left;
  cursor: pointer;
}

.back:hover {
  text-decoration: underline;
}

.back.close {
  font-size: 1.25em;
  float: right;
  position: relative;
  display: none;
  color: black;
  margin: 8px;
  z-index: 3;
}

.button {
  line-height: 50px;
  color: white;
  text-align: center;
  cursor: pointer;
}

#details button {
  width: 50%;
  margin: 20px 0;
  float: left;
  background-color: #666;
  border: none;
  text-transform: uppercase;
  box-sizing: border-box;
}

#details button:hover, a.link:hover {
  opacity: 0.8;
}

#details button#prev {
  border-right: 1px solid white;
  font-size: 0.75em;
  line-height: 40px;
  clear: both;
}

#details button#next {
  border-left: 1px solid white;
  font-size: 0.75em;
  line-height: 40px;
}

a.link{
  display: inline-block;
  width: 100%;
  margin-bottom: 20px;
  background-color: #e80c30;
  text-decoration: none;
}

#probe{
  display: none;
  width: 300px;
  padding: 10px 15px 0;
  position: absolute;
  z-index: 2;
  font-size: 0.8em;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}

.mapboxgl-marker{
  width: 24px;
  height: 24px;
  display:flex;
  justify-content:center;
  align-items:center;
}

.mapboxgl-marker > div{
  display: block;
  position: absolute;
  border-radius: 50%;
  border: 1px solid #fff;
}

.marker {
  width: 15px;
  height: 15px;
  background: rgba(95,95,95,0.85);
  cursor: pointer;
}

.mapboxgl-marker.animate, .mapboxgl-marker.active{
  z-index: 4;
}

.mapboxgl-marker.animate .marker, .mapboxgl-marker.active .marker {
  border-color: white;
  background: rgba(0,0,0,0.85);
}

.halo1{
  pointer-events: none;
}

.mapboxgl-marker.animate .marker {
  animation: pulse 0.25s ease-in-out 1 both;
}

.mapboxgl-marker.active .marker {
  transform: scale(2)
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  75% {
    transform: scale(3);
  }
  100% {
    transform: scale(2);
  }
}


@media screen and (max-width: 600px) {
  #map {
    width: 100%;
    left: 0;
  }

  #sidebar {
    width: 90vw;
    left: -90vw;
    transition: 500ms;
    z-index: 2;
  }

  #sidebar > section{
    transition: none;
  }

  #sidebar.details, #sidebar > #details {
    left: 0;
    transition: none;
  }

  #probe, section.container {
    display: none !important;
  }

  #details button{
    margin-top: 20px;
  }

  .back {
    display: none;
  }

  .back.close{
    display: block;
  }
}