* {
  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;
}

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 */
}

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

#trayPlayerTrays::-webkit-scrollbar {
  display: none;
}

#containerNotes {
  background: white;
  background-image: url(resources/objects/backgroundYellowedPaper.jpg);
  background-size: cover;
  border: #a4be91 calc(var(--vh, 1vh) *1) solid;
  height: calc(var(--vh, 1vh) * 98);
  overflow: auto;
  padding: calc(var(--vh, 1vh) * 1);
  right: calc(var(--vh, 1vh) * 2);
  outline: #54181b calc(var(--vh, 1vh) * 2) solid;
  position: absolute;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  width: calc(var(--vh, 1vh) * 50);
}

#notes {
  align-items: end;
  display: grid;
  font-family: Arial, Helvetica, sans-serif;
  grid-template-rows: 2fr 2fr 1fr 1fr 1fr 1fr 1fr 1fr 2fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 2fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr ;
  grid-template-columns: 6fr 1fr 1fr 1fr 1fr 1fr 1fr;
  height: calc(var(--vh, 1vh) * 96);
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(var(--vh, 1vh) * 45);
}

#notesHeader {
  grid-area: 1 / 1 / 1 / 8;
  font-size: calc(var(--vh, 1vh) * 3.5);
  text-align: center;
}

.heading {
  font-size: calc(var(--vh, 1vh) * 2);
  padding-bottom: .4vh;
}

.spaceNotes {
  height: 100%;
  font-size: calc(var(--vh, 1vh) * 1.5);
}

#notes input {
  background: none;
  border: none;
}

.item {
  padding-left: 2vh;
  padding-top: .5vh;
  align-self: end;
}

.border {
  border-top: 1px black solid;
  border-right: 1px black solid;
}

.bottom {
  border-bottom: 1px black solid;
}

input {
  height: 100%;
  position: relative;
  text-align: center;
  width: 100%;
}

#notes input:focus {
  background: white;
}

#trayLeft {
  background: #54181b;
  border: #a4be91 calc(var(--vh, 1vh) *1) solid;
  color: white;
  font-size: 1.75vw;
  height: calc(var(--vh, 1vh) * 98);
  left: calc(var(--vh, 1vh) * 1);
  overflow: hidden;
  position: absolute;
  top: calc(var(--vh, 1vh) * 1);
  width: calc(100vw - calc(var(--vh, 1vh) * 55));
}

#trayPlayerTrays::-webkit-scrollbar {
  display: none;
}

#trayPlayerTrays {
  height: calc(var(--vh, 1vh) * 90);
  overflow: auto;
  position: relative;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  width: 100%;
}

#trayTop {
  border: #54181b 2px solid;
  position: relative;
}

#logo {
  border: #54181b 1px solid;
  height: calc(var(--vh, 1vh) * 6);
  vertical-align: middle;
}

.header {
  border: black 1px solid;
  display: none;
  height: auto;
  font-size: calc(var(--vh, 1vh) * 4);
  padding: calc(var(--vh, 1vh) * .3);
  padding-left: 1vw;
  width: 100%;
}

[id^="cardsPlayer"] {
  border: black 1px solid;
  display: none;
  flex-wrap: wrap;
  float: left;
  height: auto;
  padding: calc(var(--vh, 1vh) * .5);
  position: relative;
  width: 100%;
}

[id^="handPlayer"] {
  border: black 1px solid;
  display: none;
  flex-wrap: wrap;
  float: left;
  height: auto;
  padding: calc(var(--vh, 1vh) * .5);
  position: relative;
  width: 100%;
}

#handUnsorted {
  display: none;
}
.card {
  background: white;
  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) * 20);
  margin: calc(var(--vh, 1vh) * .3);
  position: relative;
  width: calc(var(--vh, 1vh) * 13);
}

.card img {
  height: 100%;
  position: relative;
  width: 100%;
}

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


 .boxDeckNumber {
  align-items: center;
  background: #54181b;
  color: white;
  display: inline-flex;
  font-size: 1.75vw;
  height: calc(var(--vh, 1vh) * 6);
  justify-content: center;
  padding: calc(var(--vh, 1vh) * 1) calc(var(--vh, 1vh) * 2);
  position: relative;
  text-align: center;
  width: 15vw;
}

#boxDeckNumber0 {
  font-size: 4vw;
  display: block;
  height: auto;
  left: 50%;
  padding: calc(var(--vh, 1vh) * 2);
  position: absolute;
  text-align: center;
  top: 55%;
  transform: translate(-50%, 0%);
  width: auto;
}


#deckNumber, #deckNumber2 {
  border-radius: calc(var(--vh, 1vh) * 1);
  font-size: 1.5vw;
  font-weight: bold;
  margin-left: .5vw;
  padding: calc(var(--vh, 1vh) * .5);
  text-align: center;
  vertical-align: middle;
  width: 3.5vw;
}

#deckNumber {
  font-size: 3.5vw;
  width: 7vw;
}

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

#boxInstructions {
  display: inline;
  height: calc(var(--vh, 1vh) * 6);
  justify-content: right;
  position: absolute;
  right: calc(var(--vh, 1vh) * .4);
  width: calc(var(--vh, 1vh) * 48);
}

#boxInstructions button {
  cursor: pointer;
  float: right;
  font-size: .9vw;
  height: calc(var(--vh, 1vh) * 6);
  margin-left: calc(var(--vh, 1vh) * .5);
  position: relative;
  text-align: center;
  width: calc(var(--vh, 1vh) * 15);
  vertical-align: top;
}


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

#modalStart0 {
  padding-top: 10%;
}

#modalStart0 img {
  height: 45%;
  position: relative;
  width: auto;
}
#sp9 {display: none;}
#sp10 {display: none;}
#sp11 {display: none;}
#sp12 {display: none;}
#sp13 {display: none;}
#sp14 {display: none;}
#sp15 {display: none;}

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

.modalStartContent0 {
  height: 60%;
  top: 35%;
}

#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);
}

#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) * 80);
}

.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);
}

#modalStart0 button, #modalStart1 button, #modalStart2 button, #modalCardsInHand button {
  bottom: calc(var(--vh, 1vh) * 2);
  font-size: 1.3vw;
  height: calc(var(--vh, 1vh) * 6);
  left: 50%;
  position: absolute;
  transform: translate(-50%, 0%);
  width: 11vw;
}

.caretUp {
  transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
}

[id^="caret"] {
  display: inline-block;
}

#selectCardsInHand {
  height: auto;
  width: calc(var(--vh, 1vh) * 80);
  left: 50%;
  position: absolute;
  transform: translate(-50%, 0%);
}

#selectCardsInHand .card {
  float: left;
  height: calc(var(--vh, 1vh) * 15);
  margin: calc(var(--vh, 1vh) * .5);
  width: calc(var(--vh, 1vh) * 9.75);
}

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