:root {
  touch-action: pan-x pan-y;
  height: 100%
}
* { margin: 0; padding: 0; }
@font-face { font-family: "SpecialElite"; src: url("fonts/SpecialElite.ttf"); }
@font-face { font-family: "DSEG7"; src: url("fonts/DSEG7.woff"); }
body { background-image: url('tile.png'); font-family: SpecialElite; }

#play {
  height: 25vh;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.ui {
  height: 90%;
  flex-basis: 20%;
}

#deck-wrap { flex-basis: 10%; }
#deck {
  height: 100%;
  aspect-ratio: 5 / 7;
  background-image: url('greg.png');
  background-size: 120%;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid #370003;
  font-size: 3.5em;
  text-align: center;
  overflow: hidden;
  line-height: 2.5em;
  border-radius: 10px;
  text-align: center;
  color: #44000d;
  text-stroke: 1px #c49151;
  -webkit-text-stroke: 1px #c49151;
}

#timer {
  flex-basis: 20%;
  padding-right: 10%;
  text-align: right;
  font-family: DSEG7;
  font-size: 4em;
  line-height: 2em;
  color: #bb0000;
  text-stroke: 1px #000;
  -webkit-text-stroke: 1px #000;
}

#current {
  height: 100%;
}

input { accent-color: #930416; transform: scale(1.5); margin: 5%; }

#settings {
  flex-basis: 10%;
  text-align: right;
  color: #eab64d;
  white-space: nowrap;
}


#helpqm { font-size: 5em; color: #fff; }
#helpqm:hover {
  font-size: 5em; color: #a32927;
  text-stroke: 1px #fff;
  font-weight: bold;
  cursor: pointer;
  -webkit-text-stroke: 1px #fff;
}

#help-modal {
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0; top: 0;
  z-index: 99;
  align-items: center;
  justify-content: center;
  background: none;
  display: none;
}

#help {
  width: 40%;
  padding: 1%;
  border: 1px solid black;
  color: #64000d;
  text-align: center;
  background-color: #c49151dd;
}

#help p { font-family: serif; padding: 2%; }
.smaller { font-size: 80%; }

#pass-wrap {
  flex-basis: 30%;
  position: relative;
}

#pass {
  text-align: center;
  color: #c49151;
  font-size: 2.5em;
  font-weight: bold;
  line-height: 4em;
  cursor: pointer;
  text-stroke: 2px #370003;
  -webkit-text-stroke: 1px #370003;
}
#pass span { font-size: 75%; }

.pile-card {
  background-image: url('greg.png');
  background-size: 120%;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  top: 0; left: 30%;
  height: 50%;
  aspect-ratio: 5 / 7;
  border: 1px solid #370003;
  border-radius: 6px;
  opacity: 0.66;
  z-index: -1;
}

#nb {
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  border: 2px solid #370003;
}

#port {
  background-image: url('sheet.png');
  background-size: 1000%;
  height: 80%;
  aspect-ratio: 6 / 7;
  position: relative;
}

#name {
  max-height: 20%;
  background-color: #eab64d;
  color: #000000bb;
  text-align: center;
  font-variant: small-caps;
  font-size: 1.2em;
  padding-top: 0.1em;
}

.dim { opacity: 0.33; }

#score { font-size: 4.6em; line-height: 2.3em; color: #e0e0e0; }
#outof { font-size: 1.5em; color: #a32927; }

#board {
  height: 75vh;
  display: flex;
  flex-wrap: wrap;
}

.series {
  display: flex;
  flex: 1;
  flex-basis: 30%;
  max-height: 12.5vh;
  border: 2px solid #370003;
  background-color: #64000dd0;
  margin: 0.3% 1%;
  position: relative;
}
.series:hover { background-color: #930416; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.series:hover .slabel { color: #eab64d; }

.slabel {
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  z-index: 1;
  overflow: hidden;
  font-size: 3em;
  text-align: right;
  padding-right: 5%;
  color: #a32927;
  line-height: 16vh;
  user-select: none;
  -webkit-user-select: none;
}
.slabel span {
  font-size: 33%;
  float: right;
}

.seat {
  z-index: 2;
  aspect-ratio: 6 / 7;
  min-height: 100%;
  margin: 0 auto;
  background-image: url('sheet.png');
  background-size: 1000%;
}

#ori-modal {
  z-index: 9999; display: none;
  position: fixed; top: 0; left: 0; bottom: 0; right: 0;
  overflow: auto;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  background-image: url('tile.png');
  color: #c49151;
  font-size: 2.5em;
}

#ori-modal * { margin: 2%; }

@media only screen and (orientation: portrait) {
  #ori-modal { display: flex; }
}
