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;
}
 /* Style the navigation menu */
 .topnav {
  overflow: hidden;
  position: absolute;
  z-index: 9999999;
  background-color: white;
  border-radius: 0px 0px 35px 0px;
  box-shadow: 10px 5px 5px black;
  opacity: 0.7;
 }

/* Hide the links inside the navigation menu (except for logo/home) */
.topnav #myLinks {
  display: none;
}

/* Style navigation menu links */
.topnav a {
  color: black;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  display: block;
}

/* Style the hamburger menu */
.topnav a.icon {
  color: black;
  display: block;
  position: relative;
  right: 0;
  top: 0;
}

/* Add a grey background color on mouse-over */
.topnav a:hover {
}

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

#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: 40px;
  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: white;
  width: 100vw;
  z-index: 100;
  margin: 0;
  padding: 0;
  visibility: hidden;
  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: justify;
  font-size: 11pt;
  padding: 20px;
}

.in-focus {
  opacity: 1.0;
}

.out-focus {
  opacity: 0.3;
}

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

.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;
}

/*
  Styles to handle visibility of leaflet popups
*/
.popup {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
  cursor: pointer;
  color: blue;
}

.popup:hover {
  color: royalblue;
}

.popup:hover .popup-text {
  visibility: visible;
}

.popup-text {
  width: auto;
  left: -33px;
  top: 100%; /* Position below the .popup */
  background-color: rgba(255, 255, 255, 1);
  color: black;
  text-align: center;
  border-radius: 6px;
  padding: 5px 10px;
  position: absolute;
  z-index: 1;
  border: 1px solid lightgray;
  min-width: 6vw;
  visibility: hidden;
  box-shadow: 5px 5px 5px lightgray;
  word-wrap: break-word;
}
/* Storymap logo image above the title */
#logo {
  height: 30px;
  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;
}
