.changing-lines-component {
  --horizontal-padding: clamp(0.5rem, 10vw, 25rem);
}

.changing-lines-component h1 {
  font-weight: normal;
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 5vw, 4rem);
}

.changing-lines-component h1 strong {
  overflow: visible;
  background: linear-gradient(0deg, var(--blue), var(--blue)) no-repeat 7px 12px;
}

.changing-lines-component h6 {
  margin-right: var(--horizontal-padding);
  font-weight: normal;
  margin-bottom: 1rem;
  font-size: clamp(1rem, 2vw, 1.5rem);
}

.changing-lines-component a {
  max-width: calc(100% - var(--horizontal-padding));
  margin-right: var(--horizontal-padding);
}

.changing-line {
  position: relative;
  perspective: 20000px;
}

.changing-line .dummy-line {
  visibility: hidden;
}

.changing-line span:not(.dummy-line) {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  display: inline-block;
  overflow: visible;
  transform-style: preserve-3d;
  transition: transform 0.5s ease, opacity 0.2s ease 0.3s;
  transform: rotate3d(1, 0, 0, -90deg);
  visibility: hidden;
  opacity: 1;
}

.changing-line .current {
  visibility: visible !important;
  transform: rotate3d(0, 0, 0, 0deg) !important;
  transform-origin: 50% 100%;
}

.changing-line .prev {
  visibility: visible !important;
  transform: rotate3d(1, 0, 0, 90deg) !important;
  transform-origin: 50% 0%;
  opacity: 0 !important;
}