/*
 Copyright (C) 2017 Jan-Dirk van Dingenen
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

@import url('https://fonts.googleapis.com/css?family=Creepster|Nova+Mono|Cinzel+Decorative');

body {
    margin: 0;
    font-family: arial;
    background: #000;
}

#board {
    min-width: 1280px;
    height: 100vh;
    width: 100%;
    min-height: 840px;
    background:  #111;
    position: absolute;
    overflow: hidden;
    top: 0px;
    left: 0px;    
}

#boardBack {
    background: url(img/world.jpg);
    position: absolute;
    width: 100%;
    height: calc(100vh - 100px);
    opacity: 0.5;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
}

#pickCards {
    display: flex;
    justify-content: space-around;
    min-width: 1200px;
    padding-top:5px;
    padding-bottom: 55px;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    z-index: 2;
}

.tinyCard.card {
    cursor: zoom-in;
}

.hoverCard.card {
    cursor: zoom-out;
    z-index:99;
    position: absolute;
}

#playerTable {
    position: absolute;
    display: flex;
    justify-content: center;
    width: 100%;
    min-width: 1200px;
    bottom: 0px;
    min-height: 200px;
    background-color: #8c8c8c;
    /*box-shadow: 0px 2px 15px 2px #fff;*/
}

#playerTable #cardCollection {
    display: flex;
    justify-content: space-around;
    width: 100%;
    position: absolute;
    height: 40px;
    top: 0px;
    left: 0px;
    z-index:5;
}

#playerTable #cardCollection .colorCollection {
    width: calc(var(--cardScale) * 420px);
    border-radius: 0 0 10px 10px;
    border: inset 1px rgba(78, 78, 78, 0.5);
    border-top: 0px;
    position: relative;
    box-shadow: inset -1px -1px 5px #fff;
}

#scoreLayer {
    left: 0px;
    display: flex;
    justify-content: space-around;
    width: 100%;
    position: absolute;
    top: 40px;
    z-index: 5;
}

#scoreLayer #resourceScore, #scoreLayer #gameScore {
    width: calc(50% - 420px);
    box-sizing: border-box;
    padding: 6px 20px 1px 20px;
    background: #111;
    border-radius: 20px;
    height: 150px;
    margin-top: 3px;
    border: solid 1px #568400;
    /*background: linear-gradient(-45deg, #000 0%, rgb(20, 31, 11) 100%);*/
    box-shadow: 2px 2px 5px #000, 0px 0px 8px #568400, inset -25px -25px 40px rgba(27, 255, 0, 0.05);
    color: #79b900;
    font-family: 'Nova Mono', monospace;
    font-size: 22px;
    position:relative;
}

#scoreLayer #resourceScore {
    display: grid;
    grid-template-columns: 30px 1fr 30px 1fr;
    grid-column-gap: 10px;
    line-height: 25px;
    padding-bottom: 4px;
    --cardwidth: 25;
    padding-top: 14px;
}

#scoreLayer #gameScore {
    --cardwidth: 30;
    --cardScale: 0;
    display: grid;
    grid-template-columns: 30px 32% 30px 32%;
    grid-column-gap: 10px;
    line-height: 30px;
    padding-top: 13px;

}

#playerTable #ddd {
    height: 160px;
    width: 800px;
    background-color: #000;
    border-radius: 10px 10px 0px 0px;
    display: flex;
    justify-content: space-between;
}

#ddd #ddName {
    font-family: 'Creepster', cursive;
    position: absolute;
    bottom: 0px;
    width: 800px;
    text-align: center;
    font-size: 68px;
    font-weight: bold;
    background: url(img/world.jpg);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: cover;
    background-position: -0px -47px;
    opacity: 0.8;
    text-stroke-width: 0.5px;
    text-stroke-color: #62bb1b;
    -webkit-text-stroke-width: 0.5px;
    -webkit-text-stroke-color: #62bb1b;
    transition: font 0.6s;
    animation: imageMover 120s infinite;
    pointer-events: none;
}

div#ddd:hover #ddName {
    font-size: 25px;
    opacity: 0.6;
}

@keyframes imageMover {  
  0% {background-position: -20px -555px; }
  100% {background-position: -200px -0px; }
}

.card {
    --cardFont: 20;
    --cardSmallFont: 12;
    --cardScale: 1;
    width:calc(var(--cardScale) * 400px);
    height:calc(var(--cardScale) * 400px);
    position:relative;
    float:left;
    margin: calc(var(--cardScale) * 5px) 0;
    background-size: cover;
}

.card, .card * {
    transition:all 0.25s;
}

.card.tinyCard, .colorCollection  {
    --cardFont: 10;
    --cardScale: 0.43;
    --cardSmallFont: 8;
}

.card.smallCard {
    --cardFont: 12;
    --cardScale: 0.5;
    --cardSmallFont: 9;
}

.card.mediumCard {
    --cardFont: 14;
    --cardSmallFont: 10;
    --cardScale: 0.75;
}

.card.largeCard {
    --cardFont: 30;
    --cardSmallFont: 18;
    --cardScale: 1.5;
}

.card header {
    color: #fff;
    position: absolute;
    top: calc(var(--cardScale) * 35px);
    left: calc(var(--cardScale) * 45px);
    font-size: calc(var(--cardFont) * 1px);
}

.card aside {
    position: absolute;
    display: flex;
    right: calc(var(--cardScale) * 18px);
    padding: 0px;
    top: calc(var(--cardScale) * 18px);
    z-index:3;
}

.card .cardCost {
    position: absolute;
    z-index: 0;
    top: calc(var(--cardScale) * 70px);
    left: calc(var(--cardScale) * 14px);
}

.card aside {
     --cardwidth : calc(var(--cardScale) * 60);
}

.card aside.iconOrList {
     --cardwidth : calc(var(--cardScale) * 40);
    color: #fff;
    font-size: calc(var(--cardFont) * 1px);
    line-height: calc(var(--cardScale) * 38px);
    top: calc(var(--cardScale) * 26px);
}

.card .cardCost {
     --cardwidth : calc(var(--cardScale) * 40);
}

figure.icon {
    width: calc(var(--cardwidth) * 1px);
    height: calc(var(--cardwidth) * 1px);
    background-image:url(img/cardTypeIcons.png);
    background-repeat: no-repeat;
    margin: 0px;
    background-size: calc(var(--cardwidth) * 15px);
    margin-right: calc(var(--cardScale) * -20px);
    margin-bottom: calc(var(--cardScale) * 2px);
}

.icon0  { background-position-x: calc(var(--cardwidth) * 0px);  }
.icon1  { background-position-x: calc(var(--cardwidth) * -1px); }
.icon2  { background-position-x: calc(var(--cardwidth) * -2px); }
.icon3  { background-position-x: calc(var(--cardwidth) * -3px); }
.icon4  { background-position-x: calc(var(--cardwidth) * -4px); }
.icon5  { background-position-x: calc(var(--cardwidth) * -5px); }
.icon6  { background-position-x: calc(var(--cardwidth) * -6px); }
.icon7  { background-position-x: calc(var(--cardwidth) * -7px); }
.icon8  { background-position-x: calc(var(--cardwidth) * -8px); }
.icon9  { background-position-x: calc(var(--cardwidth) * -9px); }
.icon10 { background-position-x: calc(var(--cardwidth) * -10px);}
.icon11 { background-position-x: calc(var(--cardwidth) * -11px);}
.icon12 { background-position-x: calc(var(--cardwidth) * -12px);}
.icon13 { background-position-x: calc(var(--cardwidth) * -13px);}
.icon14 { background-position-x: calc(var(--cardwidth) * -14px);}

.card aside figure.icon.icon11 {
    color: rgb(255, 255, 255);
    font-size: calc(var(--cardScale) * 46px);
    font-weight: bold;
    text-align: center;
    text-shadow: 0px 0px 4px #00a;
    cursor: default;
    line-height: calc(var(--cardScale) * 59px);
    padding-left: 0px;
    box-sizing: border-box;
}

.card aside figure.icon:last-child, .card aside.iconOrList figure {
    margin-right: calc(var(--cardScale) * 2px);
    margin-left: calc(var(--cardScale) * 2px);
}

.card .cardCost figure.icon {
    margin-bottom: calc(var(--cardScale) * -14px);
}

.freebies {
    position: absolute;
    bottom: calc(var(--cardScale) * 48px);
    right: calc(var(--cardScale) * 44px);
    color: rgba(255, 255, 255, 0.75);
    font-size: calc(var(--cardSmallFont) * 1px);
    height: calc(var(--cardScale) * 37px);
    display: flex;
    flex-flow: column;
    justify-content: space-around;
    text-align: right;
}

.freeWiths {
    position: absolute;
    bottom: calc(var(--cardScale) * 48px);
    left: calc(var(--cardScale) * 44px);
    color: rgba(255, 255, 255, 0.75);
    font-size: calc(var(--cardSmallFont) * 1px);
    height: calc(var(--cardScale) * 37px);
    display: flex;
    flex-flow: column;
    justify-content: space-around;
    text-align: left;
}

.free {
    cursor:help;   
    position:relative;
}

.card figure.cardImage {
    position: absolute;
    width: calc(var(--cardScale) * 328px);
    height: calc(var(--cardScale) * 240px);
    left: calc(var(--cardScale) * 36px);
    top: calc(var(--cardScale) * 68px);    
    background-size:cover;
    box-sizing: border-box;
    box-shadow: 2px 2px 4px 1px rgba(0, 0, 0, 0.69);
    margin: 0;
}


#pickCards .card .card.hoverCard {
    position:absolute;
    z-index:100;
    left: -100px;
    top: -5px;
}

#pickCards .card:last-child .card.hoverCard {
    left:unset;
    right:-5px;
}

#pickCards .card:first-child .card.hoverCard {
    left:-5px;
}

.card .card.refCard {
    position:absolute;
    z-index:101;
    pointer-events: none;
}

.card:last-child .card.refCard {
    left:unset;
    right:0px;
}

.card .help {
    position: absolute;
    bottom: -5px;
    color: #fff;
    width: 80%;
    left: 10%;
    transform: translate(0,100%);
    font-size: 90%;
    background: rgba(0, 0, 0, 0.75);
    padding: 10px;
    box-sizing: border-box;
    border-radius: 5px;
}

.card.colorCard0 .help b {color: #1aa212;}
.card.colorCard1 .help b {color: #2f5eaf;}
.card.colorCard2 .help b {color: #a2a2a2;}
.card.colorCard3 .help b {color: #ad6126;}
.card.colorCard4 .help b {color: #d01f1f;}
.card.colorCard5 .help b {color: #bcac18;}
.card.colorCard6 .help b {color: #963dd6;}

#board button {
    --cardwidth: 18;
    display: flex;
    white-space: nowrap;
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translate(-50%, 110%);
    cursor: pointer;
    border-radius: 25px;
    border: 1px solid rgba(0,0,0,0.4);
    box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.5), 0 0 1px 1px rgba(255,255,255,0.8), 0 0 0 6px rgba(0,0,0,0.06), 0 0 0 3px rgba(0,0,0,0.1);
    background: rgb(143,200,0);
    background: linear-gradient(to top, rgba(143,200,0,1) 0%,rgba(102,142,0,1) 100%);
    font-size: 12px;
    font-weight: 800;
    flex-wrap: nowrap;
    text-transform: uppercase;
    outline: none;
}
#board button div:first-child {
	padding: 10px;
	float: left;
	color: #fff;
	text-shadow: 1px 1px rgba(0,0,0,0.2);
	border-right: 1px solid rgba(255,255,255,0.3);
}
#board button div:last-child {
	padding: 10px;
	float: left;
	color: rgba(0,0,0,0.6);
	text-shadow: 1px 1px rgba(255,255,255,0.3);
	border-left: 1px solid rgba(0,0,0,0.2);
        display: flex;
}

#board button:hover {
	background: rgb(102,142,0);
	background: linear-gradient(to top,  rgba(102,142,0,1) 0%,rgba(143,200,0,1) 100%);
}

#board button.buildStageButton, #board button.cancelBuildStageButton, #board button.buildWithButton {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translate(-50%,0);
    background: rgb(0, 182, 200);
    background: linear-gradient(to top, rgb(0, 182, 200) 0%,rgb(0, 83, 142) 100%);
    height: 40px;;
}

#board button.buildStageButton:hover, #board button.cancelBuildStageButton:hover, #board button.buildWithButton:hover {
    background: rgb(102,142,0);
    background: linear-gradient(to top,  rgb(0, 83, 142) 0%,rgb(0, 182, 200) 100%);
}

#board button.discardCardButton, #board button.cancelDiscardButton, #board button.discardThisButton {
    position: unset;
    transform: unset;
    background: rgb(222, 154, 0);
    background: linear-gradient(to top, rgb(222, 154, 0) 0%,rgb(142, 46, 0) 100%);
    grid-column-end: span 2;    
    transform: translateX(-20px);
}

#board button.discardThisButton, #board button.buildWithButton {
    position: absolute;
    transform: translate(-50%, 110%);
    top:unset;
}

#board button.discardCardButton:hover, #board button.cancelDiscardButton:hover, #board button.discardThisButton:hover {
    background: linear-gradient(to top, rgb(142, 46, 0) 0%,rgb(222, 154, 0) 100%);
}

#board button.cancelBuildStageButton, #board button.discardCardButton, #board button.cancelDiscardButton, #board button.discardThisButton, #board button.buildWithButton {
    color:#fff;
    justify-content: center;
}

#board button.discardCardButton, #board button.cancelDiscardButton, #board button.buildWithButton, #board button.cancelBuildStageButton {
    display: inline-block;
    height: 37px;
    width: 95px;
}

#board button.cancelDiscardButton,  #board button.cancelBuildStageButton{
    display:none;
}

#board button.buildStageButton.buildDisabled {
    opacity: 0.8;
    background: linear-gradient(to top, rgb(247, 247, 247) 0%,rgb(177, 177, 177) 100%);
    cursor:default;
}

#board button.buildStageButton.buildDisabled .icon11 {
    opacity:0.5;
}

#board button.takeDisabled, button.takeDisabled:hover {
    cursor: zoom-in;
    background: linear-gradient(to top, rgb(195, 195, 195) 0%,rgb(130, 130, 130) 100%);
    opacity: 0.9;
}

#board button.takeDisabled div, button.takeDisabled:hover div {
    colro: rgba(0,0,0,0.4);
    opacity: 0.4;
}

.color0 {
    background:#055900 linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%);
}

.color1 {
    background:#1c396b linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%);
}

.color2 {
    background:#686868 linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%);
}

.color3 {
    background:#4c2405 linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%);
}

.color4 {
    background:#a30e0e linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%);
}

.color5 {
    background:#bcac18 linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%);
}

.color6 {
    background:#58227f linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%);
}

.cardCol {
    position: absolute;
    bottom: 39px;
    display: flex;
    flex-direction: column;
    z-index:-1;
    padding-left: 5px;
    clip-path: polygon(-1000% -1000%,-1000% 100%, 1000% 100%, 1000% -1000%);
}

.cardCol .card {
    margin-bottom: -120px;
    padding-bottom: 0px;
}

.cardCol .card.hoverCard {
    position: absolute;
    z-index: 100;
    left: -125px;
    bottom: 234px;
}

.colorCollection:last-child .cardCol .card.hoverCard {
    left:unset;
    right:-5px;
}

.colorCollection:first-child .cardCol .card.hoverCard {
    left:-5px;
}


figure.icon:hover {
    box-shadow: inset 0px 0px 0px 2px rgba(228, 255, 0, 0.73), 0px 0px 17px rgb(247, 247, 247);
    border-radius: 100%;
    transition: all 0.5s;
}

figure.icon13:hover, figure.icon14:hover {
    box-shadow: inset 0px 0px 20px 6px rgba(228, 255, 0, 0.4), 0px 0px 17px rgb(247, 247, 247);
    border-radius: unset;
    transition: all 0.5s;
}


.opponent {
    position: absolute;
    background: #111;
    --cardwidth: 20;
    --cardScale: 0;
    font-size: 14px;
    padding: 5px;
    z-index: 10;
    bottom: 410px;
    display: grid;
    grid-column-gap: 2px;
    top: 300px;
    height: 270px;
    box-shadow: 0px 0px 6px #568400, inset -4px -4px 7px rgba(27, 255, 0, 0.1);
    color: #79b900;
    font-family: 'Nova Mono', monospace;
}

.opponent0 {
    left: 0px;
    border-radius: 0px 10px 10px 0px;
    grid-template-columns: 20px 26px;
}

.opponent2 {
    right: 0px;
    border-radius: 10px 0px 0px 10px;
    grid-template-columns: 26px 20px;
    text-align:right;
    box-shadow: 0px 0px 6px #568400, inset 2px -4px 6px rgba(27, 255, 0, 0.1);
}

.opponent figure, .opponent span {
    display: inline-block;
    height: 21px;
    line-height: 20px;
    vertical-align: top;
}

.opponent span.resourceCount {
    margin-right: 5px;
    margin-left: 2px;
}

/*.opponent0:before {
    content: "West";
    position: absolute;
    top: -13px;
    left: 7px;
    padding: 0;
    background: rgba(17, 17, 17, 0.5);
}*/

div#west:before {
    content: "West";
    background: transparent;
    background-image: url(img/westFace.png);
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: 0px -3px;
    position: absolute;
    width: 100%;
    height: 75px;
    top: -73px;
    left: -5px;
    z-index: -1;
    text-align: center;
    padding-top: 60px;
}

/*.opponent2:before {
    content: "East";
    position: absolute;
    top: -13px;
    right: 10px;
    padding: 0;
    background: rgba(17, 17, 17, 0.5);   
}*/

div#east:before {
    content: "East";
    background: transparent;
    background-image: url(img/eastFace.png);
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: 0px -3px;
    position: absolute;
    width: 100%;
    height: 75px;
    top: -73px;
    right: -4px;
    z-index: -1;
    text-align: center;
    padding-top: 60px;
}

span.smallCount {
    font-size: 90%;
    vertical-align: top;
    cursor:default;
}

.stage {
    width: 33%;
    display: flex;
    justify-content: center;
    flex-flow: wrap-reverse;
    padding-bottom: 15px;
    position: relative;
}

.stage.stageNotBuild {
    background-color: rgba(140, 140, 140, 0.90);
    border-radius: 10px 10px 0px 0px;
    cursor: zoom-in;
}

.stageResources {
    display: flex;
    --cardwidth: 30;
    --cardScale: 1;
    position: absolute;
    top: 5px;
    left: 5px;
    flex-direction: column;
}

.stage.canNotBuild .stageResources {
    opacity: 0.4;
}

figure.stageReward {
    --cardwidth: 50;
    --cardScale: 0;
    position: absolute;
    top: 5px;
    right: 5px;
    color: rgb(255, 255, 255);
    font-size: 40px;
    font-weight: bold;
    text-align: center;
    text-shadow: 0px 0px 4px #00a;
    cursor: default;
    line-height: 50px;
    padding-left: 0px;
    box-sizing: border-box;
}

figure.stageReward:nth-of-type(2) {
    top: 30px;
}

figure.stageReward:nth-of-type(3) {
    top: 60px;
}

figure.stageReward:nth-of-type(4) {
    top: 85px;
}

figure.stageReward:nth-of-type(5) {
    top: 110px;
}

#overlay {
    position: fixed;
    top:0px;
    left:0px;
    height:100vh;
    width:100vw;
    z-index:99;
    background: rgba(255,255,255,0.3);
    display:none;
}

#scorePopup, #combatPopup {
    position: absolute;
    top: 260px;
    left: 50%;
    transform: translate(-50%,0);
    display: none;
    background-color: #12140D;
    color: #65961b;
    padding: 10px;
    border-radius: 10px;
    --cardwidth: 30;
    min-width: 400px;
    text-align: center;
    border: solid 1px #65961b78;
    box-shadow: 0px 0px 15px #65961b;
    z-index: 100;
}

 #scorePopup #popupClose, #combatPopup #combatPopupClose {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: #3a5214;
    border-radius: 20px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    color: #65961b;
    transition: all 0.5s;
    cursor:pointer;
}

#scorePopup #popupClose:hover, #combatPopup #combatPopupClose:hover {
    color: #97f10f;
}

#scorePopup .popupHeader, #combatPopup .popupHeader {
    position: absolute;
    top: -5px;
    left: 50%;
    border: solid 1px #65961b78;
    box-shadow: 0px -2px 15px #65961b;
    padding: 0px 20px;
    background: #12140D;
    border-radius: 10px;
    transform: translate(-50%,-50%);
    font-weight: bold;
    font-size: 32px;
    text-shadow: 0px 0px 15px #65961b;
}

#combatResolution {
    display: flex;
    justify-content: space-between;
}

.combatPart {
    width: 50%;
    padding: 10px;
}

.combatPart:first-child {
    border-right: solid 2px;
}

.combatPart div {
    height: 40px;
    line-height: 30px;
    text-align: center;
}

#combatResolution .combatResLine2,#combatPopup .combatResLine4 {
    display: flex;
    justify-content: center;
}

#combatResolution .combatResLine1, #combatPopup .combatResLine5 {
    display: flex;
    justify-content: center;
    padding-left: 45px;
    font-weight: bold;
    font-size: 22px;
}

#combatResolution figure.combatReward {
    display: inline-block;
    transform: translate(2px,1px);
    --cardwidth: 25;
}

#combatResolution span.combatGain {
    display: inline-block;
    font-size: 20px;
    font-weight: normal;
    text-align: center;
    cursor: default;
    line-height: 31px;
    margin-left: 10px;
    color: #da9100;
}

#scores {
    display: flex;
    justify-content: space-around;
}

.scoreCard {
    display: grid;
    grid-template-columns: 50px 50px;
    grid-column-gap: 10px;
    line-height: 25px;
    padding-bottom: 4px;
    --cardwidth: 25;
    padding-top: 14px;
}

.scoreCard .scorePlayerName {
    grid-area: 1 /1 / auto / span 2;
}

.scoreCard .redPoints {
    background-color:#a30e0e;
}

.scoreCard .bluePoints {
    background-color:#1c396b;
}

.scoreCard .greenPoints {
    background-color:#055900;
}

.scoreCard .yellowPoints {
    background-color:#bcac18;
}

.scoreCard .purplePoints {
    background-color:#58227f;
}

.scoreCard .ddPoints, .scoreCard .tradePoints {
    display: flex;
    justify-content: center;
    background-color: #20201f;
}

.scoreCard .totalPoints.pointsValue {
    border-top: solid 1px;
}

.scoreCard .scorePlayerName {
    grid-area: 1 /1 / auto / span 2;
    font-size: 20px;
    margin-bottom: 10px;
}

#scorePopup #scoreTitle {
    font-size: 20px;
    display: flex;
    /*
    padding-left: 120px;
    justify-content: flex-end;
    */
    padding-top: 10px;
    justify-content: start;
}

#scorePopup #scoreTitle span {
    font-size: 10px;
    display: inline-block;
}

#pickCards .addTech {
    --cardwidth: 120;
    --cardScale: 0;
    cursor: pointer;
    transition: all 0.25s;
}

#pickCards .addTech:hover {
    border-radius: 100%;
    box-shadow: 0px 0px 15px 7px gold;
}

#pickCards .addTech:active {
    box-shadow: 0px 0px 15px 7px #b5ff03;
}

#pickCards #techCount {
    position: absolute;
    bottom: 20px;
    color: gold;
    font-size: 30px;
    font-weight: bold;
}

button#newGame {
    padding: 10px 20px;
    color: #fff;
}


.discardsBrowser {
    overflow-x: auto;
    overflow-y: hidden;
    height: 260px;
    width: 50vw;
    -webkit-overflow-scrolling: touch;
}

.discardsBrowser .discardScroller {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: repeat(100, 1fr);
}

.discardsBrowser::-webkit-scrollbar {
    width: 9px;
    height: 15px;
}
 
.discardsBrowser::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    border-radius: 10px;
    background-color: rgb(68, 68, 68);
    background: linear-gradient(to bottom, rgb(46, 46, 46) 1%,rgb(66, 68, 67) 50%,rgb(46, 46, 46) 100%);
}
 
.discardsBrowser::-webkit-scrollbar-thumb {
    border-radius: 10px;
    box-shadow: inset 0 0 6px #1a230c;
    background-color: rgba(131, 251, 0, 0.5);
}

figure.flyingCoin {
    position: absolute;
    --cardwidth: 20;
    z-index: 110;
}

.log {    
    color: #65961b;
    font-size: 12px;
    position: absolute;
    text-shadow: 0 0 2px #000;
    pointer-events: none;
    top: 300px;
}

.log hr {
    height: 1px;
    background-color: rgba(101, 150, 27, 0.5);
    border: none;
    width: 100px;
    text-align: left;
    display: inline-block;
    margin-right: 275px;
    margin-left: 25px;
}

div#log0 {
    left: 70px;
    text-align:left;
}

div#log2 {
    right: 70px;
    text-align:right;
}

::selection {
    background: transparent;
}
::-moz-selection {
    background: transparent; 
}

.stagePopup {
    position: absolute;
    top: 0px;
    left: 0px;
    transform: translate(0, calc(-100% - 85px));
    background: #000;
    width: 100%;
    height: 160px;
    z-index: 99;
    border-radius: 10px;
    border: solid 2px #000;    
    cursor: zoom-out;
}

.stage .stagePopup .stageResources {
    opacity:1;
}

.stagePopup .stageTitle {
    text-align: center;
    text-align: center;
    font-family: 'Creepster', cursive;
    -webkit-text-stroke-width: 0.5px;
    -webkit-text-stroke-color: #62bb1b;
    font-size: 24px;
}

.stagePopup .stageImage {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    z-index: -1;
    background-position-x: 0;
    border-radius: 10px;
}

.stagePopup .stageImage2 {
    background-position-x: 50%;
}

.stagePopup .stageImage3 {
    background-position-x: 100%;
}

.stagePopup .help {
    position: absolute;
    bottom: -5px;
    color: #fff;
    width: 90%;
    left: 5%;
    transform: translate(0,100%);
    font-size: 90%;
    background: rgba(0, 0, 0, 0.75);
    padding: 10px;
    box-sizing: border-box;
    border-radius: 5px;
}

#nameBox {
    position: absolute;
    top: 250px;
    left: 50%;
    z-index: 500;
    transform: translate(-50%, 0%);
    background-color: #000;
    width: 400px;
    text-align: center;
    height: 200px;
    box-shadow: 0px 0px 6px #568400, inset -4px -4px 7px rgba(27, 255, 0, 0.1);
    color: #79b900;
    border-radius: 10px;
    display:none;
}

#nameBox div {
    font-size: 30px;
    width: 100%;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Nova Mono', monospace;
    font-variant: small-caps;
}

#nameBox input#playerName {
    height: 34px;
    width: 275px;
    font-size: 14px;
    outline: #568400;
    outline-width: 10px;
    border: solid 3px #79b900;
    border-radius: 3px;
    background: #12140D;
    color: #b8dc00;
    box-sizing: border-box;
    padding: 6px;
}

#nameBox input#playerName::selection {
    background: #159000;
}
#nameBox input#playerName::-moz-selection {
    background: #159000; 
}

#nameBox button#nameOk {
    transform: unset;
    bottom: 20px;
    right: 65px;
    left: unset;
    height: 40px;
    width: 80px;
    text-align: center;
    display: block;
    font-size: 18px;
    color: #fff;
    font-weight: normal;
}

#resourceScore .plName, #gameScore .plName {
    position: absolute;
    top: 1px;
    right: 29px;
    font-size: 13px;
    text-shadow: 0 0 3px #000;
    transform: translate(20px,0px);
    display: inline-block;
    background: rgba(0, 0, 0, 0.3);
    padding: 1px;
    line-height: 13px;
    border-radius: 10px;
    opacity: 0.3;
}


#other {
    position: fixed;
    top: 3px;
    right: 5px;        
    z-index:1000;
}

#other a {
    font-family:  monospace;
    color:rgba(255,255,255,0.8);
}

#other a:hover {
    text-decoration: none;
}

#splash {
    background-image: url(img/DNN.jpg);
    background-repeat: no-repeat;
    width: 100vw;
    max-width: 1300px;
    min-width: 1280px;
    height: 760px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    border-radius: 20px;
    border: solid 20px rgba(43, 42, 42, 1);
    border-bottom-width: 30px;
    box-sizing: border-box;
    box-shadow: inset 0px 0px 5px 5px rgba(0, 0, 0, 0.75);
}

#splash:after {
    content: 'Doomsday TV';
    color: #000000;
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translate(-50%,0);
    font-size: 12px;
    background-color: #a0a0a0;
    padding: 2px 6px;
    background: linear-gradient(135deg, rgba(83,91,94,1) 0%,rgba(254,254,254,1) 25%,rgba(74,81,84,1) 49%,rgba(254,254,254,1) 75%,rgba(83,91,94,1) 100%);
    border-radius: 2px;
    box-shadow: 0px -2px 3px rgba(0, 0, 0, 0.32);
    text-shadow: 1px 1px 1px #ffffff;
    font-family: 'Cinzel Decorative', cursive;
}

#play {
    font-family: arial;
    font-size: 37pt;
    background-color: #fff !important;
    position: absolute;
    top: 525px;
    font-weight: bold;
    left: 1097px;
    padding: 0;
    margin: 0;
    border: none;
    text-align: center;
    line-height: 73px;
    outline: none;
    cursor: pointer;
    box-shadow: 0px 0px 20px 2px #fff;
    transition: filter 1s;
    animation: glow 2s ease-in-out infinite;
}

#play div:first-child {
    background: #b00805;
    color: #fff;
    font-size: 30px;
    letter-spacing: 11px;
    line-height: 34px;
    padding-left: 14px;
    margin: 0px;
    width: 100%;
    box-sizing: border-box;
    font-weight: normal;
}

#play div:last-child {
    background: #000;
    color: #fff;
    font-size: 15px;
    line-height: 25px;
    padding-left: 6px;
}

#play:hover {
    filter: invert(100%);
}


@keyframes glow {
    0%, 100% {box-shadow: 0px 0px 0px #a00;}
    50% {box-shadow: 0px 0px 50px 0px #fff;}
}