.sprite {
    position: absolute;
    display: block;
    color: #fff;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 24px;
}

.sprite img {
    display: block;
}

#preloaderBackground {
    background: #000000;
}

#preloaderBackground.mgs {
    /*
    background:
      radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%) no-repeat border-box,
      radial-gradient(circle at 50% 45%, rgb(88, 38, 101) 0%, rgba(64,80,141,0) 100%) no-repeat border-box,
      radial-gradient(circle at 40% 80%, rgba(64,80,141,1) 0%, rgba(64,80,141,0) 100%) no-repeat border-box;
      */
    background: radial-gradient(ellipse, #966f96 0%, #33103d 90%) no-repeat border-box;
}

#preloaderContainer {
    width: 1024px;
    height: 768px;
    transform-origin: 0 0;
}

#progressBar {
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    overflow: hidden;
}

#progressBarBlackInset {
    width: 100%;
    height: 100%;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    border: 5px solid #000000;
    box-sizing: border-box;
}

#progressBarOutline {
    width: 100%;
    height: 100%;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    border: 3px solid #ffffff;
    box-sizing: border-box;
}

#progressBarMeter {
    width: 1%;
    height: 100%;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    box-sizing: border-box;
    background: rgb(72,72,74);
    background: linear-gradient(90deg, rgba(72,72,74,1) 0%, rgba(255,255,255,1) 100%);
}

#progressBarMeter::after {
    content: '';
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: grey;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    -webkit-animation: gradient-anim 1s ease infinite;
    -moz-animation: gradient-anim 1s ease infinite;
    -o-animation: gradient-anim 1s ease infinite;
    animation: gradient-anim 1s ease infinite;
}

@keyframes gradient-anim {
    0% {
        opacity: 0.6;
        width: 0;
        height: 0%;
    }
    100% {
        opacity: 0.1;
        width: 100%;
    }
}

.mgs #progressBarMeter::after, .dgc #progressBarMeter::after {
    background: #ffffff;
}

.mgs #progressBarMeter  {
    background: rgb(182,59,14);
    background: linear-gradient(90deg, rgba(182,59,14,1) 0%, rgba(250,224,82,1) 100%);
}

.dgc #progressBarMeter  {
    background: rgb(217,19,96);
    background: linear-gradient(90deg, rgba(217,19,96,1) 0%, rgba(136,113,154,1) 100%);
}

#publisherLogo.landscape .portrait {
    display: none;
}

#publisherLogo.portrait .landscape {
    display: none;
}

/* --- Template stuff --*/
#preloader {
    width: 100vw;
    height: 100vh;
    transform: scale(1);
    position: relative;
}

.preloaderBackground #splash-screen {
    background-repeat: no-repeat;
    background-position: center;
    -moz-background-size: contain;
    background-size: contain;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    transform: scale(1);
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
}

.animationInClass {
    animation: fadeIn 1s forwards;
}

.animationOutClass {
    animation: fadeOut 1s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}


/* --- Loading bar--- */

.meter-wrap {
    position: absolute;
    height: 6px;
    top: 10vh;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto auto;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

.meter-wrap-bg-container,
.meter-bg-container {
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.meter-bg-container {
    position: relative;
}

.meter-bg-container::after {
    content: '';
    opacity: 0;
    position: absolute;
    top: 0;
    left: -3px;
    right: 0;
    bottom: 0;
    background: grey;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    -webkit-animation: gradient-anim 1s ease infinite;
    -moz-animation: gradient-anim 1s ease infinite;
    -o-animation: gradient-anim 1s ease infinite;
    animation: gradient-anim 1s ease infinite;
}

.meter-wrap-bg-left,
.meter-wrap-bg-bar,
.meter-wrap-bg-right {
    background-color: grey;
    border-bottom: 0px solid #FFF;
    border-top: 0px solid #FFF;
    position: relative;
    float: left;
    height: 100%;
    top: -100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.meter-wrap-bg-left {
    border-left: 0px solid #FFF;
    width: 3px;
    right: 3px;
    -moz-border-radius: 12px 0px 0px 12px;
    -webkit-border-radius: 12px 0px 0px 12px;
    border-radius: 12px 0px 0px 12px;
    height: 100%;
    top: 0px;
}

.meter-wrap-bg-bar {
    position: relative;
    float: left;
    width: 100%;
}

.meter-wrap-bg-right {
    -moz-border-radius: 0px 12px 12px 0px;
    -webkit-border-radius: 0px 12px 12px 0px;
    border-radius: 0px 12px 12px 0px;
    border-right: 0px solid #FFF;
    width: 3px;
    margin-right: -3px;
    height: 100%;
    top: -6px;
}

.meter-value {
    height: 6px;
    overflow: visible;
    margin: 0;
    width: 0;
}

.meter-bg-left,
.meter-bg-bar,
.meter-bg-right {
    background-color: #FFF;
    position: relative;
    float: left;
    height: 100%;
    top: -100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.meter-bg-left {
    width: 3px;
    right: 3px;
    height: 100%;
    top: 0px;
    -webkit-border-radius: 3px 0px 0px 3px;
    -moz-border-radius: 3px 0px 0px 3px;
    border-radius: 3px 0px 0px 3px;
}

.meter-bg-right {
    width: 3px;
    height: 100%;
    margin-right: -3px;
    -webkit-border-radius: 0px 3px 3px 0px;
    -moz-border-radius: 0px 3px 3px 0px;
    border-radius: 0px 3px 3px 0px;
}

.meter-bg-bar {
    position: relative;
    float: left;
    width: 100%;
}

.meter-text-value {
    display: none;
    visibility: hidden;
}

#preLoaderProgress {
    width: 1%;
}

.disclaimer {
    bottom: 0px;
    top: 68vh;
}


/* --- Orientation overrides --- */

@media (orientation: portrait) {
    #preloaderBackground {
        background-size: 60vw;
        background-position-y: calc(50% - 10vw);
    }
    .meter-wrap {
        top: 30vh;
        width: 70vw;
    }
}

@media (orientation: landscape) {
    #preloaderBackground {
        background-size: cover;
        background-position-y: calc(50% - 10vh);
        height: 100%;
        overflow: hidden;
    }
    .meter-wrap {
        top: 30vh;
        width: 70vh;
    }
    .preloaderBackground #splash-screen {
        top: -70px;
    }
}


/* iPhone 5 and SE */

@media screen and (device-aspect-ratio: 40/71) {
    .meter-wrap {
        top: 26vh;
        width: 70%;
    }
    /*
    .disclaimer {
        bottom: 0px;
        top: 64vh;
    }
    */
}

@keyframes gradient-anim {
    0% {
        opacity: 0.6;
        width: 0;
        height: 0%;
    }
    100% {
        opacity: 0.1;
        width: 100%;
    }
}
