/* ====== RESET ====== */
body {
  margin: 0;
  padding: 0;
}

/* ====== MAP & PHOTO BACKGROUNDS ====== */
#map {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -2;             /* map is bottom */
  opacity: 1;              /* visible by default */
  transition: opacity 1s ease;
}

#photo-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: url("images/coal-site.jpg") no-repeat center center;
  background-size: cover;
  z-index: -1;             /* photo above map, below text */
  opacity: 0;              /* hidden by default */
  transition: opacity 1s ease;
}

/* ====== HEADER ====== */
#header {
  position: relative;
  width: 100%;
  height: 100vh;
  text-align: center;
  overflow: hidden;
  background-image: url("images/aerials.gif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Gradient fade on bottom of header image */
#header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 15vh;
  background: linear-gradient(to bottom, rgba(253, 250, 250, 0) 0%, #01430d 100%);
  pointer-events: none;
}

#header h1 {
  font-weight: 900;
  font-size: 50px;
  font-family: 'Utopia Std Bold', serif;
  text-align: center;
  margin: auto;
  margin-top: 1em;
  max-width: 800px;
}

#header h4 {
  font-family: 'Utopia Std', serif;
  font-weight: 300;
  margin-bottom: 0.5em;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  max-width: 800px;
}

#header p.byline {
  font-weight: 400;
  font-size: 0.9em;
  margin: 0.8em auto 2em auto;
  font-family: 'Lora', serif;
}

#header p {
  font-family: 'Utopia Std', serif;
  font-weight: 400;
  text-align: center;
  font-size: 2.5em;
  max-width: 800px;
  margin: 1em auto;
}

/* Smaller screens */
@media only screen and (max-width: 600px) {
  #header p {
    font-size: 1.5em;
  }
}

/* ====== FEATURES (CHAPTERS) ====== */
#features {
  padding-top: 80vh;
  padding-bottom: 10vh;
}

@media (max-width: 750px) {
  #features {
    width: 90vw;
    margin: 0 auto;
  }
}

#features h3 {
  font-weight: 700;
  font-family: 'Utopia Std', serif;
  text-align: left;
  max-width: 80vw;
}

#features p {
  font-family: 'Utopia Std', serif;
  padding-left: 15px;
  text-align: left;
  font-size: 2em;
  line-height: 38px;
  max-width: 80vw;
}

#features .imageCredit {
  font-size: 0.9em;
  margin-top: -5px;
}

/* ====== FOOTER ====== */
#footer {
  min-height: 2vh;
  text-align: left;
  line-height: 25px;
  width: 100%;
  position: relative;
  z-index: 5;
  background-color: #181818;
}

#footer p {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.9em;
  max-width: 600px;
  padding: 0.75em 0em;
  margin: 0 auto;
}

/* ====== CHAPTER CONTAINERS ====== */
.step {
  padding-bottom: 75vh;
  opacity: 0.6;
  transition: opacity 0.5s ease;
}

.step.active {
  opacity: 0.99;
}

.step div {
  padding: 10px 0px;
  line-height: 28px;
  font-size: 16px;
  max-width: 950px;
  margin: 0 auto;
}

.step img {
  width: 100%;
}

@media (max-width: 750px) {
  .centered, .lefty, .righty, .fully {
    width: 90vw;
    margin: 0 auto;
  }
}

/* Alignments */
.centered {
  width: 50vw;
  margin: 0 auto;
}
.lefty {
  width: 33vw;
  margin-left: 5vw;
}
.righty {
  width: 33vw;
  margin-left: 62vw;
}
.fully {
  width: 100%;
  margin: auto;
}

/* ====== THEMES ====== */
.light {
  color: #ffffff;
  background-color: rgba(6, 6, 6, 0.22); /* transparent black overlay */
  width: 100%;
  max-width: unset;
}

.dark {
  color: #fafafa;
  background-color: #444;
}

/* ====== MISC ====== */
a, a:hover, a:visited {
  color: #e96138;
}

/* Chapter container for inline images */
.chapter-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.chapter-container img {
  width: 100%;
  max-width: 900px;
  height: auto;
}

/* Mapbox mobile fix */
.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan, 
.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas {
  touch-action: unset;
}


/* Desktop widths */
.centered {
  width: 50vw;
  margin: 0 auto;
}
.lefty {
  width: 33vw;
  margin-left: 5vw;
}
.righty {
  width: 33vw;
  margin-left: 62vw;
}
.fully {
  width: 100%;
  margin: auto;
}

/* Override for small screens */
@media (max-width: 750px) {
  .centered,
  .lefty,
  .righty,
  .fully {
    width: 90vw;        /* take almost full width */
    margin: 0 auto;     /* center horizontally */
  }
}

