/* general forms and sections */
.gamePagePlusChat {
    width: 1390px;
    background-size: cover !important;
    background-image: url("/javax.faces.resource/images/space_background.jpg.xhtml");
}

.gamePage {
    width: 1350px;
    overflow: hidden;
    font-size: 16px;
    font-family: serif;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.gamePageContent {
    position: relative;
    width: 1340px;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: var(--game-page-bg);
    border-radius: 25px;
    box-shadow: 5px 5px 5px #222222;
}

.leftSection {
    width: 1310px;
}

.rightSection {
    position: absolute;
    width: 295px;
    height: 100%;
    right: 0;
    top: 0;
}
/* end of general forms and sections */

/* gamepage overlay section */
.gamePageOverlay {
    position: absolute;
    top: 10px;
    border-radius: 25px;
    width: 1340px;
    height: 100%;
    background: rgba(0,0,0,0.8);
    clear: both;
    text-align: center;
    z-index: 110;
    color: white;
    padding-top: auto;
    padding-bottom: auto;
    font-variant: small-caps;
}

.gamePageOverlayHeader {
    padding-top: 300px;
    font-size: 30pt;
    text-shadow: 5px 5px 5px #000000;
}

.gamePageOverlayText {
    font-size: 15pt;
    display: block;
    margin-top: 20px;
    text-shadow: 5px 5px 5px #000000;
}

.gamePageOverlay .turnButton {
    margin-left:auto;
    margin-right:auto;
    margin-top: 50px;
}

.gamePageOverlay .quitButton {
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
}
/* end gamepage overlay section */

/* turn info section */
.floatingTurnInfoSection
{
    font-variant: small-caps;
    position: absolute;
    height: 100%;
    width: 30px;
    display: block;
    right: 0;
    top: 0;
    height: 100%;
    border-bottom-right-radius: 25px;
    border-top-right-radius: 25px;
    /*box-shadow: 5px 5px 5px #222222;*/
}

.floatingTurnInfoSectionText
{
    width: 700px;
    height: 30px;
    text-align: center;
    transform: rotate(90deg);
    transform-origin: bottom left;
}

.floatingTurnInfoSectionPlayerText
{
    display: block;
    padding-top: 5px;
    font-size: 16pt;
    font-style: italic;
    float: left;
    margin-right: 30px;
}

.floatingTurnInfoSectionPhaseText
{
    margin-left: 30px;
    display: block;
    padding-top: 5px;
    font-size: 16pt;
    font-weight: bold;
}
/* turn info section end */

/* trade row section */
.tradeRowSection {
    padding: 15px;
    width: 990px;
    height: 150px;
    clear: both;
}

.tradeRow {
    float: right;
}

.supplyLeftBox {
    border: 2px solid transparent;
    font-size: 20pt;
    float: left;
    color: white;
    position: relative;
    display:block;
    border-radius: 7px;
    margin-left: 55px;
    box-shadow: 2px 2px 5px #222222;
}

.supplyLeftCard {
    height:110px;
    width:76px;
    float: left;
}

.supplyLeftBoxText {
    color: #FFFFFF !important;
    font-variant: small-caps;
    position: absolute;
    width: 76px;
    left: 0;
    top: 5px;
    float: left;
    font-size: 16pt;
    font-family: sans-serif;
    text-align: center;
    text-shadow: 2px 2px 2px #000000;
}

.supplyLeftBoxValue {
    position: absolute;
    width: 76px;
    left: 0;
    bottom: 10px;
    font-size: 40pt;
    text-align: center;
    text-shadow: 2px 2px 2px #000000;
}

.supplyLeftOver20, .supplyLeftOver10, .supplyLeftOver5, .supplyLeftUnder5 {
    background-color: var(--blob-bg);
    color: var(--blob-bg);
}

.supplyLeftOver10 {
    background-color: var(--starEmpire-bg);
    color: var(--starEmpire-bg);
}

.supplyLeftOver5, .supplyLeftUnder5 {
    font-weight: bold;
    background-color: var(--machineCult-bg);
    color: var(--machineCult-bg);
}

.supplyLeftUnder5 {
    animation: transparencyAnimation 2s linear infinite;
}
/* end of supply section */


/* player info and content section, lots of stuff here */
.playerInfo {
    float: left;
    clear: both;
}

.playerContentSection {
    margin-left: 66px;
}

.playerContentCardAreaSection {
    clear:both;
    float: left;
    padding: 10px;
    min-height: 121px;
    margin-top: -66px;
    margin-left: 10px;
    width: 950px;
}

.playerContentCardAreaDeckAndDiscardSection {
    float: right;
    position: relative;
    top: 20px;
    display: block;
    margin-top: 5px;
    width: 170px;
    height: 110px;
    z-index: 105;
    font-variant: small-caps;
    right: 10px;
}

.playerContentCardAreaDeckAndDiscardSection a {
    text-decoration: none !important;
}

.playerContentCardAreaDeckAndDiscardDeckText {
    text-shadow: 2px 2px 2px #000000;
    font-size: 18px;
    font-family: sans-serif;
    display: block;
    position: absolute;
    left: 0;
    text-align: center;
    width: 76px;
}

.playerContentCardAreaDiscardDeckCardName {
    position: absolute;
    left: 0;
    top: 28px;
}

.playerContentCardAreaDeckAndDiscardDeckValue {
    text-shadow: 2px 2px 2px #000000;
    font-size: 50px;
    display: block;
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 76px;
    text-align:center;
}

.playerContentCardAreaDeckAndDiscardDeck {
    box-shadow: 2px 2px 5px #222222;
    display:inline-block;
    position: relative;
    text-align: center;
    background-size: 76px 110px;
    width: 66px;
    height: 100px;
    color: #ffffff;
    margin-right: 5px;
    padding: 5px;
    border: 1px solid #000000;
    border-radius: 7px;
}

.playerContentCardAreaPlayAreaSection {
    margin-top: 0px;
    padding-top: 20px;
    border: 0;
    position: relative;
}

.playerContentCardAreaText {
    z-index: 0;
    line-height: 114px;
    width: 950px;
    position: absolute;
    -webkit-user-select: none; /* Chrome/Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+ */

    /* Rules below not implemented in browsers yet */
    -o-user-select: none;
    user-select: none;
    font-style: italic;
    font-size: 30pt;
    text-align: center;
    font-variant: small-caps;
    color: var(--player-fg);
}

.playerInfoSection, .opponentInfoSection {
    min-height: 150px;
    width: 1030px;
    border-bottom-right-radius: 25px;
}

.playerInfoSection {
    border-top-right-radius: 25px;
}

.opponentInfoSection {
    border-top-left-radius: 25px;
}

.playerInfoSectionLeftSide {
    padding: 10px;
    width: 150px;
    display: block;
    min-height: 20px;
    border-radius:10px;
    font-weight: bold;
    font-size: 16pt;
    text-align: right;
    float: left;
    transform: rotate(-90deg) translateX(-100%);
    -ms-transform: rotate(-90deg) translateX(-100%);
    -webkit-transform: rotate(-90deg) translateX(-100%);
    transform-origin: top left;
    font-variant: small-caps;
    text-shadow: 2px 2px 2px #000000;
    color: #ffffff;
}

.playerInfoSectionInfoValues {
    width: 140px;
    padding-top: 5px;
    height: 20px;
    font-weight: normal;
    position: relative;
}

.playerInfoSectionInfoValuesIcon {
    text-align: center;
    margin-left: 35px;
    margin-top: 5px;
    width: 20px;
    height: 20px;
    position: relative;
}

.playerInfoSectionInfoValuesIconText {
    position: absolute;
    z-index: 100;
    left: 15px;
    top: 6px;
    font-size: 15px;
    font-weight: bold;
    color: #333;
}

.playerAuthorityBig {
    left: 12px;
}

.playerAuthorityMedium {
    left: 15px;
}

.playerAuthoritySmall {
    left: 19px;
}

.playerInfoSectionInfoValuesIconImage {
    z-index: 10;
    left: 8px;
    position: absolute;
    height: 30px;
    width: 30px;
    -webkit-filter: drop-shadow(1px 1px 1px #000000);
    filter: drop-shadow(1px 1px 1px #000000);
}

.playerPlayAreaSection {
    float: left;
    padding: 10px;
    min-height: 114px;
}

.playerContentCardAreaPlayArea {
    padding-top: 5px;
    position: relative;
}

.playerContentCardAreaPlayAreaOtherCards {
    width: 750px;
}

.otherCardsSection {
    float: left;
    padding-top: 12px;
    margin-right: 5px;
}

.otherCardsSectionCards {
    clear: both;
    float:left;
    padding-top: 2px;
}

.playerContentCardAreaBuffer {
    clear: both;
    display:block;
}

.playerContentCardAreaShowCardsSection {
    clear: both;
    float: left;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    padding: 10px;
    padding-left: 20px;
    width: 915px;
    background: var(--overlay-bg);
    margin-top: 30px;
}

/* player play area buy section (industry, actions) */
.playerContentCardAreaPlayAreaBuySection {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 80px;
    height: 0px;
}

.playerContentCardAreaPlayAreaBuySectionValues
{
    position: relative;
    margin: 5px;
    width: 50px;
    height: 50px;
    z-index: 100;
    left: 10px;
}

.playerContentCardAreaPlayAreaBuySectionValuesText
{
    font-size: 30pt;
    color: #eeeeee;
    text-shadow: 2px 2px 2px #000000;
    position: absolute;
    width: 40%;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    z-index: 100;
    display: block;
}

.playerContentCardAreaPlayAreaBuySectionValuesIcon
{
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    position: absolute;
    width: 30px;
    height: 30px;
    -webkit-filter: drop-shadow(1px 1px 1px #000000);
    filter: drop-shadow(1px 1px 1px #000000);
}
/* end of play area buy section (industry, actions) */
/* end of player info section */

/* hand section */
.handSection {
    float: left;
    width: 990px;
    padding:15px;
    /*background-color: rgba(238, 238, 240, 0.8);*/
    position: relative;
}

.handCards {
    min-height: 114px;
}
/* end of hand section */

/* scenario section */
.scenarioSection {
    clear: both;
    margin-left: 15px;
    width: 964px;
    padding: 20px;
    border: 1px solid #000000;
    border-radius: 25px;
    background: var(--overlay-bg);
}

.scenarioTitle {
    font-weight: bold;
    font-size: 16px;
}

.scenarioTextSection {
    clear: both;
    padding-top: 15px;
}

.scenarioText {
    font-size: 14px;
}

.scenarioActionSection {
    clear: both;
    padding-top: 15px;
}

.scenarioActionText {
    font-size: 14px;
}

/* end of scenario section */

/* player action section */
.actionSection {
    clear: both;
    float: left;
    margin-top: 15px;
    border-top: 2px solid red;
    border-bottom: 2px solid red;
    border-right: 2px solid red;
    padding: 0px 0px 10px 10px;
    width: 1008px;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    background-color: var(--overlay-bg);
}

.currentActionLabel {
    color: white;
    background-color: #ff0000;
    text-shadow: 2px 2px 2px #000000;
    width: 998px;
    display: block;
    padding: 10px;
    margin-left:-10px;
    border-top-right-radius: 21px;
    border-bottom-right-radius: 8px;
}

.blinkingCurrentActionLabel {
    animation: blinkingAnimation 2s linear infinite;
}

/* player action section end */

.lastTurnSummarySection {
    font-size: 14px;
    width: 240px;
    padding: 5px;
    border: 2px solid #222222;
    background-color: var(--overlay-bg);
    border-radius: 10px;
    box-shadow: 1px 1px 1px #222222;
}

.lastTurnSummary {
    height: 160px;
    overflow: auto;
    padding-right: 5px;
}

.lastTurnSummaryInfo {
    padding-top: 10px;
}

/* game log and chat section */
.gameLogSection {
    clear: both;
    margin-left: 15px;
    width: 990px;
    padding: 7px;
    height: 350px;
    border: 1px solid #000000;
    border-radius: 25px;
    background: var(--overlay-bg);
}

.gameLog {
    font-size: 14px;
    height: 350px;
    overflow: auto;
    padding-right: 10px;
    margin-right: 10px;
    margin-left: 10px;
    display: block;
    border-top-right-radius: 25px;
}

.gamePagePlusChat .chatSection {
    position: absolute;
    top: 902px;
    left: 1065px;
    font-size: 14px;
    width: 235px;
    padding: 5px;
    border: 2px solid #222222;
    background-color: var(--overlay-bg);
    border-radius: 10px;
    box-shadow: 1px 1px 1px #222222;
}

.chatTextBox {
    margin-right: 10px !important;
    width: 168px;
}

.chats {
    height: 125px;
    overflow: auto;
    padding-right: 5px;
}

/* end of game log and chat section */

/* button section */

.turnButtonWrapper {
    padding-bottom: 5px;
}

.turnButton, .quitButton, .playAllButton {
    width: 125px;
    margin-left: 3px;
    margin-bottom: 2px;
    border-radius: 5px;
    display:block;
    text-align: center;
    background: #3498db;
    font-variant: small-caps;
    background-image: -webkit-linear-gradient(top, #3498db, #2980b9);
    background-image: -moz-linear-gradient(top, #3498db, #2980b9);
    background-image: -ms-linear-gradient(top, #3498db, #2980b9);
    background-image: -o-linear-gradient(top, #3498db, #2980b9);
    background-image: linear-gradient(to bottom, #3498db, #2980b9);
    text-shadow: 2px 2px 2px #000000;
    font-family: Arial, sans-serif;
    color: #ffffff;
    font-size: 13pt;
    padding: 20px 60px 20px 60px;
    border: solid #1f628d 2px;
    text-decoration: none;
    animation: transparencyAnimation infinite linear 1.5s;
}

.quitButton {
    animation: none;
    background: #FF3333;
    background-image: -webkit-linear-gradient(top, #FF3333, #ff6633);
    background-image: -moz-linear-gradient(top, #FF3333, #ff6633);
    background-image: -ms-linear-gradient(top, #FF3333, #ff6633);
    background-image: -o-linear-gradient(top, #FF3333, #ff6633);
    background-image: linear-gradient(to bottom, #FF3333, #ff6633);
}

.quitButton:hover {
    background: #ff6633;
    background-image: -webkit-linear-gradient(top, #ff6633, #FF3333);
    background-image: -moz-linear-gradient(top, #ff6633, #FF3333);
    background-image: -ms-linear-gradient(top, #ff6633, #FF3333);
    background-image: -o-linear-gradient(top, #ff6633, #FF3333);
    background-image: linear-gradient(to bottom, #ff6633, #FF3333);
    text-decoration: none;
}

.turnButton:hover, .playAllButton:hover {
    background: #3cb0fd;
    background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db);
    background-image: -moz-linear-gradient(top, #3cb0fd, #3498db);
    background-image: -ms-linear-gradient(top, #3cb0fd, #3498db);
    background-image: -o-linear-gradient(top, #3cb0fd, #3498db);
    background-image: linear-gradient(to bottom, #3cb0fd, #3498db);
    text-decoration: none;
}

.playAllButton {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 90px;
    height: 90px;
    padding: 20px;
    line-height: 90px;
    text-decoration: none;
}

.smallButtonWrapper {
    float: left;
    padding-top: 7px;
}

.smallButton {
    float: left;
    min-width: 105px;
    text-align: center;
    background: #3498db;
    background-image: -webkit-linear-gradient(top, #3498db, #2980b9);
    background-image: -moz-linear-gradient(top, #3498db, #2980b9);
    background-image: -ms-linear-gradient(top, #3498db, #2980b9);
    background-image: -o-linear-gradient(top, #3498db, #2980b9);
    background-image: linear-gradient(to bottom, #3498db, #2980b9);
    border-radius: 9px;
    font-family: Arial, sans-serif;
    color: #ffffff;
    font-size: 12px;
    padding: 6px 12px 6px 12px;
    text-decoration: none;
    border: solid #1f628d 1px;
}

.smallButton:hover, .tinyButton:hover {
    background: #3cb0fd;
    background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db);
    background-image: -moz-linear-gradient(top, #3cb0fd, #3498db);
    background-image: -ms-linear-gradient(top, #3cb0fd, #3498db);
    background-image: -o-linear-gradient(top, #3cb0fd, #3498db);
    background-image: linear-gradient(to bottom, #3cb0fd, #3498db);
    text-decoration: none;
}

.tinyButton {
    background: #3498db;
    background-image: -webkit-linear-gradient(top, #3498db, #2980b9);
    background-image: -moz-linear-gradient(top, #3498db, #2980b9);
    background-image: -ms-linear-gradient(top, #3498db, #2980b9);
    background-image: -o-linear-gradient(top, #3498db, #2980b9);
    background-image: linear-gradient(to bottom, #3498db, #2980b9);
    font-family: Arial, sans-serif;
    color: #ffffff;
    font-size: 11px;
    padding: 1px 10px 1px 10px;
    text-decoration: none;
    border: solid #1f628d 2px;
    border-radius: 4px;
}
/* end of button section */

.sectionHeader {
    font-weight:bold;
    font-variant: small-caps;
}

.red {
    color: #ff0000;
}

@keyframes blinkingAnimation
{
    50% { background-color: #EEEEF0; }
}

@keyframes transparencyAnimation
{
    50% { opacity: 0.6; }
}

.playerAttackButton {
    position: absolute;
    top: 35px;
    left: -12px;
}

.attackButton {
    background: #df0e0e;
    background-image: -webkit-linear-gradient(top, #df0e0e, #a80b0b);
    background-image: -moz-linear-gradient(top, #df0e0e, #a80b0b);
    background-image: -ms-linear-gradient(top, #df0e0e, #a80b0b);
    background-image: -o-linear-gradient(top, #df0e0e, #a80b0b);
    background-image: linear-gradient(to bottom, #df0e0e, #a80b0b);
    border-radius: 8px;
    font-family: Arial;
    color: #ffffff;
    font-size: 12px;
    padding: 2px 5px 2px 5px;
    text-decoration: none;
}

.attackButton:hover {
    background: #fa5252;
    background-image: -webkit-linear-gradient(top, #fa5252, #d13a3a);
    background-image: -moz-linear-gradient(top, #fa5252, #d13a3a);
    background-image: -ms-linear-gradient(top, #fa5252, #d13a3a);
    background-image: -o-linear-gradient(top, #fa5252, #d13a3a);
    background-image: linear-gradient(to bottom, #fa5252, #d13a3a);
    text-decoration: none;
}

.radioSpacing td {
    padding-right: 10px;
}

.tradeAmount {
    margin-left: 15px;
    background-color: var(--trade);
    padding: 8px 12px;
}

.combatAmount {
    margin-left: 15px;
    background-color: var(--combat);
    padding: 8px 12px;
}

.deckHolder {
    background-image: url("/javax.faces.resource/images/space_background.jpg.xhtml");
}

.missionObjectiveText {
    position: absolute;
    width: 80px;
    top: 35px;
    color: black;
    font-size: 9px;
    overflow: hidden;
    text-align: center;
    height: 40px;
}

.missionRewardText {
    position: absolute;
    width: 80px;
    top: 79px;
    color: black;
    font-size: 9px;
    overflow: hidden;
    text-align: center;
    height: 40px;
}
