.controlPanel {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 8%;
}

.CPTextAndVolume {
  color: #f0f0f0;
  width: 100%;
}

.CPbuttonsContainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.CPButton {
  background-color: #3f4144;
  color: #f0f0f0;
  border: solid 0.1rem #121212;
  border-radius: 0.15rem;
  font-size: 80%;
  width: 49%;
  font-weight: 500;
  padding: 3%;
  text-wrap: wrap;
  transition: 0.5s ease;
}

.CPButton:hover {
  background-color: #666873;
}

.CPButton:active {
  background-color: #8d909f;
}

.volumeText {
  display: flex;
  font-size: 1.3rem;
  font-weight: 500;
  padding-bottom: 0.5rem;
  color: #f0f0f0;
}

.volumeSlider {
  width: 100%;
  height: 1.5rem;
  accent-color: #489aedb7;
}

.Metronome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  /*   width: 100%; */
  padding: 8%;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  right: 0;
}

.timeSignatureInput {
  font-size: 1rem;
  font-weight: 600;
  padding: 0.15rem;
  width: 25%;
  color: #f0f0f0;
  background-color: #303338;
  border: solid 0.1rem #121212;
  border-radius: 0.15rem;
  text-align: center;
  /*   user-select: none;
  pointer-events: none; */
}

.tempoLabel {
  /*BPM label*/
  font-size: 1rem;
  font-weight: 600;
  color: #f0f0f0;
  margin-top: 3%;
  margin-bottom: 3%;
}

.BPMRow {
  /*The row containing pluss/minus buttons and BPM input*/
  /* border: solid 0.1rem #00ff26; */
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.tempoInput {
  /*BPM input field*/
  font-size: 1.3rem;
  font-weight: 600;
  padding: 0.5rem;
  width: 34%;
  height: 1.3rem;
  color: #f0f0f0;
  background-color: #303338;
  border: solid 0.1rem #121212;
  border-radius: 0.15rem;
  text-align: center;
}

.metronomeButton {
  /*pluss/minus buttons*/
  background-color: #3f4144;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #f0f0f0;
  border: solid 0.1rem #121212;
  border-radius: 0.15rem;
  font-size: 1.1rem;
  font-weight: 700;
  width: 25%;
  padding: 0.5rem;
  text-wrap: nowrap;
  transition: 0.15s all linear;
}

.metronomeButton2 {
  /*tap/onOff buttons*/
  background-color: #3f4144;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #f0f0f0;
  border: solid 0.1rem #121212;
  border-radius: 0.15rem;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem;
  width: 45%;
  text-wrap: nowrap;
  transition: 0.15s all linear;
}

.tempoInput::-webkit-outer-spin-button,
.tempoInput::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.metronomeButtons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}

.hidden {
  display: none;
}

.tempoSlider {
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 1rem;
  accent-color: #489aedb7;
}

.metronomeButton:hover {
  background-color: #666873;
}

.metronomeButton:active {
  background-color: #8d909f;
}
.metronomeButton2:hover {
  background-color: #666873;
}

.metronomeButton2:active {
  background-color: #8d909f;
}

.beatAndSoundSelectorBar {
  margin-top: 1rem;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 1rem;
  width: 100%;
}

.beatSelector,
.soundSelector {
  background-color: #3f4144;
  border: solid 0.1rem #121212;
  padding: 0.3rem;
  font-size: 1rem;
  color: #f0f0f0;
  border-radius: 0.15rem;
  transition: 0.15s all linear;
}

.barContainer {
  width: 100%;
  height: 1.9rem;
  border: solid 0.1rem #121212;
  border-radius: 0.15rem;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background-color: #0b0a0a;
  padding-left: 1rem;
  padding-right: 1rem;
}

button.bar {
  transition: all 0.2s ease;
  color: #f0f0f0;
  border: solid 0.1rem #121212;
  border-radius: 0.15rem;
  padding: 0.5rem;
  cursor: pointer;
  height: 90%;
}

button.bar.stateA {
  background-color: #666873;
  color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
}

button.bar.stateB {
  background-color: #3f4144;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
}

button.bar.active {
  box-shadow: 0px 0px 0.2rem 0.1rem red inset;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
}

button.bar.active.stateA {
  box-shadow: 0px 0px 0.2rem 0.1rem red inset;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
}

button.bar.active.stateB {
  box-shadow: 0px 0px 0.2rem 0.1rem red inset;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
}

button.bar:hover {
  opacity: 0.8;
}

.appMain {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 91vh;
  width: 99%;
  ::-webkit-scrollbar {
    display: none;
  }
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.InstrumentTop {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.MatrixAndControlpanelTop {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 95%;
  height: 39rem;
}

.MatrixTop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  gap: 0.6rem;
}

.ControlPanelTop {
  display: none;
}

.MetronomeTop {
  display: none;
}

@media (min-width: 700px) {
  .appMain {
    width: 87%;
    height: 98vh;
    margin-left: 12.3rem;
  }

  .InstrumentTop {
    width: 107.7rem;
  }

  .ControlPanelTop,
  .MetronomeTop {
    display: block;
    border: solid 0.1rem #111111;
    border-radius: 1px;
    width: 22%;
    margin-top: 2.7rem;
  }

  .MatrixAndControlpanelTop {
    padding-bottom: 1rem;
    width: 107.5rem;
    align-items: flex-start;
  }
}

