﻿/*------------------------------------*\
  PRELOADER
\*------------------------------------*/
/* Structure */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    /*background-color: var(--layout-color);*/
    background-color: #333333;
    /*background-image: linear-gradient(to right, darkgrey, black);*/
}

    .preloader .preloader-container {
        position: relative;
        width: 100%;
        height: 100%;
        margin: 0 auto;
        padding: 0;
        background-color: transparent;
    }

    .preloader .logo {
        position: absolute;
        bottom: 0;
        right: 15px;
        width: 90px;
        height: 90px;
    }

    .preloader .preloader-content {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        text-align: center;
        transform: translate(-50%, -50%);
    }

        .preloader .preloader-content * {
            display: block;
            margin: 0 auto;
        }
    /* Box */
    .preloader .preloader-box {
        width: 75px;
        height: 75px;
        border-radius: 3px;
        background-color: #ffffff;
        animation: bounce-box 500ms linear infinite;
    }

@keyframes bounce-box {
    17% {
        border-bottom-right-radius: 3px;
    }

    25% {
        transform: translateY(9px) rotate(22.5deg);
    }

    50% {
        border-bottom-right-radius: 40px;
        transform: translateY(21px) scale(1,.9) rotate(45deg);
    }

    75% {
        transform: translateY(9px) rotate(67.5deg);
    }

    100% {
        transform: translateY(0) rotate(90deg);
    }
}
/* Box Shadow */
.preloader .preloader-box-shadow {
    width: 75px;
    height: 7.5px;
    margin-top: 17px;
    border-radius: 50%;
    background-color: #000000;
    opacity: 0.1;
    animation: bounce-box-shadow 500ms linear infinite;
}

@keyframes bounce-box-shadow {
    50% {
        transform: scale(1.2, 1);
    }
}
/* Text */
.preloader .preloader-text {
    display: inline-block;
    margin-top: 25px;
    font-size: 2em;
    font-weight: bold;
    text-transform: uppercase;
}
    /* Text Dot */
    .preloader .preloader-text .preloader-text-dots {
        display: inline-block;
        font-size: 1.25em;
    }

        .preloader .preloader-text .preloader-text-dots span {
            display: inline-block;
            animation: text-dot-blink 1500ms linear infinite;
            animation-fill-mode: both;
        }

.preloader .preloader-content span:nth-child(2) {
    animation-delay: .2s;
}

.preloader .preloader-content span:nth-child(3) {
    animation-delay: .4s;
}

@keyframes text-dot-blink {
    0% {
        opacity: .2;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: .2;
    }
}

#loading {
    position: fixed;
    top: 0px;
    right: 0px;
    width: 100%;
    height: 100%;
    /*background-color: rgba(0,0,0,.2);*/
    background-image: url('../images/loading.gif');
    /*background-size: 100%;*/
    background-repeat: no-repeat;
    background-position: center;
    z-index: 100;
}

/* Media Query */
@media only screen and (max-width: 481px) {
    .preloader .logo {
        width: 60px;
        height: 60px;
    }
}

.whiskey-loader {
    position: relative;
}

    .whiskey-loader:before, .whiskey-loader:after {
        -webkit-animation: cube-float 2s linear infinite;
        animation: cube-float 2s linear infinite;
        background-color: rgba(255, 255, 255, 0.85);
        border-radius: 2px;
        content: "";
        height: 17px;
        width: 17px;
        position: absolute;
        top: 28px;
        left: 35px;
        will-change: transform;
        z-index: 1;
    }

    .whiskey-loader:after {
        -webkit-animation-name: cube-float--alt;
        animation-name: cube-float--alt;
        -webkit-animation-duration: 3s;
        animation-duration: 3s;
        top: 34px;
        left: 16px;
        transform: rotate(30deg);
    }

@-webkit-keyframes cube-float {
    0% {
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
        transform: none;
    }

    25% {
        transform: rotate(-5deg) translate3d(-1px, 2px, 0);
    }

    50% {
        -webkit-animation-timing-function: ease-in-out;
        animation-timing-function: ease-in-out;
        transform: rotate(0deg) translate3d(-1px, 6px, 0);
    }

    80% {
        transform: rotate(5deg) translate3d(0, 2px, 0);
    }

    100% {
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
        transform: none;
    }
}

@keyframes cube-float {
    0% {
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
        transform: none;
    }

    25% {
        transform: rotate(-5deg) translate3d(-1px, 2px, 0);
    }

    50% {
        -webkit-animation-timing-function: ease-in-out;
        animation-timing-function: ease-in-out;
        transform: rotate(0deg) translate3d(-1px, 6px, 0);
    }

    80% {
        transform: rotate(5deg) translate3d(0, 2px, 0);
    }

    100% {
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
        transform: none;
    }
}

@-webkit-keyframes cube-float--alt {
    50% {
        -webkit-animation-timing-function: ease;
        animation-timing-function: ease;
        transform: rotate(20deg) translate3d(-2px, -4px, 0);
    }
}

@keyframes cube-float--alt {
    50% {
        -webkit-animation-timing-function: ease;
        animation-timing-function: ease;
        transform: rotate(20deg) translate3d(-2px, -4px, 0);
    }
}