html {
  background-color: #404080;
  color: white;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 2rem;
  margin: 0.25rem;
  line-height: 120%;
}

#error {
  color: pink;
  /* font-size: 100%; */
}

#message {
  font-size: 80%;
  padding: 20px;
}

#fps-display {
  font-size: 60%;
  position: absolute;
  bottom: 0.25rem;
  right: 0.25rem;
}

#game-stats {
  font-size: 100%;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  text-align: right;
}

/* #game-clock {
}
#game-score {
} */

#game-name {
  /* text-decoration: underline; */
  /* font-weight: 600; */
  font-size: 140%;
}

.button {
  background: white;
  color: #404080;
  display: inline-block;
  padding: 0.35rem 0.5rem;
  text-align: center;
  border-radius: .125rem;
  transition-duration: 0.2s;
  overflow: hidden;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}
.button:hover {
  background-color: white;
  text-decoration: underline;
  cursor: pointer;
  rotate: 5deg;
  padding: 0.5rem 1.0rem;
  box-shadow: 0.25rem 0.25rem 0.5rem #1b1b4c;
  transition-duration: 0.2s;
}
.button:active {
  background-color: rgb(227, 207, 255);
  text-decoration: underline;
  cursor: pointer;
  /* rotate: -5deg; */
  padding: 0.25rem 0.50rem;
  transition-duration: 0.1s;
}

.center {
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.center-button {
  display: inline-block;
  margin-left: 50%;
  transform: translate(-50%);
}

#note-container {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.note-display {
  position: relative;
  width: 8rem;
  height: 8rem;
  margin: auto;
  display: inline-block;
  font-size: 350%;
  /* text-decoration: underline; */
  border: 0.08em solid rgb(224, 192, 255);
  text-align: center;
  border-radius: 0.5rem;
}

.note-display-name {
  margin: auto;
  text-align: center;
  line-height: 8rem;
  text-shadow: 0.05em 0.05em 0.05em #1b1b4c;
}

.tshadow {
  text-shadow: 0.0625em 0.125em 0.125em #1b1b4c;
}

.perfect {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) rotate(-10deg);
  font-size: 200%;
  text-shadow: 0.05em 0.1em 0.02em #1b1b4c;
  text-align: center;
  transition: 0.5s;
  animation: perfect 2s ease-in-out forwards;
}
@keyframes perfect {
  0% {
    font-size: 0%;
    top: 50%;
  }
  15% {
    font-size: 200%;
    top: 60%;
  }
  75% {
    rotate: 15deg;
  }
  100% {
    top: -50%;
  }
}

.list-button {
  font-size: 60%;
  background: white;
  color: #404080;
  display: inline-block;
  padding: 0.15rem 0.25rem;
  text-align: center;
  border-radius: .125rem;
  transition-duration: 0.2s;
  overflow: hidden;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  border-bottom: 8px solid orange;
}
.list-button-selected {
  font-size: 60%;
  background: white;
  color: #404080;
  display: inline-block;
  padding: 0.15rem 0.25rem;
  text-align: center;
  border-radius: .125rem;
  transition-duration: 0.2s;
  overflow: hidden;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  border-bottom: none;
}
.list-button:hover {
  background-color: white;
  text-decoration: underline;
  cursor: pointer;
  /* rotate: 5deg; */
  /* padding: 0.5rem 1.0rem; */
  box-shadow: 0.25rem 0.25rem 0.5rem #1b1b4c;
  transition-duration: 0.2s;
  border-bottom: 8px solid rgb(254, 204, 110);
}
.list-button:active {
  background-color: rgb(227, 207, 255);
  text-decoration: underline;
  cursor: pointer;
  /* rotate: -5deg; */
  /* padding: 0.25rem 0.50rem; */
  transition-duration: 0.2s;
  border-bottom: none;
}

.button-list {
  position: relative;
  display: inline-block;
}

.button-list-spacer {
  display: inline-block;
  width: 1em;
}

.button-list-label {
  display: inline-block;
  line-height: 2em;
  transform: translate(0,-0.5em);
}

#possible-points {
  font-size: 80%;
  margin-left: 0.5em;
}

.note-speaker {
  font-size: 40px;
  position: absolute;
  right: 10px;
  top: 10px;
  transition: 0.2s;
  opacity: 0%;
}

.pitch-speaker {
  position: relative;
  width: 6rem;
  height: 6rem;
  line-height: 6rem;
  margin: auto;
  display: inline-block;
  font-size: 400%;
  /* border: 0.08em solid rgb(224, 192, 255); */
  text-align: center;
  border-radius: 0.5rem;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  transition-duration: 0.2s;
  cursor: pointer;
}
.pitch-speaker:hover {
  rotate: -5deg;
  scale: 120%;
  text-shadow: 0.0625em 0.125em 0.125em #1b1b4c;
}

/* @import url('https://fonts.googleapis.com/css2?family=Russo+One&display=swap'); */
.kb {
  font-size: 16px;
  block-size: var(--_bs, 8em);
  display: grid;
  grid-column-gap: 1px;
  grid-template-columns: repeat(var(--_r, 156), 1fr);
  grid-template-rows: repeat(5, 1fr);
  inline-size: max-content;
}
.kb [aria-label] {
  --_focus-bxsh: inset 0 0 50px #fff, inset 20px 0 80px hsl(var(--_h,0), 70%, 35%), inset -20px 0 80px hsl(var(--_h,0), 100%, 50%);
  --_hover-bg: #ffe1f2;
  background-color: var(--_bgc, white);
  border: 0;
  border-radius: 0 0 3px 3px;
  grid-column: var(--gcs) / span var(--_csp, 3);
  grid-row: 1 / span var(--_rsp, 5);
  border-bottom: 8px solid rgb(184, 99, 203);
  transition-duration: 0.2s;
}
.kb [aria-label*="#"], .kb [aria-label*="♯"] {
  --_bgc: #4a2b69;
  --_csp: 2;
  --_focus-bxsh: inset 0 0 50px hsl(var(--_h,0), 25%, 35%), inset 20px 0 80px hsl(var(--_h,0), 70%, 35%), inset -20px 0 80px hsl(var(--_h,0), 100%, 50%);
  --_hover-bg: hsl(276, 29%, 44%);
  --_rsp: 3;
  position: relative;
  border-bottom: 8px solid rgb(162, 111, 213);
  transition-duration: 0.2s;
}
.kb [aria-label]:hover {
  background: var(--_hover-bg);
}
.kb [aria-label]:active {
  border-bottom: 0;
  transition-duration: 0.2s;
}
.kb [aria-label]:focus-visible { box-shadow: var(--_focus-bxsh); outline: none; }
.synth {
  font-size: 20px;
  /* font-family: 'Russo One', sans-serif; */
  background: linear-gradient(215deg, hsl(275, 33%, 25%), hsl(296, 27%, 12%), hsl(275, 33%, 25%));
  border-radius: .33em .33em .75em .75em;
  color: #FFF;
  inline-size: max-content;
  padding: 1em 1em 1em 1em;
  margin-bottom: 1rem;
  box-shadow: 0px 16px 0px hsl(274, 42%, 12%);
}
.synth h2 {
  font-size: 20px;
  margin: 0 0 .5em 0;
}
.kb--61 { --_r: 108;--_h: 180 }
.kb--49 { --_r: 87;--_h: 200 }
.kb--32 { --_bs: 6em; --_r: 57;--_h: 300 }
.kb--25 { --_bs: 6em; --_r: 45;--_h: 45 }

h1 {
  font-weight: normal;
  font-size: 120%;
  /* text-decoration: underline; */
}

a {
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  display: inline-block;
  transition-duration: 0.2s;
}
a:hover {
  rotate: -5deg;
  scale: 120%;
}

#note-buttons .list-button {
  padding-left: 20px;
  padding-right: 20px;
}