/* Fonts */
@font-face {
    font-family: "pt_regular";
    src: url('../fonts/PTSansRegular.ttf');
    font-weight: normal;
    font-style: normal;
}

@font-face{
    font-family: "pt_bold";
    src: url('../fonts/PTSansBold.ttf');
    font-weight: normal;
    font-style: normal;
}

@font-face{
    font-family: "UbuntuBold";
    src: url('../fonts/Ubuntu-Bold.ttf');
    font-weight: normal;
    font-style: normal;
}

@font-face{
    font-family: "UbuntuMedium";
    src: url('../fonts/Ubuntu-Medium.ttf');
    font-weight: normal;
    font-style: normal;
}

@font-face{
    font-family: "UbuntuRegular";
    src: url('../fonts/Ubuntu-Regular.ttf');
    font-weight: normal;
    font-style: normal;
}

@font-face{
    font-family: "ExoBold";
    src: url('../fonts/Exo-Bold.ttf');
    font-weight: normal;
    font-style: normal;
}

/* Global */
html, body {
    background-color: #ffffff;
    width: 100%;
    height: 100%;
}

.hide {
    opacity: 0;
}

/* Loading */
#loading {
    position:absolute;
    width:100%;
    left:0;
    top:0;
    bottom:0;
    background-color: #ffffff;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: opacity 500ms linear 100ms;
    z-index: 10;
}

.loadingTable {
    display:table;
    width:100%;
    height:100%;
    margin:0 auto;
}

.loadingTableCell {
    position:relative;
    display:table-cell;
    vertical-align:middle;
    text-align:center
}

#loadingTitle {
    font-style: normal;
    color: #000000;
    font:30px/1.4 pt_regular;
    padding:.6em .1em;
}

#loadingBackground {
    min-width:470px;
    max-width:1000px;
    width:80%;
    height:auto;
    margin:0 auto;
}

#loadingProgress {
    font-family:pt_regular;
    font-size:24px;
    position:relative;
    display:inline-block;
    text-align:left;
    max-width:740px;
    margin-left:5px;
    margin-right:5px;
    margin-top:5px;
    margin-bottom:20px;
    color:#ddd;
    height:auto;
    width: 440px;
}

#loadingProgressText {
    display: none;
}

#loadingProgressBar {
    position:relative;
    -moz-border-radius:25px;
    -webkit-border-radius:25px;
    -o-border-radius:25px;
    -ms-border-radius:25px;
    border-radius:25px;
    height: 26px;
    background: 0;
    background-color: #322417;
    padding: 3px;
}

#loadingProgressLoaded {
    width:0;
    height:100%;
    -moz-border-radius:inherit;
    -webkit-border-radius:inherit;
    -o-border-radius:inherit;
    -ms-border-radius:inherit;
    border-radius:inherit;
    box-sizing: border-box;
    min-width: 20px;
    border: 0;
    margin: 0;
    background-color: #DAD7D0!important;
}




/* Game */
#game {
    font-family: "pt_regular", "pt_bold";
    width: 100%;
	height: 100%;
    background-color: #36b4eb;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    transform: translate3d(0,0,0);
    -webkit-transform: translate3d(0,0,0);
}

#splashbg {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #124100;
    background-position: 50% 50%;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    transition: opacity 500ms linear 100ms;
}

#gameCanvas {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -270px;
    margin-left: -480px;
    z-index: 2;
    cursor: default;
    transform: translate3d(0,0,0);
    -webkit-transform: translate3d(0,0,0);
}

/* Canvas Control */
#brim-mask, #brim-main, #brim-rotation {
    display: none;
}

#brim-rotation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
}

#brim-rotation .warning {
    position: relative;
    z-index: 2;
    width: 400px;
    height: 400px;
    margin-left: -200px;
    margin-top: -200px;
    top: 50%;
    left: 50%;
    background: url("../images/control/orientation_vertical.png") no-repeat center top;
    background-size: 300px;
    padding-top: 315px;
    text-align:  center;
    color: #fff;
    font-family: "pt_regular", "pt_bold";
    font-size: 24px;
    font-style: italic;
}

#brim-mask .warning {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position-x: 58%;
    background-position-y: 18%;
    background-image: url('../images/control/swipe_anim.gif');
}

@media screen and (max-width: 750px) {
    #brim-rotation .warning {
        width: 200px;
        height: 200px;
        margin-left: -100px;
        margin-top: -100px;
        background-size: 150px;
        padding-top: 160px;
        font-size: 16px;
    }

    #brim-mask .warning {
        background-position-x: 54.8%;
        background-position-y: 14%;
        background-size: 85px 136px;
    }
}

#brim-mask .background, #brim-rotation .background {
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height:  100%;
    background: #000;
}

#brim-mask .background {
    opacity: 0.8;
}

#brim-main {
    background: #1E824C;
}