html, body  {
    background: #000;
    font-family: 'Noto Serif', serif;
    -webkit-font-smoothing: antialiased;
    text-align: center;
  }

section {
  margin-top: 30px;
  color: white;
  font-size: 1.3rem;
}

#loading {
  background: black;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*loading animation*/
.lds-dual-ring {
  display: inline-block;
  width: 80px;
  height: 80px;
}

.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid #fff;
  border-color: #fff transparent #fff transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

h1 {
  color: #fff;
  font-size: 3rem;
  font-weight: 400;
  margin: 0;
  font-family: 'Great Vibes', cursive;
}

nav {
  background-color: #fff;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

li {
  display: inline;
  margin: 0 2vw;
}

li a {
  text-decoration: none;
  color: black;
}

.active {
  font-weight: 900;
}

.faq {
  margin-bottom: 30px;
}

.question {
  font-weight: bold;
  font-size: 1.5rem;
}

#instructions {
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 400;
}

#stave {
  height: 200px;
  width: 250px;
  background-color: white;
  display: inline-block;
}

#note {
  color: white;
  font-size: 2.5rem;
  height: 20px;
}

.firstset { 
  display: inline;
}

.secondset {
  display: none;
}

.keys {
  display: block;
  width: 100%;
  height: 25vh;
  max-height: 350px;
  max-width: 1020px; /*60 px per key*/
  position: relative;
  margin: 40px auto 0;
}

.key {
  position: relative;
  border: 1px solid black;
  border-radius: .5rem;
  transition: all .07s ease;
  display: block;
  box-sizing: border-box;
  z-index: 2;
}

.key:active {
  border-color: #028ae9;
  box-shadow: 3px 0 1rem #028ae9;
}

.sharp:active {
  border-color: #028ae9;
  box-shadow: 0 0 1rem #028ae9;
}

.key:not(.sharp) {
  float: left;
  width: 5.88%; /*property to be changed because number of keys change for smaller devices*/
  height: 100%;
  background: rgba(255, 255, 255, .8);    
}

.key.sharp {
  position: absolute;
  width: 3.53%; /*ratio between white and black key is that black is 60% width of white*/
  height: 60%;
  background: #000;
  color: #eee;
  top: 0;
  z-index: 3;
}

/*position black keys*/
.key[data-note="C#3"] {
  left: 4.115%; /*white key width - half of black key width to get positioning*/
}

.key[data-note="D#3"] {
  left: 9.995%;
}

.key[data-note="F#3"]  {
  left: 21.755%;
}

.key[data-note="G#3"] {
  left: 27.635%;
}

.key[data-note="A#3"] {
  left: 33.515%;    
}

.key[data-note="C#4"] {
  left: 45.275%;    
}

.key[data-note="D#4"] {
  left: 51.155%;    
}

.key[data-note="F#4"] {
  left: 62.915%;    
}

.key[data-note="G#4"] {
  left: 68.795%;    
}

.key[data-note="A#4"] {
  left: 74.675%;    
}

.key[data-note="C#5"] {
  left: 86.435%;    
}

.key[data-note="D#5"] {
  left: 92.315%;    
}

/*adjusting for bigger screens*/
@media screen and (min-width: 560px) {

  .secondset {
    display: inline;
  }

  .keys {
    max-width: 1860px; /*60 px per key*/
  }

  .key:not(.sharp) {
  width: 3.22%; /*number of keys changed, 100/31*/
  }

  .key.sharp {
  width: 1.932%; /*ratio between white and black key is that black is 60% width of white*/
  }

 /*black keys positioning for 31 white keys*/
  .key[data-note="C#2"] {
    left: 2.254%; /*white key width - half of black key width to get positioning*/
  }

  .key[data-note="D#2"] {
    left: 5.474%;
  }

  .key[data-note="F#2"] {
    left: 11.914%;
  }

  .key[data-note="G#2"] {
    left: 15.134%;
  }

  .key[data-note="A#2"] {
    left: 18.354%;
  }

  .key[data-note="C#3"] {
    left: 24.794%;
  }

  .key[data-note="D#3"] {
    left: 28.014%;
  }

  .key[data-note="F#3"] {
    left: 34.454%;
  }

  .key[data-note="G#3"] {
    left: 37.674%;
  }

  .key[data-note="A#3"] {
    left: 40.894%;
  }

  .key[data-note="C#4"] {
    left: 47.334%;
  }

  .key[data-note="D#4"] {
    left: 50.554%;
  }

  .key[data-note="F#4"] {
    left: 56.994%;
  }

  .key[data-note="G#4"] {
    left: 60.214%;
  }

  .key[data-note="A#4"] {
    left: 63.434%;
  }

  .key[data-note="C#5"] {
    left: 69.874%;
  }

  .key[data-note="D#5"] {
    left: 73.094%;
  }

  .key[data-note="F#5"] {
    left: 79.534%;
  }

  .key[data-note="G#5"] {
    left: 82.752%;
  }

  .key[data-note="A#5"] {
    left: 85.974%;
  }

  .key[data-note="C#6"] {
    left: 92.414%;
  }

  .key[data-note="D#6"] {
    left: 95.634%;
  }
}
