@import url("https://fonts.googleapis.com/css?family=Montserrat");

/* Search page style overrides */
.creature-summary a.control.prev {
  left: 16px;
}

.creature-summary .slide {
  justify-content: normal;
}

  .creature-summary .slide img {
    margin: 0;
    position: relative;
  }

  .creature-summary .slide figcaption {
    background-color: #333;
    bottom: 0;
    width: 100%;
  }

    .creature-summary .slide figcaption div.photo-credit {
      background-color: transparent;
      border: 0;
      font-size: .7rem;
      opacity: 100%;
      padding: 0;
      text-shadow: none;
      top: inherit;
    }


/* General styling */
* {
  box-sizing: border-box;
}

@media only screen and (min-width: 1200px) {
  .carousel-slider {
    width: 800px;
    height: 600px;
  }

  .slide {
    width: 800px;
    height: 600px;
  }

  #items {
    left: -800px;
  }

  .slide div {
    font-size: 1rem;
    min-height: 4rem;
    padding: .5rem 2rem;
    top: 18rem;
  }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .creature-summary a.control.next {
    left: 269px;
  }

  .creature-summary .carousel-slider {
    width: auto;
    height: 100%;
  }

  .creature-summary .slide {
    width: 269px;
    height: auto;
  }

    .creature-summary .slide div {
      min-height: auto;
    }

  .carousel-slider {
    width: 800px;
    height: 600px;
  }

  .slide {
    width: 800px;
    height: 600px;
  }

  #items {
    left: -800px;
  }

  .slide div {
    font-size: 1rem;
    min-height: 4rem;
    padding: .5rem 2rem;
    top: 18rem;
  }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .creature-summary a.control.next {
    left: 336px;
  }

  .carousel-slider {
    width: 400px;
    height: 300px;
  }

  .slide {
    width: 400px;
    height: 300px;
  }

  #items {
    left: -400px;
  }

  .slide div {
    font-size: 1rem;
    min-height: 4rem;
    padding: .5rem 2rem;
    top: 7rem;
  }
}

@media only screen and (max-width: 767px) {
  .creature-summary a.control.next {
    left: 336px;
  }

  .carousel-slider {
    width: 360px;
    height: 270px;
  }

  .slide {
    width: 360px;
    height: 270px;
  }

  #items {
    left: -360px;
  }

  .slide div {
    font-size: 1rem;
    min-height: 4rem;
    padding: .5rem 2rem;
    top: 5rem;
  }
}

.carousel-container {
  display: inline-block;
  margin: 0 .5rem;
  position: relative;
}

.carousel-slider {
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
}

.creature-summary .wrapper {
  background: transparent;
}

.wrapper {
  overflow: hidden;
  position: relative;
  background: #222;
  z-index: 1;
}

#items {
  width: 10000px;
  position: relative;
  top: 0;
}

  #items.shifting {
    transition: left .2s ease-out;
  }

.slide {
  float: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 1s;
  position: relative;
}

  .slide img {
    position: absolute;
    width: 100%;
  }

  .slide div {
    background-color: black;
    border: 3px solid goldenrod;
    color: lightgoldenrodyellow;
    font-weight: 400;
    opacity: 80%;
    position: relative;
    text-align: left;
    text-shadow: black 0 0 2px;
  }

.control {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 20px;
  margin-top: -20px;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.prev,
.next {
  background-size: 22px;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}

.prev {
  background-image: url(https://cdn0.iconfinder.com/data/icons/navigation-set-arrows-part-one/32/ChevronLeft-512.png);
  left: -20px;
}

.next {
  background-image: url(https://cdn0.iconfinder.com/data/icons/navigation-set-arrows-part-one/32/ChevronRight-512.png);
  right: -20px;
}

  .prev:active,
  .next:active {
    transform: scale(0.8);
  }
