* {
  box-sizing: border-box;
  font-family: 'Montserrat', 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;
}

body {
  overflow: auto;
}

#frame-page {
  background-color: #54181bd0;
  height: calc(var(--vh, 1vh) * 100);
  padding: calc(var(--vh, 1vh) * 1);
}

#frame-page > img {
  border: #a4be91 calc(var(--vh, 1vh) *1) solid;
  height: calc(var(--vh, 1vh) * 98);
  left: calc(var(--vh, 1vh) * 23.5);
  outline: #54181b calc(var(--vh, 1vh) * 2) solid;
  position: absolute;
  top: 50%;
  transform: translate(0%, -50%);
}

#board {
  border: red 1px solid;
  border: none;
  display: grid;
  grid-template-rows: 1.05fr 1.02fr 1.02fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1.1fr;
  grid-template-columns: 1.1fr 1.05fr 1.1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  height: calc(var(--vh, 1vh) * 92.6);
  left: calc(var(--vh, 1vh) * 28);
  position: absolute;
  top: calc(var(--vh, 1vh) * 4);
  width: calc(var(--vh, 1vh) * 89);
}

.spaceBoard {
  border: red 1px solid;
  border: none; 
  position: relative;
}

.dropArea {
  background: transparent;
  position: relative;
}

.pawn {
  height: 175%;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -75%);
  width: auto;
  z-index: 2;
}

.weapon {
  height: 250%;
  z-index: 2;
}

.folder {
  height: 250%;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-45%, 20%);
  z-index: 2;
}
#weaponRevolver {
  transform: rotateZ(90deg);
  transform-origin: top;
}

[class^="card"] {
  background: white;
  background-image: url(resources/cards/cardsClue/clueBack.jpg);
  background-size: 110% 100%;
  background-position: center;
  background-repeat: no-repeat;
  border-width: calc(var(--vh, 1vh) * .75) calc(var(--vh, 1vh) * .48);
  border-color: white;
  border-style: solid;
  border-radius: 1vh;
  height: calc(var(--vh, 1vh) * 15);
  position: relative;
  width: calc(var(--vh, 1vh) * 9.63);
}

[class^="card"] img {
  height: 100%;
  position: relative;
  width: 100%;
}

#trayTraysPlayers {
  display: flex;
  flex-wrap: wrap;
  height: calc(var(--vh, 1vh) * 98);
  position: absolute;
  right: calc(var(--vh, 1vh) * 1);
  width: calc(var(--vh, 1vh) * 50);
  z-index: 3;
}

[id^="trayPlayer"] {
  border:#54181b 3px solid;
  background: #a4be91;
  display: none;
  height: auto;
  overflow: auto;
  position: relative;
  width: 100%;
}

[id^="trayPlayer"] button {
  height: calc(var(--vh, 1vh) * 5);
  bottom: calc(var(--vh, 1vh) * 1);
  visibility: hidden;
  font-size: .8vw;
  position: absolute;
  right: calc(9% + .5vh);
  width: 35%;
}

#trayPlayer:last-of-type {
  border-bottom: none;
}

.labelPlayer {
  align-content: center;
  border: #54181b 1px solid;
  display: flex;
  flex-wrap: wrap;
  font-size: 1.4vh;
  height: 100%;
  justify-content: center;
  position: absolute;
  right: 0%;
  text-align: center;
  text-orientation: upright;
  writing-mode: vertical-lr;
  width: 9%;
}

.scarlett {background: red; color: white;}
.mustard {background: #f4ec10;}
.white {background: white;}
.green {background: #77a701;}
.peacock {background: #52aecb;}
.plum {background: #760173; color: white;}
.black {background: black; color: white;}

[id^="handPlayer"] {
  height: 100%;
  padding: .5vh;
  width: 91%;
}

[id^="handPlayer"] .card {
  float: left;
  height: 95%;
  margin: calc(var(--vh, 1vh) * .2);
  max-height: calc(var(--vh, 1vh) * 15);
  position: relative;
  width: 19%;
}

[id^="handPlayer"] .card img {
 visibility: hidden;
}

[id^="handPlayer"] .card p {
  background: white;
  border-radius: .75vh;
  color: red;
  font-size: 3vh;
  left: 0%;
  padding: 0 .2vh;
  position: absolute;
  bottom: 0%;
 } 

 .tray-dice {
  font-size: 1vw;
  font-weight: bold;
  height: auto;
  left: 1vh;
  position: absolute;
  text-align: center;  
  top: calc(var(--vh, 1vh) * 50);
  transform: translate(0%, -50%);
  width: 9vw;
  z-index: 2;
}

#button-roll {
  height: 4vh;
}
[class^="die"] {
  background-size: contain;
  background-repeat: no-repeat;
  height: 8vh;
  left: 50%;
  position: relative;
  transform: translate(-50%, 0%);
  width: 8vh;
}

.die img {
  height: 8vh;
  width: 8vh;
  }

.die1 {
  background-image: url('resources/objects/dieRedRoll1.png');
}

.die2 {
  background-image: url('resources/objects/dieRedRoll2.png');
}

.die3 {
  background-image: url('resources/objects/dieRedRoll3.png');
}

.die4 {
  background-image: url('resources/objects/dieRedRoll4.png');
}

.die5 {
  background-image: url('resources/objects/dieRedRoll5.png');
}

.die6 {
  background-image: url('resources/objects/dieRedRoll6.png');  
}


#box-instructions {
  bottom: calc(var(--vh, 1vh) * 1);
  height: auto;
  left: calc(var(--vh, 1vh) * 1);
  position: absolute;
  width: 9vw;
}

#box-instructions button, #button-roll, #clueButton {
  cursor: pointer;
  font-size: .9vw;
  height: calc(var(--vh, 1vh) * 6);
  margin-top: 2%;
  position: relative;
  text-align: center;
  width: 100%;
}

#clueButton {
  position: absolute;
  width: calc(var(--vh, 1vh) * 15);
}

#boxDeckNumber {
  background: #54181b;
  color: white;
  font-size: 1.75vw;
  height: calc(var(--vh, 1vh) * 6.5);
  height: auto;
  left: calc(var(--vh, 1vh) * 1);
  position: absolute;
  text-align: center;
  top: calc(var(--vh, 1vh) * 1);
  width: 9vw;
}

#deckNumber {
  border-radius: calc(var(--vh, 1vh) * 1);
  display: block;
  font-size: 1.7vw;
  font-weight: bold;
  margin: .5vh 2.5vw;
  position: relative;
  padding: calc(var(--vh, 1vh) * .5);
  text-align: center;
  width: 4vw;
}


/* The Modal (background) */
.modal {
  background-color: rgb(0,0,0); /* Fallback color */
  border: 5px #54181b solid;
  display: none; /* Hidden by default */
  font-size: 2vw;
  height: calc(var(--vh, 1vh) * 100); /* Full height */
  left: 0;  
  padding-top: calc(var(--vh, 1vh) * .5);
  position: fixed; /* Stay in place */
  text-align: center;
  top: 0;
  width: 100%; /* Full width */
  z-index: 6; /* Sit on top */
}

/* Modal Content (image) */
.modalGuessContent, .modalStartContent {
  color: white;
  display: block;
  height: 100%;
  margin: auto;
  width: 80%;
}

.modalGuessContentInner {
  border: 4px #54181b solid;
  float: left;
  font-size: 2vw;
  height: auto;
  margin-top: 2vh;
  text-align: center;
  width: 33.3%;
}

.boxAskButtons {
  bottom: calc(var(--vh, 1vh) * 0);
  height: calc(var(--vh, 1vh) * 8);
  left: 50%;
  margin: calc(var(--vh, 1vh) * .5);
  position: absolute;
  transform: translate(-50%, 0%);
  width: calc(var(--vh, 1vh) * 42);
}

.modalGuessContent .card, #modalWinner .card {
  background: white;
  height: calc(var(--vh, 1vh) * 20);
  margin: calc(var(--vh, 1vh) * .5);
  width: 28%;
  width: calc(var(--vh, 1vh) * 13);
}

.modalGuessContentInner p {
  line-height: 6vh;
  margin-bottom: .5vh;
}

.modalGuessContent button, .boxAskButtons button {
  display: inline;
  font-size: 1.8vh;
  height: calc(var(--vh, 1vh) * 6.5);
  margin: calc(var(--vh, 1vh) * 1);
  width: calc(var(--vh, 1vh) * 18);
  vertical-align: middle;
}

/* Add Animation */
.modalGuessContent {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.3s;
  animation-name: zoom;
  animation-duration: 0.3s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

#modalLoser .modalResultContent, #modalWinner .modalResultContent {
  color: white;
  height: 30%;
  left: 50%;
  top: 30%;
  position: absolute;
  transform: translate(-50%, 0%);
  display: block;
  width: 75%;
}

#modalWinner .modalResultContent {
  top: 20%;
}

#deckCode {
  display: block;
  height: calc(var(--vh, 1vh) * 9.63);
  left: 50%;
  position: absolute;
  transform: translate(-50%, 0%);
  width: calc(var(--vh, 1vh) * 63.5);
}

#modalWinner .card {
  background: white;
  display: block;
  float: left;
  height: calc(var(--vh, 1vh) * 30);
  margin: calc(var(--vh, 1vh) * .5);
  width: calc(var(--vh, 1vh) * 20);
}

#deckCode h4 {
  display: inline-block;
  font-size: 1.8vw;
  text-align: left;
  position: relative;
  width: calc(var(--vh, 1vh) * 21);
}

#deckCode p {
  display: none;
}

#modalStart {
  display: none;
  position: absolute;
}


.modalStartContentInner {
  border: 4px #54181b solid;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  float: left;
  font-size: 2vw;
  height: auto;
  left: 50%;
  margin-top: 2vh;
  position: absolute;
  text-align: center;
  transform: translate(-50%, 0%);
  width: calc(var(--vh, 1vh) * 78);
}

.modalStartContentInner .card {
  background: white;
  display: block;
  float: left;
  height: calc(var(--vh, 1vh) * 30);
  margin: calc(var(--vh, 1vh) * 2);
  width: calc(var(--vh, 1vh) * 20);
}

#modalStart button {
  bottom: calc(var(--vh, 1vh) * 2);
  font-size: 2vh;
  height: calc(var(--vh, 1vh) * 6);
  left: 50%;
  position: absolute;
  transform: translate(-50%, 0%);
  width: calc(var(--vh, 1vh) * 20);
}

#resultComputerYesCard {
  background: white;
  border-width: calc(var(--vh, 1vh) * 1.5) calc(var(--vh, 1vh) * 1);
  border-color: white;
  border-style: solid;
  border-radius: 1vh;
  height: calc(var(--vh, 1vh) * 40);
  left: 50%;
  position: absolute;
  top: 35%;
  transform: translate(-50%, 0%);
  width: calc(var(--vh, 1vh) * 26); 
}

#resultComputerYesCard  img {
  border-radius: 1vh;
  height: 100%;
  width: 100%;
}

#resultComputerYesCard p {
  background: white;
  border-radius: .75vh;
  color: red;
  font-size: 5vh;
  left: 0%;
  position: absolute;
  bottom: 0%;
 } 

#modalComputerResult {
  color: white;
}

#warningLandscape {
  background: #54181b;
  color: #a4be91;
  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: #54181b;
  }  
  #frame-page {
    display: none;
  }
}
