body {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #EFE6DD;
  font-family: 'Trebuchet MS', sans-serif;
  letter-spacing: 0.05em;
}

#container {
  border: 10px #231F20 solid;
  display: inline-block;
}

#videoElement {
  display: none;
}

#displayCanvas {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  aspect-ratio: auto;
}

.mainLayout {
  display: flex;
  gap: 10px;
  flex-direction: column;
}

.headerTitle {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.toggles {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.statsRow {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.statBox {
  display: flex;
}

.bottomNote {
  position:absolute;
  bottom:10px;
  width:100%;
  text-align: center;
  color: rgb(81, 81, 81);
}

#touchOverlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30vw;
  color: rgb(145, 19, 19);
  opacity: 0;
  transition: opacity 0.1s ease-in;
  pointer-events: none;
  user-select: none;
}

/* switch */

.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.switch-label {
  user-select: none;
}

.switch-track {
  position: relative;
  width: 36px;
  height: 20px;
}

.switch-track input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.switch-thumb {
  position: absolute;
  inset: 0;
  border: 2px solid black;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  transition: background 0.25s ease;
  cursor: pointer;
}

.switch-thumb::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 14px;
  height: 14px;
  background: rgb(255, 255, 255);
  border-radius: 50%;
  transition: transform 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.switch-track input:checked + .switch-thumb {
  background: #f0d586;
}

.switch-track input:checked + .switch-thumb::after {
  transform: translateX(16px);
}