﻿* {
  box-sizing: border-box;
  font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  margin:0;
  padding:0;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10+ and Edge */
  user-select: none; /* Standard syntax */
  -webkit-user-drag: none;
}
  
html, body {
  height: 100%;
  margin: 0; 
}

.full-height {
  height: 100%;
  background: white;
  padding:.5%; 
}

#game-container {
  background: none;
  position: relative;
  height: 872px;
  left: 50%;
  margin: 0;
  max-height: 99%;
  max-width: 99%;
  top:50%;
  transform: translate(-50%, -50%);
  width: 1810px;
}

.players {
  float: left;
  height: 100%;
  margin-right: .5vw; 
  width: 10%;
}

[id^="player"] {
  border:1px solid black;
  font-size: 1.2vw;
  font-weight: bold;
  height:24.85%;
  margin-bottom: 1%;
  position:relative;
  text-align: center;
  width:100%;
}

[id*="score"] {
  font-size: 1vw;
  font-weight: initial;
}

#player1 {
  background-color: #0D3B66;
  color: white;
}

#player1:hover, #player2:hover, #player3:hover, #player4:hover {
  background: grey;
}
  
#player2 {
  background-color: #F4D35E;
}

#player3 {
  background-color: #EE964B;
}

#player4 {
  background-color: #F95738;
  color: white;
  margin-bottom: 0%;
}

.board {
  background-color:#122463; 
  float:left;
  height:100%;
  text-align: center;
  width: 89.4%;
}

.red {
  background-color: white;
  color: red;
}

.black {
  background-color: white;
  color: black;
}

#header {
  height: 12%;
  background: #63372C;
  color: white;
  font-size: 1.2vw;
  line-height: 1.7vw;
  padding: 1vh;
  padding-left: 3vh;
  position: relative;
  text-align: left;
  width: 100%;
}

#deck {
  height: 88%;
  background: #63372C;
  padding-left: 1.5vh;
  padding-top: 1.5vh;
  width: 100%;
}

.boxCards {
  float: left;
  height:11.2%;
  width:7.2%;
  margin:.2%;
  position: relative;
}

[id^="cards"] {
  height:100%;
  width:100%;
}

[id^="card"] img {
  border-radius: 5%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height:100%;
  position: absolute;
  width: 100%;
}

#boxButtons {
  height: 75%;
  padding: 1vh;
  position: absolute;
  right: 1vh;
  top: 50%;
  transform: translate(0%, -50%);
  width: 20%;
}

button {
  position: relative;
  font-size: .9vw;
  height: 100%;
  width: 48%;
}

.card {
  background: #F95738;
  border: #0D3B66 4px solid;
  border-radius: 5%;
  color: #EE964B;
  font-size: 1vw;
  font-weight: 900;
  line-height: 350%;
}

.card p {
  font-size: 1vw;
  font-weight: 900;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.card img {
  visibility: hidden;
  width: 100%;
}

[id^="player"] .card {
  height: 5vw;
  left: 50%;
  max-height: 60%;
  max-width: 80%;
  position: absolute;
  transform: translate(-50%, -58%) rotateZ(90deg);
  top:65%;
  width: 16vh;
}

[id^="player"] img {
  position: absolute;
}

#warningLandscape {
  background: #F95738;
  color: #122463;
  display: none;
  font-size: 8vh;
  height: calc(var(--vh, 1vh) * 100);
  justify-content: center;
  position: absolute;
  text-align: center;
  width: 100%;
  z-index: 100;
}

#warningLandscape p {
  position: absolute;
  top: 50%;
  transform: translate(0%, -50%);
  width: 100%;
}

@media screen and (orientation:portrait) {
  #warningLandscape {
    display: block;
  }
  html {
    background: #F95738;
  }  
  #full-height {
    display: none;
  }
}
