:root {
  --bg-color: #e6e6e673;
  --white: #ffffff;
  --transparent-white: #ffffff66;
  --desert-storm: #f8f8f8;
  --soapstone: #fcfcfc;
  --black: #000000;
  --onyx: #111111;
  --dark-jungle-green: #222222;
  --ironside-grey: #666666;
  --davy-grey: #555555;
  --primary-shadow-color: #00000080;
  --secondary-shadow-color: #000000b3;
  --primary-transition: all 0.1s ease;
  --secondary-transition: 0.3s ease;
  --font-family: "Source Serif Pro", serif;
}

html {
  font-size: 10px;
  background:white bottom center;
  background-size: cover;
}
body,html {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
}

.keys {
  display:flex;
  flex:1;
  min-height:100vh;
  align-items: center;
  justify-content: center;
}

.key {
  border:4px solid rgb(255, 255, 255);
  border-radius:10%;
  margin:1rem;
  font-size: 1.5rem;
  padding:1rem .5rem;
  transition:all .07s;
  width:100px;
  text-align: center;
  color:white;
  background:rgba(0,0,0,0.4);
  text-shadow:0 0 5px black;
}

.playing {
  transform:scale(1.1);
  border-color:#ffc600;
  box-shadow: 0 0 10px #ffc600;
}

kbd {
  display: block;
  font-size: 40px;
}

.sound {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color:#ffc600;
}


main,
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--onyx);
}

footer {
  margin-bottom: 1.1rem;
}

.title {
  font-size: 4.3rem;
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  word-spacing: 0.1rem;
}

.subtitle {
  font-size: 1.9rem;
  margin-top: 0.1rem;
}

.footer-text {
  font-size: 1.5rem;
  font-style: italic;
}

.footer-link {
  text-decoration: none;
  color: var(--onyx);
  font-weight: 600;
}

.footer-link:hover {
  color: var(--ironside-grey);
  transition: var(--secondary-transition);
}

#loadingDiv {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  width: 100vw;
  height: 100vh;
  position: absolute;
  background-color: var(--black);
}

.loader {
  width: 9rem;
  height: 9rem;
  background: center / contain no-repeat url(./loader.gif);
}

::selection {
  color: var(--soapstone);
  background-color: var(--dark-jungle-green);
}

@media screen and (max-width: 1000px) {
  html {
    font-size: 9px;
  }
}

@media screen and (max-width: 900px) {
  html {
    font-size: 8px;
  }
}

@media screen and (max-width: 800px) {
  html {
    font-size: 7px;
  }
}

@media screen and (max-width: 680px) {
  html {
    font-size: 6px;
  }
}

@media screen and (max-width: 580px) {
  html {
    font-size: 5px;
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: 4px;
  }
}

@media screen and (max-width: 380px) {
  html {
    font-size: 3px;
  }
}
