html, body
{
    height: 100%;
    margin: 0;

    background: #182849;
    background: -moz-linear-gradient(top, #182849, #213764 100%);
    background: -webkit-linear-gradient(top, #182849, #213764 100%);
    background: linear-gradient(to bottom, #182849, #213764 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#182849', endColorstr='#213764', GradientType=0);
}

div.loadingBackground
{
    position: absolute;
    /*
        div needs to stay on top of the page before bundle.js is loaded.
        there is a "absolute" - collision between this div and .cpSlotGame
     */
    z-index: 1;
    height: 100%;
    width: 100%;

    background-image: url("../resources/secretmission-machine/bitmaps/splash.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

@media screen and (orientation: portrait)
{
    div.loadingBackground
    {
        background-size: contain;
    }
}

.preloader
{
    position: absolute;
    height: 30px;
    width: calc(100% - 32px);
    left: 16px;
    bottom: 16px;
    z-index: 9999;
    border-radius: 7px;
}

.preloader > .loaded, .preloader > .not_loaded
{
    position: absolute;
    box-sizing: border-box;
    border: 3px solid #171819;
    height: 100%;
    border-radius: 7px;
}

.preloader > .loadText
{
    font-size: 0;
}

.preloader > .loaded
{
    width: 0;
    transition: width .3s linear;

    background: #e0e5e5;
    background: -moz-linear-gradient(top, #e0e5e5 0%, #656565 100%);
    background: -webkit-linear-gradient(top, #e0e5e5 0%, #656565 100%);
    background: linear-gradient(to bottom, #e0e5e5 0%, #656565 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e0e5e5', endColorstr='#656565', GradientType=0);
}

.preloader > .not_loaded
{
    width: 100%;
    background-color: #032017;
}

@media only screen and (max-width: 709px), screen and (max-height: 499px)
{
    .preloader
    {
        border-radius: 5px;
    }

    .preloader > .loaded, .preloader > .not_loaded
    {
        border-radius: 5px;
        border-width: 2px;
    }

    .preloader
    {
        height: 20px;
    }
}

.complete .preloader
{
    animation: loadingComplete 1.8s;
}

@keyframes loadingComplete
{
    0%, 15%
    {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
    }

    30%
    {
        box-shadow: 0 0 5px 5px rgba(255, 255, 255, 0.5);
    }

    100%
    {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
    }
}

.hide .preloader:after
{
    font-family: 'Montserrat', sans-serif;
    display: block;
    content: attr(label-text);
    animation: tabToStart 1.3s infinite;
    text-align: center;
    font-size: 25px;
    font-weight: bold;
    color: white;
}

.hide .preloader .loaded, .hide .preloader .not_loaded{
    display: none;
}

@keyframes tabToStart
{
    0%, 50%
    {
        opacity: 1;
    }
    51%, 99%
    {
        opacity: 0;
    }
}