html, body {
  margin: 0;
  padding: 0;
}
#game-ui {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
}
#game-header {
  flex-shrink: 0;
  color: white;
  background: rgba(0,0,0,0.6);
}
#game-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100vw;
  height: calc(100vh - var(--header-height, 0px) - var(--bottom-nav-height, 0px));
  height: calc(100dvh - var(--header-height, 0px) - var(--bottom-nav-height, 0px));
  overflow: hidden;
}

canvas#gameCanvas {
  display: block;
  margin: 0 auto;
  touch-action: none;
}
.flexy-container {
  display: flex;
  gap: 2em;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.leaderboard {
  min-width: 200px;
  max-width: 260px;
  flex: 1 0 220px;
  border-radius: 9px;
  padding: 1em;
  margin-bottom: 0;
}
.instructions {
  flex: 2 1;
  min-width: 220px;
  padding: 1em 0 1em 1em;
  margin: 10px;
}
@media (max-width: 700px) {
  .flexy-container {
    flex-direction: column;
    gap: 1.2em;
    align-items: stretch;
    text-align: center;
  }
  .instructions {
    padding: 1em 0 0.5em 0; 
    max-width: 100%;
    min-width: 0;    
    width: 100%;
    box-sizing: border-box;
  }
  .leaderboard {
    max-width: 100%;
  }
}

.content-container, .affiliate-desc, .affiliate-note {
    color: #1f3b57;
}
html.dark-mode .content-container {
    color: #fff;
}
html.dark-mode .affiliate-desc {
    color: #fff;
}
html.dark-mode .affiliate-note {
    color: #fff;
}