* {
    box-sizing: border-box;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    margin:0 auto;
    padding:0;  
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10+ and Edge */
    user-select: none; /* Standard syntax */
    -webkit-user-drag: none;
  }
  
  input {
    -webkit-user-select: text; /* Chrome, Opera, Safari */
    -moz-user-select: text; /* Firefox 2+ */
    -ms-user-select: text; /* IE 10+ */
    user-select: text; /* Standard syntax */
  }
    

#framePage {
  background: #0b2539;
  height: calc(var(--vh, 1vh) * 100);
  padding: calc(var(--vh, 1vh) * 1);
  width: 100vw;
}

#trayLeft {
  display: grid;
  grid-template-rows: 1.5fr 1fr 1fr 1fr 5fr 16fr;
  grid-template-columns: 3.636363636vw 7.272727272vw 7.272727272vw 7.272727272vw 7.272727272vw 7.272727272vw ;
  height: calc(var(--vh, 1vh) * 98);
  outline: white 2px solid;
  position: absolute;
  left: calc(var(--vh, 1vh) * 1);
  width: 40vw;
}

.gridTL {
  background: white;
  border: white 1px solid;
  width: 100%;
}

.labelResources {
  align-content: center;
  background: #0b2539;
  color: white;
  display: flex;
  flex-wrap: wrap;
  font-size: calc(var(--vh, 1vh) * 2.75);
  justify-content: center;
}

.labelPlayers, .labelResourceCard, .labelResourceCards {
  align-content: center;
  background: #0b2539;
  color: white;
  display: flex;
  flex-wrap: wrap;
  font-size: calc(var(--vh, 1vh) * 2.75);
  justify-content: center;
}

.labelResourceCard, .labelResourceCards {
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.labelResourceCard {
  font-size: calc(var(--vh, 1vh) * 1.5);
}

.labelResourceCards {
  font-size: calc(var(--vh, 1vh) * 2.75);
}

.codeResources {
  align-content: center;
  color: #0b2539;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border: #0b2539 1px solid;
}

.trayResourceCard {
  background: white;
  border: #0b2539 1px solid;
  position: relative;
  width: 100%;
}
.trayResourceCard img {  
  height: auto;
  left: 50%;
  max-height: 90%;
  max-width: 90%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
}

.trayResourceCards {
  background: white;
  border: #0b2539 1px solid;
  grid-area: 6 / 2 / 7 / 7;
  overflow: auto;
  position: relative;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.trayResourceCards img {
  height: auto;
  margin: 1%;
  width: 18%;
}

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

#cardBuildingCosts {
  display: none;
  height: 82%;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -58%);
  width: auto;
  z-index: 10;
}

/* Right Tray */
#trayRightHolder {
  height: calc(var(--vh, 1vh) * 98);
  display: grid;
  grid-template-columns: 2.85vw 54.15vw;
  outline: white 2px solid;
  position: absolute;
  right: calc(var(--vh, 1vh) * 1);
  width: 57vw;
}

#labelTrayRight {
  align-content: center;
  background: white;
  color: #0b2539;
  display: flex;
  flex-wrap: wrap;
  font-size: calc(var(--vh, 1vh) * 2.75);
  padding-top: calc(var(--vh, 1vh) * 1);
  position: relative;
  text-align: center;
  text-orientation: upright;
  width: 100%;
  writing-mode: vertical-rl;
}

#buttonHowTo {
  align-content: center;
  background: lightgrey;
  bottom: 1vh;
  border: black 1px solid;
  display: flex;
  flex-wrap: wrap;
  font-weight: bold;
  height: calc(var(--vh, 1vh) * 5);
  justify-content: center;
  left: 50%;
  position: absolute;
  transform: translate(-50%, 0%);
  width: 2.5vw;
}

#trayRight {
  height: calc(var(--vh, 1vh) * 98);
  padding-left: calc(var(--vh, 1vh) * 1);
  width: 100%;
}

#trayRightBottom {
  border: white 1px solid;
  bottom: 0;
  display: none;
  height: max-content;
  margin-left: calc(var(--vh, 1vh) * -1);
  position: absolute;
  width: 95%;
}


#purchasedDevelopmentCards, #playedDevelopmentCards {
  float: left;
  min-height: calc(var(--vh, 1vh) * 17.9);
  max-height: calc(var(--vh, 1vh) * 35);
  overflow: auto;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  width: 66%;
}
#purchasedDevelopmentCards {
  border-right: white 1px solid;
}
#playedDevelopmentCards {
  border-left: white 1px solid;
  width: 34%;
}
#labelPurchasedDevelopmentCards, #labelPlayedDevelopmentCards {
  background: #0b2539;
  font-size: calc(var(--vh, 1vh) * 2);
  color: white;
  position: relative;
  text-align: center;
  width: 100%;
}

.developmentCard {
  background: #0b2539;
  background-image: url(resources/cards/cardsCatan/back.png);
  background-size: contain;
  float: left;
  height: calc(var(--vh, 1vh) * 14.9);
  margin: .5%;
  position: relative;
  width: calc(var(--vh, 1vh) * 10.5);
}

.developmentCard p {
  background: white;
  color: #0b2539;
  font-size: calc(var(--vh, 1vh) * 3.75);
  left: 50%;
  top: 80%;
  position: absolute;
  text-align: center;
  transform: translate(-50%, -42%);
  width: calc(var(--vh, 1vh) * 6);
}

#purchasedDevelopmentCards p, #playedDevelopmentCards p {
  bottom: 28%;
  font-size: calc(var(--vh, 1vh) * 2.25);
  left: unset;  
  position: absolute;
  right: 9%;
  top: unset;
  transform: none;
  width: calc(var(--vh, 1vh) * 2.5);
}

#deckDevelopmentCards img {
  display: none;
}

#deckDevelopmentCards {
  height: 100%;
  width: 100%;
}

.developmentCard img {
  float: left;
  height: calc(var(--vh, 1vh) * 14.9);
  margin: .5%;
  width: calc(var(--vh, 1vh) * 10.5);
}

/* Start modal */
#modalStart {
  background: #0b2539;
  display: none;
  display: block;
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 3;
}

#modalStartInner {
  background-image: url(resources/objects/backgroundWoodLightLarge.png);
  border: #44332c 2vh solid;
  color: #0b2539;
  font-size: calc(var(--vh, 1vh) * 2.5);
  height: 76vh;
  left: 50%;
  padding-top: calc(var(--vh, 1vh) * 5);
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(var(--vh, 1vh) * 85);
  z-index: 1;
}

#modalStartInner img {
  height: calc(var(--vh, 1vh) * 35);
}

#modalStartInner p {
  font-size: calc(var(--vh, 1vh) * 4); 
}

#modalStartInner button {
  display: block;
  font-size: calc(var(--vh, 1vh) * 3); 
  height: calc(var(--vh, 1vh) * 5);
  margin-top: calc(var(--vh, 1vh) * 4);
  text-align: center;
  width: calc(var(--vh, 1vh) * 15);
  position: relative;
}

.radio {
  display: inline;
  margin-left: calc(var(--vh, 1vh) * 5);
  margin-right: calc(var(--vh, 1vh) * 3);
  margin-top: calc(var(--vh, 1vh) * 4);
  transform: scale(2.5);

  -ms-transform: scale(2.5);
  -webkit-transform: scale(2);
  -o-transform: scale(2.5);
  -moz-transform: scale(2.5);
}

label {
  display: inline;
  float: left;
}

#boxDeckSelector {
  align-content: flex-end;
  color: #452925;
  display: flex;
  flex-wrap: wrap;
  font-size: calc(var(--vh, 1vh) * 4);  
  height: calc(var(--vh, 1vh) * 6);  
  justify-content: center;
  line-height: calc(var(--vh, 1vh) * 6);  
  width: calc(var(--vh, 1vh) * 25);  
}

#deckNumber {
  font-size: calc(var(--vh, 1vh) * 3);
  font-weight: bold;
  height: calc(var(--vh, 1vh) * 6); 
  text-align: center;
  vertical-align: middle;
  width: calc(var(--vh, 1vh) * 10);
}

#buttonRules {
  height: 80%;
  max-height: 100%;
  max-width: 100%;
  width: 80%;
}

#warningLandscape {
  background: #0b2539;
  color: white;
  display: none;
  font-size: calc(var(--vh, 1vh) * 8);
  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: #0b2539;
  }  
  #framePage {
    display: none;
  }
}


/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 3; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: calc(var(--vh, 1vh) * 100); /* Full height */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}


/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  height: 80%;
  width: auto;
  max-width: 700px;
}

/* Add Animation */
.modal-content {  
  -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;
}