@import url('https://fonts.googleapis.com/css?family=Open+Sans|Special+Elite');

body {
  margin: 0;
  padding: 0;
}

#map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
}

a.mapboxgl-ctrl-logo,
div.mapboxgl-ctrl-bottom-right {
  display: none;
}

/**
* Markers
**/

.name-marker {
  background: #222;
  color: #efe7dc;
  padding: 4px 5px 1px 5px;
  font-family: 'Special Elite', cursive;
  font-size: 1em;
  line-height: 1em;
  display: inline-block;
  transition: opacity  0.5s;
  cursor: pointer;
}

.name-marker-content {
  position: absolute;
  background: #222;
  color: #efe7dc;
  padding: 4px 5px 1px 5px;
  transform: translate(-50%, 0px);
  white-space: nowrap;
  top: -25px;
}

.name-marker-bar {
  width: 70px;
  position: absolute;
  bottom: -4px;
  height: 4px;
  left: 50%;
  margin-left: -35px;
  background: #888;
}

.name-marker-bar::before {
  content: '1673';
  position: absolute;
  font-size: 6px;
  top: 4px;
  left: 0;
  display: none;
}

.name-marker-bar::after {
  content: '1832';
  position: absolute;
  font-size: 6px;
  top: 4px;
  right: 0;
  display: none;
}

.name-marker-bar-inner {
  background: #f27537;
  height: 100%;
  position: absolute;
  top: 0;
}

.circle-marker {
  width: 10px;
  height: 10px;
  border-radius: 100%;
  background: #fff;
  display: inline-block;
  transition: opacity  0.5s;
  cursor: pointer;
  animation: pulse 2s infinite;
}

/**
* Map Overlay
**/

#map-overlay-container {
  position: absolute;
  top: 0px;
  bottom: 0px;
  right: 0;
  height: 100%;
  max-height: 100%;
  overflow: auto;
  box-sizing: border-box;
  padding: 50px;
  padding-top: 80px;
  transform: translate(0, -5000px);
  transition: transform 0.75s, opacity 0.5s;
}

#map-overlay-container.visible {
  transform: translate(0, 0);
}

#map-overlay {
  position: relative;
  padding: 30px;
  background: #ffffff;
  color: #000;
  width: 240px;
  font-family: Arial;
  opacity: 0;
  border: 0.01em solid #fff;
  box-shadow: 0px 0px 5px #191919;
}

.overlay-name {
  text-align: center;
  font-size: 21px;
}

.overlay-gray-text {
  font-size: 12px;
  color: #858585;
  text-align: center;
  margin-top: 4px;
}

.overlay-hr {
  margin: 15px 0 10px;
  height: 1px;
  width: 100%;
  background: #aaa;
}

.overlay-case-header {
  margin: 5px;
}

.overlay-bio {
  margin-top: 10px;
  font-size: 0.85em;
  line-height: 1.4em;
}

.overlay-case {
  font-size: 1em;
  line-height: 1em;
  display: block;
  color: #000;
  text-decoration: none;
}

.overlay-case-name,
.overlay-case-year {
  display: inline-block;
  font-size: 12px;
}

img.overlay-link-icon {
  height: 16px;
  position: relative;
  top: 4px;
}

#click-instructions {
  animation-name: bounce;
  animation-duration: 3.5s;
  animation-iteration-count: infinite;
  background: #ff1053;
  padding: 0px 4px;
  font-family: arial;
  font-size: 12px;
  color: #fff;
  border-radius: 4px;
  position: absolute;
  display: inline-block;
  z-index: 10;
  transition: opacity 0.5s;
}

#click-instructions .caret {
  position: absolute;
  transform: rotate(45deg);
  width: 8px;
  height: 8px;
  bottom: -4px;
  left: -4px;
  margin-left: 50%;
  z-index: -1;
  background: #ff1053;
}

#map-introduction {
  position: absolute;
  top: 150px;
  left: 50px;
  width: 305px;
  font-family: 'Open Sans', sans-serif;
  background: #ffffff;
  border: 0.01em solid #fff;
  padding: 14px;
  color: #333333;
  z-index: 100;
  font-size: 1.18em;
  line-height: 1.35em;
  transition: opacity 0.5s, width 0.5s, height 0.5s;
  opacity: 0;
  box-shadow: 0px 0px 5px #191919;
}

img.x-icon {
  width: 10px;
  position: absolute;
  top: -10px;
  right: -10px;
  background: #cccccc;
  padding: 5px;
  border-radius: 100%;
  cursor: pointer;
  box-shadow: 0px 0px 5px #333333;
}

.map-navigation-container {
  text-align: center;
  position: absolute;
  bottom: 30px;
  left: 50%;
  display: inline-block;
  font-family: courier;
  width: 900px;
  margin-left: -450px;
  transition: opacity 0.5s, transform 0.5s;
  opacity: 0;
  z-index: 100;
  transform: translate(0, 500px);
}

.map-navigation-container.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.map-navigation-container .right-arrow {
  margin-left: -5px;
}

#map-navigation-buttons {
  white-space: nowrap;
}

#map-navigation-current {
  padding: 8px 10px 5px;
  background: #ffffff;
  color: #333333;
  font-size: 13px;
  border: 0.01em solid #ccc;
  box-shadow: 0px 0px 5px #191919;
  display: inline-block;
}

#map-navigation-current div:first-of-type {
  font-size: 0.9em;
}

#current-location {
  font-size: 29px;
  line-height: 29px;
}

.map-navigation-button {
  font-size: 16px;
  margin-top: 10px;
  background: #ff1053;
  color: #fff;
  padding: 10px 20px;
  display: inline-block;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0px 0px 5px #4c4c4c;
  text-transform: uppercase;
}

.map-navigation-button.hidden {
  display: none;
}

@keyframes bounce {
  0% {top: -10px;}
  50% {top: -15px;}
  100% {top: -10px;}
}

@-webkit-keyframes pulse {
  0% { -webkit-box-shadow: 0 0 0 0 rgba(209, 189, 160, 0.4); }
  70% { -webkit-box-shadow: 0 0 0 10px rgba(209, 189, 160, 0); }
  100% { -webkit-box-shadow: 0 0 0 0 rgba(209, 189, 160, 0); }
}
@keyframes pulse {
  0% {
    -moz-box-shadow: 0 0 0 0 rgba(209, 189, 160, 0.4);
    box-shadow: 0 0 0 0 rgba(209, 189, 160, 0.4);
  }
  70% {
    -moz-box-shadow: 0 0 0 10px rgba(209, 189, 160, 0);
    box-shadow: 0 0 0 10px rgba(209, 189, 160, 0);
  }
  100% {
    -moz-box-shadow: 0 0 0 0 rgba(209, 189, 160, 0);
    box-shadow: 0 0 0 0 rgba(209, 189, 160, 0);
  }
}

/**
* References
**/

#references-container {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  max-height: 100%;
  overflow: auto;
}

#dark-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  opacity: 0.7;
  z-index: 100;
}

#references-button {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  padding: 4px 9px;
  font-family: courier;
  background: #f27537;
  border-radius: 4px;
  font-size: 13px;
  padding-left: 25px;
  cursor: pointer;
}

#references-button * {
  display: inline-block;
}

.references-icon {
  width: 17px;
  position: absolute;
  top: 3px;
  left: 5px;
}

#references-modal {
  margin: 150px 0;
  padding: 40px;
  box-sizing: border-box;
  position: absolute;
  z-index: 100;
  top: 0;
  width: 70%;
  left: 15%;
  font-size: .9em;
  font-family: 'Open Sans', sans-serif;
  color: #000;
  background: #ffffff;
  border: 0.01em solid #fff;
}

#references-modal h2 {
  text-align: center;
  margin: 10px 0 20px;
}

.reference {
  margin-bottom: 15px;
}

.reference a {
  color: #f27537;
}