body, html {
    height: 100%;
    margin: 0;
    min-height: 100%;
    padding: 0;
    overflow: hidden;
}

.loading-container {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    position: relative;
    width: 100vw;
    z-index: 1;
}

.video-container{
    height: 100%;
    left: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
}

.video-frame {
    border: 0;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
}

.overlay-background-movie {
    background-color: var(--overlay-color);
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 0;
}

#logo {
    animation: scale-up 5s ease-in-out forwards;
    height: auto;
    margin-bottom: 20px;
    padding: 35px;
    width: 250px;
}

.logo-container {
    animation: scale-up 5s ease-in-out forwards;
}

@keyframes scale-up {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 0.7; }
    60% { transform: scale(1.1); opacity: 0.8; }
    70% { transform: scale(1.15); opacity: 0.9; }
    80% { transform: scale(1.25); opacity: 0.95; }
    100% { transform: scale(1.5); opacity: 1; }
}

.loading-text, #loading-percentage  {
    color: #D6D6D6;
    font-size: 24px;
    font-family: var(--return-of-the-grid), sans-serif;
    font-weight: 500;
    margin-bottom: 20px;
}

#loading-percentage.done-loading {
    animation: flash 0.4s ease-in-out, scale-bounce 0.6s ease-out;
    filter: blur(0.2px);
    text-shadow: 0 0 5px rgba(0, 200, 255, 0.2);
}

@keyframes flash {
    0%   { opacity: 1;    transform: scale(1);
            text-shadow: 0 0 0 transparent; }
    20%  { opacity: 0.8;  transform: scale(1.06);
            text-shadow: 0 0 10px #fff; }
    40%  { opacity: 0.5;  transform: scale(1.12);
            text-shadow: 0 0 12px #fff; }
    60%  { opacity: 0.45;  transform: scale(1.13);
            text-shadow: 0 0 13px #00c8ff; }
    80%  { opacity: 0.6;  transform: scale(1.08);
            text-shadow: 0 0 15px #00c8ff; }
    100% { opacity: 1;    transform: scale(1);
            text-shadow: 0 0 0 transparent; }
}

@keyframes scale-bounce {
    0%   { transform: scale(1) translateY(0); }
    50%  { transform: scale(1.05) translateY(-3px); }
    100% { transform: scale(1) translateY(0); }
}

.overlay-background-movie.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
