html, body, .screens {
  width: 100%;
  height: 100%;
  overflow: clip;
}

body {
  background-color: #181818;
  color: #fff;
  margin: 0;
}

body, input {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
}

/* BoxView */

.boxView {
  position: relative;
  z-index: 0;
}

.boxView > * {
  width: 100%;
  height: 100%;
  position: absolute;
}

/* ToolbarView */

.roundsapp .toolbar {
  height: 48px;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
}

.roundsapp .toolbar .title {
  height: 48px;
  align-content: center;
  overflow-x: hidden;
}

.roundsapp .toolbar .title, .roundsapp .toolbar input[type=text] {
  font-size: 28px;
}

.roundsapp .toolbar .imageButton {
  width: 40px;
  height: 48px;
}

.roundsapp .toolbar input {
  background-color: transparent;
  border: none;
}

/* 'Design system' */

.onBrightBackground img {
  filter: invert(100%);
}

.onBrightBackground, .onBrightBackground input {
  color: #000000;
}

.onDarkBackground, .onDarkBackground input {
  color: #ffffff;
}

h3 {
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 400;
}

.fadeIn {
  animation: 300ms ease-in fadeIn;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* BigButtonView */

.bigButton {
  position: relative;
  width: fit-content;
}

.bigButton input {
  background-color: transparent;
  color: #ffffff;
  width: fit-content;
  border: 2px solid #ffffff44;
  border-radius: 10px;
  padding: 4px 24px;
  font-size: 20px;
  text-transform: uppercase;
  transition: color 100ms ease-in, border-color 100ms ease-in;
}

.bigButton input:disabled {
  border-color: #ffffff11;
}

.bigButton input:disabled.hiddenOverlay {
  color: #ffffff88;
}

.bigButton input:disabled.showingOverlay {
  color: transparent;
}

.bigButton .overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 100ms ease-in;
}

.bigButton img.hiddenOverlay {
  opacity: 0;
}

.bigButton img.showingOverlay {
  opacity: 1;
}

.bigButton img.spinning {
  animation: spin 1500ms linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* CursorOverlayView */

.cursorOverlayFadeIn {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 300ms linear;
}

.cursorOverlayFadeOut {
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms linear;
}

/* ToastBoxView */

.toastBox {
  display: flex;
  flex-direction: column-reverse;
  align-items: stretch;
  pointer-events: none;
}

.toast {
  background-color: #444444;
  animation: 3000ms ease-in-out 0s 1 normal toast;
  animation-fill-mode: forwards;
  margin: 8px 16px;
  padding: 16px;
}

.toast:first-child {
  margin-bottom: 48px;
}

.toast h3 {
  margin: 0 0 4px 0;
  color: #ffffff88;
  font-size: 24px;
  font-weight: 400;
}

.toast p {
  margin: 0;
  font-size: 18px;
}

@keyframes toast {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  10% {
    opacity: 1;
    transform: scale(1.0);
  }
  90% {
    opacity: 1;
    transform: scale(1.0);
  }
  100% {
    opacity: 0;
    transform: scale(0.95);
  }
}

/* Screens */

.screens *.enterFromRight {
  animation: 300ms ease-out 0s 1 normal enterFromRight;
  animation-fill-mode: forwards;
}

@keyframes enterFromRight {
  from {
    transform: translateX(100%);
  }
}

.screens *.enterFromLeft {
  animation: 300ms ease-out 0s 1 normal enterFromLeft;
  animation-fill-mode: forwards;
}

@keyframes enterFromLeft {
  from {
    transform: translateX(-100%);
  }
}

.screens *.exitToLeft {
  animation: 300ms ease-out 0s 1 normal exitToLeft;
  animation-fill-mode: forwards;
}

@keyframes exitToLeft {
  to {
    transform: translateX(-100%);
  }
}

.screens *.exitToRight {
  animation: 300ms ease-out 0s 1 normal exitToRight;
  animation-fill-mode: forwards;
}

@keyframes exitToRight {
  to {
    transform: translateX(100%);
  }
}

/** ColorCircleView */

.colorCircle {
  transition: opacity 100ms ease-in;
}

.openColorCircle {
  opacity: 1;
  pointer-events: auto;
}

.closedColorCircle {
  opacity: 0;
  pointer-events: none;
}

/* MenuBoxView */

.menuBox {
  background-color: #00000066;
  transition: opacity 100ms ease-in;

  display: flex;
  flex-direction: column;
  align-items: end;
}

.openMenuBox {
  opacity: 1;
  pointer-events: auto;
}

.closedMenuBox {
  opacity: 0;
  pointer-events: none;
}

.menu {
  display: flex;
  flex-direction: column;
}

.menu .toolbar, .menuItem {
  background-color: #181818;
}

.menuItem {
  height: 48px;
  color: #fff;

  text-transform: uppercase;
  font-size: 18px;
  font-weight: 400;
  padding: 0 16px;

  /* Vertically center text in the item. */
  display: flex;
  flex-direction: row;
  align-items: center;
}

.menuItem:hover {
  background-color: #2a2a2a;
}

/* GameSummaryView. */

.gameSummary {
  padding: 8px 16px;
}

.gameSummary:hover {
  background-color: #ffffff11;
  cursor: pointer;
}

.gameSummary h3 {
  margin: 0 0 4px 0;
  color: #444444;
}

.gameSummary h1 {
  margin: 0 0 4px 0;
  color: #fff;
  font-size: 24px;
  font-weight: 400;
}

.gameSummary p {
  margin: 0;
  font-size: 18px;
}

.gameSummary .playerGap {
  white-space: pre-wrap;
}

.gameSummary input[type=button] {
  color: #ffffff44;
  padding: 6px 12px;
  margin: 0 0 0 8px;
  border: 1px solid #ffffff22;
  border-radius: 5px;
  background-color: transparent;
  text-transform: uppercase;
  font-size: 18px;
}

.gameSummary input[type=button]:hover {
  background-color: #ffffff11;
  cursor: pointer;
}

/* Magazine theme. */

.magazine .toolbar input {
  background-color: transparent;
  color: #444444;
  border: none;
  flex: 0 0 auto;
  padding: 16px;
  text-transform: uppercase;
  font-size: 16px;
}

/* ShareScreen */

.share .chart {
  margin: 4px 20px 10px 20px;
}

.share h1 {
  margin: 10px 20px 4px 20px;
  color: #fff;
  font-size: 32px;
  font-weight: 400;
  text-align: center;
}

.share h3 {
  margin: 4px 20px 20px 20px;
  color: #444444;
  text-align: center;
}

/* ColumnView */

.columnEntry {
  width: 100%;
  position: absolute;
  pointer-events: none;
}

.columnEntry > * {
  pointer-events: auto;
}

.columnEntry > .columnEntryAnimated {
  transition: transform 300ms ease-in;
}

.columnEntry > .columnEntryFadeOut {
  transition: opacity 300ms ease-in;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
}

.columnEntry > .columnEntryFadeIn {
  animation: 300ms ease-in columnEntryFadeIn;
}

@keyframes columnEntryFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* WelcomeScreen */

.welcome .title {
  margin: 64px 0 12px 0;
  text-align: center;
  font-size: 36px;
}

.welcome .subtitle {
  margin: 12px 0 48px 0;
  text-align: center;
  font-size: 18px;
}

.welcome .narrowText {
  width: 250px;
  align-self: center;
  text-align: center;
}

.welcome .titleCover {
  background-color: #18181822;
  backdrop-filter: blur(5px);
}

.welcome .titleCoverFadeOut {
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms linear;
}

.welcome .playButton {
  opacity: 0;
}

.welcome .playButtonFadeIn {
  opacity: 1;
  transition: opacity 300ms linear;
}

.welcome .stepText {
  padding: 16px 0;
  font-size: 24px;
}

.welcome .bigButton {
  align-self: center;
  margin: 32px 0 64px 0;
}
