section.section-3d-slider {
  width: 100%;
  margin: 80px 0 50px;
  padding-bottom: 100px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.slider-3d-container {
  position: relative;
  width: 1200px;
  height: 400px;
  perspective: 1000px;
  flex: none;
}
.slider-3d-container .slider-3d {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: center center;
  transition: 0.5s;
}
.slider-3d-container .slider-3d.slides-count-4 .slide {
  width: 30%;
  left: 35%;
}
.slider-3d-container .slider-3d.slides-count-8 .slide {
  width: 26%;
  left: 37%;
}
.slider-3d-container .slider-3d.slides-count-12 .slide {
  width: 20%;
  left: 40%;
}
.slider-3d-container .slide {
  position: absolute;
  width: 20%;
  height: 50%;
  top: 25%;
  left: 40%;
  transform-style: preserve-3d;
  transform: rotateY(0deg) translateZ(500px);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 1s;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-3d-container .slide .text-container {
  text-align: center;
}
.slider-3d-container .slide .text-container p,
.slider-3d-container .slide .text-container h1,
.slider-3d-container .slide .text-container h2,
.slider-3d-container .slide .text-container h3,
.slider-3d-container .slide .text-container h4,
.slider-3d-container .slide .text-container h5,
.slider-3d-container .slide .text-container h6 {
  font-size: 35px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-family: "Arvo", sans-serif;
}
.slider-3d-container .slide .text-container a {
  font-size: 20px;
  padding: 5px 10px;
  border-radius: 20px;
  background-color: #fff;
  color: #ec1757;
  transition: 0.5s;
  border: 1px solid #ec1757;
}
.slider-3d-container .slide .text-container a:hover {
  background-color: #ec1757;
  transition: 0.5s;
  color: #fff;
}
@keyframes rotate {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}
section.section-3d-slider {
  position: relative;
}
section.section-3d-slider .arrows {
  position: absolute;
  bottom: 25px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
section.section-3d-slider .arrows .left-arrow,
section.section-3d-slider .arrows .right-arrow {
  padding: 5px 10px;
  border-radius: 20px;
  background-color: #fff;
  transition: 0.5s;
  border: 1px solid #ec1757;
  margin: 0 20px;
  cursor: pointer;
}
section.section-3d-slider .arrows .left-arrow svg,
section.section-3d-slider .arrows .right-arrow svg {
  display: block;
}
section.section-3d-slider .arrows .left-arrow path,
section.section-3d-slider .arrows .right-arrow path {
  fill: #ec1757;
}
section.section-3d-slider .arrows .left-arrow:hover,
section.section-3d-slider .arrows .right-arrow:hover {
  background-color: #ec1757;
  transition: 0.5s;
}
section.section-3d-slider .arrows .left-arrow:hover path,
section.section-3d-slider .arrows .right-arrow:hover path {
  fill: #fff;
}
section.section-3d-slider .arrows .right-arrow {
  transform: rotate(180deg);
}
@media screen and (max-width: 730px) {
  .slider-3d-container .slider-3d .slide {
    width: 20%;
    left: 40%;
  }
  .slider-3d-container .slider-3d.slides-count-4 .slide {
    width: 20%;
    left: 40%;
  }
  .slider-3d-container .slider-3d.slides-count-8 .slide {
    width: 20%;
    left: 40%;
  }
  .slider-3d-container .slider-3d.slides-count-12 .slide {
    width: 20%;
    left: 40%;
  }
  .slider-3d-container {
    height: 330px;
  }
}
@media screen and (max-width: 500px) {
  .slider-3d-container .slider-3d .slide {
    width: 14%;
    left: 43%;
  }
  .slider-3d-container .slider-3d.slides-count-4 .slide {
    width: 14%;
    left: 43%;
  }
  .slider-3d-container .slider-3d.slides-count-8 .slide {
    width: 14%;
    left: 43%;
  }
  .slider-3d-container .slider-3d.slides-count-12 .slide {
    width: 14%;
    left: 43%;
  }
  .slider-3d-container {
    height: 250px;
  }
  section.section-3d-slider .arrows {
    display: none;
  }
  .slider-3d-container .slide .text-container a {
    font-size: 16px;
  }
  .slider-3d-container .slide .text-container p,
  .slider-3d-container .slide .text-container h1,
  .slider-3d-container .slide .text-container h2,
  .slider-3d-container .slide .text-container h3,
  .slider-3d-container .slide .text-container h4,
  .slider-3d-container .slide .text-container h5,
  .slider-3d-container .slide .text-container h6 {
    font-size: 25px;
  }
  section.section-3d-slider {
    padding-bottom: 60px;
  }
}
