@media screen and (max-height: 30rem) {
  :root {
    --header-height: 0.5rem;
  }

  #heading {
    display: none;
  }

  #tinyLogoWrapper {
    display: block;
  }
}

div.outer,
div.wrapper {
  min-width: auto;
}

.titleSection {
  font-weight: normal;
}

#message {
  font-size: 1.2rem;
}

#waveWrapper {
  position: relative;

  margin-top: 2rem;

  display: flex;
  width: 100%;
  max-width: min(100%, 24rem);
}

#startPercent {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

#beatWave {
  display: inline;
  background-color: var(--color-primary-fill);
}

.wave {
  width: 100%;
  height: 12rem;
}

#canvasWrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}

#doneButton,
#playButton {
  position: absolute;
  bottom: 0;
  right: 0.5rem;
}

#setupButton {
  position: absolute;
  bottom: 0;
  left: 0.5rem;
}

#setupEx {
  left: 0.8rem;
}

#detector {
  font-size: 0.8rem;
  position: absolute;
  right: 0.8rem;
}

#setupEx, #detector {
  bottom: -0.5rem;
  transform: translateY(100%);
}

#doneButton, #setupButton {
  height: 4rem;
  width: 6rem;
}

#tapWrapper {
  grid-column: 1 / span 7;
  grid-row: 5 / span 1;

  display: block;
  margin-left: auto;
  margin-right: auto;
}

#tapButton {
  margin-top: 1rem;
  border-radius: 50%;
  border-style: dotted;
  width: 9rem;
  height: 9rem;
  z-index: 998;
}

#tapButton.down {
  border-color: var(--color-primary-fill);
  background-color: var(--color-emphasis-fill);
}

#tapButtonImg {
  opacity: 0.8;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.5rem;
  filter: var(--filter-color-emphasis-text);
}

#formWrapper {
  position: absolute;
  top: 0;
  left: 0;
}

#detector.retracted,
#tapWrapper.retracted {
  display: none;
}

@media screen and (max-height: 35rem) and (min-width: 30rem) {
  #wrapper {
    flex-direction: row;
    justify-content: center;
  }
}
