.play {
  width: 100%;
  height: 100%;
}

.play .content {
  position: absolute;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.play .toolbar {
  background-color: coral;
  font-size: 32px;
  padding: 8px;
  color: #000;
}

.play .dial {
  width: 100%;
  height: 100px;
  flex: 100 100 0;

  /* Disable pinch-to-zoom, pull-to-refresh, etc. */
  touch-action: none;
  user-select: none;
}

/*
 * The scorebox is 4 tables side-by-side
 *
 *   scores | addRound | sums | names
 *
 * The scores and addRound table are in a horizontally-scrolling container.
 *
 * Behind the horizontally-scrolling container is a 5th table, selectedRound, that
 * contains the same data as the selected column in scores.
 */

.play .scorebox {
  width: 100%;
  display: flex;
  flex-direction: row;
}

.play .scrollbox {
  flex: 100 100 0;
  overflow-x: auto;
}

.play .scrollbox .box {
  display: grid;
}

.play .scrollbox .foreground, .play .scrollbox .background {
  grid-area: 1 / 1;
}

.play .scrollbox .foreground {
  display: flex;
  flex-direction: row;
}

.play .scrollbox .background {
  z-index: -1;
}

.play .scrollbox .selectedRound td {
  background-color: #000;
  color: transparent;
}

.play .addRound {
  flex: 100 100 0;
}

.play .scorebox table {
  border-spacing: 0;
  text-align: left;
}

.play .scorebox td, .play .scorebox th {
  padding: 6px 8px;
  min-width: 40px;
  font-size: 18px;
}

.play .animated {
  transition: background-color 300ms linear, transform 300ms ease-in, opacity 100ms ease-in;
}

.play .animatedFast {
  transition: background-color 300ms linear, transform 100ms ease-in, opacity 100ms ease-in;
}

.play .scorebox .number {
  text-align: right;
}

.play .scores tr:nth-child(even), .play .addRound tr:nth-child(even), .play .sums tr:nth-child(even), .play .names tr:nth-child(even) {
  background-color: #ffffff11;
}

.play .clickableCell {
  cursor: pointer;
}

.play .duckTop {
  transform: translateY(-100%);
}

.play .duckFade {
  opacity: 0;
}

.play .deltabox {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: flex;
  flex-direction: row;
  align-items: start;
}

.play .deltabox .name {
  margin: 20px 12px 12px 12px;
  font-size: 24px;
  color: #3f51b5;
  flex: 100 100 0;
}

.play .deltabox .math {
  margin: 20px 6px 12px 12px;
  font-size: 24px;
  color: #999;
}

.play .deltabox .total {
  margin: 12px 12px 12px 6px;
  font-size: 48px;
}

.play .menu {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;

  color: #ffffff;
  background-color: #000000cc;
  flex-direction: column;
  align-items: start;
  transition: opacity 100ms ease-in;
}

.play .openMenu {
  opacity: 1;
  visibility: visible;
}

.play .closedMenu {
  opacity: 0;
  visibility: hidden;
}
