body {
  padding: 0px;
  margin: 0px;
  font-family: "Helvetica", sans-serif;
  overflow: hidden;
}

#map {
  height: 200px;
  width: 100vw;
  position: absolute;
  border-bottom: 3px solid orange;
  top: 0;
  left: 0;
}

#narration {
  position: absolute;
  top: 203px;
  width: 100vw;
  height: calc(100vh - 203px);
  z-index: 0;
}

#contents {
  padding: 0;
  width: 100%;
  margin-top: 0; /*Adjust if Title header needs more space */
  height: 100%; /* Adjust to fit max Description length, one setting for all; alternative is 100% */
  overflow-y: scroll;
  overflow-x: hidden;
}

#top {
  height: 60px;
  margin: 0;
}

#space-at-the-bottom {
  height: 200px;
  margin: 0;
  text-align: center;
  padding-top: 150px;
}

#title {
  position: absolute;
  left: 0;
  top: 203px;
  background-color: rgb(235, 235, 235);
  width: 100vw;
  z-index: 100;
  margin: 0;
  padding: 0;
  visibility: visible;
  font-weight: bold;
  text-align: center;
}

.chapter-container {
  /* margin + padding = chapterContainerMargin in script.js */
  /* Important for scrolling! */
  margin: 50px 0 0 0;
  padding: 20px 0 0 0;
  text-align: center;
}

.chapter-container img {
  height: auto;
  width: auto;
  max-height: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;

  /* Three lines that center vertically */
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

.img-container {
  margin: 0;
  margin-bottom: 5px;
  height: 200px;
  max-height: 200px;
  width: 100%;
}

.audio-container {
  margin: 0;
  margin-bottom: 5px;
  height: 60px;
  max-height: 60px;
  width: 100%;
}

.chapter-header {
  display: block;
  text-align: center;
  font-size: 1.2em;
  padding: 0 5px;
}

.source {
  font-size: 9pt;
  font-style: italic;
  color: gray;
}
a.source:visited {
  color: grey;
}

.description {
  margin: 20px;
  text-align: left;
  font-size: 11pt;
  padding: 20px;
}

.in-focus {
  opacity: 1;
}

.out-focus {
  opacity: 0.3;
}

.leaflet-control-attribution {
  visibility: visible;
}

.leaflet-marker-icon {
  opacity: 0.75;
}

/*
  By default, current (active) marker is orange.
  If you want to change the color, see options here: https://github.com/coryasilva/Leaflet.ExtraMarkers/blob/master/src/assets/css/leaflet.extra-markers.css
*/
.marker-active {
  background-position: -72px 0 !important;
}

/* Storymap logo image above the title */
#logo {
  height: 50px;
  line-height: 30px;
  text-align: center;
  padding: 10px;
  max-width: 100%;
}

#logo img {
  max-height: 100%;
  max-width: 100%;
  vertical-align: middle;
}

#header {
  padding: 5px 0;
  text-align: center;
  color: #333;
}

/* Storymap title & subtitle */
h1 {
  margin: 0;
  font-size: 1.5em;
}

h2 {
  margin: 0;
  font-size: 1.1em;
  font-weight: normal;
}

/*Legend specific*/
.legend {
  left: 40px;
  padding: 6px 8px;
  font: 14px Arial, Helvetica, sans-serif;
  background: white;
  background: rgba(255, 255, 255, 0.8);
  /*box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);*/
  /*border-radius: 5px;*/
  line-height: 24px;
  color: #555;
}
.legend h4 {
  text-align: center;
  font-size: 16px;
  margin: 2px 12px 8px;
  color: #777;
}

.legend span {
  position: relative;
  bottom: 3px;
}

.legend i {
  width: 18px;
  height: 18px;
  float: left;
  margin: 0 8px 0 0;
  opacity: 0.7;
}

.legend i.icon {
  background-size: 18px;
  background-color: rgba(255, 255, 255, 1);
}

.float {
  position: fixed;
  width: 40px;
  height: 40px;
  top: 20px;
  left: 20px;
  background-color: rgb(47, 11, 211);
  color: #fff;
  border-radius: 50px;
  text-align: center;
  box-shadow: 2px 2px 3px #999;
  z-index: 600;
}

.my-float {
  margin-top: 12px;
  color: #fff;
}

.my-float:hover {
  color: rgb(67, 109, 226);
}
