.matrixContainer {
  display: flex;
  justify-content: center;
  width: 100%;
}

.matrixColumn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border: solid 0.1rem #111111;
  border-radius: 0.1rem;
  width: calc(100% / 7);
}

.MatrixBar {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.25rem;
  height: 2rem;
}

.MatrixBarEntity {
  background-color: #3f4144;
  color: #f0f0f0;
  border: solid 0.1rem #131313;
  border-radius: 0.15rem;
  font-size: 0.78rem;
  text-wrap: nowrap;
  transition: 0.15s all linear;
}

.MatrixBarEntity:hover {
  background-color: #666873;
}

select.MatrixBarEntity:hover {
  background-color: #3f4144;
}
select.MatrixBarEntity {
  padding-left: 0.2rem;
}

@media (min-width: 700px) {
  .matrixContainer {
    width: 75%;
    justify-content: center;
  }

  .matrixColumn {
    border: solid 0.1rem #111111;
    border-radius: 0.1rem;
    width: calc(100% / 7);
    align-items: center;
    height: -moz-fit-content;
    height: fit-content;
    padding-bottom: 0.9rem;
  }

  .MatrixBarEntity {
    background-color: #3f4144;
    color: #f0f0f0;
    border: solid 0.1rem #131313;
    border-radius: 0.15rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-wrap: nowrap;
    transition: 0.2s all linear;
    height: 100%;
  }
}

.matrixColumnHeader {
  width: 100%;
  height: 9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.matrixButtonContainerContainer {
  width: 100%;
  height: 65%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.3rem;
}

.matrixButtonContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  border: solid 0.1rem #111111;
  height: 2.3rem;
  width: 93%;
  background-image: -webkit-linear-gradient(90deg, #2a2a2c3b, #49494bc8);
}

.buttonComponent {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #080808;
  transition: 0.2s ease;
  border: solid 0.1rem #181818;
  font-size: 1.2rem;
  width: 90%;
  height: 2rem;
  font-family: "Times New Roman", Times, serif;
}

.romanNumeral {
  color: #f0f0f0;
  font-size: 1.2rem;
  font-family: "Times New Roman", Times, serif;
  margin: 0;
  padding: 0;
}

.romanNumeralHidden {
  display: none;
}

.toneOnColumn {
  font-family: "Times New Roman", Times, serif;
  font-size: 1.3rem;
  color: #f0f0f0;
  margin: 0;
  padding: 0;
}

.modeNameOnColumn {
  margin: 0;
  padding: 0;
  height: 17%;
  width: 87%;
  color: #f0f0f0;
  font-size: 0.8rem;
  text-decoration: underline;
  display: flex;
  justify-content: center;
  align-items: center;
}

.formulaOnColumn {
  width: 100%;
  display: none;
  color: #f0f0f0;
  font-size: 0.6rem;
  text-wrap: nowrap;
}

.buttonComponent:hover {
  background-color: #242424;
}

.buttonComponent:active {
  background-color: #3f3f3f;
}

.checkboxButtons {
  display: none;
}

.muteButton {
  display: none;
}

.muteButton:hover {
  background-color: #ff000097;
}

@media (min-width: 700px) {
  .matrixColumnHeader {
    height: 12rem;
    width: 100%;
  }
  .romanNumeral {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #f0f0f0;
    height: 3.2rem;
    width: 100%;
    font-size: 1.2rem;
    font-family: "Times New Roman", Times, serif;
  }
  .romanNumeralHidden {
    display: none;
  }

  .toneOnColumn {
    font-family: "Times New Roman", Times, serif;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 1.8rem;
    color: #f0f0f0;
  }

  .modeNameOnColumn {
    font-size: 1rem;

    height: 3rem;
    width: 90%;
    color: #f0f0f0;
    text-decoration: underline;
  }

  .formulaOnColumn {
    display: flex;
    justify-content: center;
    color: #f0f0f0;
    height: 1rem;
    width: 90%;
    font-size: 0.6rem;
    text-wrap: nowrap;
    margin: 0;
  }

  .matrixButtonContainerContainer {
    height: 60%;
    gap: 0.1rem;
  }

  .matrixButtonContainer {
    display: flex;
    justify-content: space-around;
    height: 2.5rem;
  }

  .buttonComponent {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #080808;
    transition: 0.2s ease;
    border: solid 0.1rem #181818;
    border-radius: 0.1rem;
    font-size: 1.1rem;
    width: 2.5rem;
    height: 2rem;
    font-family: "Times New Roman", Times, serif;
  }

  .buttonComponent:hover {
    background-color: #242424;
  }

  .buttonComponent:active {
    background-color: #3f3f3f;
  }

  .muteButton {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1e1c8788;
    height: 52%;
    width: 1.3rem;
    font-size: 0.9rem;
    transition: 0.2s ease;
    border: solid #121212 1px;
    border-radius: 0.1rem;
    padding: 0;
  }

  .muteButton:hover {
    background-color: #ff000097;
  }

  .checkboxButtons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 96%;
  }

  .checkbox {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    border-radius: 0.12rem;
    transition: 0.2s ease;
    width: 0.9rem;
    height: 0.6rem;
    background-color: #5a5e68bf;
    border: 0.1rem solid rgb(0, 0, 0);
    margin: 0;
  }

  .checkbox:checked {
    background-color: #489aedb7;
    box-shadow: 0px 0px 0.16rem 0.1rem #dacbcb9c;
  }

  .checkbox:hover {
    background-color: #ff000097;
  }
}

.Instrument {
  border: solid 0.2rem #0b0a0a;
  background: #0b0a0a;
  height: 13rem;
  width: 100%;
  margin: 0 auto;
  overflow-x: scroll;
  display: flex;
}

.GuitarBackground {
  height: 13rem;
  width: 96.6rem;
  background-image: url(/_next/static/media/Guitar_Neck_Img.0ace414a.webp);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-color: #0b0a0a;
}

.GuitarNeck {
  height: 13rem;
  width: 96.6rem;
}

.GuitarString {
  display: flex;
  align-items: center;
  height: calc(100% / 6);
}

.openStringNoteSelect {
  height: 90%;
  width: 4.2rem;
  font-size: 1rem;
  border: solid 0.1rem #58585a;
  border-radius: 0.15rem;
  color: #f0f0f0;
  background-color: #303338;
}

.fretsContainer {
  display: flex;
  height: 100%;
  width: 100%;
}

.fret {
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(100% / 25);
  height: 100%;
}

.fretHighlight {
  border: solid 0.1rem #3c3c3c;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 1rem;
  font-weight: 800;
  transition: 0.2s all linear;
}

.PianoBackground {
  height: 12.8rem;
  width: 96rem;
  border: #000000 0.1rem solid;
  background-image: url(/_next/static/media/Piano.2f0726de.webp);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-color: #0b0a0a;
}

.Piano {
  display: flex;
  flex-direction: row;
  justify-content: center;
  height: 93%;
  width: 95.7rem;
}

.pianoOctave {
  display: flex;
  flex-direction: row;
  justify-content: center;
  height: 100%;
  width: 19.9%;
}

.whiteKeyContainer {
  position: relative;
  width: 100%;
  height: 100%;
}

.whiteKey {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.blackKey {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 62%;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.instrumentButton {
  background-color: #3f4144;
  color: #f0f0f0;
  border: solid 0.1rem #121212;
  border-radius: 0.15rem;
  font-size: 0.9rem;
  font-weight: 500;
  width: 5rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  text-wrap: nowrap;
  transition: 0.5s ease;
}

.instrumentButtonsBar {
  align-self: flex-start;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
}

.instrumentButton:active {
  background-color: #8d909f;
}

@media (min-width: 700px) {
  .Instrument {
    width: 100%;
    height: 14.6rem;
  }

  .GuitarBackground {
    height: 100%;
    width: 100%;
  }

  .GuitarNeck {
    height: 100%;
    width: 100%;
  }

  .GuitarString {
    height: calc(14.6rem / 6);
  }

  .openStringNoteSelect {
    height: 65.5%;
    width: 4.6%;
    padding-left: 0.4rem;
    margin-left: 0.2rem;
  }

  .PianoBackground {
    height: 100%;
    width: 100%;
  }

  .Piano {
    justify-content: center;
    width: 100%;
  }

  .pianoOctave {
    display: flex;
    flex-direction: row;
    justify-content: center;
    height: 100%;
    width: 19.9%;
  }

  .whiteKeyContainer {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .whiteKey {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 35%;
  }

  .blackKey {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 70%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 45%;
  }

  .instrumentButton {
    background-color: #3f4144;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color: #f0f0f0;
    border: solid 0.1rem #121212;
    border-radius: 0.15rem;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    text-wrap: nowrap;
    transition: 0.5s ease;
  }

  .instrumentButton:hover {
    background-color: #666873;
  }

  .instrumentButton:active {
    background-color: #8d909f;
  }
}

.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%;
}

.bar {
  width: 100%;
  height: 1.5rem;
  border: solid 0.1rem #121212;
  border-radius: 0.15rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0b0a0a;
}

.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%;
  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%;
}

.dot {
  width: 1rem;
  height: 1rem;
  background: #9ca0df;
  border-radius: 50%;
  position: absolute;
  animation: moveDot linear infinite;
}

.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;
}

@keyframes moveDot {
  0% {
    left: 0;
  }
  50% {
    left: calc(100% - 1rem);
  }
  100% {
    left: 0;
  }
}

.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: 95%;
  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.5rem;
    height: 17.8rem;
  }

  .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;
  }
}

