.rkit-text-marquee {
  --rkit-marquee-fade-color: white;
  --rkit-marquee-fade-size: 0px;
  --rkit-marquee-fading-width: 0%;
  position: relative;
  overflow: hidden;
}

.rkit-text-marquee::before,
.rkit-text-marquee::after {
  content: "";
  position: absolute;
  z-index: 9;
  top: 0;
  width: var(--rkit-marquee-fade-size);
  height: 100%;
  pointer-events: none;
}

.rkit-text-marquee::before {
  left: 0;
  background: linear-gradient(
    to right,
    var(--rkit-marquee-fade-color) var(--rkit-marquee-fading-width),
    transparent 100%
  );
}

.rkit-text-marquee::after {
  right: 0;
  background: linear-gradient(
    to left,
    var(--rkit-marquee-fade-color) var(--rkit-marquee-fading-width),
    transparent 100%
  );
}

.rkit-marquee-container {
  overflow: hidden;
  /*   white-space: nowrap; */
  width: 100%;
  display: flex;
  flex-direction: row;
  --gap: 5rem;
  --speed: 20;
  /*   gap: var(--gap); */
}

.rkit-marquee {
  animation: marquee calc(100s / var(--speed)) infinite linear;
}

.rkit-marquee-container:hover .pause-hover,
.rkit-text-marquee.vertical-direction .rkit-marquee-container:hover .pause-hover  {
  animation-play-state: paused;
}

.rkit-marquee-content {
  display: inline-flex;
  align-items: center;
}

.rkit-marquee-item {
  text-wrap: nowrap;
  padding-right: var(--gap);
}

.rkit-marquee-item-content {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}

.rkit-running-text__text {
  background: black;
  font-size: 3rem;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all .3s ease;
}

.rkit-running-text__icon {
  font-size: 3rem;
  width: 3rem;
  color: black;
  fill: black;
  transition: all .3s ease;
}

.image-running img {
  display: block;
  width: auto;
  height: 100%;
  overflow: hidden;
  object-fit: contain;
}

.image-running {
  display: flex;
  width: 100px;
  height: 100px;
  overflow: hidden;
  opacity: 1;
  align-items: center;
}

@keyframes marquee {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-100%);
  }
}


.rkit-text-marquee.vertical-direction {
  height: 500px; /* bisa disesuaikan */
}

.rkit-text-marquee.vertical-direction::before,
.rkit-text-marquee.vertical-direction::after {
  width: 100%;
  height: var(--rkit-marquee-fade-size);
  left: 0;
  top: auto;
}

.rkit-text-marquee.vertical-direction::before {
  top: 0;
  background: linear-gradient(
    to bottom,
    var(--rkit-marquee-fade-color) var(--rkit-marquee-fading-width),
    transparent 100%
  );
}

.rkit-text-marquee.vertical-direction::after {
  bottom: 0;
  background: linear-gradient(
    to top,
    var(--rkit-marquee-fade-color) var(--rkit-marquee-fading-width),
    transparent 100%
  );
}

.rkit-text-marquee.vertical-direction .rkit-marquee-container {
  flex-direction: column;
}

.rkit-text-marquee.vertical-direction .rkit-marquee-content {
  flex-direction: column;
  animation: marqueeY calc(100s / var(--speed)) infinite linear;
}

.rkit-text-marquee.vertical-direction .rkit-marquee-item {
  padding: 0;
  margin-bottom: var(--gap);
}

.rkit-text-marquee.vertical-direction .rkit-marquee-item-content {
  flex-direction: column;
}

.rkit-text-marquee.vertical-direction .rkit-running-text__text {
  /* biar tetap horizontal tapi disusun vertikal */
  writing-mode: vertical-lr;
  text-orientation: mixed;
  white-space: nowrap;
}

@keyframes marqueeY {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-100%);
  }
}
