@font-face {
    font-family: "OpenSans Regular";
    src: url("../irgs/font/OpenSans-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "OpenSan Bold";
    src: url("../irgs/font/OpenSans-Bold.ttf") format("truetype");
}

@font-face {
    font-family: "OpenSans ExtraBold";
    src: url("../irgs/font/OpenSans-ExtraBold.ttf") format("truetype");
}

@font-face {
    font-family: "Inter Regular";
    src: url("../irgs/font/Inter-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "Inter Bold";
    src: url("../irgs/font/Inter-Bold.ttf") format("truetype");
}

@font-face {
    font-family: "kabel";
    src: url("../font/kabel.ttf") format("truetype");
}

/** -= Game Canvas/DIV CSS =- **/

body {
    margin: 0;
    overflow: hidden;
    background-color: rgb(0, 0, 0);
    touch-action: none;
}

#gameArea {
    width: 100%;
    height: 100%;
    position: absolute;
    text-align: center;
    margin-top: 0px;
    left: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    padding-bottom: 0px;
    background-color: rgb(0, 0, 0);
}

/** Fix IOS grey selection issue **/

canvas {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    outline: none;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    /* mobile webkit */
}

#gameDiv {
    position: relative;
    z-index: 1;
}

/** -= Device Fullscreen CSS=- **/

#fullScreenMask {
    height: calc(100%+60px);
    position: absolute;
    overflow: hidden;
    opacity: 0.8;
    background-color: black;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

#fullScreenMask p {
    font-family: Helvetica, sans-serif;
    color: black;
    background-color: white;
    font-size: 20px;
    text-transform: uppercase;
    overflow-y: auto;
    position: relative;
    top: 20%;
    text-align: center;
    padding: 15px;
}

#fullScreenMask.fs_off {
    width: 1px;
    opacity: 0;
    height: 120%;
}

#fullScreenMask.fs_on {
    width: 100%;
    opacity: 0.7;
    height: 200%;
}

/** -=Device Rotation CSS=- **/

#rotateDevice {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
}

#rotateDevice.hide {
    display: none;
}

#rotateDevice.show {
    display: block;
}

#rotateDevice {
    background: black url(../image/rotate.png) no-repeat;
    background-size: 100% auto;
    background-position: center center;
}

#rotateDevice.portrait.show {
    background: black url(../image/rotate_p.png) no-repeat;
    background-size: 100% auto;
    background-position: center center;
}

#gameArea.show {
    z-index: 1;
}

#gameArea.hide {
    z-index: -1;
}

/** -= Game Paused CSS **/

body #pauseOverlay {
    display: none;
    opacity: 0;
    height: 2048px;
    width: 2048px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -50%;
    margin-top: -50%;
    background-color: rgba(0, 0, 0, 0.8);
}

body #pauseOverlay.show {
    transition: opacity 5s ease-in-out;
    -moz-transition: opacity 5s ease-in-out;
    -webkit-transition: opacity 5s ease-in-out;
    opacity: 1;
}

body > img {
    position: fixed;
}

#pauseIcon {
    display: none; /* hide until explicitly shown */

    position: absolute;
    z-index: 5; /* display over translucent overlay */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* magically centre the img */
    cursor: pointer;

    /* \/ customisable \/ */
    width: 20vw;
    height: auto;
    min-width: 140px;
    max-width: 415px; /* max width of asset, can probably dynamically set */
}

#loaderDiv {
    background-color: rgba(0, 0, 0, 0.2);
    /* padding-top: 35vh; */
    /* padding-left: 35vw; */
    min-height: 100%;
    width: 100%;
    position: absolute;
}

#loaderDiv.show {
    display: block;
    z-index: 50;
}

#loaderDiv.hide {
    display: none;
    z-index: -1;
}

#sk-fading-circle {
    /* width: 7vw; */
    /* height: 30vh; */
    /* position: relative; */

    margin: 35vh auto;
    height: 30vh;
    width: 10vw;
    position: relative;
}

#sk-fading-circle .sk-circle {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

#sk-fading-circle .sk-circle:before {
    content: "";
    display: block;
    margin: 0 auto;
    width: 15%;
    height: 15%;
    background-color: rgb(0, 0, 0);
    border-radius: 25%;
    border-style: solid;
    border-width: 1px;
    border-color: white;
    -webkit-animation: sk-circleFadeDelay 1.2s infinite ease-in-out both;
    animation: sk-circleFadeDelay 1.2s infinite ease-in-out both;
}
#sk-fading-circle .sk-circle2 {
    -webkit-transform: rotate(30deg);
    -ms-transform: rotate(30deg);
    transform: rotate(30deg);
}
#sk-fading-circle .sk-circle3 {
    -webkit-transform: rotate(60deg);
    -ms-transform: rotate(60deg);
    transform: rotate(60deg);
}
#sk-fading-circle .sk-circle4 {
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}
#sk-fading-circle .sk-circle5 {
    -webkit-transform: rotate(120deg);
    -ms-transform: rotate(120deg);
    transform: rotate(120deg);
}
#sk-fading-circle .sk-circle6 {
    -webkit-transform: rotate(150deg);
    -ms-transform: rotate(150deg);
    transform: rotate(150deg);
}
#sk-fading-circle .sk-circle7 {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}
#sk-fading-circle .sk-circle8 {
    -webkit-transform: rotate(210deg);
    -ms-transform: rotate(210deg);
    transform: rotate(210deg);
}
#sk-fading-circle .sk-circle9 {
    -webkit-transform: rotate(240deg);
    -ms-transform: rotate(240deg);
    transform: rotate(240deg);
}
#sk-fading-circle .sk-circle10 {
    -webkit-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    transform: rotate(270deg);
}
#sk-fading-circle .sk-circle11 {
    -webkit-transform: rotate(300deg);
    -ms-transform: rotate(300deg);
    transform: rotate(300deg);
}
#sk-fading-circle .sk-circle12 {
    -webkit-transform: rotate(330deg);
    -ms-transform: rotate(330deg);
    transform: rotate(330deg);
}
#sk-fading-circle .sk-circle2:before {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s;
}
#sk-fading-circle .sk-circle3:before {
    -webkit-animation-delay: -1s;
    animation-delay: -1s;
}
#sk-fading-circle .sk-circle4:before {
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s;
}
#sk-fading-circle .sk-circle5:before {
    -webkit-animation-delay: -0.8s;
    animation-delay: -0.8s;
}
#sk-fading-circle .sk-circle6:before {
    -webkit-animation-delay: -0.7s;
    animation-delay: -0.7s;
}
#sk-fading-circle .sk-circle7:before {
    -webkit-animation-delay: -0.6s;
    animation-delay: -0.6s;
}
#sk-fading-circle .sk-circle8:before {
    -webkit-animation-delay: -0.5s;
    animation-delay: -0.5s;
}
#sk-fading-circle .sk-circle9:before {
    -webkit-animation-delay: -0.4s;
    animation-delay: -0.4s;
}
#sk-fading-circle .sk-circle10:before {
    -webkit-animation-delay: -0.3s;
    animation-delay: -0.3s;
}
#sk-fading-circle .sk-circle11:before {
    -webkit-animation-delay: -0.2s;
    animation-delay: -0.2s;
}
#sk-fading-circle .sk-circle12:before {
    -webkit-animation-delay: -0.1s;
    animation-delay: -0.1s;
}

@-webkit-keyframes sk-circleFadeDelay {
    0%,
    39%,
    100% {
        opacity: 0.1;
    }
    40% {
        opacity: 0.9;
    }
}

@keyframes sk-circleFadeDelay {
    0%,
    39%,
    100% {
        opacity: 0.1;
    }
    40% {
        opacity: 0.9;
    }
}

/* BEGIN blackbar */
#blackBar {
    visibility: visible;
    /* height: 23px; */
    /* background-color: rgba(0, 0, 0, 0.4); */
    background-image: linear-gradient(rgb(69, 71, 70), rgb(51, 51, 51));
    font-family: "Proxima Nova", "Helvetica Neue", Arial, Helvetica, sans-serif, sans-serif;
    font-style: Helvetica, sans-serif;
    font-weight: normal;
    color: #fff;
    padding-left: 5px;
    padding-top: 0px;
    line-height: 25px;
    /* position: fixed; */
    position: absolute;
    bottom: 0px;
    display: flex;
    z-index: 20;
    font-size: 0.75em;
    /* top: 0; */
    /* bottom: 0; */
    /* left: 0; */
    width: 100%;
    text-align: left;
    -webkit-user-select: none; /* disable selection/Copy of UIWebView */
    -webkit-touch-callout: none; /* disable the IOS popup when long-press on a link */
}

@media (orientation: landscape){
    #blackBar {
        flex-direction: row;
    }
}

@media (orientation: portrait){
    #blackBar {
        flex-direction: column;
    }
}

.blackBar-group {
    flex: 1;
    display: flex;
    height: 23px;
}

.blackBar-group.ios {
    height: 46px;
}

#blackBar.no-show {
    visibility: hidden;
}

#blackBar.ios {
    /* height: 46px; */
    line-height: 50px;
    font-size: 1.5em;
}

#blackBar span.blackBar-filler {
    /* float: left; */
    width: 6%;
    display: inline-block;
}
#blackBar span#blackBar-balance {
    /* float: left; */
    width: 48%;
    display: inline-block;
}
#blackBar span#blackBar-won {
    /* float: left; */
    width: 46%;
    display: inline-block;
}
#blackBar span#blackBar-gamename {
    /* float: left; */
    width: 48%;
    display: inline-block;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
#blackBar span#blackBar-stake {
    /* float: left; */
    width: 46%;
    display: inline-block;
}

/* #blackBar span:nth-child(n + 2) {
    margin-left: 15%;
} */

/* #blackBar span#blackBar-clock {
    float: right;
    margin-right: 2vh;
} */

/* END blackbar */

/* BEGIN jackpotbar */
#jackpotbar {
    visibility: visible;
    /* height: 23px; */
    /* background-color: rgba(0, 0, 0, 0.4); */
    background-image: linear-gradient(rgb(69, 71, 70), rgb(51, 51, 51));
    font-family: "Proxima Nova", "Helvetica Neue", Arial, Helvetica, sans-serif, sans-serif;
    font-style: Helvetica, sans-serif;
    font-weight: normal;
    color: #fff;
    padding-left: 5px;
    padding-top: 0px;
    line-height: 25px;
    /* position: fixed; */
    position: absolute;
    top: 0px;
    display: flex;
    z-index: 20;
    font-size: 0.75em;
    /* top: 0; */
    /* bottom: 0; */
    /* left: 0; */
    width: 100%;
    text-align: center;
    -webkit-user-select: none; /* disable selection/Copy of UIWebView */
    -webkit-touch-callout: none; /* disable the IOS popup when long-press on a link */
}

@media (orientation: landscape){
    #jackpotbar {
        flex-direction: row;
    }
    #jackpotbar span.jackpot1 {
        width: 100%;
    }
    #jackpotbar span.jackpot2 {
        width: 50%;
    }
    #jackpotbar span.jackpot3 {
        width: 33%;
    }
}

@media (orientation: portrait){
    #jackpotbar {
        flex-direction: column;
    }
    #jackpotbar span.jackpot1 {
        width: 100%;
    }
    #jackpotbar span.jackpot2 {
        width: 100%;
    }
    #jackpotbar span.jackpot3 {
        width: 100%;
    }
}

#jackpotbar span {
    flex: 1;
    display: flex;
    height: 23px;
}

#jackpotbar span.ios {
    height: 46px;
}

#jackpotbar.no-show {
    visibility: hidden;
}

#jackpotbar.ios {
    line-height: 50px;
    font-size: 1.5em;
}

#jackpotbar span.jackpot1 {
    display: inline-block;
}
#jackpotbar span.jackpot2 {
    display: inline-block;
}
#jackpotbar span.jackpot3 {
    display: inline-block;
}

#jackpotbar span.jackpot1.ios {
    display: inline-block;
    height: 46px;
}
#jackpotbar span.jackpot2.ios {
    display: inline-block;
    height: 46px;
}
#jackpotbar span.jackpot3.ios {
    display: inline-block;
    height: 46px;
}
/* END jackpotbar */

/* BEGIN blackbar-once */
#blackBar-once {
    visibility: visible;
    /* height: 23px; */
    /* background-color: rgba(0, 0, 0, 0.4); */
    background-image: linear-gradient(rgb(69, 71, 70), rgb(51, 51, 51));
    font-family: "Proxima Nova", "Helvetica Neue", Arial, Helvetica, sans-serif, sans-serif;
    font-style: Helvetica, sans-serif;
    font-weight: normal;
    color: #fff;
    padding-left: 5px;
    padding-top: 0px;
    line-height: 25px;
    /* position: fixed; */
    display: flex;
    z-index: 1000;
    font-size: 0.75em;
    /* top: 0; */
    /* bottom: 0; */
    /* left: 0; */
    width: 100%;
    text-align: left;
    -webkit-user-select: none; /* disable selection/Copy of UIWebView */
    -webkit-touch-callout: none; /* disable the IOS popup when long-press on a link */
}

@media (orientation: landscape){
    #blackBar-once {
        flex-direction: row;
    }
}

@media (orientation: portrait){
    #blackBar-once {
        flex-direction: column;
    }
}

.blackBar-once-group {
    flex: 1;
    display: flex;
    height: 23px;
}

.blackBar-once-group.ios {
    height: 46px;
}

#blackBar-once.no-show {
    visibility: hidden;
}

#blackBar-once.ios {
    /* height: 46px; */
    line-height: 50px;
    font-size: 1.5em;
}

#blackBar-once span.blackBar-once-filler {
    /* float: left; */
    width: 4%;
    display: inline-block;
}
#blackBar-once span#blackBar-once-ticketid {
    /* float: left; */
    width: 46%;
    display: inline-block;
}
#blackBar-once span#blackBar-once-stake {
    /* float: left; */
    width: 46%;
    display: inline-block;
}

/* END blackbar-once */
