html,
body {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-family: sans-serif;
  height: 100vh;
  background: #16161D;
  color: white;
}
body {
  display: flex;
  flex-direction: row;
}
nav {
  flex: 1 1;
}
ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
main {
  flex: 3 1;
  padding: 0 1rem;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}
h2 {
  margin: 2rem 0 0.5rem 0;
}
nav ul {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(12, 1fr);
  grid-gap: 0.5rem;
  height: 100%;
  font-size: 1.5rem;
}
nav ul li {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
nav ul li:hover,
nav ul li:active {
  box-shadow: 0px 0px 10px black;
  z-index: 10;
}
main ul {
  display: flex;
  flex-direction: row;
  overflow: hidden;
  border-radius: 0.25rem;
}
li[data-note] {
  font-weight: bold;
  text-shadow: 0px 0px 4px black;
  flex: 1 1 2rem;
  text-align: center;
  user-select: none;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
li[data-note='1'] {
  border: 2px solid #1df2f2;
  box-sizing: border-box;
  border-radius: 4px;
  margin: 6px;
  box-shadow: 0px 0px 6px black;
}
nav li[data-note='1'] {
  background: #1df2f2;
  border: none;
  border-radius: 0;
  margin: 0;
  height: auto;
  box-shadow: none;
}
.note-1 {
  --mainColor: #1df2f2;
}
li[data-note='2'] {
  border: 2px solid #1dbdf2;
  box-sizing: border-box;
  border-radius: 4px;
  margin: 6px;
  box-shadow: 0px 0px 6px black;
}
nav li[data-note='2'] {
  background: #1dbdf2;
  border: none;
  border-radius: 0;
  margin: 0;
  height: auto;
  box-shadow: none;
}
.note-2 {
  --mainColor: #1dbdf2;
}
li[data-note='3'] {
  border: 2px solid #1d88f2;
  box-sizing: border-box;
  border-radius: 4px;
  margin: 6px;
  box-shadow: 0px 0px 6px black;
}
nav li[data-note='3'] {
  background: #1d88f2;
  border: none;
  border-radius: 0;
  margin: 0;
  height: auto;
  box-shadow: none;
}
.note-3 {
  --mainColor: #1d88f2;
}
li[data-note='4'] {
  border: 2px solid #1d52f2;
  box-sizing: border-box;
  border-radius: 4px;
  margin: 6px;
  box-shadow: 0px 0px 6px black;
}
nav li[data-note='4'] {
  background: #1d52f2;
  border: none;
  border-radius: 0;
  margin: 0;
  height: auto;
  box-shadow: none;
}
.note-4 {
  --mainColor: #1d52f2;
}
li[data-note='5'] {
  border: 2px solid #1d1df2;
  box-sizing: border-box;
  border-radius: 4px;
  margin: 6px;
  box-shadow: 0px 0px 6px black;
}
nav li[data-note='5'] {
  background: #1d1df2;
  border: none;
  border-radius: 0;
  margin: 0;
  height: auto;
  box-shadow: none;
}
.note-5 {
  --mainColor: #1d1df2;
}
li[data-note='6'] {
  border: 2px solid #521df2;
  box-sizing: border-box;
  border-radius: 4px;
  margin: 6px;
  box-shadow: 0px 0px 6px black;
}
nav li[data-note='6'] {
  background: #521df2;
  border: none;
  border-radius: 0;
  margin: 0;
  height: auto;
  box-shadow: none;
}
.note-6 {
  --mainColor: #521df2;
}
li[data-note='7'] {
  border: 2px solid #881df2;
  box-sizing: border-box;
  border-radius: 4px;
  margin: 6px;
  box-shadow: 0px 0px 6px black;
}
nav li[data-note='7'] {
  background: #881df2;
  border: none;
  border-radius: 0;
  margin: 0;
  height: auto;
  box-shadow: none;
}
.note-7 {
  --mainColor: #881df2;
}
li[data-note='8'] {
  border: 2px solid #bd1df2;
  box-sizing: border-box;
  border-radius: 4px;
  margin: 6px;
  box-shadow: 0px 0px 6px black;
}
nav li[data-note='8'] {
  background: #bd1df2;
  border: none;
  border-radius: 0;
  margin: 0;
  height: auto;
  box-shadow: none;
}
.note-8 {
  --mainColor: #bd1df2;
}
li[data-note='9'] {
  border: 2px solid #f21df2;
  box-sizing: border-box;
  border-radius: 4px;
  margin: 6px;
  box-shadow: 0px 0px 6px black;
}
nav li[data-note='9'] {
  background: #f21df2;
  border: none;
  border-radius: 0;
  margin: 0;
  height: auto;
  box-shadow: none;
}
.note-9 {
  --mainColor: #f21df2;
}
li[data-note='10'] {
  border: 2px solid #f21dbd;
  box-sizing: border-box;
  border-radius: 4px;
  margin: 6px;
  box-shadow: 0px 0px 6px black;
}
nav li[data-note='10'] {
  background: #f21dbd;
  border: none;
  border-radius: 0;
  margin: 0;
  height: auto;
  box-shadow: none;
}
.note-10 {
  --mainColor: #f21dbd;
}
li[data-note='11'] {
  border: 2px solid #f21d88;
  box-sizing: border-box;
  border-radius: 4px;
  margin: 6px;
  box-shadow: 0px 0px 6px black;
}
nav li[data-note='11'] {
  background: #f21d88;
  border: none;
  border-radius: 0;
  margin: 0;
  height: auto;
  box-shadow: none;
}
.note-11 {
  --mainColor: #f21d88;
}
li[data-note='12'] {
  border: 2px solid #f21d52;
  box-sizing: border-box;
  border-radius: 4px;
  margin: 6px;
  box-shadow: 0px 0px 6px black;
}
nav li[data-note='12'] {
  background: #f21d52;
  border: none;
  border-radius: 0;
  margin: 0;
  height: auto;
  box-shadow: none;
}
.note-12 {
  --mainColor: #f21d52;
}
#harmonicChords {
  display: grid;
  grid-gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
#harmonicChords ul {
  display: flex;
  flex-direction: row;
  overflow: hidden;
  border-radius: 0.25rem;
  flex-wrap: wrap;
  position: relative;
}
#harmonicChords ul svg {
  flex-basis: 100%;
  margin: 1rem;
  box-shadow: 0px 0px 1rem 2px black;
}
#harmonicChords ul::before {
  content: attr(data-tonica-name);
  flex-basis: 100%;
  padding: 0.125rem 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  position: absolute;
  background: rgba(22, 22, 29, 0.875);
  font-size: 0.875rem;
  border-bottom-right-radius: 0.25rem;
}
#harmonicChords ul li {
  flex: 1 1;
  align-items: flex-end;
  padding-bottom: 0.25rem;
  box-sizing: border-box;
}
rect {
  stroke: #16161D;
  stroke-width: 2;
}
.white-key {
  --mainColor: #FAFAFA;
}
.black-key {
  --mainColor: #16161D;
}
@media screen and (max-device-width: 830px) {
  main {
    flex-direction: row;
  }
  main ul {
    flex-direction: column;
  }
}
