.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background: white;
    z-index: -1;
    /* background-image: url('<your_background_path>');
    background-image: image-set( url('<your_background_path>') type('image/webp'), url('<your_background_path>') type('image/png') ); */
}

canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    max-height: 100%;
    max-width: 100%;
}

.loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 10;
    background-image: url('../assets/images/loadingBg.webp');
    background-image: image-set( url('../assets/images/loadingBg.webp') type('image/webp'), url('../assets/images/loadingBg.png') type('image/png') );
}


.progress-background {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.progress {
    position: absolute;
    bottom: 15px;
    height: 50px;
    width: 665px;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading-text {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, -50%);
    bottom: 60px;
}

.progress-mask {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.progress-fill {
    clip-path: inset(0 100% 0 0); /* Начальное состояние: прогресс скрыт */
    transition: clip-path 0.3s ease; /* Плавное изменение */

    height: 36px;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    top: 47%;
}
  

@media (width <= 1880px) {
    .progress {
        height: calc(50px * 0.9);
        width: calc(665px * 0.9);
    }
    .loading-text {
        height: calc(85px * 0.9);
        width: calc(553px * 0.9);
    }

    .progress-fill {
        height: calc(36px * 0.9);
    }
}

@media (width <= 1640px) {
    .progress {
        height: calc(50px * 0.8);
        width: calc(665px * 0.8);
    }
    .loading-text {
        height: calc(85px * 0.8);
        width: calc(553px * 0.8);
        bottom: 60px;
    }

    .progress-fill {
        height: calc(36px * 0.8);
    }
}

@media (width <= 1485px) {
    .progress {
        height: calc(50px * 0.6);
        width: calc(665px * 0.6);
        bottom: 15px;
    }
    .loading-text {
        height: calc(85px * 0.6);
        width: calc(553px * 0.6);
        bottom: 55px;
    }

    .progress-fill {
        height: calc(36px * 0.6);
    }
}

@media (width <= 480px) {
    .progress {
        height: calc(50px * 0.5);
        width: calc(665px * 0.5);
    }
    .loading-text {
        height: calc(85px * 0.5);
        width: calc(553px * 0.5);
    }
    .progress-fill {
        height: calc(36px * 0.5);
    }
}

@media (width <= 410px) {
    .progress {
        height: calc(50px * 0.4);
        width: calc(665px * 0.4);
    }
    .loading-text {
        height: calc(85px * 0.4);
        width: calc(553px * 0.4);
    }
    .progress-fill {
        height: calc(36px * 0.4);
    }
}
