

.preloader {
    background: #bbbbbb;
    position: fixed;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 1000;
}

.video-container {
    position: absolute;
    z-index: 10001;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container:after {
    content: '';
    pointer-events: none;
    top: 15%;
    left: -2%;
    background: url(../img/preloader/decor1.png) no-repeat center;
    width: 570px;
    height: 88px;
    max-width: 80%;
    background-size: contain;
    position: absolute;
}

.preloader-video {
    width: 100%;
    min-height: 100%;
    object-fit: cover;
    transform: scale(1);
/*    transition: transform 2s ease-in-out;*/
}

.text-container {
    width: 100%;
    position: absolute;
    z-index: 10002;
    
}

.text-line {
    font-size: 40px;
    margin: 2vh 0;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 400;
    color: #fff;
    
    transition: opacity 1s ease-in-out;
   
}

.fade-in {
    opacity: 1;
    animation: fadeIn 1s forwards;
}

.fade-out {
    opacity: 0;
    animation: fadeOut 1s forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}


@media (max-width: 1199px) {
    .text-container {

    }
}




.preloader-video {
    display: none; 
}

.preloader-video:first-of-type {
    display: block; 
}



.fade-in {
    opacity: 1;
}

.fade-out {
    opacity: 0;
}



@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.text-container .text-line {
    opacity: 0;
    transform: translateX(-100%); 
    transition: all 0.5s ease-out;
    animation-fill-mode: forwards;
}

.text-container .text-line.slide-in {
    animation-name: slideInLeft; 
    animation-duration: .8s;
}


.text-container .text-line.visible {
    animation: slideInLeft 0.8s forwards; 
    opacity: 1;
}

@media (max-width: 767px) {
    .text-line {
        font-size: 32px;
    }
}

.preloader.hidden {
/*    display: none !important;*/
           animation: zoomOut 0.8s forwards; 
    pointer-events: none;
}




/*20/01*/
.preloader-video {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;

    display: block !important;
/*
 transform: scale(0.8); 
    opacity: 0;
*/
    
    transition: transform 0.5s ease, opacity 0.5s ease; 
    
        animation: fadeOut 0.8s forwards; 
/*
    
    transform: scale(0.8); 
    opacity: 0; 
*/
}

.preloader-video.active {
    display: block;
      animation: fadeIn 0.8s forwards; 
/*
    opacity: 1;
    transform: scale(1.2);
*/
}

.preloader-video.zoom-out {
        animation: fadeOut 0.8s forwards; 
/*
    transform: scale(0.8); 
    opacity: 0; 
*/
}


.fade-in {
    opacity: 1;
    animation: fadeIn 1s forwards;
}

.fade-out {
    opacity: 0;
    animation: fadeOut 1s forwards;
}

@keyframes zoomIn {
    0% {   transform: scale(0.8); 
    opacity: 0;  }
    100% {  opacity: 1;
    transform: scale(1.2); }
}

@keyframes zoomOut {
    0% { opacity: 1;
    transform: scale(1.2);  }
    100% {  transform: scale(0.8); 
    opacity: 0; }
}

