* {box-sizing: border-box}
body {font-family: Verdana, sans-serif; margin:0}
.mySlides {display: none}
img {vertical-align: middle;}

/* Slideshow container */
.section {
  padding: 0 !important;
}

.slideshow-container {
  width: 100% !important;
  height: 100%;
  position: relative;
  margin: auto;
  overflow: hidden;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: var(--backgroundcolour);
  font-weight: bold;
  font-size: 1.8rem;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* 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 {
  background-color: var(--bordercolour);
}

.mySlides {
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

.mySlides img {
  width: 100%;
  object-fit: cover;
  position: relative;
}

#lizards {
  top: 0%;
  right: 0%;
}

#snakes {
  top: -30%;
  right: 0%;
}

#amphibians {
  top: -13%;
  right: 0%;
}

#chameleons {
  top: -5%;
  right: 0px;
}

#tortoises {
  top: -30%;
  right: 0px;
}

#geckos {
  top: -30%;
  right: 0%;
}

.text {
  color: var(--backgroundcolour);
  font-size: 10rem;
  font-weight: 600;
  text-shadow: 2px 2px var(--hovercolour);
  padding: 8px 12px;
  position: absolute;
  bottom: 40%;
  left: 50%;
  transform: translateX(-50%) translateY(40%);
  width: 80%;
  text-align: center;
  word-wrap: break-word;
  align-self: center;
  justify-self: center;
  transition: all 0.1s;
}

.dots-container {
  position: absolute;
  top: 95%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: var(--dotscolour);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active-slide {
  background-color: var(--textcolour);
}

.dot:hover {
  background-color: var(--hovercolour);
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

@media only screen and (max-width: 998px) {

  .text {
      font-size: 6rem;
  }

}

@media only screen and (max-width: 768px) {

  .text {
      font-size: 5rem;
  }

}

@media only screen and (max-width: 600px) {

  .text {
      font-size: 4rem;
  }

}