﻿/* ===============================
   FULL SCREEN PRELOADER
================================*/

#site-preloader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity .8s ease;
}

/* center container */

.preloader-center {
    text-align: center;
}

/* ===============================
   LOGO WRAPPER
================================*/

.logo-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto;
}

/* rotating ring */

.logo-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid rgba(0,0,0,.08);
    border-top: 3px solid #ff7a00;
    animation: ringRotate 2s linear infinite;
}

/* ===============================
   LOGO IMAGE
================================*/

#loader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(.7);
    width: 150px; /* increased size */

    height: auto;
    opacity: 0;
    animation: logoAppear 1s ease forwards;
}
/* logo appear */

@keyframes logoAppear {

    0% {
        transform: translate(-50%,-50%) scale(.7);
        opacity: 0;
    }

    100% {
        transform: translate(-50%,-50%) scale(1);
        opacity: 1;
    }
}

/* ring rotate */

@keyframes ringRotate {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===============================
   TAGLINE
================================*/

.loader-tagline {
    margin-top: 30px;
    font-size: 22px;
    color: #333;
    max-width: 500px;
    opacity: 0;
    transform: translateY(20px);
    animation: taglineReveal 1.5s ease forwards;
    animation-delay: 1s;
}
/* ===============================
   LOADING DOTS
================================*/

.loader-dots {
    margin-top: 18px;
}

    .loader-dots span {
        width: 8px;
        height: 8px;
        background: #999;
        border-radius: 50%;
        display: inline-block;
        margin: 4px;
        animation: dotPulse 1.2s infinite;
    }

        .loader-dots span:nth-child(2) {
            animation-delay: .2s;
        }

        .loader-dots span:nth-child(3) {
            animation-delay: .4s;
        }

@keyframes dotPulse {

    0% {
        opacity: .3;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: .3;
    }
}
/* ===============================
   TAGLINE REVEAL ANIMATION
================================*/

@keyframes taglineReveal {

    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
