* {
  box-sizing: border-box;
}

#appWrapper {
  padding-top: 0;
}

#messageWrapper {
  min-height: 2rem;
}

#volW {
  width: 100%;
  margin-bottom: 1rem;

  display: flex;
  justify-content: flex-end;
}

.volumeSlider {
  max-width: 24rem;
  height: 1.4rem;
  min-height: 1.4rem;
  max-height: 1.4rem;
}

.sliderFull {
  height: 1rem;
}

img.volumeIcon {
  height: 1rem;
  width: 1rem;
}

#topW, #midW, #readyW {
  position: relative; /* for .head */
  width: 100%;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

#topW {
  justify-content: flex-start;
}

#readyW {
  justify-content: flex-end;
}

#midW {
  flex-direction: column;
}

#buttonW {
  width: 100%;
  display: flex;
}

#controlW {
  width: 100%;
  margin-top: 0.5rem;
  display: flex;
}

.icon, .nums, .iconNums {
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon {
  width: 3rem;
  /* same as .noEmph */
  height: 3rem;
}

.icon > img {
  width: 75%;
  pointer-events: none;
}

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

#addW {
  width: 100%;
  display: flex;
  justify-content: center;
}

#control {
  position: relative; /* for needle */
  width: 100%;
  display: flex;
  flex-direction: column;
}

.track, .trackNums, .bar, .barNums, .beat, .beatNums, .noEmph, .noEmphNum, .firstEmph, .firstEmphNum {
  width: 100%;
  display: flex;
}

.trackNums, .iconNums {
  height: 2rem;
}

.beat {
  align-items: center;
}

.beatNums {
  align-items: flex-end;
}

.noEmph, .firstEmph {
  height: 3rem;
  align-items: center;
}

.firstEmph, .firstEmphNum {
  background-color: var(--color-primary-fill);
}

.switch, .switchNums {
  width: 85%;
  max-width: 3rem;
  display: inline;
}

.switch {
  cursor: pointer;
  height: 2.4rem;
  background-color: var(--color-primary-fill);
  border: 0.12rem solid var(--color-emphasis-border);
}

#trackW.checking > .track > .bar > .beat > div > .switch {
  cursor: auto;
  pointer-events: none;
}

.switch.on {
  background-color: var(--color-emphasis-border);
}

.switch.check {
  border-color: var(--color-secondary-text);
}

.switchNums {
  text-align: center;
  margin-top: 0.3rem;
}

#readyB {
  height: 4rem;
  width: 6rem;
}

#playAB, #stopAB {
  margin-top: 0.5rem;
  min-width: 10rem;
  max-height: 2.6rem;
}

#setupB > .clean > div > img.buttonIcon,
#stopAB > .clean > div > img.buttonIcon,
#playAB > .clean > div > img.buttonIcon {
  max-height: 80%;
}

#stopQB {
  position: relative; /* for fringe */
}

#fringe {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border: 0.12rem solid var(--color-primary-border);
}

#needle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1%;
  background-color: var(--color-emphasis-fill);
  opacity: 0.66;
}

#needle.short {
  height: 2rem;
  bottom: auto;
}

#stopQB.emphasis > #fringe {
  border: 0.12rem solid var(--color-emphasis-fill);
}

@media (prefers-reduced-motion) {
  #fringe {
    display: none;
  }
}

#setupB {
  height: 3rem;
  width: 4rem;
}

.head {
  position: absolute;
  top: 0;
  left: 0;

  font-size: 1.4rem;

  display: flex;
  align-items: center;
}

.headNum {
  font-size: 2rem;
  margin-right: 0.5rem;
  display: none;
}

#head1 {
  position: static;
  margin-right: 1rem;
}

#head2 {
  position: static;
  justify-content: center;
}

#midW.checking > #midHeadW > #head2 > .headText {
  color: var(--color-secondary-text);
  font-weight: bold;
}

#head3 {
  position: static;
  margin-right: 1rem;
}

.triplet.retracted,
.trackNums.retracted {
  display: none;
}
