:root {
  background: linear-gradient(to bottom right, #ccc 0%, #ddd 30%, #fff 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

* {
  margin: 0;
  border: 0;
  box-sizing: border-box;
}
::selection {
  background: white;
}

a {
  text-decoration: none;
  font-size: 0.8rem;
  margin: 0.5em 0;
  color: #111;
}

a:hover {
  text-decoration: underline;
}

body {
  font-family: "Poppins", sans-serif;
}

main {
  margin: auto;
  width: 90%;
  height: 100vh;
  display: flex;
  flex-direction: column;

  align-items: center;
}

p {
  max-width: 50ch;
  font-size: 1.15rem;
}

.intro {
  margin-top: 5em;
  text-align: center;
}

.intro span {
  text-decoration: underline;
}

.suggestion {
  text-align: left;
}

h1 {
  margin-top: 2em;
  margin-bottom: 1em;
  font-size: 1.25rem;
  text-align: left;
  letter-spacing: 0.2em;
}

.suggestion__text {
  letter-spacing: 0.55em;
  line-height: 3em;
}

.piano {
  width: 95%;
  max-width: 600px;
  min-height: 275px;
  max-height: 300px;
  height: 90vh;
  display: flex;
  position: relative;
  border: 1px solid black;
  border-radius: 0 0 0.5em 0.5em;
  background: linear-gradient(#000 0%, #222 65%, #414141 100%);
  margin-top: 5em;
}

kbd {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0.5em 0;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}

[data-key="70"] kbd {
  text-decoration: underline;
}

.keyGroup {
  width: 100%;
  display: flex;
}

.whiteKeys {
  align-content: center;
  height: 99%;
}

.key {
  transition: all 0.1s ease;
  cursor: pointer;
}

.whiteKey {
  color: rgb(51, 51, 51);
  border-radius: 0 0 0.5em 0.5em;
  box-shadow: 0 1px 5px 1px #111;
  background: radial-gradient(
    circle at top right,
    #ddd 0%,
    #ddd 5%,
    #eee 60%,
    #fff 100%
  );
  margin: 0 0.1em 0.1em 0.1em;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.blackKey {
  border-radius: 0.25em 0.25em 0.75em 0.75em;
  background: radial-gradient(
    circle at top right,
    #111 0%,
    #222 60%,
    #333 92%,
    #eee 100%
  );
  color: rgb(224, 224, 224);
  margin: 0 0.1em 0.1em 0.1em;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.blackKeys {
  height: 60%;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  position: absolute;
  justify-content: center;
}

.pressed {
  transform-origin: top center;
  transform: scale(0.99, 0.99);
  box-shadow: 0px 5px 15px 2px #4ddfe4;
}

.Cb {
  grid-column: 3/5;
}

.Db {
  grid-column: 6/8;
}

.Fb {
  grid-column: 12/14;
}

.Gb {
  grid-column: 15/17;
}

.Ab {
  grid-column: 18/20;
}

@media only screen and (max-width: 500px) {
  .intro {
    display: none;
  }

  kbd {
    font-size: 0.8rem;
  }

  h1 {
    text-align: center;
    font-size: 1rem;
  }

  .suggestion__text {
    font-size: 1rem;
    letter-spacing: 0.4rem;
  }
}
