* {
  box-sizing: border-box;
  font-family: "Red Hat Text", sans-serif;
}

.page {
  display: none;
}
.page.active {
  display: block;
}

.main {
  width: 600px;
  max-width: 100%;
  margin: 10px auto;
  text-align: center;
}

.board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 10px;
  width: 100%;
  height: 400px;
}
.board .category,
.board .tile {
  padding: 10px;
  border-radius: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-transform: uppercase;
  font-size: 20px;
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
}
@media only screen and (max-width: 620px) {
  .board .category,
  .board .tile {
    font-size: 16px;
  }
}
@media only screen and (max-width: 540px) {
  .board .category,
  .board .tile {
    font-size: 14px;
    padding: 6px;
  }
}
@media only screen and (max-width: 420px) {
  .board .category,
  .board .tile {
    font-size: 11px;
    padding: 4px;
  }
}
.board .category {
  grid-column: span 4;
}
.board .category h3,
.board .category p {
  font-size: 20px;
  margin: 0;
}
.board .tile {
  background: #ddd;
}
.board .tile.selected {
  background: #444;
  color: #fff;
}

input,
button, .button {
  display: inline-block;
  text-decoration: none;
  padding: 10px;
  border-radius: 3px;
  background: #eee;
  border: none;
  outline: none;
  font-size: 20px;
  margin: 5px;
  color: #000;
}
input.darker,
button.darker, .button.darker {
  background: #ddd;
}

button, .button {
  cursor: pointer;
}
button:hover, .button:hover {
  background: #ddd;
}
button:active, .button:active {
  background: #ccc;
}
button.darker:hover, .button.darker:hover {
  background: #ccc;
}
button.darker:active, .button.darker:active {
  background: #bbb;
}
button.red, .button.red {
  color: #a00;
}
button[disabled], .button[disabled] {
  opacity: 0.7;
  cursor: default;
  background: #ddd;
}
button[disabled]:hover, .button[disabled]:hover {
  background: #ddd;
}
button[disabled]:active, .button[disabled]:active {
  background: #ddd;
}

.guess-input {
  margin: 20px auto;
  margin-top: 0;
  text-align: center;
  width: 100%;
  padding: 18px;
  font-size: 24px;
  text-transform: uppercase;
}

.submit-button {
  display: block;
  margin: 10px auto;
  width: 50%;
  padding: 14px;
  text-transform: uppercase;
}
.submit-button:active:not([disabled]) {
  background: #ccc;
}

.subtitle-above {
  margin-top: 20px;
  margin-bottom: 5px;
  font-size: 22px;
  text-transform: lowercase;
  font-weight: 200;
  color: #888;
  text-align: center;
}

.team-name {
  margin-bottom: 0;
}

.team-score {
  margin-top: 0;
}

.yellow {
  background: #f9df6d;
}

.green {
  background: #a0c35a;
}

.blue {
  background: #b0c4ef;
}

.purple {
  background: #ba81c5;
}

.waiting-canvas {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  background: transparent;
  backdrop-filter: blur(1px);
}
.waiting-canvas.active {
  display: block;
}