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

    background: rgba(137, 90, 22, 1);
    background: -moz-linear-gradient(top, rgba(137, 90, 22, 1), rgb(119, 78, 19) 100%);
    background: -webkit-linear-gradient(top, rgba(137, 90, 22, 1), rgb(119, 78, 19) 100%);
    background: linear-gradient(to bottom, rgba(137, 90, 22, 1), rgb(119, 78, 19) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='rgba(137, 90, 22, 1)', endColorstr='rgb(119, 78, 19)', 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/fruitsinflames-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;
    text-shadow: 1px 2px 1px #000;
}

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

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

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

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

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

@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;
    }

    @media (orientation: portrait)
    {
        .preloader
        {
            height: 50px;
        }
    }
}

.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;
    }
}
