
.container-caroussel {
    position: relative;
    height: 450px;
    margin: 2rem auto;
    width: 100%;
    /* max-width: 800px; */
    overflow: hidden;
    box-shadow: 9px 9px 16px #cfbcbc, -9px -9px 16px #ffeaea;
    border-radius: 10px;
}

.container-caroussel h4 {
 
     color : white;
     font-size : 3rem;
 }
.slides-wrapper {
   position: absolute;
   display: flex;
   height: 100%;
   width: 300%;
   left: -200%;
   animation: slides 10s ease-out infinite;
}

.slides-wrapper:hover {
  animation-play-state: paused;
}
.text-caroussel {
    text-align: center;
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 17;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.img-container {
    height: 100%;
    position: relative;
    width: 100%;
    font-size: 1.5rem;
    color: #e2a0a3;
  
}

.img-container h4{
    padding : 1.5rem;
    text-align : center;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

.text {
  display: grid;
  place-content: center;
}
.text p {
  margin: 5rem 7rem;
  padding: 2rem 0rem;
  border-bottom: 1px solid rgba(30, 30, 30, 0.5);
}

.slider {
  position: absolute;
  z-index: 10;
  width: 25%;
  height: 0.9rem;
  bottom: 5%;
  left: 0;
  right: 0;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-button {
  height: 0.9rem;
  width: 0.9rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: inset 9px 9px 7px #d6c2c2, inset -9px -9px 7px #fce4e4;
}

.selected {
  background: #333;
  height: 0.5rem;
  width: 0.5rem;
  top: 50%;
  left: 0.45rem;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  position: absolute;
  z-index: 20;
  animation: selected-ball ease 10s infinite;
}

@keyframes slides {
  0% {
    left: 0%;
  }
  
  16.6% {
    left: 0%;
  }
  
  33% {
    left: -100%;
  }
  
  50% {
    left: -100%;
  }
  
  66.6% {
    left: -200%;
  }
  
  83% {
    left: -200%;
  }
  
  100% {
    left: 0;
  }

}

@keyframes selected-ball {
  0% {
    left: 0.45rem;
  }
  
  16.6% {
    left: 0.45rem;
  }
  
  25% {
    left: 50%;
  }
  
  50% {
    left: 50%;
  }
  
  60.6% {
    left: calc(100% - 0.45rem);
  }
  
  83% {
    left: calc(100% - 0.45rem);
  }
  
  93% {
    left: 0.45rem;
  }
}

.data {
  font-size: 1.5rem;
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
}