@font-face {
  font-family: Atkinson;
  src: url('fonts/AtkinsonHyperlegibleNext-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: Atkinson;
  src: url('fonts/AtkinsonHyperlegibleNext-ExtraBold.woff2') format('woff2');
  font-weight: 900;
  font-style: bold;
}

body {
  --board-black: #54676d;
  --highlight: hsl(60, 100%, 70%);

  font-size: 24px;
  font-family: Helvetica, sans-serif;
  color: white;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(to right, #303035 0%, #354040 30%, #303035 100%);
}

.invisible {
  visibility: hidden;
}

#status-message {
  background-color: hsla(0, 100%, 50%, 0.8);
  margin: 1rem;
  padding: 1rem;
  text-shadow: none;
}

ul {
  list-style-type: disc;
}

li {
  margin-bottom: 0.5em;
}

button {
  font-family: Helvetica, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 36px;
  cursor: pointer;
  padding: 0.25em;
  border-style: solid;
  border-width: 2px;
  border-radius: 1em;
  border-color: white;
  color: white;
  background-color: hsl(343.2, 92.5%, 47.1%);
  min-width: 5em;
}

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

a:link {
  color: white;
  font-weight: 700;
}

a:visited {
  color: #ddd;
}

#version-info {
  position: absolute;
  right: 1.5em;
  top: 1.5em;
  font-size: 0.5em;
  color: #666;
}

.hidden {
  opacity: 0;
  transition: opacity 1s;
  display: none;
}

.game-stage {
  justify-content: center;
  gap: 16px;
  width: 100%;
  flex-grow: 1;
  font-size: 60px;

  display: flex;
  flex-direction: row;
}

#main-controls {
  top: 4px;
  left: 4px;
  position: fixed;
}

.controls {
  text-align: center;
}

.info-container {
  width: 35%;
}

.info {
  position: fixed;
  font-size: 24px;
  font-family: Helvetica;
  width: 35%;
  height: 100vh;
  overflow-y: scroll;
}

.info section {
  padding: 1em;
  border-radius: 16px;
}

.info section.instructions {
  border: dashed 4px white;
}

.info section.mission {
  background-color: hsla(0, 0%, 100%, 0.1);
}

.info section h2,h3 {
  margin-top: 0.125em;
}

.title {
  font-size: 60px;
}

.board {
  cursor: url('images/fly-resting.svg') 0 70, pointer;
  max-width: 640px;
}

.board.playing {
  cursor: url('images/fly-singing.svg') 0 70, pointer;
}

.axis {
  font-size: 24px;
}

.rate-axis .tick line {
  stroke-width: 2;
  stroke: #343;
}

.pitch-axis .tick {
  stroke: hsla(0, 0%, 100%, 0.33);
}

.pitch-axis .tick.highlight {
  /* stroke: var(--highlight); */
  /* fill: var(--highlight); */
}

.pitch-axis text {
  fill: #fff;
  stroke: none;
}

.pitch-axis .tick.highlight text {
  font-weight: bold;
}

.zone text {
  font-family: Atkinson;
  font-size: 300px;
  font-weight: bold;
  fill: white;
}

h1, h2, h3 {
  font-family: Atkinson, Helvetica;
}

.central-modal-container {
  position: fixed;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#central-modal {
  pointer-events: initial;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: hsla(0, 0%, 100%, 1);
  color: #333;
  padding: 1em;
  border-radius: 16px;
}

#central-modal.hidden {
  display: none;
}

#central-modal button {
  font-size: 24px;
  background-color: #333;
  margin-top: 1em;
}

.goal.complete {
  text-decoration: line-through;
}

@media all and (max-height: 568px) {
  body {
    font-size: 18px;
  }
  .info {
    font-size: 18px;
  }
}
