

.sliders {
  max-width: 650px;
  position: relative;
  margin: auto;
}

.slider img{
  border-radius: 10px;
  height: auto;
}

.slider {
  display: none;
  margin-top: 30px;
}

.slider.active {
  display: block;
}

.prev , .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: #fff;
  font-weight: bold;
  font-size: 22px;
  transition: 0.5s ease;
  border-radius: 5px;
}

.next {
  right: 5px;
}

.prev {
  left: 5px;
}

.prev:hover, .next:hover {
  background-color: #fff;
  color: #000;
}

.text {
  color: #eeeeee;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
  animation-name: text;
  animation-duration:3s;
}

.numbertext {
  color: #f2f2f2;
  font-size: 16px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
  left : 0;
  background-color: #00000080;
  border-radius: 10px 0 10px 0;
  animation-name: rotate;
  animation-duration:3s;
}

.dots {
  text-align: center;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 4px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}
 .dot:hover {
  background-color: #717171;
  transform: scale(.9 , .9);
  transition: .2s;
}

.dot.active {
  background-color: #717171;
  transform: scale(1.3 , 1.3);
}

.fade {
  animation-name: fade;
  animation-duration: 2.5s;
}

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

@keyframes text {
  0% {
    bottom: 10px;
  }

  25% {
    bottom: 0;
  }

  50% {
    bottom: 10px;
  }

  75% {
    bottom: 0;
  }

  100% {
    bottom: 10px;
  }
}

@keyframes rotate {
  0% {
    transform: rotateX(0deg);
    border-radius: 10px 0 10px 0;
  }

  25% {
    transform: rotateX(180deg);
    border-radius: 0 10px 0 10px;
  }

  50% {
    transform: rotateX(0deg);
    border-radius: 10px 0 10px 0;
  }

  75% {
    transform: rotateX(180deg);
    border-radius: 0 10px 0 10px;
  }

  100% {
    transform: rotateX(0deg);
    border-radius: 10px 0 10px 0;
  }
}

@media (max-width: 368px) {

  .sliders {
    max-width: 95%;
  }

  .slider img {
    height: 150px;
  }

  .text {
    font-size: 1.5rem;
  }
}

@media (min-width: 368px) {
  .sliders {
    max-width: 75%;
  }

  .slider img {
    height: 300px;
  }

  .text {
    font-size: 1.7rem;
  }
}

@media (min-width: 1360px) {
  .sliders {
    max-width: 50%;
  }

  .slider img {
    height: 400px;
  }

  .text {
    font-size: 2rem;
  }
}
@media (max-width: 840px) {
  .sliders {
    max-width: 100%;
  }
} 