/* Below-the-fold styles — loaded deferred for faster initial render */

.hero-video {
    max-width: 100%;
    width: var(--PageMaxWidth);
    height: auto;
    display: block;
    margin: 0 auto;
    opacity: 0;
    /* transition: opacity 0.4s ease; */
}

.rive-feature-wrap,
.rive-container {
    display: block;
    margin-bottom: 1rem;
    /* max-width: 785px; */
    max-width: 600px;
    max-height: 375px;
    width: 100%;
}
.rive-feature-wrap canvas,
.rive-container canvas {
    max-width: 100%;
    max-height: 375px;
    width: 100%;
    height: auto;
    display: block;
}

.multi-data-feed-anim-container {
    display:flex;
    flex-direction:column;
    gap:0px;
    overflow: hidden;
    justify-content: center;
}

.multi-data-feed-slider {
    background-color: #E1E4EC;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    overflow: hidden;
}

.slider-track {
    display: flex;
    gap: 8px;
    padding: 4px 4px;
    animation: slider-scroll 65s linear infinite;
    flex-shrink: 0;
}

.data-feed-provider-container {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: var(--ChartBackground);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.provider-logo {
    width: 64px;
    height: 64px;
    background-image: url('img/LogoTexturePack.png');
    background-size: 512px 512px;
    background-repeat: no-repeat;
    image-rendering: crisp-edges;
}

@keyframes slider-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% - 8px)); }
}

.block-lightgray {
    background-color: #FAFAFF;
    border-radius: 8px;
    padding: 10px;
}


.features {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 20px;
    margin-right: 20px;
    gap: 50px;
}

.feature {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: var(--PageMaxWidth);
}

.feature.centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.feature > * {
    flex: 1 1 0;
    min-width: 0;
}

.feature h3 {
    font-size: 50px;
    font-weight: 100;
    color: var(--TitleColor);
}
.feature h4 {
    font-size: 25px;
    font-weight: 100;
    color: var(--TextColor);
}
.feature p {
    /* font-size: 12px; */
    color: var(--TitleColor);
}

.feature-description {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.anim-you-offset {
    padding-right: 15%;
}

@media (max-width: 450px) {
    .anim-you-offset {
        padding-right: 7%;
    }
}

@media (max-width: 768px) {
    .feature {
        flex-direction: column;
    }

    .feature.reverse-mobile {
        flex-direction: column-reverse;
    }

    .feature > * {
        flex: 1 1 100%;
    }

    
}

.hero-video-chapters {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    max-width: var(--PageMaxWidth);
    padding-top: 25px;
    top: -25px;
    position: relative;
}

.hero-video-chapters::-webkit-scrollbar {
    display: none;
}

.hero-video-chapter, .hero-video-chapter-active {
    flex: 0 0 190px;
    height: 90px;
    scroll-snap-align: start;
    background-color: var(--ChartBackground);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

@media (max-width: 768px) {
    .hero-video-chapter, .hero-video-chapter-active {
        flex: 0 0 190px;
        height: 90px;
    }
}

.hero-video-chapter:hover {
    background-color: #E1E4EC;
}

.hero-video-chapter-active {
    background-color: var(--BtnAttentionBgColor);
    color: #FFFFFF;
}

.hero-video-chapter-active::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/video-chapter-arrow.svg') no-repeat center top / 100% auto;
    pointer-events: none;
}

@media (min-width: 1022px) { /* --PageMaxWidth */
    .hero-video-chapter, .hero-video-chapter-active {
        flex: 1 1 0;
    }
}

.questions-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.question-bubble {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: var(--ChartBackground);
    border-radius: 20px;
    padding: 10px;
    white-space: nowrap;
    font-family: 'Capriola', sans-serif;
    font-size: small;
}

footer {
    text-align: center;
    padding: 40px 0px;
    color: var(--TextColor);
    font-size: 14px;
    background-color: #E1E5EE;

}
footer h4 {
    font-family: 'Capriola', sans-serif;
    font-weight: bold;
    padding-bottom: 10px;
}

footer .grid > div {
    text-align: left;
}

footer .grid ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    text-align: left;
    line-height: 2;
}

footer .grid li {
    text-align: left;
}

footer .grid li a {
    text-decoration: none;
    color: inherit;
}

footer .grid li a:hover {
    text-decoration: underline;
}

footer .footer-bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 20px;
    max-width: calc(var(--PageMaxWidth) + 20px);
    margin: 0 auto;
    text-align: left;
}