/**
 * General styles and style for portrait orientation (see landscape overrides below)
 */
#viewer_preloader {
    display: none;
    text-align: center;
    background: #fff;
    position: absolute;
    top: 200px;
    height: 600px;
    left: 50%;
    width: 600px;
    margin-left: -300px;
}

#viewer_preloader p, #viewer_preloader h2 {
    font-size: 44px;
    font-family: Helvetica, Arial, sans-serif;
    color: #666;
    font-weight: normal;
    width: 540px;
    padding: 0;
    margin: 0 auto;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

#viewer_preloader p {
    margin-top: 60px;
}

#userLogo {
    margin: 40px auto;
    margin-bottom: 0px;
    width: 250px;
    height: 250px;
    display: block;
}

#preloader {
    margin: 30px auto;
    height: 70px;
    width: 70px;
    background: url(data:image/gif;base64,[encoded data, 4436 characters])  no-repeat 50% 50%;
}

#viewer_preloader.noLogo #userLogo {
    display: none;
}

#viewer_preloader.noLogo p {
    margin-top: 240px;
}

/*IEMobile specific*/

#viewer_preloader.ms-device-preloader {
    top: 50px;
    height: 150px;
    width: 150px;
    margin-left: -75px;
}

#viewer_preloader.ms-device-preloader p, #viewer_preloader.ms-device-preloader h2 {
    font-size: 12px;
    width: 150px;
}

#viewer_preloader.ms-device-preloader p {
    margin-top: 15px;
}

#userLogo.ms-device-preloader {
    margin: 10px auto;
    margin-bottom: 0px;
    width: 50px;
    height: 50px;
}

#preloader.ms-device-preloader {
    margin: 10px auto;
    height: 20px;
    width: 20px;
    background-size: contain;
}

#viewer_preloader.noLogo.ms-device-preloader p {
    margin-top: 20px;
}

/**
 * Overrides for landscape orientation
 */
@media (orientation:landscape) {

    #viewer_preloader {
        top: 40px;
        height: 300px;
        width: 300px;
        margin-left: -150px;
    }

    #viewer_preloader p, #viewer_preloader h2 {
        font-size: 22px;
        width: 260px;
        padding: 0;
    }

    #viewer_preloader p {
        margin-top: 100px;
    }

    #preloader {
        margin: 25px auto;
        height: 35px;
        width: 35px;
    }

    #userLogo {
        display: none;
    }

/*IEMobile specific*/

    #viewer_preloader.ms-device-preloader {
        top: 10px;
        height: 120px;
        width: 120px;
        margin-left: -60px;
    }

    #viewer_preloader.ms-device-preloader p, #viewer_preloader.ms-device-preloader h2 {
        font-size: 12px;
        width: 80px;
        padding: 0;
    }

    #viewer_preloader.ms-device-preloader p {
        margin-top: 25px;
    }

    #preloader.ms-device-preloader {
        margin: 20px auto;
        height: 20px;
        width: 20px;
        background-size: contain;
    }

}
