﻿#loading-box .loading-left-bg,
#loading-box .loading-right-bg {
    position: fixed;
    z-index: 999998;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    transition: transform 0.7s cubic-bezier(0.42, 0, 0, 1.01) 1.5s ,background-color 1.5s ease;
    backdrop-filter: blur(30px);
}
.loaded .loading-left-bg, .loaded .loading-right-bg {
    background-color: rgba(var(--background-color-rgb), 0.2) !important; 
}

#loading-box .loading-right-bg {
    right: 0;
}

#loading-box>.spinner-box {
    position: fixed;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 90vh;
    opacity: 1;
    transition: opacity .5s ease 1.5s, transform .5s 1.5s;
    pointer-events: none;
    color: var(--color);
}

#loading-box .spinner-box .loading-word {
    position: absolute;
    font-size: 0.95rem;
    transform: translateY(64px);
    text-align: center;
    opacity: 1;
    transition: all .2s .5s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.welcome{
    opacity: 0;
    font-size: 1.5rem;
    transition: all .2s .7s;
    position: absolute;
    transform: translateY(64px);
    font-weight: 800;
}

p.loading-title {
    font-size: 1.25rem;
    margin: 20px 10px 4px 10px;
}

#loading-box .spinner-box .configure-core {
    width: 100%;
    height: 100%;
    background-color: #37474f;
}

div.loaded div.loading-left-bg {
    transform: translate(-100%, 0);
}

div.loaded div.loading-right-bg {
    transform: translate(100%, 0);
}

div.loaded div.spinner-box {
    transform: scale(20);
    opacity: 0 !important;
}

div.loaded div.spinner-box .loading-word{
    opacity: 0 !important;
}

div.loaded div.spinner-box .welcome{
    opacity: 1 !important;
}

.loader-icon {
    box-sizing: border-box;
    border-radius: 50%;
    font-size: 48px;  
    color: #ffffff;   
    display: block;  
    margin: 0 auto;   
}
@media (max-width: 768px) {
    #loading-box>.spinner-box {
        height: 70vh;
    }
}

.loader-icon {
    position: relative;
    width: 54px;
    height: 54px;
  
    &::after, &::before {
      content: "";
      width: 48px;
      height: 48px;
      border: 3px solid #fff;
      position: absolute;
      left: 0;
      top: 0;
      -webkit-animation: rotation 2s ease infinite;
      animation: rotation 2s ease infinite;
    }
  
    &::after {
      border-color: #fff;
      -webkit-animation-delay: 1s;
      animation-delay: 1s;
    }
  
  }
  