#outer {
  min-height: auto;
  min-height: 100dvh;
}

.titleSection {
  font-weight: normal;
}

#appWrapper.appWords {
  max-width: 40rem;
}

#messageWrapper {
  height: 3rem;

  display: flex;
  justify-content: center;
  align-items: center;
}

#message {
  font-size: 1.2rem;
}

.rhythmWrapper {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
}

#staff {
  position: relative; /* for guideBar */
  width: 100%;

  background-color: var(--color-primary-fill);

  display: flex;
  align-items: center;
  justify-content: center;
}

#playButton {
  margin-left: 1rem;
}

.box {
  width: 100%;

  background-color: var(--color-primary-fill);

  display: flex;
  align-items: stretch;
  justify-content: center;

  flex: 2;
}

.box.blankAfterOneBeatRhythm {
  flex: 0;
  width: 0;
}

.box.halfBeat {
  flex: 1;
}

.box.halfBeat.hbi {
  flex: 2;
}

.box.halfBlank.hbi {
  flex: 0;
}

.boxFixer {
  /* height: 100%; */
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 1;
}

.boxSpacer {
  flex: 0.3;
}

.boxSpacer.clef {
  flex: 0.1;
}

.boxSpacer.systemClassic {
  flex: 0.5;
}

.boxSpacer.appWords {
  flex: 0;
}

.box.checking {
  cursor: default;
  pointer-events: none;
  border: none;
  border-bottom: 0.12rem solid var(--color-secondary-text);
}

.hbi.halfBeat > .boxFixer > img.rhythmImgBox {
  transform: translateX(25%);
}

.hbi.halfBeat > .boxFixer > svg.svgWords {
  transform: translateX(50%);
  background-color: transparent; /* else covers next */
}

.halfBlank > .bgLine,
.halfBlank > .bgStaff {
  /* Hack because the 1x8n in 1x4nd1x8n is twice the size and shifted left, so the bar lines would overlap and be darker */
  visibility: hidden;
}

#animalsWrapper {
  margin-top: 1rem;
  width: 60%;
  max-width: 60%;
  min-width: 14rem;

  display: grid;
  grid-gap: 0.5rem;
  grid-template-columns: 1fr 1fr;
}

.animal {
  width: auto;
  height: auto;

  margin: 5%;

  display: flex;
  justify-content: center;
  align-items: center;
}

.animal.checking {
  box-shadow: 0 0.2rem 0 0 var(--color-secondary-text);
}

button.checking > img {
  filter: var(--filter-color-primary-text);
}

img.animalIcon {
  pointer-events: none;
  box-sizing: border-box;
  width: 100%;
  padding: 20%;
}

#buttonWrapper {
  width: 100%;
  margin-top: 2rem;

  display: grid;
  grid-gap: 0.5rem;
  grid-template-columns: auto auto;
}

#rightButtons {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-end;
}

#setupButton {
  margin-bottom: 0.5rem;
}

#doneButton, #nextButton {
  margin-left: 0.5rem;
  height: 4rem;
  width: 6rem;
}

#doneButton.down {
  background-color: var(--color-emphasis-border);
}

#setupEx {
  bottom: -1rem;
}

@media screen and (min-width: 0) and (max-width: 640px) {
  .box {
    margin-left: 0.1rem;
    margin-right: 0.1rem;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
  }

  .boxSpacer, .boxSpacer.systemClassic {
    flex: 0;
  }

  .systemClassic > .rhythmImgBox {
    padding: 20%;
  }
}

@media screen and (min-width: 640px) and (max-width: 1024px) {
  .boxSpacer, .boxSpacer.systemClassic {
    flex: 0;
  }
}

@media screen and (min-width: 1024px) {
  .boxSpacer, .boxSpacer.systemClassic {
    flex: 0;
  }
}

.retracted {
  display: none;
}
