* {
  box-sizing: border-box;
  font-family: monospace;
}

html {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
}

body {
  font-family: sans-serif;
  background: #f0fff0;
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

.table-container {
  margin: 0 auto;
  text-align: center;
  padding: 1rem;
}

table {
  display: block;
  overflow-x: auto;
  text-align: center;
  border-collapse: collapse;
  width: fit-content;
  max-width: 100%;
}

th,
td {
  min-width: 2rem;
}

table,
th,
tr,
td {
  border: 1px solid black;
}

tr:nth-child(even) {
  background: #ccc;
}
tr:nth-child(odd) {
  background: #fff;
}

th {
  background-color: rgba(248, 242, 242, 0.9);
}

#payoutsScreen {
  position: absolute;
  height: 100vh;
  width: 100vw;
  background: rgba(248, 242, 242, 1);
  z-index: 100;
  transition: all 0.25s ease-in-out;
  text-align: center;
}

#payout-table {
  margin: 0 auto;
}

img {
  width: inherit;
  object-fit: scale-down;
}

.screenOn {
  transform: translateX(0);
}

.screenOff {
  transform: translateX(-100vw);
}

h1 {
  text-align: center;
  font-size: 3rem;
  margin: 0 0 16px 0;
}

.grid-container {
  width: 80vw;
  text-align: center;
  margin: auto;
  margin-bottom: 5px;
  background: lightgray;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 0.3rem solid black;
}

.rect {
  fill: lightsteelblue;
  z-index: 1;
}

.rect-group:hover .rect {
  stroke: orange;
  cursor: cell;
}

.rect:hover {
  cursor: cell;
}

.text:hover {
  cursor: cell;
}

.selected {
  fill: violet;
}

.drawn {
  stroke-width: 1.5;
  stroke: red;
}

.controls {
  text-align: center;
  margin: auto;
  margin-bottom: 0.25rem;
}

button {
  border: none;
  background-color: transparent;
  outline: none;
  cursor: pointer;
}

.button-play {
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  outline: none;
  padding: 0.5rem;
  margin: 0.5rem 0.5rem;
  background: crimson;
  color: white;
  border-radius: 50%;
  border: black 0.25rem solid;
  box-shadow: 2px 4px #999;
}

.button-play:active {
  background: wheat;
  transform: translateY(4px);
}

.button-payouts-close {
  font-size: 0.9rem;
  font-weight: bold;
  padding: 0.25rem;
  margin: 1rem 0.5rem;
  background: rgb(147, 223, 248);
  border: black 0.1rem solid;
  box-shadow: 2px 4px #999;
}

.button-payouts,
.button-clear,
.button-quick {
  font-size: 0.9rem;
  font-weight: bold;
  padding: 0.25rem;
  margin: 1rem 0;
  margin-right: 0.25rem;
  background: rgb(147, 223, 248);
  border: black 0.1rem solid;
  box-shadow: 2px 4px #999;
}

.button-payouts:active,
.button-clear:active,
.button-quick:active {
  transform: translateY(4px);
}

.info-container {
  border: 0.1rem solid black;
  border-radius: 0.2rem;
  width: 95vw;
  margin: auto;
  border: 0.4rem solid black;
}

.info-panel {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.info-credits,
.info-drawn,
.info-matches,
.info-selected {
  height: 2rem;
  padding: 0.5rem;
}

.info-drawn,
.info-selected {
  height: 5rem;
}

.info-credits,
.info-drawn {
  background: rgba(248, 242, 242, 0.9);
}

.info-message {
  width: 100%;
  text-align: center;
  color: white;
  background: rgb(41, 78, 109);
  padding: 0.5rem 0rem;
  border-bottom: 0.1rem solid black;
}

.notes {
  text-align: center;
}

.payouts-active {
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: red;
}

.payouts {
  position: absolute;
  top: 0;
  left: 0;
  height: 0vh;
  width: 0vw;
  background: red;
}

.button-play:disabled,
.button-quick:disabled,
.button-clear:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

@media only screen and (min-width: 601px) {
  h1 {
    font-size: 2.5rem;
  }

  /* #payoutsScreen {
    width: 50vw;
  }

  .screenOff {
    transform: translateX(-50vw);
  } */

  .grid-container {
    max-width: 28rem;
    border: 0.25rem solid black;
  }

  .button-play {
    font-size: 1rem;
    padding: 0.5rem;
    margin: 0.25rem 0.25rem;
  }

  .button-payouts,
  .button-clear,
  .button-quick {
    font-size: 0.8rem;
    padding: 0.5rem;
    margin: 0.5rem 0.25rem;
  }

  .info-message {
    padding: 0.25rem 0rem;
    border-bottom: 0.1rem solid black;
  }

  .info-container {
    width: 36rem;
    margin: auto;
    border: 0.2rem solid black;
  }

  .info-panel {
    font-size: 1rem;
  }

  .info-credits,
  .info-drawn,
  .info-matches,
  .info-selected {
    height: 24px;
    padding: 0.25rem;
  }

  .info-drawn,
  .info-selected {
    height: 64px;
  }
}
