﻿/*
    Need to put this in an external scss file.  but it doesn't get recognized...

########################################################################################
# Body
########################################################################################
*/
html, body {
    margin: 0;
    padding: 0;
    position: relative;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    overflow: hidden;
    overscroll-behavior-y: none;
}



html, body {
    width: 100%; /*overflow-x: hidden; /* Stops horizontal scrolling. */
}

html {
    height: 100%; /* Site is as tall as device. */
    overflow: hidden;
}

body {
    position: relative;
    height: auto;
    min-height: 100%;
    font-family: "Roboto","Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;
    color: #222;
    font-size: 1.0em;
    line-height: 1.0em;
    background: #fafbff; /* #f5f6fa darker */
    padding-top: constant(safe-area-inset-top); /* iOS 11.0 */
    padding-top: env(safe-area-inset-top); /* iOS 11.2 */
}

/*
        ########################################################################################
        # Background
        ########################################################################################
        */
.appBackground {
    position: fixed;
    left: 0;
    right: 0;
    top: 0px;
    bottom: 0px;
    pointer-events: none;
    overflow: hidden;
    background-color: #e2e2e2;
    background: linear-gradient(180deg,#fff,#f9f9f9);
}
/*
.isTablet .appBackground {
    background-image: url('/assets/montana/app-background.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
*/


@-webkit-keyframes animate-rotate {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes animate-rotate {
    0% {
        transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
        transform: rotate(360deg);
    }
}


body .loadingApp {
    position: absolute;
    top: 50%;
    margin-top: -50px;
    left: 50%;
    margin-left: -42px;
    width: 100px;
    height: 100px;
}

    body .loadingApp .spinner {
        position: absolute;
        top: 0px;
        left: 0px;
        height: 104px;
        width: 104px;
        padding: 0px;
        display: block;
        border: 1px #fff solid;
        border-radius: 50px;
        box-sizing: border-box;
        border-top-color: rgba(80,80,80,.4);
        border-bottom-color: rgba(80,80,80,.8);
        border-left-color: rgba(80,80,80,0.2);
        border-right-color: rgba(80,80,80,.6);
        -webkit-animation: animate-rotate 800ms linear infinite;
        animation: animate-rotate 800ms linear infinite;
        margin-left: -10px;
        margin-top: -10px;
        background: rgba(0,0,0,0.1);
    }

    body .loadingApp img {
        position: absolute;
        top: 0px;
        left: 0px;
        height: 100px;
        width: 100px;
        margin-left: -8px;
        margin-top: -8px;
    }


body .appSpinner {
    position: absolute;
    top: 50%;
    margin-top: -20px;
    left: 50%;
    margin-left: -20px;
    width: 40px;
    height: 40px;
}

    body .appSpinner .spinner {
        position: absolute;
        top: 0px;
        left: 0px;
        height: 40px;
        width: 40px;
        padding: 0px;
        display: block;
        border: 4px #fff solid;
        border-radius: 50px;
        box-sizing: border-box;
        border-top-color: rgba(27, 105, 207,.4);
        border-bottom-color: rgba(27, 105, 207,.8);
        border-left-color: rgba(27, 105, 207,.2);
        border-right-color: rgba(27, 105, 207,.6);
        -webkit-animation: animate-rotate 800ms linear infinite;
        animation: animate-rotate 800ms linear infinite;
        margin-left: 0px;
        margin-top: 0px;
    }