/* Loading screen */
.loading-screen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: all;
    opacity: 1;
    transition: opacity 0.3s ease;
    display: block;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Background */
.loading-screen__background {
    position: absolute;
    background: var(--color-bg-dark) url('../imgs/loading-page-bg.jpg');
    background-size: cover;
    background-position: center;
    inset: 0;
}

/* Content */
.loading-screen__content {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    align-items: center;
}

/* Logo */
.loading-screen__logo {
    position: relative;
    width: 180px;
    height: 20px;
    background: url('../imgs/sportradar-logo-small.png') no-repeat center;
    background-size: contain;
}

@media only screen and (max-width: 419px) {
    .loading-screen__logo {
        width: 120px;
    }
}

/* Animation */
.loading-screen_wrapper {
    max-width: 200px;
    width: 100%;
}

.loading-screen__animation {
    width: 100%;
    margin: 0 auto;
}

.loading-screen__animation iframe {
    max-height: 80px;
    height: 100%;
    width: 100%;
    border: none;
}

@media only screen and (max-height: 280px) {
    .loading-screen__animation {
        max-width: 120px;
    }

    .loading-screen__animation iframe {
        max-height: 48px;
    }
}

/* Progress */
.loading-screen__progress {
    max-width: 280px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    user-select: none;
}

.loading-screen__progress-empty {
    max-width: 280px;
    width: 100%;
    height: 6px;
    margin: 0 auto;
    background: url('../imgs/progress-bar-empty-light.png') no-repeat center;
    border-radius: 20px;
}

.loading-screen__progress-full {
    width: 0%;
    height: 6px;
    background: url('../imgs/progress-bar-full-light.png') no-repeat center;
    border-radius: 20px;
    transition: width 0.25s ease;
}

/* Text */
.loading-screen__text {
    margin-top: 10px;
    font-size: 14px;
    color: white;
    font-family: var(--font-main);
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
}

@media only screen and (max-width: 419px) {
    .loading-screen__text {
        font-size: 12px;
    }
}
