* {
  box-sizing: border-box;
  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;
}
    
#frame-page {
  height: calc(var(--vh, 1vh) * 100);
  border: white calc(var(--vh, 1vh) * 1) solid;
  background: white;
}

#container-all {
  height: calc(var(--vh, 1vh) * 98);
  margin: 0 auto;
  width: calc(var(--vh, 1vh) * 135);
}

#container-game {
  background-image: url('resources/objects/backgroundWoodLightLarge.png');
  float: left;
  height: calc(var(--vh, 1vh) * 98);
  width: calc(var(--vh, 1vh) * 112.7671233);
}

.grid-container {
  display: grid;
  
  grid-template-columns: 
  1.75438596491228%
  7.01754385964913%
  7.01754385964913%
  7.01754385964913%
  7.01754385964913%
  7.01754385964913%
  7.01754385964913%
  1.75438596491228%
  1.75438596491228%
  7.01754385964913%
  7.01754385964913%
  7.01754385964913%
  7.01754385964913%
  7.01754385964913%
  7.01754385964913%
  1.75438596491228%
  7.01754385964913%
  1.75438596491228%;

  grid-template-rows:
  2.69166065849555%
  47.3083393415044%
  47.3083393415044%
  2.69166065849555%;
  height: 100%;
}

.border-t {
  background-image: url(resources/objects/backgroundWoodDark.jpg);
  grid-area: 1 / 1 / 1 / 19;
  display: grid;
  font-size: 2vh;
  justify-content: center;
  align-content: center;
}

.border-1 {
  background-image: url(resources/objects/backgroundWoodDark.jpg);
  grid-area: 2 / 1 / 4 / 1;
  display: inline-grid;
  justify-content: center;
  align-content: center;
  
}

.border-2 {
  align-content: center;
  background-image: url(resources/objects/backgroundWoodDark.jpg);
  color: tan;
  font-size: 2vh;
  font-weight: bold;
  display: grid;
  grid-area: 2 / 8 / 4 / 10;
  justify-content: center;
  position: relative;
  
}

.border-2 p {
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  text-orientation: upright;
  -webkit-text-orientation: upright;
  writing-mode: vertical-rl;
}

.border-2 > .token-d, .border-2 > .token-l {
  left: 50%;
  position: relative;
  top: 50%;
  transform: translate(-50%, -50%);
}

.border-3 {
  background-image: url(resources/objects/backgroundWoodDark.jpg);
  grid-area: 2 / 16 / 4 / 16;
}

.border-4 {
  background-image: url(resources/objects/backgroundWoodDark.jpg);
  grid-area: 2 / 18 / 4 / 18;
  position: relative;
}

.border-b {
  background-image: url(resources/objects/backgroundWoodDark.jpg);
  grid-area: 4 / 1 / 5 / 19;
  display: grid;
  font-size: 2vh;
  justify-content: center;
  align-content: center;
}

.light-t, .dark-t {
  display: grid;
  align-content: flex-start;
}

.light-t::before, .dark-t::before {
  content:'';
  width: 0;
  height: 0;
  border-left: calc(var(--vh, 1vh) * 3.956741168) solid transparent;
  border-right: calc(var(--vh, 1vh) * 3.956741168) solid transparent;
  border-top: calc(var(--vh, 1vh) * 43) solid #2ab7ca;
  position: absolute;
}

.light-t::before {
  border-top: calc(var(--vh, 1vh) * 43) solid #a8e6cf;
}

.light-b, .dark-b {
  align-content: flex-end;
  display: grid;
  position: relative;
}

.light-b::after, .dark-b::after {
  content: '';
  width: 0;
  height: 0;
  position: absolute;
  border-top: calc(var(--vh, 1vh) * 3.4) solid transparent;
  border-left: calc(var(--vh, 1vh) * 3.956741168) solid transparent;
  border-right: calc(var(--vh, 1vh) * 3.956741168) solid transparent;
  border-bottom: calc(var(--vh, 1vh) * 43) solid #2ab7ca;
}

.light-b::after {
  border-bottom-color: #a8e6cf;
}

.dark {
  color: #fe4a49;
  font-weight: bold;
}
.light {
  color: #fed766;
  font-weight: bold;
}

.token-l, .token-d {
  border: #912929 1px solid;
  border-bottom:  #912929 3px solid;
  border-right:  #912929 3px solid;
  border-radius: 50%;
  background: #fe4a49;
  height: calc(var(--vh, 1vh) * 7.9);
  width: calc(var(--vh, 1vh) * 7.9);
  z-index: 5;
}

.light-t :nth-child(6), .dark-t :nth-child(6) {
  position: absolute;
  transform: translate(0, 50%);
}

.light-t :nth-child(7), .dark-t :nth-child(7) {
  position: absolute;
  transform: translate(0, 150%);
}

.light-t :nth-child(8), .dark-t :nth-child(8) {
  position: absolute;
  transform: translate(0, 250%);
}

.light-t :nth-child(9), .dark-t :nth-child(9) {
  position: absolute;
  transform: translate(0, 350%);
}

.light-t :nth-child(10), .dark-t :nth-child(10) {
  position: absolute;
  transform: translate(0, 100%);
}

.light-t :nth-child(11), .dark-t :nth-child(11) {
  position: absolute;
  transform: translate(0, 200%);
}

.light-t :nth-child(12), .dark-t :nth-child(12) {
  position: absolute;
  transform: translate(0, 300%);
}

.light-t :nth-child(13), .dark-t :nth-child(13) {
  position: absolute;
  transform: translate(0, 150%);
}

.light-t :nth-child(14), .dark-t :nth-child(14) {
  position: absolute;
  transform: translate(0, 250%);
}

.light-t :nth-child(15), .dark-t :nth-child(15) {
  position: absolute;
  transform: translate(0, 200%);
}



.light-b :nth-child(6), .dark-b :nth-child(6) {
  position: absolute;
  transform: translate(0, 435%);
}

.light-b :nth-child(7), .dark-b :nth-child(7) {
  position: absolute;
  transform: translate(0, 335%);
}

.light-b :nth-child(8), .dark-b :nth-child(8) {
  position: absolute;
  transform: translate(0, 235%);
}

.light-b :nth-child(9), .dark-b :nth-child(9) {
  position: absolute;
  transform: translate(0, 135%);
}


.light-b :nth-child(10), .dark-b :nth-child(10) {
  position: absolute;
  transform: translate(0, 385%);
}

.light-b :nth-child(11), .dark-b :nth-child(11) {
  position: absolute;
  transform: translate(0, 285%);
}

.light-b :nth-child(12), .dark-b :nth-child(12) {
  position: absolute;
  transform: translate(0, 185%);

}


.light-b :nth-child(13), .dark-b :nth-child(13) {
  position: absolute;
  transform: translate(0, 335%);
}

.light-b :nth-child(14), .dark-b :nth-child(14) {
  position: absolute;
  transform: translate(0, 235%);
}



.light-b :nth-child(15), .dark-b :nth-child(15) {
  position: absolute;
  transform: translate(0, 285%);
}


.token-l {
  background: #fed766;
  border: #9c833d 1px solid;
  border-right: #9c833d 3px solid;
  border-bottom:  #9c833d 3px solid;
}

.tray-d, .tray-l {
  position: relative;  
}

.tray-d {
  border-bottom: #6d422a 2px solid;
  z-index: 10;
}

.tray-l {
  border-top: #6d422a 2px solid;
}

#labelTrayRed, #labelTrayYellow {
  background: #fe4a49;
  color: tan;
  font-weight: bold;
  font-size: 2vh;
  padding: 1vh .5vh;
  position: absolute;
  text-orientation: upright;
  -webkit-text-orientation: upright;
  white-space: nowrap;
  writing-mode: vertical-rl;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

#labelTrayYellow {
  background: #fed766;
}

.tray-d > .token-d, .tray-l > .token-l {
  border-radius: 0%;
  height: 6.375%;
  margin: 1.6% auto;
  position: relative;
  width:95%;
  z-index: 5;
}

.boxCube, .tray-dice, #boxInstructions {
  float: left;
  font-size: 1vw;
  font-weight: bold;
  height: auto;
  margin-left: calc(var(--vh, 1vh) * 2);
  position: relative;
  text-align: center;  
  top: calc(var(--vh, 1vh) * 0);
  width:calc(var(--vh, 1vh) * 12);
}

.boxCube p {
  background-image: url(resources/objects/backgroundWoodDark.jpg);
  color: tan;
  font-size: .9vw;
  padding: .5vh;
}

#doubleNumber {
  font-size: 4vh;
  font-weight: bold;
  padding: .5vh;
}

.tray-dice {
  top: calc(var(--vh, 1vh) * 15);
}

#boxInstructions {
  top: calc(var(--vh, 1vh) * 30);
}

button {
  font-size: .75vw;
  height: 4vh;  
  margin: 1px;
  margin-bottom: calc(var(--vh, 1vh) * 1);
  position: relative;
  visibility: visible;
  text-align: center;
  width: 12vh;
}

#buttonHowTo {
  position: relative;
}

[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');  
}

#modalWinner {
  background: #a8e6cf;
  border: #2ab7ca 3vh ridge;
  display: none;
  height: 33%;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 66%;
  z-index: 12;
}

#modalWinnerX {
  background: #2ab7ca;
  color: #a8e6cf;
  font-size: 3vh;
  padding: .2vh;
  position: absolute;
  right: .5vh;
  text-align: center;
  top: .5vh;
  width: 3vh;
}

#modalWinnerText {
  color: #fe4a49;
  font-size: 7vh;
  font-weight: bolder;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

#warningLandscape {
  background: #2ab7ca;
  color: darkblue;
  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: #2ab7ca;
  }
  #frame-page {
    display: none;
  }
}