/*
 * Text Scroll widget.
 *
 * Supports Vertical Line Highlight, Horizontal Line Highlight,
 * Vertical Line Mask, and Horizontal Line Mask.
 */
.ha-text-scroll,
.ekl-text-scroll {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.ha-text-scroll .ha-split-lines {
    position: relative;
    display: block;
    width: 100%;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    box-sizing: border-box;
}

.ha-text-scroll .ha-split-lines .line {
    position: relative;
    display: block;
    width: 100%;
    transition: opacity 0.2s ease;
}

.ha-text-scroll .ha-split-lines .word {
    position: relative;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.ha-text-scroll[data-scroll-type='vertical_line_highlight'] .ha-split-lines .line .word,
.ha-text-scroll[data-scroll-type='horizontal_line_highlight'] .ha-split-lines .line .word {
    opacity: var(--ekl-text-highlight-opacity, 0.2);
}

.ha-text-scroll[data-scroll-type='vertical_line_mask'] .ha-split-lines .line,
.ha-text-scroll[data-scroll-type='horizontal_line_mask'] .ha-split-lines .line {
    overflow: hidden;
}

.ha-text-scroll .ha-split-lines .ha-line-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    opacity: var(--ekl-text-mask-opacity, 0.65);
    pointer-events: none;
    z-index: 2;
}
