/* Preloader */

body.royal_loader {
    background: none;
    visibility: hidden;
}

#royal_preloader {
    width: 100%;
    height: 100%;
    font-size: 12px;
    visibility: visible;
    position: fixed;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    z-index: 1050;
    -webkit-transition: opacity 0.2s linear 0.8s;
    -moz-transition: opacity 0.2s linear 0.8s;
    -ms-transition: opacity 0.2s linear 0.8s;
    -o-transition: opacity 0.2s linear 0.8s;
    transition: opacity 0.2s linear 0.8s;
}

#royal_preloader .background {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    bottom: 0px;
    right: 0px;
    left: 0px;
    background-color: #000000;
    -webkit-transition: background 0.5s linear;
    -moz-transition: background 0.5s linear;
    -ms-transition: background 0.5s linear;
    -o-transition: background 0.5s linear;
    transition: background 0.5s linear;
}

#royal_preloader.complete {
    opacity: 0;
}

#royal_preloader.text .loader {
    position: absolute;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    text-align: center;
    top: 50%;
    right: 50%;
    width: 240px;
    margin-right: -60px;
    height: 60px;
    line-height: 60px;
    margin-top: -30px;
    font-size: 30px;
    white-space: nowrap;
}

#royal_preloader.text .loader div {
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0%;
    background-color: #000000;
    opacity: 0.7;
    filter: alpha(opacity=70);
    -webkit-transition: right 0.3s linear;
    -moz-transition: right 0.3s linear;
    -ms-transition: right 0.3s linear;
    -o-transition: right 0.3s linear;
    transition: right 0.3s linear;
}

#royal_preloader.logo .loader {
    width: 400px;
    height: 400px;
    position: absolute;
    right: 50%;
    top: 50%;
    transform: translate(50%, -50%);
    background-size: 100% auto;
    overflow: hidden;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

#royal_preloader.logo .loader div {
    position: absolute;
    bottom: 0%;
    right: 0px;
    left: 0px;
    height: 100%;
    opacity: 0.7;
    filter: alpha(opacity=70);
    -webkit-transition: bottom 0.3s linear;
    -moz-transition: bottom 0.3s linear;
    -ms-transition: bottom 0.3s linear;
    -o-transition: bottom 0.3s linear;
    transition: bottom 0.3s linear;
}

#royal_preloader.logo .percentage {
    position: absolute;
    width: 180px;
    height: 30px;
    line-height: 40px;
    font-size: 18px;
    letter-spacing: 2px;
    top: 80%;
    right: 50%;
    transform: translate(50%, 50px);
    color: #fff;
    text-align: center;
}