html {
  overflow-x: hidden !important;
}

.carousel {
  position: relative;
  width: 23rem;
  height: 23rem;
  margin-top: 100px;
  perspective: 500px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-container {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotateY(calc(var(--offset) * 50deg))
    scaleY(calc(1 + var(--abs-offset) * -0.4))
    translateZ(calc(var(--abs-offset) * -30rem))
    translateX(calc(var(--direction) * -5rem));
  filter: blur(calc(var(--abs-offset) * 1rem));
  transition: all 0.3s ease-out;
  opacity: var(--opacity);
}

.card {
  width: 100%;
  height: 100%;
  padding: 2rem;
  /* background-color: hsl(280deg, 40%, calc(100% - var(--abs-offset) * 50%)); */
  border-radius: 1rem;
  color: #9ca3af;
  text-align: justify;
  transition: all 0.3s ease-out;
}

.card h4 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 0 0.7em;
  color: #1f2937;
}

.card p,
.card h4 {
  transition: all 0.3s ease-out;
  opacity: var(--active);
}

.nav {
  color: white;
  font-size: 3rem;
  position: absolute;
  top: calc(100% - 1.5rem);
  z-index: 2;
  cursor: pointer;
  user-select: none;
  background-color: #006b9e;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav i {
  vertical-align: middle;
  font-size: 30px;
}

.nav.left {
  left: -1rem;
}

.nav.right {
  right: -1rem;
}
.hide-scroll-bare::-webkit-scrollbar {
  display: none !important;
}
.slide-element {
  opacity: 0.5;
  position: relative;
}
.active-slide_1 {
  opacity: 1;
  scale: 1.2;
  animation: animater1 ease 0.5s 1 forwards;
  z-index: 10;
  transform-origin: top center;
}
.active-slide_2 {
  opacity: 1;
  scale: 1.2;
  animation: animater2 ease 0.5s 1 forwards;
  z-index: 10;
  transform-origin: top center;
}
@media screen and (max-width: 667px) {
  .card-container {
    width: 75%;
    height: 75%;
  }
  .nav {
    top: calc(80% - 1.5rem);
    width: 45px;
    height: 45px;
  }
  .nav i {
    vertical-align: middle;
    font-size: 20px;
  }
  .nav.left {
    left: 1rem;
  }

  .nav.right {
    right: 1rem;
  }
  .carousel {
    margin-top: 0px;
    margin-bottom: 100px;
  }
}
