
/* Slideshow container */
.carousel {
  max-width:800px; 
  height: 430px;
  position: relative;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

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

.slide-wrapper {
  position: relative;
  margin-top: 0px;
  height: 490px;
  display: flex;
  overflow: hidden; 
   border-radius: 5px;
  outline: 3px ridge #AFAFAF;
  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: 340px;
  width: 526px;
}}

.mySlides {
  display: none;
  position: absolute;
  top: 0;
  width: 100%;
  height: 490px;
  padding: 0px 0 5px 0; 
}
.block {
  display: block;
}

.from-right {
  display: block;
  animation: slide-in 0.3s forwards, fade-in .8s cubic-bezier(0.24,-0.09, 0.07, 0.79) backwards;
  -webkit-animation: slide-in 0.3s forwards, fade-in .8s cubic-bezier(0.24,-0.09, 0.07, 0.79) backwards;
}

.peel-right {
  display: block;
  animation: slide-out 0.5s forwards, fade-out .5s ease-out;
  -webkit-animation: slide-out 0.5s forwards, fade-out .5s ease-out;
}

/* Animation */
@keyframes fade-in {
  from {opacity: .4} to {opacity: 1}
}
@keyframes fade-out {
  from {opacity: 1} to {opacity: 0}
}

@keyframes slide-in {
  from {margin-right: -100%} to {margin-right: 0}
}
@keyframes slide-out {
  from {margin-right: 0%} to {margin-right: -210%}
}

img {vertical-align: middle;}
img.slide{
  position: relative;
  height: 100%; 
  width: 100%; 
}

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

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 0;
  bottom:0;
  width: 50%;
  user-select: none;
  -webkit-user-select: none;
  z-index: 100;
}
.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(32,61,94,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: #A9ABB9 !important;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}}

.active, .dot:hover {
  background-color: #F955A9 !important;
}


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