/* Heading with the animation switched on */
.ha-hta-yes {
  position: relative;
  -webkit-perspective: 1000px;
          perspective: 1000px;
}

/* Characters */
.ha-char {
  display: inline-block;
  white-space: pre;
  will-change: transform, opacity;
}

/* Words */
.ha-word {
  display: inline-block;
  white-space: pre;
  will-change: transform, opacity;
}

/* flip */
.ha-flip {
  display: block;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  will-change: transform, opacity;
}

/* 3D mode */
.ha-hta-3d-spin {
  display: inline-block;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}

.duplicate-text {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
}

/* Invert mode */
/* Invert mode wrapper */
.ha-hta-text-invert .invert-line {
  --ha-opacity: 0.45;
  background: -webkit-linear-gradient(left, hsla(var(--text-color), var(--ha-opacity)) 0%, hsla(var(--text-color), var(--ha-opacity)) 50%, hsla(var(--text-color), 1) 50%, hsla(var(--text-color), 1) 100%);
  background: linear-gradient(90deg, hsla(var(--text-color), var(--ha-opacity)) 0%, hsla(var(--text-color), var(--ha-opacity)) 50%, hsla(var(--text-color), 1) 50%, hsla(var(--text-color), 1) 100%);
  background-size: 200% 100%;
  background-position-x: 0%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}

/* Smoky Reveal Animation */
.ha-tm-smoky-reveal .letter {
  display: inline-block;
  white-space: pre;
  will-change: transform, opacity, filter;
}

/* Alternative Reveal Animation */
.ha-tm-alt-reveal .letter {
  display: inline-block;
  white-space: pre;
  will-change: transform, opacity;
}

/* Popup Reveal Animation */
.ha-tm-popup-reveal .letter {
  display: inline-block;
  white-space: pre;
}

/* Mixing Reveal Animation */
.ha-tm-mixing-reveal .word,
.ha-tm-mixing-reveal .ha-word {
  display: inline-block;
}

/* Highlight */
.ha-tm-highlight {
  color: var(--ha-highlight-color, inherit);
}

@media (prefers-reduced-motion: reduce) {
  .ha-hta-yes * {
    -webkit-transform: none !important;
        -ms-transform: none !important;
            transform: none !important;
    opacity: 1 !important;
    -webkit-filter: none !important;
            filter: none !important;
  }
}