/*
 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=Roboto+Condensed');

body {
  background-color: black;
  background-image:url(img/bg.jpg);
  font-family: 'Roboto Condensed', sans-serif;
  margin:0px;
}

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

#game {
    height:877px;
    flex-wrap: nowrap;
    display: flex;
    align-items: center;
    position: absolute;
    top: 0px;
    left:0px;
}

#planets {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    position: absolute;
    top: 155px;
    left:0px;
}

.planet {
    border-radius: 50%;
    box-shadow: inset 16px 0 40px 6px rgb(0, 0, 0), inset -3px 0 6px 2px rgba(255, 255, 255, 0.2);
    animation-name: rotate100;
    animation-duration: 15s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    transform: rotate(-10deg);
    margin-right: 50px;
    margin-left: 50px;
    float:left;
}

div.planet:after {    
    transform: rotate(10deg) translate(-56%,50px);
    position: absolute;
    background-color: rgb(255, 255, 255);
    padding: 3px 20px;
    bottom: 0px;
    text-align: center;
    left: 50%;
    border-radius: 10px;
    box-shadow: inset 0px 0 14px 0px rgb(0, 0, 0);
    font-size: 16px;;
}

.planetPoints {
    color: rgb(255, 255, 255);
    text-shadow: 0 0 2px #000;
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 40px;
    opacity: 0.5;
    transform: translate(-50%, -50%) rotate(10deg);
}

#earth {
    width: 100px;
    height: 100px;
    background: url(img/earth.jpg);
    background-size: 210px;
    transform: rotate(0deg);
}

#earth:after {
    content: "Earth";
    transform: rotate(0deg) translate(-56%,50px);
}

#mercury {
    width: 70px;
    height: 70px;
    background: url(img/mercury.jpg);
    animation-duration: 20s;
    background-size: 210px 80px;
}

#mercury:after {
    content: "Mercury";
}

#venus {
    width: 100px;
    height: 100px;
    background: url(img/venus.jpg);
    background-size: 210px 100px;
}

#venus:after {
    content: "Venus";
}

#mars {
    width: 90px;
    height: 90px;
    background: url(img/mars.jpg);
    animation-duration: 20s;
    background-size: 210px 100px;
}

#mars:after {
    content: "Mars";
}

#jupiter {
    width: 300px;
    height: 300px;
    background: url(img/jupiter.jpg);
    background-size: 630px;
    animation-duration: 40s;
    animation-name: rotate300;
    box-shadow: inset 37px 0 40px 6px rgb(0, 0, 0), inset -3px 0 6px 2px rgba(255, 255, 255, 0.2);
}

#jupiter:after {
    content: "Jupiter";
}

#saturn {
    width: 250px;
    height: 250px;
    background: url(img/saturn.jpg);
    background-size: 420px;
    animation-duration: 20s;
    animation-name: rotate200;
    transform: translate(63px,0px) rotate(-25deg);
}

#saturn:after {
    content: "Saturn";
    transform: rotate(25deg) translate(-100%,144px);
}

#neptune {
    width: 200px;
    height: 200px;
    background: url(img/neptune.jpg);
    background-size: 420px 200px;
    animation-duration: 40s;
    animation-name: rotate200;
}

#neptune:after {
    content: "Neptune";
}

#uranus {
    width: 200px;
    height: 200px;
    background: url(img/uranus.jpg);
    background-size: 420px 200px;
    animation-duration: 40s;
    animation-name: rotate200;
}

#uranus:after {
    content: "Uranus";
}

#pluto {
    width: 50px;
    height: 50px;
    background: url(img/pluto.jpg);
    animation-duration: 10s;
    background-size: 110px 60px;
    animation-name: rotate50;
}

#pluto:after {
    content: "Pluto";
}

#ringcontainer {
    position:relative;
    width: 510px;
    height: 335px;
    margin-right: 50px;
    margin-left: 50px;
    float:left;
}

div#rings {
    background-image: url(img/rings.png);
    background-repeat: no-repeat;
    width: 510px;
    height: 335px;
    position:absolute;
    top:0px;
    left:0px;
    opacity: 0.7;
}

.hexContainer {
    transform: rotate(10deg) translate(-59%,100%);
    position: absolute;
    display: flex;
    flex-wrap: nowrap;
    left: 50%;
    bottom: -70px;
    align-items: center;
    justify-content: center;
    width: 200px;
}

#ringcontainer .hexContainer {
    transform: rotate(0deg) translate(-56%,100%);
    bottom: -40px;
}

#earth .planetPoints {
   transform: translate(-50%, -50%);
}

#mercury .planetPoints {
    font-size:30px;
}

#mars .planetPoints {
    font-size:30px;
}

#jupiter .planetPoints {
    font-size:80px;
}

#saturn .planetPoints, #uranus .planetPoints, #neptune .planetPoints {
    font-size:60px;
}

#pluto .planetPoints {
    font-size:16px;
}

#earth .hexContainer {
    transform: rotate(0deg) translate(-59%,100%);
}

.hexagon {
    position: relative;
    width: 20px;
    height: 11.55px;
    background-color: rgb(255, 255, 255);
    border-left: solid 1px rgb(151, 51, 51);
    border-right: solid 1px rgb(151, 51, 51);
    float:left;
    margin-right:2px;
}

.hexagon:before,
.hexagon:after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 14.14px;
  height: 14.14px;
  transform: scaleY(0.5774) rotate(-45deg);
  background-color: inherit;
  left: 1.9289px;
}

.hexagon:before {
  top: -7.0711px;
  border-top: solid 1px rgb(151, 51, 51);
  border-right: solid 1px rgb(151, 51, 51);
}

.hexagon:after {
  bottom: -7.0711px;
  border-bottom: solid 1px rgb(151, 51, 51);
  border-left: solid 1px rgb(151, 51, 51);
}

@keyframes rotate300 {
  from { background-position-x: 0px; }
  to { background-position-x: 630px; }
}

@keyframes rotate200 {
  from { background-position-x: 0px; }
  to { background-position-x: 420px; }
}

@keyframes rotate100 {
  from { background-position-x: 0px; }
  to { background-position-x: 210px; }
}

@keyframes rotate50 {
  from { background-position-x: 0px; }
  to { background-position-x: 110px; }
}

#ship {
    position:absolute;
    top:300px;
    left:-100px;
    width:100px;
    transform:translate(-50%,-100%);
    cursor:pointer;
}

#allDice {
    position: fixed;
    right: 50px;
    top: 10px;
    width: 363px;
}

.dieContainer {
    width: 64px;
    height: 64px;
    position: absolute;
    perspective: 3000px;
    top: 0px;
    perspective-origin: -200px -200px;
    display:none;
    cursor:pointer;
}

.die {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.die figure {
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  border: 0px solid #DDD2BC;
  line-height: 64px;
  font-size: 50px;
  font-weight: bold;
  color: white;
  text-align: center;
}

.die figure {
    backface-visibility: hidden;
    background-image: url(img/dice.jpg);
    background-size: cover;
    background-repeat: no-repeat;
}

.die .front  {
    transform: translateZ( 32px );  
    background-position: 0px 0px;
}
.die .back   {
    transform: rotateX( -180deg ) translateZ( 32px );
    background-position: -64px 0px;
}
.die .right {
    transform: rotateY(   90deg ) translateZ( 32px );  
    background-position: -128px 0px;
}
.die .left {
    transform: rotateY(  -90deg ) translateZ( 32px );
    background-position: -192px 0px;
}
.die .top {
    transform: rotateX(   90deg ) translateZ( 32px );
    background-position: -256px 0px;
}
.die .bottom {
    transform: rotateX(  -90deg ) translateZ( 32px );
    background-position: -320px 0px;
}

.die.show-1 {
    transform: translateZ( -32px ) translateY(-50px) translateX(-40px);
}
.die.show-2 {
    transform: translateZ( -32px ) rotateX( -180deg ) translateY(-50px) translateX(-40px);
}
.die.show-3 {
    transform: translateZ( -64px ) rotateY( -90deg ) translateY(-52px);
}
.die.show-4 {
    transform: translateZ( 9px ) rotateY( 90deg ) translateY(-50px);
}
.die.show-5 {
    transform: translateZ( 18px ) rotateX( -90deg ) translateX(-40px);
}
.die.show-6 {
    transform: translateZ( -81px ) rotateX( 90deg ) translateX(-40px);
}

.die1 {
    left: 0px;
}

.die2 {
    left: 100px;
}

.die3 {
    left: 200px;
}

.die4 {
    left: 300px;
}

.planetCards {
    position: absolute;
    top: 20px;
    cursor:pointer;
}

#earth .planetCards {
    position: absolute;
    top: -15px;
    left: 114px;
}

.planetCard {
    width: 50px;
    height: 75px;
    background-color: rgb(255, 255, 255);
    border-radius: 5px;
    position: absolute;
    transform: translate(-26px,0px);
    overflow: hidden;
    border: solid 1px rgb(160, 160, 160);
}

.innerCard {
    border-radius: 5px;
    width: 42px;
    height: 62px;
    position: absolute;
    top: 5px;
    left: 3px;
    text-transform: capitalize;
    font-size: 11px;
    text-align: center;
    padding-top: 2px;
    background: radial-gradient(ellipse at center, rgb(181, 189, 200) 0%,rgb(130, 140, 149) 36%,rgb(40, 52, 59) 100%);
    color: rgb(240, 240, 240);
    border: solid 1px rgb(160, 160, 160);
}

.planetCard .innerCard:after {
    background-size: cover;
    background-position: -32px 0px;
    content: " ";
    position: absolute;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    top: 20px;
    left: 3.5px;
    overflow: hidden;
}

.planetCard.planet_earth .innerCard:after {
    background-image: url(img/earth.jpg);
}

.planetCard.planet_mercury .innerCard:after {
    background-image: url(img/mercury.jpg);
}

.planetCard.planet_venus .innerCard:after {
    background-image: url(img/venus.jpg);
}

.planetCard.planet_mars .innerCard:after {
    background-image: url(img/mars.jpg);
}

.planetCard.planet_jupiter .innerCard:after {
    background-image: url(img/jupiter.jpg);
}

.planetCard.planet_saturn .innerCard:after {
    background-image: url(img/saturn.jpg);
}

.planetCard.planet_uranus .innerCard:after {
    background-image: url(img/uranus.jpg);
}

.planetCard.planet_neptune .innerCard:after {
    background-image: url(img/neptune.jpg);
}

.planetCard.planet_pluto .innerCard:after {
    background-image: url(img/pluto.jpg);
}

#passengers {
    position: absolute;
    display: flex;
    flex-wrap: nowrap;
    transform: translate(-12px, -30px);
    width: 140px;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.player {
    width: 21px;
    height: 29px;
    mask: url(#playerMask);
    background-image: url(img/player.png);
    filter: contrast(2) saturate(1.5);        
    -webkit-mask-box-image: url(img/player2.png);
    -moz-mask-box-image: url(img/player2.png);    
}

.planetPlayers {
    transform: rotate(10deg);
    display: flex;
    justify-content: center;
    width:100%;
    flex-wrap: wrap;
}

#earth .planetPlayers {
    transform: rotate(0deg);
}

#jupiter .planetPlayers {
    transform: rotate(10deg) translate(25px,-4px);
}

#uranus .planetPlayers, #neptune .planetPlayers {
    transform: rotate(10deg) translate(15px,5px);
}

#saturn .planetPlayers {
    transform: rotate(25deg) translate(45px,-4px);
}

.captain {
    width: 25px;
    height: 18px;
    background-image: url(img/captain.png);
    position: absolute;
    transform: translate(-3px,-13px);
    cursor:pointer;
}

#playerSheets {
    position: fixed;
    top: 0px;
    left: 0px;
}

.playerSheet {
    float:left;
    width:100px;
    margin-right: 5px;
    height:100px;
    border-radius: 0px 0px 10px 10px;   
    position: relative;
}

.playerSheet.active {
    border: solid 2px rgb(255, 255, 255);
    box-sizing: border-box;
    border-top: 0px;
}

.playerName {
    color: rgb(255, 255, 255);
    /* mix-blend-mode: difference; */
    font-size: 12px;
    text-align: center;
    padding: 3px 0px;
    text-shadow: 0px 0px 2px #000;
    background-color: rgba(0,0,0,0.2);
}

.playerScore {
    color: rgb(255, 255, 255);
    font-weight: bold;
    text-shadow: 0px 0px 2px #000;
    font-size: 25px;
    line-height: 35px;
    height: 38px;
    margin-bottom: 2px;
    background-image: url(img/victory.png);
    background-repeat: no-repeat;
    background-position: center center;
    text-align: center;
}

.playerCards {
    background-image: url(img/handCards.png);
    background-repeat: no-repeat;
    background-position: center center;
    height: 38px;
    text-align: center;
    color: rgb(255, 255, 255);
    line-height: 38px;
    font-weight: bold;
    width: 100%;
    background-size: contain;
    text-shadow: 0px 0px 2px #000;
    font-size: 25px;
    margin-bottom: 2px;
}

.playerSheet.kickme:hover {
    cursor:pointer;
    filter: blur(1px);
}

.playerSheet.kickme:after {
    content: " ";
    position: absolute;
    width: 30px;
    height: 30px;
    background-image: url(img/cardIcons.png);
    background-size: 300px 30px;
    background-position: -150px 0px;
    background-color: rgb(170, 0, 0);
    border-radius: 30px;
    top: 90%;
    left: 50%;
    transform: translate(-50%,0%);
}

#interfaceBox {
    position: fixed;
    bottom: 0px;
    width: 1280px;
    margin: auto;
    background-image: url(img/interface.jpg);
    height: 200px;
    background-repeat: no-repeat;
    display: flex;
    left: 50%;
    transform: translate(-50%,0);
}

.light {
    position:absolute;
    width:25px;
    height:25px;    
}

.light1 {
    top: 60px;
    left: 17px;
}

.light2 {
    top: 87px;
    left: 17px;
}

.light3 {
    top: 116px;
    left: 17px;
}

.light4 {
    top: 146px;
    left: 17px;
}

.light5 {
    top: 62px;
    left: 1232px;
}

.light6 {
    top: 89px;
    left: 1232px;
}

.light7 {
    top: 118px;
    left: 1232px;
}

.light8 {
    top: 148px;
    left: 1232px;
}

.redLight {
    background-image:url(img/redlight.png);
}

.yellowLight {
    background-image:url(img/yellowlight.png);
}

#shipLog {
    width: 405px;
    height: 142px;
    border-radius: 25px;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    font-size: 13px;
    color: rgb(255, 255, 255);
    position: absolute;
    left: 69px;
    top: 42px;
    opacity: 0.8;
    box-sizing: border-box;
    padding-left: 10px;
    padding-right: 30px;
    line-height: 17px;
}

#shipLog .name {
    text-shadow: 0px 0px 1px #000;
    padding:0px 5px;
}

#shipLog .planetName {
    text-transform: uppercase;
    font-size: 14px;
}

#shipLog .announcement {
    text-align: center;
}

#playerBox {
    width: 400px;
    height: 175px;
    bottom: 0px;
    border-radius: 5px 5px 0px 0px;
    font-size: 13px;
    color: rgb(255, 255, 255);
    line-height: 18px;
    position: absolute;
    left: 496px;
    top: 14px;
}

div#playerNameBox {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    text-align: center;
    text-shadow: 0px 0px 2px #000;
    background-color: rgba(0,0,0,0.2);
    height: 30px;
    line-height: 25px;
}

div#playerHandCards {
    position: absolute;
    top: 25px;
    height: 145px;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.playerHandCard {
    width: 75px;
    height: 130px;
    background-color: rgb(255, 255, 255);
    border: solid 1px rgb(0, 0, 0);
    box-sizing: border-box;
    border-radius: 10px;
    position: absolute;
    z-index: 1;
}

.playerHandCard:hover, .playerHandCard:active, .playerHandCard:focus {
    z-index:10;
}

.playerHandCard .cardImage {
    background-color: rgb(0, 0, 0);
    margin: 6px 0px 0px 6px;
    width: 61px;
    height: 116px;
    box-sizing: border-box;
    border-radius: 5px;
}

.playerHandCard .cardSymbol {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    background-color: rgb(255, 255, 255);
    border-radius: 50px;    
}

.handCardType1 .cardSymbol {
    background-image: url(img/cardIcons.png);
    background-size: 300px 30px;
    background-color: rgb(255, 0, 0);
    color:rgba(0,0,0,0);
}

.handCardType1 .cardImage {
    background-image: url(img/cardImages.jpg);
    background-size: 488px 116px;
}

.handCardType2 .cardSymbol {
    background-image: url(img/cardIcons.png);
    background-size: 300px 30px;
    background-color: #5a5a5a;
    background-position: -30px 0px;
    color:rgba(0,0,0,0);
}

.handCardType2 .cardImage {
    background-image: url(img/cardImages.jpg);
    background-size: 549px 116px;
    background-position: -61px 0px;
}

.handCardType3 .cardSymbol {
    background-image: url(img/cardIcons.png);
    background-size: 300px 30px;
    background-color: #51cc51;
    background-position: -60px 0px;
    color:rgba(0,0,0,0);
}

.handCardType3 .cardImage {
    background-image: url(img/cardImages.jpg);
    background-size: 549px 116px;
    background-position: -122px 0px;
}

.handCardType4 .cardSymbol {
    background-image: url(img/cardIcons.png);
    background-size: 300px 30px;
    background-color: #71cbdb;
    background-position: -90px 0px;
    color:rgba(0,0,0,0);
}

.handCardType4 .cardImage {
    background-image: url(img/cardImages.jpg);
    background-size: 549px 116px;
    background-position: -183px 0px;
}

.handCardType5 .cardSymbol {
    background-image: url(img/cardIcons.png);
    background-size: 300px 30px;
    background-color: #000;
    background-position: -120px 0px;
    color:rgba(0,0,0,0);
}

.handCardType5 .cardImage {
    background-image: url(img/cardImages.jpg);
    background-size: 549px 116px;
    background-position: -244px 0px;
}

.handCardType6 .cardSymbol {
    background-image: url(img/cardIcons.png);
    background-size: 300px 30px;
    background-color: rgb(170, 0, 0);
    background-position: -150px 0px;
    color:rgba(0,0,0,0);
}

.handCardType6 .cardImage {
    background-image: url(img/cardImages.jpg);
    background-size: 549px 116px;
    background-position: -305px 0px;
}

.handCardType7 .cardSymbol {
    background-image: url(img/cardIcons.png);
    background-size: 300px 30px;
    background-color: rgb(65, 11, 158);
    background-position: -180px 0px;
    color:rgba(0,0,0,0);
}

.handCardType7 .cardImage {
    background-image: url(img/cardImages.jpg);
    background-size: 549px 116px;
    background-position: -366px 0px;
}

.handCardType8 .cardSymbol {
    background-image: url(img/cardIcons.png);
    background-size: 300px 30px;
    background-color: rgb(65, 11, 158);
    background-position: -210px 0px;
    color:rgba(0,0,0,0);
}

.handCardType8 .cardImage {
    background-image: url(img/cardImages.jpg);
    background-size: 549px 116px;
    background-position: -427px 0px;
}

.handCardType9 .cardSymbol {
    background-image: url(img/cardIcons.png);
    background-size: 300px 30px;
    background-color: rgb(170, 0, 0);
    background-position: -240px 0px;
    color:rgba(0,0,0,0);
}

.handCardType9 .cardImage {
    background-image: url(img/cardImages.jpg);
    background-size: 549px 116px;
    background-position: -488px 0px;
}

#decisionBox {
    width: 260px;
    height: 125px;
    padding-left: 10px;
    font-size: 13px;
    color: rgb(255, 255, 255);
    line-height: 18px;
    border-left-width: 0px;
    border-right-width: 0px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-top: 38px;
    position: absolute;
    left: 931px;
    top: 12px;
}

#decisionBox button {
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 15px;
    margin: 0px 25px;
    background-color: rgb(255, 255, 255);
    text-align: center;
    border-radius: 90px;
    box-sizing: border-box;
    color: rgb(255, 255, 255);
    box-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: 0.5s;
    outline: none;
    border: none;   
}

#decisionBox button:after {
    content:" ";
    position:absolute;
    top:0px;
    left:0px;
    width: 60px;
    height: 60px;
    text-align: center;
    line-height: 60px;
}

#decisionBox button:hover:after {
    text-shadow: 0px 0px 16px rgb(255, 255, 255);
}

#decisionBox button:active {
    box-shadow: none;
    transform: translate(2px,2px);
}

#decisionBox button#buttonStay {
    background: linear-gradient(to bottom, rgb(29, 229, 22) 0%,rgb(18, 178, 3) 100%);
}

#decisionBox button#buttonLeave {
    background: linear-gradient(to bottom, rgb(229, 29, 22) 0%,rgb(178, 18, 3) 100%);
}

#buttonNoCard, #buttonNoPreCard  {
    background: linear-gradient(to bottom, rgba(22, 22, 22,0.5) -1%,rgba(122, 122, 122,0.5) 100%);
    background-size: cover;
    background-color: rgb(0, 0, 0) !important;
    position: relative;
}

button#buttonNoCard:before, button#buttonNoPreCard:before  {
    content: " ";
    width: 40px;
    height: 40px;
    background-image: url(img/explosion.png);
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    background-size: cover;
    line-height: 40px;
}

button#buttonNoPreCard:before {
    background-image: url(img/ship.png);   
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
}

#decisionBox button.multiButton {
    margin: 0px !important;
    position: relative;
    background: linear-gradient(to bottom, rgba(22, 22, 22,0.5) -1%,rgba(122, 122, 122,0.5) 100%);
}

#decisionBox button#buttonCard7, #decisionBox button#buttonCard8, #decisionBox button#buttonCardspecial {
    background-color: rgb(35, 0, 95) !important;
}

#decisionBox button#buttonCard6, #decisionBox button#buttonCard9 {
    background-color: rgb(255, 255, 0);
}

button#buttonCard6:before, 
button#buttonCard7:before, 
button#buttonCard8:before, 
button#buttonCard9:before,
button#buttonCardspecial:before {
    content: " ";
    width: 30px;
    height: 30px;
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1;
    line-height: 40px;
    background-image: url(img/cardIcons.png);
    background-size: 300px 30px;
    background-color: rgb(35, 0, 95);
    background-position: -210px 0px;
    border-radius: 20px;
    color: rgb(255, 255, 255) !important;
    text-align: center;
    opacity: 0.8;
}

button#buttonCard6:before {
    background-position: -150px 0px;
    background-color: rgb(170, 0, 0);
}

button#buttonCard7:before {
    background-position: -180px 0px;
}

button#buttonCard9:before {
    background-position: -240px 0px;
    background-color: rgb(170, 0, 0);
}

button#buttonCardspecial:before {
    background-position: -270px 0px;    
}

button#buttonNoCard:after, 
button#buttonNoPreCard:after, 
button#buttonCard6:after ,  
button#buttonCard7:after ,  
button#buttonCard8:after ,  
button#buttonCard9:after,
button#buttonCardspecial:after {
    content: "No";
    font-size: 12px;
    line-height: 14px;
    position: absolute;
    top: 64px;
    text-align: center;
}

button#buttonCard6:after {
    content: "eject";
}

button#buttonCard7:after {
    content: "escape pod";
}

button#buttonCard8:after {
    content: "alternate route";
}

button#buttonCard9:after {
    content: "trouble";
}

button#buttonCardspecial:after {
    content: "autopilot";
}

.explosion {
    position: absolute;
    background-image: url(img/explosion.png);
    background-position: 0px 0px;
    background-size: cover;
    background-repeat: no-repeat;
    width: 30px;
    height: 30px;
    animation: explode 1s;
    animation-timing-function: ease-in;
    transform: translate(96px,16px);
    opacity: 0.6;
}

@-webkit-keyframes explode {
    0%   { }
    50%  { opacity:1;}
    100% { width:400px; height:400px; opacity:0;  transform: translate(-100px,-171px);}
}

::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}
 
::-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%);
}
 
::-webkit-scrollbar-thumb {
    border-radius: 10px;
    box-shadow: inset 0 0 6px #04ffd3;
    background-color: rgba(32, 158, 136,0.5);
}

#shipLog::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    border-radius: 10px;
    background:none;
}

.autopilot {
    position: fixed;
    bottom: 197px;
    left: 508px;
    width: 30px;
    height: 30px;
    border-radius: 50px 50px 0px 0px;
    background-image: url(img/cardIcons.png);
    background-size: 300px 30px;
    background-position: -270px 0px;
    color: rgba(0,0,0,0);
    background-repeat: no-repeat;
    background-color: rgb(54, 54, 54);
    padding: 0px 0px 0px 0px;
    box-shadow: 0px -2px 2px 3px rgba(80,80,70,1);
    z-index: 1000;
    cursor:pointer;
}

.autopilot:nth-child(2) {
    left: 569px;
}

.autopilot:nth-child(3) {
    left: 630px;
}

.autopilot:nth-child(4) {
    left: 691px;
}
    
div#gameover {
    position: fixed;
    top: 50%;
    left: 50%;
    color: rgb(255, 255, 255);
    padding: 50px;
    font-size: 50px;
    text-align: center;
    transform: translate(-50%,-50%);
    background-color: rgb(0, 0, 0);
    border-radius: 10px;
    box-shadow: 0px 0px 40px 20px #fff;
}

#gameover .name {
    padding: 10px;
    border-radius: 5px;
    white-space: nowrap;
}

div#other {
    position: fixed;
    top: 3px;
    right: 3px;    
    font-size: 75%;
    color: rgb(255, 255, 255);
}

div#other a {
    color: rgb(255, 255, 255);
    opacity: 0.75;
    transition: 0.3s;
    text-decoration: none;
}

div#other a:hover {
    opacity: 1;
}

.playerScore .captain {
    top: 28px;
    left: 40px;
}

#chooseColor {
    position: fixed;
    background-color: rgba(32, 158, 136,0.9);
    top: 40%;
    left: 50%;
    transform: translate(-50%,-50%);
    border: ridge 3px rgb(4, 255, 211);
    color: rgb(255, 255, 255);
    padding: 20px;
    text-align: center;
    padding-top: 0px;
    border-radius: 10px;
    box-shadow: 0 0 30px 5px #000;
    background-image: url(img/back.png);
    background-position: center center;
}

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

#chooseColor .pickColor {
    width: 60px;
    height: 60px;
    margin: 10px;
    border-radius: 5px;
    box-shadow: 0px 0px 0px 4px rgba(17, 203, 196,0.5);
    cursor: pointer;
    transition: 0.5s;
}

#chooseColor .pickColor:hover {
    box-shadow: 0px 0px 5px 5px #fff;
}

.helpBox {
    position: absolute;
    width: 150px;
    z-index: 10000;
    background-color: rgba(0,150,150,0.8);
    color: rgb(0, 255, 255);
    padding: 5px;
    font-size: 11px;
    border-radius: 3px;
    border: solid 1px rgb(0, 255, 255);
    background: linear-gradient(rgb(0, 150, 150), rgb(0, 100, 100));
    cursor:pointer;
    transform: translate(-35%,calc(-100% - 20px));
}

.helpBox.down {
    transform: translate(-35%,20px);
}

.helpBox div {
    text-decoration: underline;
}

.helpBox:before {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50px;
    border-width: 20px 0 0 20px;
    border-style: solid;
    border-color: rgb(0, 255, 255) rgba(0, 0, 0, 0);
    display: block;
    width: 0;
}

.helpBox:after {
    content: "";
    position: absolute;
    bottom: -18px;
    left: 53px;
    border-width: 18px 0 0 16px;
    border-style: solid;
    border-color: rgb(0, 100, 100) rgba(0, 0, 0, 0);
    display: block;
    width: 0;
}

.helpBox.down:after {
    content: "";
    position: absolute;
    top: -18px;
    left: 54px;
    border-width: 18px 0 0 16px;
    border-style: solid;
    border-color: rgb(0, 150, 150) rgba(0, 0, 0, 0);
    display: block;
    transform: rotate(180deg) scaleX(-1);
    width: 0;
    bottom: initial;
}

.helpBox.down:before {
    content: "";
    position: absolute;
    top: -20px;
    left: 51px;
    border-width: 20px 0 0 20px;
    border-style: solid;
    border-color: rgb(0, 255, 255) rgba(0, 0, 0, 0);
    display: block;
    width: 0;
    transform: rotate(180deg) scaleX(-1);
    bottom: initial;
}

#highscore {
    z-index: 25;
    width: 410px;
    height: 100%;
    padding: 10px;
    position: fixed;
    top: 0px;
    left: calc(50% - 210px);
    font-size: 20px;
    overflow-y: auto;
    display: none;
    border: ridge 3px rgb(4, 255, 211);
    background-color: rgba(32, 158, 136,0.95);
    color: rgb(255, 255, 255);
    background: linear-gradient(to bottom, rgb(0, 200, 200) 1%,rgb(150, 216, 216) 50%,rgb(0, 100, 100) 100%);
}

#highscore h1 {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

#highscore table {
    width:100%;
    border-spacing: 0;
    border-collapse: collapse;
}

#highscore table tr.yourscore {
    text-shadow: 0 0 15px rgb(150,255,255);
    font-size: 150%;
}

#highscore table td.rank {
    width: 85%;
}

#highscore table tr:hover {
    background: rgba(255, 255, 255,0.5);
}

#inputscore {
    display: none;
    z-index: 25;
    width: 320px;
    height: 131px;
    padding: 10px;
    position: fixed;
    top: 134px;
    left: 464px;
    font-size: 20px;
    cursor: pointer;
    text-align: center;
    background-color: rgba(32, 158, 136,0.95);
    border: ridge 3px rgb(4, 255, 211);
    color: rgb(255, 255, 255);
    background-image: url(img/back.png);
}

input#yourname {
    height: 30px;
    width: 290px;
    margin-top: 8px;
    margin-bottom: 8px;
    line-height: 30px;
    font-size: 30px;
    padding-left: 5px;
    outline-color: rgb(250, 250, 250);
    border: solid 1px rgb(4, 255, 211);
    background-color: rgb(0,150,150);
    color: rgb(255, 255, 255);
}

button#okbutton {
    width: 100px;
    background-color: rgb(0, 100, 100);
    color: rgb(255, 255, 255);
    height: 50px;
    cursor: pointer;
    font-size: 20px;
    border: solid 1px rgb(0, 150, 150);
    border-radius: 10px;
    outline: none;
}

button#okbutton:hover {
    background-color: rgb(0, 200, 200);
    border: solid 1px rgb(0, 150, 150);
}

.playerSheet img.playerType {
    position: absolute;
    bottom: 5px;
    left: 1px;
}

#ds {
    width: 25px;
    height: 26px;
    background-image: url(img/deathstar.png);
    position: absolute;
    top: 0px;
    left: 2500px;
}