@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  background: linear-gradient(to bottom, #bea2e7 0%, #86b7e7 100%);
}

.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50%;
  height: 60vh;
}

.wrapper .card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  width: 430px;
  padding: 20px;
  background: #fff;
  border-radius: 100px 20px 20px 100px;
  pointer-events: none;
  opacity: 0;
  animation: animate 15s linear infinite;
  animation-delay: calc(
    3s * var(--delay)
  ); /* Produce Sliding Effect on each card*/
}

.wrapper:hover .card {
  animation-play-state: paused;
}

.wrapper .card:last-child {
  animation-delay: calc(-3s * var(--delay));
}

@keyframes animate {
  0% {
    opacity: 0;
    transform: translateY(100%) scale(0.5);
  }
  5%,
  20% {
    opacity: 0.4;
    transform: translateY(100%) scale(0.7);
  }
  25%,
  40% {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0%) scale(1);
  }
  45%,
  60% {
    opacity: 0.4;
    transform: translateY(-100%) scale(0.7);
  }
  65%,
  100% {
    opacity: 0;
    transform: translateY(-100%) scale(0.5);
  }
}

.card .content {
  display: flex;
  align-items: center;
}

.wrapper .card .img {
  position: absolute;
  left: -5px;
  width: 90px;
  height: 90px;
  padding: 5px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}

.card .img img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.card .details {
  margin-left: 80px;
}

.details span {
  font-size: 18px;
  font-weight: 600;
}

.card a {
  padding: 7px 18px;
  text-decoration: none;
  border-radius: 25px;
  color: #fff;
  background: linear-gradient(to bottom, #bea2e7 0%, #86b7e7 100%);
}
