
/* Slideshow container */
.carousel {
  max-width:800px; 
  height: 500px;
  position: relative;
  margin: auto;
}

@media only screen and (min-device-width: 1200px){
.carousel {
  max-width:720px; 
}}
.slide-wrapper {
  position: relative;
  margin-top:0px;
  height: 490px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* vertical center for images under 800px high -apply diplay:flex to parent div */
}

@media only screen and (min-device-width: 1200px){
.slide-wrapper {
  position: relative;
  height: 490px;
  width: 726px;
}}

.mySlides {
  display: none;
  width:100%;
  height: 490px;
  text-align: center;
  overflow: hidden; 
  padding: 5px 0 5px 0; 
}

img {vertical-align: middle;}
img.slide{
  position: relative;
   border-radius: 5px;
  outline: 3px ridge #AFAFAF;
  max-height:533px;  /* keep portraits same height as landscapes */
  max-width:800px; 
  margin: auto; 
}

@media only screen and (min-device-width: 1200px){
img.slide{
  max-height:480px; 
  max-width:720px; 
}}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 0;
  bottom:0;
  width: 50%;
  user-select: none;
  -webkit-user-select: none;
  z-index: 10;
}
.prev, .prev-button{left: 0px;}   /* Position the "prev area" to the left */
.next, .next-button{right: 0;} /* Position the "next area" to the right */

/* Next & previous buttons */
.prev-button, .next-button {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 30px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

@media only screen and (min-device-width: 768px){
.prev-button, .next-button {
  font-size: 18px;
}}

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

/* On hover, add a black background color with a little bit see-through */
.prev-button:hover, .next-button:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  background-color: rgba(0,53,9,0.8);
  width: 100%;
  padding: 8px 12px;
  font-size: 2rem;
  text-align: left;
  border-radius: 0 5px 5px 0;
}

@media only screen and (max-device-width: 768px){
.text {
  position: absolute;
  top: 105%;
}}

@media only screen and (min-device-width: 768px){
.text {
  position: absolute;
  font-size: 15px;
  left: 3px;
  bottom: 8px;
  width: 30%;
}}

.dots-box{
  display: none;
}

@media only screen and (min-device-width: 768px){
.dots-box{
  display: block;
  position: relative;
  bottom: 0px;
  height: 30px;
  width: fit-content; 
  margin:auto;      
}
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 6px;
  background-color: #1A870A;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}}

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

/* Animation */
.fade-in {
    animation: slide-in 0.3s forwards, fade 0.5s cubic-bezier(0.24,-0.09, 0.07, 0.79) forwards;
    -webkit-animation: slide-in 0.3s forwards, fade 1.5s cubic-bezier(0.24,-0.09, 0.07, 0.79) forwards;
}
@keyframes slide-in {
  from {
    margin-right: -100%;
  }
  to {
    margin-right: 0;
  }
}


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

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .prev, .next,.text {font-size: 11px}
}