#outer {
  --match-max-width: 7rem;
  min-height: auto;
}

.titleSection {
  font-weight: normal;
}

#matchStaffWrapper {
  width: 100%;

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

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

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

.match {
  background-color: var(--color-primary-fill);
  max-width: 7rem;

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

  flex: 2;
}

.guideHBeat {
  max-width: calc(var(--match-max-width) / 2);
}

.match.halfBeat {
  flex: 1;
}

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

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

  flex: 1;
}

.matchSpacer {
  flex: 0.3;
}

.matchSpacer.clef {
  flex: 0.1;
}

.matchSpacer.systemClassic {
  flex: 0.5;
}

.matchSpacer.appWords {
  flex: 0;
}

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

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

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

#playButton, #play2Button {
  width: 100%;
  height: 100%;
}

.playButtonIcon {
  pointer-events: none;
  box-sizing: border-box;
  padding: 25%;
  width: 100%;
}

.symbol {
  /*
  height: 4rem;
  min-height: 2rem;
  width: 6rem;
  min-width: 3rem;
  */
  width: 100%;

  opacity: 0.7;

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

.symbol.disabled {
  opacity: 0.2;
}

.symbolImg {
  max-width: 80%;
  max-height: 80%;
}

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

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

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

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

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

#rightButtons > .button {
  margin-left: 0.5rem;
}

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

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

.halfBeat > div > img.rhythmImgBox {
  padding-top: 40%;
  padding-bottom: 40%;
}

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

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

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

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

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

#matchStaffWrapper.retracted,
.retracted {
  display: none;
}
