/* Marquee Running Text - Unlimited : frontend (seamless CSS ticker) */

.runtext-container {
    background: #000;
    border: 1px solid #000000;
    width: 100%;
    overflow: hidden;
    padding: 0px;
}

.main-runtext {
    margin: 0 auto;
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
}

/* Viewport that clips the scrolling track */
.mrtext-marquee {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* The moving strip: holds two (or more) copies of the items */
.mrtext-track {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation-name: mrtext-scroll;
    animation-timing-function: linear;
    animation-iteration-count: var(--mrtext-iteration, infinite);
    animation-duration: var(--mrtext-duration, 20s);
    animation-fill-mode: forwards;
}

/* Scroll right-to-left by default; JS sets --mrtext-shift to one set's width. */
@keyframes mrtext-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-1 * var(--mrtext-shift, 50%))); }
}

/* Right direction just reverses the same animation */
.mrtext-marquee[data-direction="right"] .mrtext-track {
    animation-direction: reverse;
}

/* Pause on hover */
.mrtext-marquee:hover .mrtext-track {
    animation-play-state: paused;
}

.holder.mrtext-group {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    white-space: nowrap;
}

.runtext-container .holder a {
    text-decoration: none;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    font-size: 16px;
    white-space: nowrap;
}

.runtext-container .holder a:hover {
    color: #c5c4c7;
}

.text-container {
    display: inline-flex;
    align-items: center;
    margin: 0 10px;
    white-space: nowrap;
}

.text-container a:before {
    content: '';
    height: 11px;
    width: 11px;
    display: inline-block;
    background-color: #ffffff;
    border-radius: 100%;
    position: relative;
    margin-right: 10px;
    flex: 0 0 auto;
}

.text-container a:hover::before {
    background-color: #c5c4c7;
}

/* Before JS runs, don't animate (avoids a flash of wrong speed) */
.mrtext-marquee:not(.mrtext-ready) .mrtext-track {
    animation: none;
}
