﻿
#Welcome {
    --welcome-color: var(--rz-primary, gray);
    position: absolute;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 3000;
    opacity: 0;
    -webkit-transition: opacity 1.5s linear;
    /***/
    --animate-duration: 1s;
    --animate-delay: 1s;
    --animate-repeat: 1
}

    #Welcome #Background {
        position: absolute;
        width: 100%;
        height: 100%;
        background-image: url(./bg.png);
        background-repeat: no-repeat;
        background-position: center;
        background-size: 90% auto;
        opacity: 0;
        transition: opacity 1s linear;
    }

@media screen and (orientation:landscape) {
    #Welcome #Background {
        background-size: auto 90%;
    }
}

#Welcome #Content {
    margin-bottom: 10%;
    z-index: 1;
}

#Welcome.fadeout {
    opacity: 0;
}

#Welcome.fadein {
    opacity: 1;
}

    #Welcome.fadein #Background {
        opacity: 0.3;
    }

/* =========================*/
/* BGN Welcome Logo (shelf) */

#Logo {
    width: 370px;
    height: 240px;
    margin: auto;
    opacity: 0;
}

    #Logo.animated {
        animation: kf-zoomInDown 2.5s ease-in-out 0s forwards;
    }

@keyframes kf-zoomInDown {
    from {
        opacity: 0;
        transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0);
        animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    }

    60% {
        opacity: 1;
        transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);
        animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);
    }

    100% {
        opacity: 1;
    }
}

@keyframes kf-bounce {
    0% {
        transform: translateY(-11px);
        opacity: 1;
    }

    50% {
        transform: translateY(-35px);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-11px);
        opacity: 1;
    }
}

#Logo.animated .bounce {
    transform: translateY(-11px);
    animation: kf-bounce 2s ease-in-out 1;
}

    #Logo.animated .bounce:nth-child(3) {
        animation-delay: 1.2s;
    }

    #Logo.animated .bounce:nth-child(4) {
        animation-delay: 1.4s;
    }

    #Logo.animated .bounce:nth-child(5) {
        animation-delay: 1.6s;
    }

    #Logo.animated .bounce:nth-child(6) {
        animation-delay: 1.2s;
    }

/* END Welcome Logo (shelf) */
/* =========================*/

/*=====================*/
/* BGN Welcome Spinner */

#Welcome #Spinner {
    width: 150px;
    height: 150px;
    position: relative;
    animation: spinner-dots 2.5s infinite linear both;
    margin: auto;
    opacity: 1;
    transition: opacity 2s ease-in-out;
}

    #Welcome #Spinner.hidden {
        opacity: 0;
    }

    #Welcome #Spinner .spinner-dot {
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0;
        top: 0;
        animation: spinner-dot 2.0s infinite ease-in-out both;
    }

        #Welcome #Spinner .spinner-dot:before {
            content: '';
            display: block;
            width: 25%;
            height: 25%;
            border-radius: 100%;
            background-color: var(--welcome-color);
            animation: spinner-dot-before 2.0s infinite ease-in-out both;
        }

        #Welcome #Spinner .spinner-dot:nth-child(1) {
            animation-delay: -1.1s;
        }

        #Welcome #Spinner .spinner-dot:nth-child(2) {
            animation-delay: -1.0s;
        }

        #Welcome #Spinner .spinner-dot:nth-child(3) {
            animation-delay: -0.9s;
        }

        #Welcome #Spinner .spinner-dot:nth-child(4) {
            animation-delay: -0.8s;
        }

        #Welcome #Spinner .spinner-dot:nth-child(5) {
            animation-delay: -0.7s;
        }

        #Welcome #Spinner .spinner-dot:nth-child(6) {
            animation-delay: -0.6s;
        }

        #Welcome #Spinner .spinner-dot:nth-child(1):before {
            animation-delay: -1.1s;
        }

        #Welcome #Spinner .spinner-dot:nth-child(2):before {
            animation-delay: -1.0s;
        }

        #Welcome #Spinner .spinner-dot:nth-child(3):before {
            animation-delay: -0.9s;
        }

        #Welcome #Spinner .spinner-dot:nth-child(4):before {
            animation-delay: -0.8s;
        }

        #Welcome #Spinner .spinner-dot:nth-child(5):before {
            animation-delay: -0.7s;
        }

        #Welcome #Spinner .spinner-dot:nth-child(6):before {
            animation-delay: -0.6s;
        }

@keyframes spinner-dots {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinner-dot {

    80%, 100% {
        transform: rotate(360deg);
    }
}

@keyframes spinner-dot-before {
    50% {
        transform: scale(0.4);
    }

    100%, 0% {
        transform: scale(1.0);
    }
}

/* END Welcome Spinner */
/*=====================*/

/*==========================*/
/* BGN Welcome ProgressText */

#Welcome #Content #ProgressText {
    text-align: center;
    font-weight: bold;
    font-size: 2rem;
    color: var(--welcome-color);
}

    #Welcome #Content #ProgressText:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

/* END Welcome ProgressText */
/*==========================*/

/*==========================*/
/* BGN Flash */

@keyframes kf-flash-appearance {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
}

#LogoBox #Flash {
    width: 500px;
    height: 500px;
    background-color: orange;
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    opacity: 0;
    background: radial-gradient(circle farthest-corner at 50% 50%, rgba(67, 64, 210, 1) 0%, rgba(255, 255, 255, 0) 70%);
}

    #LogoBox #Flash.show {
        animation: kf-flash-appearance 3.5s ease-out 1.5s forwards;
    }

/* END Flash */
/*==========================*/
