@keyframes loading-bar-bounce {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc((100% / 0.15) - 100%));
    }
}

#index-splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: oklch(21.15% 0.012 254.09);

    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-height: 100%;
        max-width: 967px;
    }
    img {
        display: block;
        width: 100%;
        max-height: calc(100svh - 12rem);
        object-fit: contain;
    }

    .loading-bar {
        --thumb-width: 15%;
        width: 65%;
        height: 1rem;
        padding: 0.125rem; /* creates the white gap around the thumb */
        box-sizing: border-box;
        overflow: hidden;
        background: white;
    }

    .loading-bar-thumb {
        width: var(--thumb-width);
        height: 100%;
        background: black;
        animation: loading-bar-bounce 3s ease-in-out infinite alternate;
    }
}
