.testimonials{
  padding: 100px 0 100px;
  background-color: #ffff;
}

.testimonials h1{
  font-family: 'Poppins', sans-serif;
  font-size: 37px;
  font-weight: 600;
  color: #000;
  text-align: center;
}

.slide-content-box {
  display: flex;
  align-items: center;
  gap: 70px;
  margin: 20px;
}

.container {
  display: contents;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}

.slide-btn button {
  border: none;
  padding: 18px;
  border-radius: 50%;
  cursor: pointer;
  background-color: white;
  font-size: 25px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.stacked-container {
  position: relative;
  top: -30%;
  left: 10%;
  width: 800px;
  display: flex;
  justify-content: center;
}

.stacked-div {
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  background-repeat: no-repeat;
  background-position-y: 100%, -10%;
  background-position-x: 100%, -5%;
  background-size: 13%, 28%;
}

.stacked-div h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 600;
}

.stacked-div h3 {
  margin: 0;
  font-size: 20px;
}

.stacked-div p {
  width: 500px;
  line-height: 28px;
  font-size: 16px;
}

.stacked-div:nth-child(1) {
  width: 100%;
  top: 30px;
  max-width: 630px;
  height: 270px;
  left: 10px;
  gap: 5px;
  background-position-y: 110%, -15%;
  background-position-x: 100%, -15%;
}

.stacked-div:nth-child(2) {
  width: 100%;
  max-width: 615px;
  height: 290px;
  left: 17px;
  top: 20px;
  background-position-y: 100%, -10%;
  background-position-x: 100%, -10%;
}

.stacked-div:nth-child(3) {
  width: 100%;
  max-width: 600px;
  height: 305px;
  left: 25px;
  top: 12px;
  background-position-y: 100%, -10%;
  background-position-x: 100%, -5%;
}

.stacked-div:nth-child(4) {
  width: 100%;
  max-width: 585px;
  height: 320px;
  left: 33px;
  top: 5px;
  background-position-y: 100%, -10%;
  background-position-x: 100%, -5%;
}

.stacked-div:nth-child(5) {
  width: 100%;
  max-width: 570px;
  height: 330px;
  left: 40px;
}

.one p {
  line-height: 23px;
}

.two p {
  line-height: 25px;
}

.three p {
  line-height: 28px;
}

.container {
  display: flex;
}

.box {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 500px;
}

.hide {
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='722' height='464' viewBox='0 0 722 664' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M349.129 0.199769C438.151 -2.48655 526.313 21.7961 593.28 80.529C664.854 143.302 711.438 229.848 719.18 324.749C727.61 428.094 713.825 543.126 636.665 612.367C561.618 679.711 449.638 664.733 349.129 656.819C259.196 649.739 168.882 632.621 103.554 570.393C36.7248 506.734 -2.531 417.009 0.519142 324.749C3.48229 235.121 53.6505 155.929 119.276 94.8324C182.325 36.1347 263.036 2.79767 349.129 0.199769Z' fill='%233197A8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position-x: 140px;
}

.dot {
  height: 7px;
  width: 7px;
  background-color: #363636;
  border-radius: 50%;
  display: inline-block;
  margin: 0 10px;
  cursor: pointer;
}

.dot.active {
  padding: 2px;
  background-color: #3197A8;
  box-shadow: rgba(177, 160, 160, 0.16) 0px 1px 5px, rgb(180, 177, 177) 0px 0px 0px 5px;
}

#prevbtn {
  position: relative;
  left: 20px;
  z-index: 10;
}

#nextbtn {
  position: relative;
  right: 20px;
  z-index: 10;
}

#dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

#nextbtn.inactive,
#prevbtn.inactive {
  opacity: 0.5;
  cursor: not-allowed;
}
.slide-left-animation {
animation: slideLeft 1s forwards;
}
@keyframes slideLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-140%);
  }
}

.slide-right-animation {
  animation: slideRight 1s forwards;
}

@keyframes slideRight {
  from {
    transform: translateX(-140%);
  }
  to {
    transform: translateX(0);
  }
}

@media only screen and (max-width: 1000px) {
  .stacked-container {
    position: relative;
    gap: 2px;
    left: 40px;
  }
  .stacked-div:nth-child(5) {
    width: calc(100% - 125px);
    max-width: none;
    height: auto;
    padding: 20px;
  }
  .stacked-div:nth-child(4) {
    width: calc(100% - 110px);
    max-width: none;
    height: auto;
    padding: 20px;
  }
  .stacked-div:nth-child(3) {
    width: calc(100% - 97px);
    max-width: none;
    height: auto;
    padding: 20px;
  }
  .stacked-div:nth-child(2) {
    width: calc(100% - 83px);
    max-width: none;
    height: auto;
    padding: 15px;
  }
  .stacked-div:nth-child(1) {
    width: calc(100% - 70px);
    max-width: none;
    height: auto;
    padding: 20px;
  }
  .one p {
    font-size: 13px;
    line-height: 19px;
    width: auto;
  }
  .two p {
    font-size: 14px;
    line-height: 21px;
    width: auto;
  }
  .three p {
    font-size: 14px;
    line-height: 19px;
    width: auto;
  }
  .four p {
    font-size: 14px;
    line-height: 21px;
    width: auto;
  }
  .five p {
    font-size: 14px;
    line-height: 23px;
    width: auto;
  }
  .stacked-div h2 {
    font-size: 18px;
    margin: 0;
  }
  .stacked-div h3 {
    font-size: 16px;
    margin: 0;
  }
  .hide {
    background-position-x: 80px;
    background-position-y: 20px;
    background-size: 100%;
  }
  #prevbtn {
    left: 10px;
  }
  #nextbtn {
    right: 0px;
  }
  .box {
    height: 500px;
  }
}

@media only screen and (max-width: 768px) {
  .testimonials {
    padding: 50px 0 50px;
  }
  .testimonials h1 {
    font-size: 30px;
  }
  .stacked-div:nth-child(5) {
    width: calc(100% - 95px);
    max-width: none;
    height: auto;
    padding: 20px;
  }
  .stacked-div:nth-child(4) {
    width: calc(100% - 80px);
    max-width: none;
    height: auto;
    padding: 20px;
  }
  .stacked-div:nth-child(3) {
    width: calc(100% - 67px);
    max-width: none;
    height: auto;
    padding: 20px;
  }
  .stacked-div:nth-child(2) {
    width: calc(100% - 53px);
    max-width: none;
    height: auto;
    padding: 15px;
  }
  .stacked-div:nth-child(1) {
    width: calc(100% - 40px);
    max-width: none;
    height: auto;
    padding: 20px;
  }
  .one p {
    font-size: 5px;
    line-height: 10px;
    width: 180px;
  }
  .two p {
    font-size: 6px;
    line-height: 10px;
    width: 180px;
  }
  .three p {
    font-size: 6px;
    line-height: 10px;
    width: 180px;
  }
  .four p {
    font-size: 7px;
    line-height: 10px;
    width: 180px;
  }
  .five p {
    font-size: 7px;
    line-height: 11px;
    width: 180px;
  }
  .stacked-div h2,
  .stacked-div h3 {
    font-size: 9px;
    margin: 0;
  }
  .slide-btn button {
    padding: 10px;
    border-radius: 50%;
    font-size: 10px;
    position: relative;
  }
  .stacked-container {
    position: relative;
    gap: 2px;
    left: 10px;
  }
  .hide {
    background-position-x: 10px;
    background-position-y: 40px;
    background-size: 110%;
  }
  .box {
    height: 300px;
  }
  #prevbtn {
    position: relative;
    left: 5px;
    z-index: 10;
  }
  #nextbtn {
    position: relative;
    right: 5px;
    z-index: 10;
  }
}
