body {
    font-family: Lato, "Lato", "Open sans", sans-serif;
    overflow:hidden;
}
body.moblabPhaserApp {
    margin:0;
    color: white;
    font-size: 0.8em;
    text-align: center;
}
input.selectButton{
    font-size: 5em;
    width:1.5em;
    margin-top:1em;
    margin-bottom: 1em;
    padding:20px;
}
@media screen and (-webkit-min-device-pixel-ratio:0) {
  select,
  textarea,
  input {
    font-size: 16px;
  }
}

/*---------- LOADING PAGE ----------*/
.loadingState {
    position: absolute;
    display: table;
    top: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    background: #142C38;
    color: white;
}
.loadingState .tiles {
    position:absolute;
    left: 0;
    bottom: 0;
}
.loadingState .centerpiece {
    display: table-cell;
    vertical-align: middle;
}
.loadingState .logo {
    margin-top: -1em;
}
.loadingState .centerpiece h2 {
    font-size: 2.8em;
    font-weight: 200;
    line-height: 1em;
    margin-top: 1.2em;
    margin-bottom: 0.4em;
    color: #FFFFFF;
}
.loadingState .centerpiece p {
    font-size: 1.6em;
    font-weight: 100;
    line-height: 1em;
    margin-top: 0;
    margin-bottom: 1em;
}
.loadingState .progressContainer {
    width: 50%;
    background-color: #102037;
    display: inline-block;
}
.loadingState .progressBar {
    width: 1%;
    height: 2em;
    background-color: #00A0BC;
}
.loadingState .dots {
    text-align: center;
    color: #00A0BC;
    font-size: 7em;
    margin-top: -0.8em;
}
.loadingState .dots span {
    animation-name: loadDotFade;
    animation-duration: 1.4s;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
    font-size: 1em;
    margin-left: 0.05em;
    margin-right: 0.05em;
}
.loadingState .dots span:nth-child(2) {
    animation-delay: .2s;
}
.loadingState .dots span:nth-child(3) {
    animation-delay: .4s;
}

/*---------- DEBUGGER ----------*/
.debugger {
    position: absolute;
    display: none;
    top: 0;
    width: 100%;
    height: calc(100% - 50px);
    text-align: center;
}
.debugger .container {
    display: table-cell;
    vertical-align: middle;
}
.debugger .container .alert {
    display: inline-block;
    min-width: 20em;
    min-height: 8em;
    padding: 2em;
    background: rgba(0,0,0,0.9);
    color: white;
}

/*---------- MENU BAR ----------*/
.menuBar {
    width: 100%;
    position: absolute;
    bottom: 0;
    text-align : left;
}
.menuBar ::-moz-selection{
    background-color:transparent;
}
.menuBar ::selection {
    background-color:transparent;
}
.menuBar .menu_ui {
    position:relative;
    height: 80%;
}
.menuBar .progress_bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 6px;
    background: #EE2C45;
    border-radius: 10px;
}
.menuBar #roundText {
    position:absolute;
    width: 300px;
    left: 50%;
    top: 0;
    text-align:center;
    margin-left: -150px;
}
.menuBar #timer {
    float:right;
    text-align:right;
    display: inline-block;
    padding-right:10px;
    width:auto;
}
.menuBar .buttonContainer {
    height: 100%;
    width: 50px;
    position: relative;
    display: inline-block;
    background: rgba(0,0,0,0);
    text-align:center;
    opacity: 0.6;
    padding-top: 4px;
}
.menuBar .buttonContainer:hover {
    opacity: 0.8;
    cursor: pointer;
}
.menuBar .menuSelected {
    opacity: 1;
    padding-top: 0;
    border-top: solid 4px #EE2A49;
}
.menuBar .menuButton {
    position:relative;
    width: 100%;
    height: 32px;
    margin-top: 8px;
}
.menuBar .rightContainer {
    height:100%;
    position: relative;
    display: inline-block;
    float:right;
    padding-left:10px;
    border-left:solid 2px white;
    margin-top: 4px;
}
.menuBar .group {
    float:right;
    margin-right:-10px;
    padding-right:10px;
    background: rgba(0,0,0,0);
}
.menuBar .group:hover {
    background: rgba(0,0,0,0.2);
    cursor: pointer;
}
.menuBar .rightText {
    height:100%;
    position:relative;
    display: inline-block;
    float:right;
    color: white;
    font-size: 20px;
    padding-top:10px;
    padding-right:10px;
    margin-right:10px;
    border-right: solid 2px white;
    margin-top: 4px;
}
.menuBar .menuText {
    width: 200px;
    display: inline-block;
    color: white;
    font-size: 20px;
    padding-top: 10px;
    margin-top: 4px;
}
.menuBar .chatBtnContainer {
    height: 100%;
    width: 50px;
    position: relative;
    display: inline-block;
    border-radius: 5px;
    text-align:center;
    float: right;
}
.menuBar .chatBtnContainer:hover {
    cursor: pointer;
}

/*---------- GAME GLOBALS ----------*/
.gameDiv {
    position: absolute;
    overflow: hidden;
    width: 904px;
    height: 600px;
}
.gameDiv div {
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;
}
.gameDiv textarea {
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;
}
.gameDiv .noSelect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.gameDiv .popup{
    height:100%;
    width:100%;
    top:0;
    position:absolute;
    font-size: 1em;
    text-align: left;
    display:none;

}

/*---------- HISTORY ----------*/
.gameDiv .historyContent {
    margin:3%;
    font-size: 1.3em;
}
.gameDiv .historyContent .historyTitle{
    font-size: 1.8em;
    font-weight: bold;
    /*margin-top:-0.2em;*/
    margin-bottom: 0.3em;
}
.gameDiv .historyContent .historyTitle.fixed {
    text-align: center;
}
.gameDiv .historyContent .backArrowDiv {
    top: 3%;
    left: 3%;
}
.gameDiv .historyContent .forwardArrowDiv {
    top: 3%;
    right: 3%;
}
.gameDiv .historyContent .backArrowDiv,
.gameDiv .historyContent .forwardArrowDiv {
    position: absolute;
}
.gameDiv .historyContent .backArrowDiv,
.gameDiv .historyContent .forwardArrowDiv {
    width: 50px;
    height: 50px;
}
.gameDiv .historyContent .backArrow,
.gameDiv .historyContent .forwardArrow {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-top: 10px;
    cursor: pointer;
}
.gameDiv .historyContent .backArrow {
    border-right:30px solid #00467A;
    float: right;
}
.gameDiv .historyContent .forwardArrow {
    border-left:30px solid #00467A;
    float: left;
}
.gameDiv .historyContent .historyTableDiv {
    width: 100%;
    overflow-y: scroll;
    display:block;
}
.gameDiv .historyContent .historyTable {
    width: 100%;
    font-size: 1em;
    border-collapse: collapse;
}
.gameDiv .historyContent .historyTable td {
    height: 2em;
    text-align: center;
    font-weight: bold;
}
.gameDiv .historyContent .historyTable tr td:first-child,
.gameDiv .historyContent .historyTable tr th:first-child{
    text-align: right;
    padding-right: 1em;
}
.gameDiv .historyContent .historyTable.noTransparency td {
    text-align: center;

}
.gameDiv .historyContent td.normalWidth {
    width: 127px;
}
.gameDiv .historyContent .historyTable td {
    border: 1px solid #937BDB;
    padding: 6px 0;
}
.gameDiv .historyContent .historyTable tr td:first-child,
.gameDiv .historyContent .historyTable th {
    border: 2px solid;
}
.gameDiv .historyContent .historyTable tr th {
    text-align: center;
    padding: 1.5%;
}
.gameDiv .historyContent .historyTable tr td:first-child {
    font-weight: normal;
}
.gameDiv .historyContent .historyTable tr:last-child td {
    border-bottom: 2px solid #937BDB;
}
.gameDiv .historyContent .historyTable tr td.titleCol {
    width: 260px;
}
.gameDiv .historyContent .historyTable tr td:first-child,
.gameDiv .historyContent .historyTable tr th:first-child {
    border-left: 0;
}
.gameDiv .historyContent .historyTable tr td:last-child,
.gameDiv .historyContent .historyTable tr th:last-child {
    border-right: 0;
}
.gameDiv .historyContent .row {
    width:100%;
    font-size:1em;
}
.gameDiv .historyContent .infoColumn{
    display:inline-block;
    position:relative;
    text-align:center;
    padding: 0.5em;
    vertical-align:bottom;
    box-sizing:border-box;
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
}
.gameDiv .historyContent .rColumn{
    display:inline-block;
    text-align:center;
    width: 12%;
    padding-bottom:0.5em;
}
.gameDiv .historyContent .tableBody{
    width:100%;
}
.gameDiv .historyContent .twoColumns{
    width: 44%;
}
.gameDiv .historyContent .threeColumns{
    width: 29.333%;
}
.gameDiv .historyContent .fourColumns{
    width: 22%;
}

/*---------- RULES PAGE ----------*/
.gameDiv .rulesContent {
    margin: 5%;
    margin-right:2%;
    width:50%;
    display:inline-block;
    font-size: 1.3em;
}
.gameDiv .rulesContent.newRules {
    max-height: 65%;
    overflow: auto;
}
.gameDiv .rulesContent .rulesTitle {
    font-size: 1.8em;
    font-weight: 500;
    /*margin-top:-0.2em;*/
    margin-bottom: 0.5em;
}
.gameDiv .rulesContent .rulesText{
    line-height: -1em;
    font-size:1em;
}
.gameDiv .rulesContent .rulesImages {
    display: inline-block;
    position: absolute;
    top: 8%;
    left:65%;
    width: 35%;
    text-align: center;
    height: 80%;
}
.gameDiv .rulesContent .rulesImage{
    width:80%;
    display:inline;
    margin: 5%;
}
.gameDiv .rulesContent .continueBtnDiv {
    position: absolute;
    bottom: 10%;
    height: 2.5em;
}
.gameDiv .rulesContent .continueBtnDiv .rulesContinueBtn {
    height: 2em;
    width: 10em;
    font-size:1.2em;
    border-radius: 6px;
    background-color: #FFA364;
    color: white;
    padding: 0.4em;
    text-align: center;
    cursor: pointer;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Chrome/Safari/Opera */
    -khtml-user-select: none;    /* Konqueror */
    -moz-user-select: none;      /* Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;
}

.gameDiv .rulesContent .continueBtnDiv .rulesContinueBtn:active {
    box-shadow:none;
}

/*---------- CHAT CLIENT ----------*/
.gameDiv .chatBox {
    position: absolute;
    text-align: left;
    left: 0em;
    width:50%;
    background: white;
    overflow:hidden;
    font-size: 12px;
    color: white;
}
.gameDiv .chatBox .chatHeader {
    background: #FF4500;
    position: relative;
    display: inline-block;
    width: 100%;
    height: auto;
    margin:0;
    margin-bottom:-4px;
}
.gameDiv .chatBox .chatHeader .chatTitle {
    float:left;
    margin:0;
    padding-top: 0.5em;
    padding-left: 0.7em;
    cursor: pointer;
    width:80%;
}
.gameDiv .chatBox .chatHeader .inChatButton {
    width: 30px;
    height:2.3em;
    float:right;
    text-align: center;
    display:inline-block;
    cursor: pointer;
    padding:0.5em;
    border-left: solid 1px white;
}
.gameDiv .chatBox .chatHeader .inChatButton:active {
    background: rgba(255, 255, 255, 0.3);
}
.gameDiv .chatBox .chatContent {
    /*background:gray;*/
    width: 100%;
    position:relative;
    overflow-y: scroll;
}
.gameDiv .chatBox .chatContent .chatScrollArea{
    position:absolute;
    top:0;
    width:100%;
    margin-bottom: 10px;
}
.gameDiv .chatBox .chatContent .msgSender{
    display:inline-block;
    border-radius: 4px;
    text-align: center;
    cursor: default;
    margin:10px;
    margin-bottom:0;
    padding:1.2em;
}
.gameDiv .chatBox .chatContent .chatMsg{
    display:inline-block;
    color: white;
    width:100%;
    padding-left:1em;
    padding-right:1em;
}
.gameDiv .chatBox .chatContent .chatContainer{
    display:inline-block;
    vertical-align: top;
    margin-right:10px;
    max-width:70%;
}
.gameDiv .chatBox .chatContent .chatMsgContainer{
    display:inline-block;
    padding: 1em;
    vertical-align: top;
    max-width:100%;
    word-wrap: break-word;
}
.gameDiv .chatBox .chatContent .chatToContainer{
    display: block;
    vertical-align: top;
    margin-top: 10px;
    margin-bottom: 5px;
}
.gameDiv .chatBox .chatContent .chatTo{
    display: inline-block;
    padding: 0.4em;
    padding-left:1em;
    padding-right:1em;
    text-align: center;
    border-radius: 4px;
}
.gameDiv .chatBox .chatContent .chatNotice{
    float: bottom;
    display:inline-block;
    width:100%;
    height:auto;
    color:black;
    padding: 10px;
    color: red;
}
.gameDiv .chatBox .chatNum {
    display:inline-block;
    float:left;
    margin: 1em;
    border-radius: 4px;
    text-align: center;
    width: 3em;
    height: 3em;
    padding-top: 1em;
    cursor: default;
}
.gameDiv .chatBox .chatEntry {
    float:left;
    height: 3em;
    padding: 0.4em;
    resize: none;
    display:inline-block;
    border-left: none;
    border-bottom: none;
    border-width: 0px;
    border-radius:2px;
    font-size:1em;
    margin:1em;
    margin-left:0;
    margin-right:0;
    box-shadow: inset 0 0 4px 0px #797979;
}
.gameDiv .chatBox .chatEntry:focus {
    box-shadow: none;
}
.gameDiv .chatBox .chatField {
    width: 100%;
    height: 5em;
    font-size:1em;
}
.gameDiv .chatBox .chatField .sendChatBtn {
    display:inline-block;
    height:3em;
    width: 8em;
    margin:1em;
    float: left;
    background:#FF4500;
    text-align: center;
    padding-top:1em;
    border-radius: 4px;
    cursor: pointer;
}
.gameDiv .chatBox .chatField .sendChatBtn:hover {
    opacity:0.7;
}
.gameDiv .chatBox .chatField .sendChatBtn:active {
    opacity:1;
}
.gameDiv .buttonContainer .numBubble {
    position:absolute;
    top:-3px;
    right:-5px;
    padding:0.5em 0.75em 0.5em 0.75em;
    background-color: #ee2a49;
    border-radius:4px;
    color: #ffffff;
    font-weight:500;
    text-align:center;
}

/*---------- PLAYER LIST ----------*/
.gameDiv .pList {
    position: absolute;
    text-align: left;
    right: 0em;
    width:40%;
    background: white;
    overflow:hidden;
    font-size: 12px;
    color: white;
}
.gameDiv .pList .header {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 4em;
    margin:0;
    margin-bottom:-4px;
    text-align: center;
}
.gameDiv .pList .header .title {
    float:left;
    margin:0;
    padding-top: 1em;
    cursor: pointer;
    width: 100%;
    font-size:1.4em;
}
.gameDiv .pList .header .xButton {
    position:absolute;
    right:0;
    width: 3em;
    height: 3em;
    float:right;
    text-align: center;
    display:inline-block;
    cursor: pointer;
    padding:0.5em;
    border-left: solid 1px white;
    font-size:1.4em;
    font-weight:100;
}
.gameDiv .pList .header .xButton:active {
    background: rgba(255, 255, 255, 0.3);
}
.gameDiv .pList .content {
    /*background:gray;*/
    width: 100%;
    position:relative;
    overflow-y: scroll;
}
.gameDiv .pList .content .scrollArea{
    position:absolute;
    top:0;
    width:100%;
    margin-bottom: 10px;
}
.gameDiv .pList .playerTable {
    width: 100%;
    border-collapse: collapse;
}
.gameDiv .pList .playerTable tr th {
    text-align: left;
    font-size:1.2em;
    border-bottom: 2px solid;
    border-top: none;
    width:50%;
    padding: 0.5em;
    padding-top:1.5em;
}
.gameDiv .pList .playerTable tr td {
    text-align: left;
    border-bottom: 1px solid;
    width:50%;
    padding: 1em;
}
.gameDiv .pList .playerTable tr th:first-child {
    border-left: 0;
}
.gameDiv .pList .playerTable tr th:last-child {
    border-right: 0;
}

/*--------- Non Phaser MenuBar --------*/
.twbs .gameMenuBar {
    width: 100%;
    height: 8%;
}
.gameMenuBar .menuIcon {
    width: 50px;
    height: 100%;
    float: left;
    /*border-radius: 5px;*/
    background: transparent;
    cursor: pointer;
}
.gameMenuBar .menuIcon:hover,
.gameMenuBar .menuIcon.selected {
    background: rgba(0,0,0,0.5);
}
.gameMenuBar .menuIcon img {
    height: 30px;
    margin-top: 9px;
    margin-left: 13px;
}
.gameMenuBar .roundDiv {
    position: absolute;
    margin-left: calc(50% - 48px);
    height: 100%;
    font-size: 30px;
    color: white;
    margin-top: 9px;
}
.gameMenuBar .timerDiv {
    float: right;
    height: 100%;
    color: white;
    font-size: 28px;
    display: table;
    margin-right: 10px;
}
.gameMenuBar .timerSpan {
    display: table-cell;
    vertical-align: middle;
}

@-webkit-keyframes loadDotFade /* Safari and Chrome */ {
    0% {
        opacity: 1;
        /*-webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);*/
    }
    50% { opacity: 0.2; }
    100% {
        opacity: 1;
        /*-webkit-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);*/
    }
}
@keyframes loadDotFade {
    0% {
        opacity: 1;
        /*-ms-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);*/
    }
    50% { opacity: 0.2; }
    100% {
        opacity: 1;
        /*-ms-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);*/
    }
}
