* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  height: 500px;
  margin: auto;

  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;

}

/* Hide the images by default */
.mySlides {
  display: none;
}

.mySlides > .livro {
    height:450px;

    padding: 10px;

    display: flex;
    flex-direction: row;
    justify-content: center;

}

.mySlides > .livro-reverso  {
  height:450px;

  padding: 10px;

  display: flex;
  flex-direction: row;
  justify-content: center;

}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  width: auto;
  height: 70px;
  padding: 20px;
  margin: 10px;
  color: #330066;
  font-weight: bold;
  font-size: 30px;
  transition: 0.6s ease;
  user-select: none;

  border: none;
  background-color: transparent;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  color: #d2b4f0bd;
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;

  border: none;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

@media screen and (max-width: 500px) { 

  .slideshow-container {
    max-width: 70vw;
    height: auto;
  }

  .mySlides > .livro {
    height:100%;

    max-width: 200px;
    overflow: hidden;

    padding: 10px;

    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .mySlides > .livro-reverso {
    height:100%;

    max-width: 200px;
    overflow: hidden;

    padding: 10px;

    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
  }

}

@media screen and (min-width: 501px) and (max-width: 1050px) { 

  .slideshow-container {
    max-width: 100%;
    height: auto;
  }

  .mySlides > .livro {
    height:100%;

    max-width: 550px;
    overflow: hidden;

    padding: 10px;

    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .mySlides > .livro-reverso {
    height:100%;

    max-width: 550px;
    overflow: hidden;

    padding: 10px;

    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
  }

}

