.word-carsl {
  width: 100vw;
  height: 100vh;
  padding: 3%;
}

.containerR {
  display: flex;
  align-items: center;
  border-radius: 50px;
  height: 100%;
  background-color: var(--primary);
}

.main-textT {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 2px;
  flex: 1;
  width: 57%;
  /* text-shadow: 0 0 3px rgba(0, 0, 0, 0.578); */
  display: flex;
  justify-content: flex-end;
  font-family: Bebas;
  text-align: right;
  opacity: 0.9;
  /* background-color: red; */
}

.word-rotateE {
  list-style-type: none;
  /* background-color: green; */
  margin: 0;
  padding: 0;
  width: 43%;
  height: 100%; /* Increased height for more spacing */
  position: relative;
  display: inline-block;
  /* font-size: clamp(1rem, 3vw, 3rem); */
  font-size: 5em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  overflow: hidden;

}

.word-rotateE li {
  height: auto;
  position: absolute;
  /* background-color: red; */
  top: 82.5%;
  left: 3%;
  width: 100%;
  transition: all 0.8s ease;
  display: flex;
  font-family: Bebas;
  font-size: 3rem;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.578);
  color: white;
  align-items: center;
  justify-content: flex-start;
  /* white-space: nowrap; */
  transform-origin: center;
}

@media (max-width: 768px) {
  .containerR {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 40px 20px;
  }

  .word-rotateE {
    width: 100%;
    height: 1em;
    text-align: center;
  }
}




:root {
  --speed: 20s;
  --font-size: clamp(2rem, 5vw, 4rem);
  --container-height: calc(var(--font-size) + 2rem);/* font-size + correction for descenders (font specific)*/
  --line-height: calc(var(--font-size) * 2);
  --margin: calc((var(--font-size) / 2) * -1); /* shift by half the font-size */
  --timing: cubic-bezier(0.235, 0.790, 0.375, 1);
}

.main-text-mobile{

   font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 2px;
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  font-family: Bebas;
  text-align: center;
  opacity: 0.9;
}

#mb-title-container {
  background-color: var(--primary);

  display: flex;
  height: var(--container-height);
  overflow: hidden;
}

ul {
  list-style: none;
  text-align: left;
  margin-top: 10px;
}

.mb-title {
  font-family: Bebas;
  width: 100%;
  filter: brightness(1.5);
  text-align: center;
  font-size: var(--font-size);
  line-height: var(--line-height);
  margin-top: var(--margin);
  animation: var(--speed) var(--timing) infinite mover;
}

@keyframes mover {
  0% {
    transform: translate3d(0, 0, 0);
  }
  6.67% {
    transform: translate3d(0, -100%, 0);
  }
  13.33% {
    transform: translate3d(0, -200%, 0);
  }
  20% {
    transform: translate3d(0, -300%, 0);
  }
  26.67% {
    transform: translate3d(0, -400%, 0);
  }
  33.33% {
    transform: translate3d(0, -500%, 0);
  }
  40% {
    transform: translate3d(0, -600%, 0);
  }
  46.67% {
    transform: translate3d(0, -700%, 0);
  }
  53.33% {
    transform: translate3d(0, -800%, 0);
  }
  60% {
    transform: translate3d(0, -900%, 0);
  }
  66.67% {
    transform: translate3d(0, -1000%, 0);
  }
  73.33% {
    transform: translate3d(0, -1100%, 0);
  }
  80% {
    transform: translate3d(0, -1200%, 0);
  }
  86.67% {
    transform: translate3d(0, -1300%, 0);
  }
  93.33% {
    transform: translate3d(0, -1400%, 0);
  }
  100% {
    transform: translate3d(0, -1500%, 0);
  }
}