
/* Lesson Two */

@keyframes rotateSpinner {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

#splash {
  background-image: url('../images/splash-background.jpg');
  background-position: bottom center;
}

section.map {
  background-repeat: no-repeat;
  background-size: cover;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

section.map,
section.map > * {
  opacity: 1;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  visibility: visible;
}

section.map[aria-hidden = "true"],
section.map[aria-hidden = "true"] > * {
  opacity: 0;
  visibility: hidden;
}

section.map .intro {
  background-color: rgba(0, 0, 0, 0.8);
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

section.map .intro[aria-hidden = "true"] {
  opacity: 0;
  visibility: hidden;
}

section.map .intro .modal {
  background-color: #000;
  color: #fff;
  width: 90%;
  max-width: 1010px;
  padding: 50px 120px;
  position: absolute;
  top: 50%;
  left: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
}

@media (min-width: 1024px) {

  section.map .intro .modal {
    padding: 85px 120px 50px;
  }

}

section.map .intro .modal .title,
section.map .intro .modal p {
  text-align: left;
}

section.map .intro .modal .title {
  font-size: 22px;
  font-style: italic;
}

@media (min-width: 1024px) {

  section.map .intro .modal .title {
    font-size: 26px;
  }

}

section.map .intro .modal p {
  font-size: 14px;
  letter-spacing: 0.25px;
  line-height: 28px;
  margin-bottom: 0;
}

@media (min-width: 1024px) {

  section.map .intro .modal p {
    font-size: 16px;
    line-height: 34px;
  }

}

section.map .intro .modal button {
  margin-top: 25px;
}

@media (min-width: 1024px) {

  section.map .intro .modal button {
    margin-top: 65px;
  }

}

section.map > .container {
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
}

section.map > .container > .image {
  cursor: -webkit-grab;
  cursor: grab;
  position: absolute;
  top: 0;
  left: 0;
}

section.map > .container > .image[data-grabbed = "true"] {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

section.map > .container > .image img {
  display: block;
}

section.map > .container .marker {
  background-color: transparent;
  background-image: url('../images/map-marker.png');
  background-repeat: no-repeat;
  background-size: 49px 95px;
  border: none;
  height: 95px;
  width: 49px;
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 2;
}

section.map > .container .marker[data-type = "carriage"] {
  background-image: url('../images/carriage-marker.png');
}

section.map > .container .marker[data-type = "axe"] {
  background-image: url('../images/axe-marker.png');
}

section.map > .container .marker[data-type = "tree"] {
  background-image: url('../images/tree-marker.png');
}

section.map > .container .marker[ data-type = "virginia" ] {
  background-image: url('../images/virginia-marker.png');
}

section.map > .container .marker:hover {
  cursor: pointer;
}

@media (orientation: landscape) {

  section.map > .container > .image {
    width: 100%;
  }

  section.map > .container > .image img {
    width: 100%;
  }

}

@media (orientation: portrait) {

  section.map > .container > .image {
    height: 100%;
  }

  section.map > .container > .image img {
    height: 100%;
  }

}

section.map .sidebar {
  background-image: url('../images/sidebar-background.png');
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 3px 0 6px rgba(0, 0, 0, 0.3);
  height: 100%;
  width: 225px;
  padding: 0 15px;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-100%);
  transition: all 0.3s ease-in-out;
}

section.map .sidebar[aria-expanded = "true"] {
  transform: translateX(0);
}

section.map .sidebar > .logo {
  background-size: 126px 70px;
  background-repeat: no-repeat;
  display: block;
  height: 70px;
  width: 126px;
  margin: 50px auto;
}

section.map .sidebar p {
  font-size: 14px;
  letter-spacing: 0.25px;
  line-height: 18px;
  margin-bottom: 50px;
}

section.map .sidebar button:hover {
  cursor: pointer;
}

section.map .sidebar .navigation-button {
  background-color: rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(38, 38, 38, 0.25);
  border-left: none;
  border-right: none;
  border-top: 1px solid rgba(38, 38, 38, 0.25);
  color: #4f4f4f;
  display: block;
  font-size: 15px;
  font-weight: bold;
  height: 57px;
  width: inherit;
  letter-spacing: 4px;
  margin: 0 -15px;
  padding: 0 25px 0 65px;
  position: relative;
  text-align: left;
  text-transform: uppercase;
}

section.map .sidebar .navigation-button:after {
  content: '';
  background-position: center;
  background-repeat: no-repeat;
  background-size: 29px 29px;
  display: block;
  height: 30px;
  width: 30px;
  position: absolute;
  top: 50%;
  right: 25px;
  transform: translateY(-50%);
}

section.map .sidebar .navigation-button[data-direction = "next"]:after {
  background-image: url('../../shared/icons/arrow-right-black.svg');
}

section.map .sidebar .navigation-button[data-direction = "back"]:after {
  background-image: url('../../shared/icons/arrow-left-black.svg');
}

.sidebar-toggle {
  background-color: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  height: 40px;
  width: 40px;
  position: absolute;
  top: 5px;
  right: -45px;
}

.sidebar-toggle:before,
.sidebar-toggle:after,
.sidebar-toggle div[role = "presentation"] {
  background-color: #fff;
  height: 3px;
  width: 23px;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sidebar-toggle:before,
.sidebar-toggle:after {
  content: '';
  display: block;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.sidebar-toggle:before {
  top: 30%;
}

.sidebar-toggle:after {
  top: 70%;
}

.sidebar[aria-expanded = "true"] .sidebar-toggle:before,
.sidebar[aria-expanded = "true"] .sidebar-toggle:after {
  opacity: 0;
}

.sidebar-toggle div[role = "presentation"] {
  top: 50%;
  transition: transform 0.3s ease-in-out;
}

.sidebar[aria-expanded = "true"] .sidebar-toggle div[role = "presentation"]:first-of-type {
  transform: translate(-50%,-50%) rotate(45deg);
}

.sidebar[aria-expanded = "true"] .sidebar-toggle div[role = "presentation"]:last-of-type {
  transform: translate(-50%,-50%) rotate(-45deg);
}

.details {
  background-color: rgba(0, 0, 0, 0.9);
  height: 100%;
  width: 100%;
  opacity: 1;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s, visibility 0.5s;
  visibility: visible;
  z-index: 1;
}

.details[aria-hidden = "true"] {
  opacity: 0;
  visibility: hidden;
}

.details .inner {
  height: 100%;
  width: 95%;
  max-width: 1520px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.details .close {
  height: 80px;
  position: relative;
}

.details .close button {
  border: none;
  background-color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  height: 62px;
  width: 62px;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  transition: background-color 0.4s ease-in-out;
  -webit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.details .close button:hover {
  background-color: #fff;
}

.details .close button .icon {
  border: 3px solid #6e6e6e;
  border-radius: 50%;
  height: 40px;
  width: 40px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.details .close button .icon:before,
.details .close button .icon:after {
  content: "";
  background-color: #6e6e6e;
  display: block;
  height: 3px;
  width: 23px;
  position: absolute;
  top: 50%;
  left: 50%;
}

.details .close button .icon:before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.details .close button .icon:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.details .detail {
  height: calc(83% - 80px);
  overflow: hidden;
}

.details .detail[aria-hidden = "true"] {
  display: none;
}

.details .information {
  color: #fff;
  float: right;
  height: 100%;
  width: 200px;
  overflow-y: auto;
}

@media (min-width: 1024px) {

  .details .information {
    width: 265px;
  }

}

.details .information > div:not(:last-of-type) {
  margin-bottom: 15px;
}

@media (min-width: 1024px) {

  .details .information > div:not(:last-of-type) {
    margin-bottom: 25px;
  }

}

.details .information .captions,
.details .information .captions > div {
  opacity: 1;
  visibility: visible;
}

.details .information .captions .caption:not([data-active]) {
  display: none;
}

.details .heading {
  color: #bca290;
  font-weight: bold;
  font-size: 15px;
  line-height: 22px;
}

.details .heading.script {
  color: #fff;
  font-size: 20px;
  font-style: italic;
  font-family: 'Georgia', serif;
  margin-bottom: 8px;
}

.details .heading:not(.script) + div:not(.caption) {
  font-size: 20px;
  font-style: italic;
  font-family: 'Georgia', serif;
}

.details .heading.script + div:not(.caption) {
  font-size: 15px;
  line-height: 22px;
}

.details .media {
  float: left;
  height: 100%;
  width: calc(100% - 15px - 200px);
  position: relative;
}

@media (min-width: 1024px) {

  .details .media {
    width: calc(100% - 15px - 265px);
  }

}

.details .slider {
  height: calc(100% - 60px);
  position: relative;
  overflow: hidden;
}

.details .slider[data-zoomed = "true"] .slide {
  cursor: -webkit-grab;
  cursor: grab;
}

.details .slider[data-zoomed = "true"] .slide[data-grabbed = "true"] {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

.details .slide {
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid #555;
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  text-align: center;
  -webkit-backface-visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.details .slide[data-content] {
  overflow: auto;
}

.details .slide[aria-hidden = "true"] {
  opacity: 0;
  visibility: hidden;
}

.details .slider[data-zoomed = "true"] .slide {
  overflow: auto;
}

.details .slide img {
  display: block;
}

.details .slide[data-content] > div {
  background-color: #fff;
  display: inline-block;
  font-size: 24px;
  padding: 35px;
  text-align: left;
}

.details .slide[data-content] > div p {
  margin-bottom: 25px;
}

.details .slider:not([data-zoomed = "true"]) .slide img {
  height: auto;
  width: auto;
  max-height: 95%;
  max-width: 95%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.details .slide[data-src]:before {
  content: '';
  animation-name: rotateSpinner;
  animation-duration: 1.5s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  background-image: url('../../shared/images/spinner.svg');
  background-size: 30px 30px;
  background-repeat: no-repeat;
  display: block;
  height: 30px;
  width: 30px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.details .slider-navigation {
  height: 60px;
  padding: 0 30px;
  position: relative;
  text-align: center;
}

.details .slider-navigation button {
  border: none;
  cursor: pointer;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  vertical-align: top;
}

.details .slider-navigation button.zoom {
  background-color: rgba(0, 0, 0, 0.4);
  border: none;
  cursor: pointer;
  display: block;
  height: 30px;
  width: 30px;
  position: absolute;
  right: 0;
}

.details .slider-navigation button.zoom:before {
  content: '';
  background-repeat: no-repeat;
  background-size: 20px 20px;
  background-position: center;
  display: block;
  height: 30px;
  width: 30px;
}

.details .slider:not([data-zoomed = "true"]) + .slider-navigation button.zoom:before {
  background-image: url('../../shared/images/zoom-in.svg');
}

.details .slider[data-zoomed = "true"] + .slider-navigation button.zoom:before {
  background-image: url('../../shared/images/zoom-out.svg');
}

.details .dots-container {
  display: inline-block;
  height: 100%;
}

.details button.dot {
  background-color: #fff;
  border-radius: 50%;
  height: 16px;
  width: 16px;
  margin-right: 25px;
  opacity: 0.4;
  transition: opacity 0.5s ease-in-out;
}

.details button.dot[data-active] {
  opacity: 1;
}

.details button.dot:last-of-type {
  margin-right: 0;
}

.details button.arrow {
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: 100%;
  height: 25px;
  width: 14px;
}

.details button.arrow[data-direction = "previous"] {
  background-image: url('../images/slider-previous-arrow.svg');
  margin-right: 65px;
}

.details button.arrow[data-direction = "next"] {
  background-image: url('../images/slider-next-arrow.svg');
  margin-left: 65px;
}
