* {
  box-sizing: border-box;
}

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

#heading {
  grid-column: 1 / span 7;
}

#messageWrapper {
  height: 3rem;

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

#message {
  font-size: 1.2rem;
}

#beepWrapper {
  width: 100%;
  padding-bottom: 0;
  padding-top: 0;

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

#beepButton,
#buzzButton {
  height: 5rem;
  width: 8rem;

  margin: 0.5rem;
}

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

#wave {
  position: absolute;
  top: 0;
  transform: translateY(-100%);

  width: 16rem;
  max-width: 100%;
  height: 1.5rem;
  padding-top: 0;
  padding-bottom: 0;

  display: flex;
}

#setupWrapper {
  margin-top: 0;
  width: 100%;
  max-width: 50rem;
  height: calc(100% - 6rem); /* top margin */

  display: flex;
  align-items: start;
  justify-content: start;
  flex-direction: column;
}

#typeWrapper {
  width: 100%;
}

.typeButton {
  width: 3rem;
  height: 3rem;
  margin-right: 0.5rem;
}

img.typeImg {
  pointer-events: none;
  width: 100%;
  height: 100%;
}

#volumeWrapper {
  margin-top: 2rem;
  margin-left: auto;
  max-width: 20rem;
  height: calc(100% - 3rem - 2.2rem - 2rem); /* hz, type, top margin */

  display: flex;
  align-items: center;
  flex-direction: column;
}

#volumeSlider {
  margin-bottom: 0;
  padding: 0;
}

#envelopeWrapper {
  margin-top: 0;
  height: calc(100% - 2rem); /* volume */
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
}

#envelope {
  width: 100%;
  max-height: 100%;
  stroke: var(--color-primary-text);
  stroke-width: 0.6%;
  background-color: var(--color-primary-fill);
  border: 0.12rem solid var(--color-primary-border);
  cursor: pointer;
}

#needle {
  stroke: var(--color-emphasis-fill);
  stroke-width: 2%;
  pointer-events: none;
}

#attack {
  stroke: var(--color-primary-text);
}

.eLine {
  pointer-events: none;
  stroke-linecap: round;
}

.eMoving {
  pointer-events: none;
  stroke: var(--color-emphasis-fill);
  stroke-width: 2%;
  fill: var(--color-transparent);
}

.eMoving.invisible {
  visibility: visible;
  stroke-width: 0.1%;
  stroke: var(--color-primary-text);
  fill: var(--color-emphasis-fill);
  fill-opacity: 0.2;
}

#durW {
  width: 100%;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
}

.durArrows, #durPM {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.durArrow {
  position: relative;
  width: 100%;
  height: 0.08rem;
  background-color: var(--color-primary-text);
  display: flex;
  opacity: 0.7;
}

#arrHeadR, #arrHeadL {
  --width: 0.5rem;
  position: absolute;
  top: calc(-1 * var(--width) + 0.04rem /* 0.5 .durArrow height */);
  width: var(--width);
  height: var(--width);
  border-bottom: 0.12rem solid var(--color-primary-text);
}

#arrHeadR {
  right: -0.04rem; /* 0.5 .durArrow height */
  border-right: 0.12rem solid var(--color-primary-text);
  transform: rotate(-45deg);
  transform-origin: bottom right;
}

#arrHeadL {
  left: -0.04rem; /* 0.5 .durArrow height */
  border-left: 0.12rem solid var(--color-primary-text);
  transform: rotate(45deg);
  transform-origin: bottom left;
}

#durSecs {
  white-space: nowrap;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

#durMinus, #durPlus {
  width: 4rem;
  height: 2rem;
  margin-top: 0.5rem;
  margin-left: 0.25rem;
  margin-right: 0.25rem;

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

#hzSlider {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

#hzText {
  margin-left: 0.5rem;
  white-space: nowrap;
}
