﻿body {
    background: url(images/background.jpg) no-repeat;
    background-size: cover;
    background-attachment: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.logo-centralised {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: url(images/fastrak.png) no-repeat;
    background-position: center;
    background-size: 75%;
    min-width: 380px;
}

input {
    border: none;
    padding: 8px 10px;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    border-radius: 8px;
    -moz-box-shadow: 4px 4px 8px rgba(0,0,0,.4);
    -webkit-box-shadow: 4px 4px 8px rgba(0,0,0,.4);
    box-shadow: 4px 4px 8px rgba(0,0,0,.4);
    text-shadow: 1px 1px 1px rgba(0,0,0,.3);
    vertical-align: text-bottom;
    height: 48px;
    -moz-box-sizing: padding-box;
    -webkit-box-sizing: padding-box;
    box-sizing: padding-box;
    font-size: 20px !important;
}

    input[readonly] {
        background-color: lightgray;
    }

/* inputpad - username/password entry */
.inputpad {
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    border-radius: 8px;
    -moz-box-shadow: 4px 4px 8px rgba(0,0,0,.4);
    -webkit-box-shadow: 4px 4px 8px rgba(0,0,0,.4);
    box-shadow: 4px 4px 8px rgba(0,0,0,.4);
    padding: 10px 16px 18px 16px;
    background-color: #555;
}

    .inputpad.login {
        width: 400px;
        /*position: absolute;
    left:50%;
    margin: -80px 0 0 -180px;*/
    }

    .inputpad p {
        text-align: center;
        width: 100%;
        color: #ffffff;
        font-size: 25px;
    }

    .inputpad input {
        width: 97.5%;
        margin: 2px 4px 10px 4px;
    }

        .inputpad input#password {
            margin-bottom: 16px;
        }

    .inputpad .input-item-name {
        padding-left: 4px;
        /*color: #333;*/
        color: whitesmoke;
        font-size: 1.0em;
        display: table-cell;
        font-weight: bold;
    }

.wide-inputpad {
    width: 600px;
    /*display: table;*/
    padding: 2em 4.5em;
}

    .wide-inputpad input {
        width: 463px;
        margin: 4px 4px 14px 4px;
        font-size: 16px !important;
        display: table-cell;
        height: 50px;
        padding-bottom: 8px;
    }

.app-inputpad {
    width: auto;
    padding: 8px 16px;
    background: rgba(5, 5, 5, 0.7);
    -webkit-flex: 0 0 300px;
    -ms-flex: 0 0 300px;
    flex: 0 0 300px;
    margin-right: 26px;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 412px;
}

    .app-inputpad ul {
        -moz-border-radius: 8px;
        -webkit-border-radius: 8px;
        border-radius: 8px;
        text-shadow: 1px 1px 1px rgba(0,0,0,.3);
        background: #777;
        color: white;
        padding: 8px;
        font-size: 1.5em;
        overflow-y: auto;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        -webkit-flex: 1 3 100%;
        -ms-flex: 1 3 100%;
        flex: 1 3 100%;
    }

    .app-inputpad li {
        cursor: pointer;
    }

.centered-content {
    width: 100%;
    text-align: center;
}

button {
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* buttons */
.button {
    color: white !important;
    cursor: pointer;
    text-align: center;
    -moz-border-radius: 8px !important;
    -webkit-border-radius: 8px !important;
    border-radius: 8px !important;
    border: 0 !important;
    -moz-box-shadow: 4px 4px 8px rgba(0,0,0,.4);
    -webkit-box-shadow: 4px 4px 8px rgba(0,0,0,.4);
    box-shadow: 4px 4px 8px rgba(0,0,0,.4);
    margin: 4px;
    text-shadow: 1px 1px 1px rgba(0,0,0,.3);
}

    .button:active {
        -moz-box-shadow: 1px 1px 4px rgba(0,0,0,.4);
        -webkit-box-shadow: 1px 1px 4px rgba(0,0,0,.4);
        box-shadow: 1px 1px 4px rgba(0,0,0,.4);
        position: relative;
        left: 2px;
        top: 2px;
    }

.tiny-button {
    width: 30px;
    height: 30px;
    font-size: 30px;
    line-height: normal;
}

.small-button {
    width: 50px;
    height: 50px;
    font-size: 45px;
}

.medium-button {
    width: 60px;
    height: 60px;
    font-size: 45px;
}


.disabled-button {
    opacity: 0.2;
    pointer-events: none;
    cursor: default;
}

.small-stretchey-button {
    min-width: 50px;
    min-height: 50px;
    width: auto;
    height: auto;
    font-size: 25px;
}

.medium-stretchey-button {
    min-width: 60px;
    min-height: 60px;
    width: auto;
    height: auto;
    font-size: 25px;
}

.happy {
    background-color: #91FD44;
    background-image: linear-gradient(to right bottom, #91FD44 35%, #357505 71%);
    background-image: -webkit-linear-gradient(bottom right, #91FD44 35%, #357505 71%); /* for safari */
}

.sad {
    background-color: #D9144F;
    background-image: linear-gradient(to right bottom, #D9144F 35%, #750535 71%);
    background-image: -webkit-linear-gradient(bottom right, #D9144F 35%, #750535 71%); /* for safari */
}

.indifferent {
    background-color: #4491FD;
    background-image: linear-gradient(to right bottom, #4491FD 35%, #053575 71%);
    background-image: -webkit-linear-gradient(bottom right, #4491FD 35%, #053575 71%); /* for safari */
}

.external-login-image {
    background-size: 90%;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    margin: 8px;
}

#bioStore-login {
    margin-left: 30px;
    margin-right: 30px;
    display: none;
}

.bad-news {
    background-color: red;
    color: white;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    border-radius: 8px;
    -moz-box-shadow: 4px 4px 8px rgba(0,0,0,.4);
    -webkit-box-shadow: 4px 4px 8px rgba(0,0,0,.4);
    box-shadow: 4px 4px 8px rgba(0,0,0,.4);
    text-shadow: 1px 1px 1px rgba(0,0,0,.3);
    width: 100%;
    min-height: 38px;
    font-weight: bold;
    padding: 8px;
    text-align: center;
}

.app-area {
    position: relative;
    width: 100%;
    height: 100%;
    display: -webit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-justify-content: space-around;
    justify-content: space-around;
    padding: 24px;
}

.app-work-area {
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    border-radius: 8px;
    -moz-box-shadow: 4px 4px 8px rgba(0,0,0,.4);
    -webkit-box-shadow: 4px 4px 8px rgba(0,0,0,.4);
    box-shadow: 4px 4px 8px rgba(0,0,0,.4);
    padding: 8px;
    background: rgba(5, 5, 5, 0.7);
    text-align: center;
    overflow: hidden;
    -webkit-flex: 8 2 auto;
    -ms-flex: 8 2 auto;
    flex: 8 2 auto;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -ms-align-content: center;
    -webkit-align-content: center;
    align-content: center;
    min-width: 800px;
    min-height: 708px;
}


.menu-frame {
    position: relative;
    width: 800px;
    height: 994px;
    border: 0;
    top: 150px;
    margin-bottom: auto;
    -wekit-flex: 0 0 auto;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
}

#add-customer {
    margin-top: 36px;
    max-width: 100%;
    min-width: 50%
}

    #add-customer input {
        width: 98%;
    }

#settings {
    margin-top: 36px;
    max-width: 100%;
    min-width: 50%
}

    #settings input {
        width: 98%;
    }



.wait-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.button-bar {
    position: relative;
    width: 100%;
    height: 68px;
    margin-top: 12px;
}

#logout-button {
    float: right;
}

#add-customer-button {
    margin-left: 0;
}

#settings-button {
    margin-left: 0;
}

/* ------------------------------- 
    specific elements            */

#bioStore-login-button {
    background-image: url(images/externallogon/biostore.png);
}

#facebook-login-button {
    background-image: url(images/externallogon/facebook.png);
}

#google-login-button {
    background-image: url(images/externallogon/google.png);
}


#registered-page {
    position: relative;
    width: 100%;
    height: 100%;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-content: center;
    -ms-align-content: center;
    align-content: center;
}

.full-width-message-box {
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    border-radius: 8px;
    -moz-box-shadow: 4px 4px 8px rgba(0,0,0,.4);
    -webkit-box-shadow: 4px 4px 8px rgba(0,0,0,.4);
    box-shadow: 4px 4px 8px rgba(0,0,0,.4);
    background-color: #555;
    padding: 10px 6px 6px 6px;
    text-align: center;
    width: 100%;
    color: #ffffff;
    font-size: 25px;
}

    .full-width-message-box a {
        color: white;
    }

        .full-width-message-box a:hover {
            text-decoration: none;
            color: lightblue;
        }

        .full-width-message-box a:visited {
            text-decoration: none;
        }

#bioStore-login .column-flex {
    position: relative;
    top: 5px;
    left: 3px;
    height: 58px;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-content: center;
    -ms-align-content: center;
    align-content: center;
}


    #bioStore-login .column-flex > .button {
        margin: 0;
        height: 26px;
    }

.full-height-container {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-flex: 1 6 100%;
    -ms-flex: 1 6 100%;
    flex: 1 6 100%;
    min-height: 0px;
}


@media all and (max-width: 1500px) {
    .app-area {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        margin: 0;
        padding: 0;
        /*width:calc(100% - 6px);*/
    }


    .app-inputpad {
        width: 100%;
        min-height: 200px;
        margin-right: 0;
        margin-bottom: 4px;
        -webkit-flex-direction: row;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-flex: 1 1 200px;
        -ms-flex: 1 1 200px;
        flex: 1 1 200px;
    }

        .app-inputpad hr {
            display: none;
        }

    .button-bar {
        -webkit-flex: 1 1 120px;
        -ms-flex: 1 1 120px;
        flex: 1 1 120px;
        min-width: 130px;
        top: 14px;
        height: calc(100% - 14px);
        margin-left: 24px;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-justify-content: flex-start;
        -ms-justify-content: flex-start;
        justify-content: flex-start;
    }
}

/* ----------- iPad 1 and 2 ----------- */
/* Portrait and Landscape */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 1) {

    .medium-button {
        height: 86px;
        background-color: white !important;
    }
}

/* ----------- iPad 3 and 4 ----------- */
/* Portrait and Landscape */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) {

    .medium-button {
        height: 86px;
        background-color: white !important;
    }
}


.button-bar-mobile {
    display: none;
}

#UserListMobile {
    display: none;
}



@media (max-width: 1500px) {
    /*Add and (orientation:portrait) for detecting portrait */
    /*Hide Stuff on the normal view*/

    .inputpad p {
        font-size: 15px
    }

    .app-inputpad ul {
        /*font-size: 1.5em;*/
        font-size: 14pt;
    }

    .app-inputpad ul {
        overflow-y: unset
    }

    .button-bar {
        display: none;
    }

    #UserList {
        display: none;
    }

    .small-stretchey-button {
        /*display: none;*/
        height: 0px;
    }

    /*Start of mobile look*/
    .button-bar-mobile {
        width: 100%;
        margin: 0 auto;
        display: block;
        align-content: center;
        text-align: center;
        height: 100px;
        padding-top: 5px;
    }

    #UserListMobile {
        display: unset;
    }

    #logout-button {
        min-height: 30px;
        font-size: 15px;
        vertical-align: top;
        float: none;
    }

    #settings-button {
        min-height: 30px;
        font-size: 15px;
        vertical-align: top;
    }

    #add-customer-button {
        min-height: 30px;
        font-size: 15px;
        vertical-align: top;
    }

    #add-customer {
        margin-top: 16px;
    }

    #settings {
        margin-top: 16px;
    }

    .inputpad.login {
        width: 100%;
        margin: 0 auto;
        display: block;
        max-width: 400px;
    }

    .app-work-area {
        min-width: 0;
        padding: 0;
        width: 95%;
        margin: 0 auto;
        display: block;
    }

    .full-height-container {
        /*background-color: green;*/
        height: 50px;
    }

    .list-item {
        border: thin;
        height: auto;
        display: block;
        margin: auto;
        margin: 7px;
    }


    .list-unstyled {
        width: 100%;
        text-align: left;
        margin: 0 auto;
        display: block;
        height: auto;
        z-index: 100;
        max-height: calc(100vh / 2);
        overflow: scroll;
    }


    .app-work-area {
        /*background-color: orange;*/
        min-height: 300px;
        height: 500px;
        min-width: 60%;
        max-width: 800px;
        margin: 0 auto;
        display: block;
    }

    #maintenace-page {
        /*height: 50px;*/
        min-width: 60%;
        max-width: 800px;
        margin: 0 auto;
        display: block;
        max-height: 160px;
        margin-top: 5px;
        margin-bottom: 5px;
    }


    .logo-centralised {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background: url(images/fastrak.png) no-repeat;
        background-position: center;
        background-size: 45%;
        min-width: 320px;
    }


    /*Input section, Registration, username password*/
    /*.wide-inputpad {
        left:unset !important;
        width:100%;
        max-width:400px
    }*/
    .wide-inputpad input {
        width: 100%;
        height: 30px;
        font-size: 12px !important;
        margin: unset;
    }

    .full-height-container {
        height: 100px;
    }


    .app-inputpad {
        min-height: 50px;
        height: 50px;
        width: 95%;
        margin: 0 auto;
        display: block;
    }


    .expanded-input-area {
        height: 200px;
        min-height: 330px
    }

    .wide-inputpad input {
    }


    /*Name List*/

    ul {
        text-align: left;
        display: inline;
        margin: 0;
        padding: 15px 4px 17px 0;
        list-style: none;
    }

        ul li {
            font: bold 16px/18px sans-serif;
            display: inline-block;
            margin-right: -4px;
            position: relative;
            /*padding: 15px 20px;*/
            cursor: pointer;
            -webkit-transition: all 0.2s;
            -moz-transition: all 0.2s;
            -ms-transition: all 0.2s;
            -o-transition: all 0.2s;
            transition: all 0.2s;
            color: #fff;
            width: 100%;
            text-align: center;
            margin: 0 auto;
            display: block;
        }

            ul li:hover {
                /*background: #555;*/
                color: #fff;
            }

            ul li ul {
                padding: 0;
                position: absolute;
                /*top: 48px;*/
                left: 0;
                width: 150px;
                -webkit-box-shadow: none;
                -moz-box-shadow: none;
                box-shadow: none;
                display: none;
                opacity: 0;
                visibility: hidden;
                -webkit-transiton: opacity 0.2s;
                -moz-transition: opacity 0.2s;
                -ms-transition: opacity 0.2s;
                -o-transition: opacity 0.2s;
                -transition: opacity 0.2s;
            }

                ul li ul li {
                    min-width: 80px;
                    background-color: #555;
                }

                    ul li ul li > a {
                        text-decoration: none;
                        display: block;
                        color: #fff;
                    }

                    ul li ul li:hover {
                        background: #666;
                    }

            ul li:hover ul {
                display: block;
                opacity: 1;
                visibility: visible;
            }

    .app-inputpad {
        flex: 1 1 130px;
    }

    .external-login-image {
        background-size: 60%;
    }

    .arrow-down {
        padding-left: 20px;
        margin-left: 2px;
        background-image: url(../Content/images/down-arrow.png);
        background-repeat: no-repeat;
        background-size: contain;
    }
}


@media (min-width: 500px) and (max-width:1500px) {

    .wide-inputpad {
        left: initial;
        max-width: 400px;
        /*width: 100%*/
    }

    /*.wide-inputpad input {
            width: 100%;
            height: 30px;
            font-size: 12px !important;
            margin: unset;
        }*/
}


@media (max-width: 500px) {


    .wide-inputpad {
        left: unset !important;
        width: 95%
    }

        .wide-inputpad input {
            width: 100%;
            height: 30px;
            font-size: 12px !important;
            margin: unset;
        }
}

@media (max-width: 350px) {


    .app-inputpad {
        flex: 1 1 130px;
    }

    .small-stretchey-button {
        font-size: 15pt;
    }
}

/*Change just calendar past this point as mobile version looks ok*/
@media (max-width: 1500px) {
    .menu-frame {
        width: 95%;
        height: 95%;
        top: 0px
    }
}
