/* Your Awesome Sng */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap");

:root {
  --gradient: linear-gradient(
    45deg,
    #845ec2,
    #d65db1,
    #ff6f91,
    #ff9671,
    #ffc75f,
    #f9f871
  );
  --key-gradient-bottom: linear-gradient(
    360deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.2) 100%
  );

  --key-color-top: rgba(255, 255, 255, 0.9);

  --note-bounce-animation-duration: 1.25s;
}

/*---------------Global---------------*/

* {
  overflow: visible;
}

/*---------------Body---------------*/
body {
  /* Horizontal and Vertical Center */
  font-family: "Poppins";
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  /* Extend full height of browser  */
  height: 100vh;
  background-image: var(--gradient);
  background-size: 400%;
  animation: bg-animation 25s infinite alternate;
}

@keyframes bg-animation {
  0% {
    background-position: left;
  }
  100% {
    background-position: right;
  }
}

/*---------------Intro Notes---------------*/
.notes {
  position: absolute;
  z-index: -1;
  visibility: hidden;
}

.note-animate-one {
  animation: single-note 2s ease;
  transform-origin: center;
  transform-box: fill-box;
}

.note-animate-two {
  animation: double-note 2s ease;
  transform-origin: center;
  transform-box: fill-box;
}

@keyframes single-note {
  from {
    visibility: visible;
    transform: rotateZ(0deg) scale(0.5);
    opacity: 100;
  }
  to {
    transform: rotateZ(360deg) scale(2);
    translate: -50vh -50vh;
    opacity: 0;
  }
}

@keyframes double-note {
  from {
    visibility: visible;
    transform: rotateZ(0deg) scale(0.5);
    opacity: 100;
  }
  to {
    transform: rotateZ(-360deg) scale(2);
    translate: 55vh -50vh;
    opacity: 0;
  }
}

/*---------------Scale Notes SVG---------------*/
.scale-note{
  animation: note-bounce var(--note-bounce-animation-duration) alternate ease-in-out;
  animation-iteration-count: infinite;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

#noteTwo {
  animation-delay: 0.25s;
}

#noteThree {
  animation-delay: 0.5s;
}

#noteFour {
  animation-delay: 0.75s;
}

#noteFive {
  animation-delay: 1s;
}

#noteSix {
  animation-delay: 1.25s;
}

#noteSeven {
  animation-delay: 1.5s;
}

#noteEight {
  animation-delay: 1.75s;
}

#noteNine {
  animation-delay: 2s;
}

@keyframes note-bounce {
  0% {
    transform: translateY(0vh);
  }
  100% {
    transform: translateY(-10vh);
  }
}

/*---------------Title---------------*/
h1 {
  font-size: 64px;
  color: white;
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
  padding: 0px;
  margin: 0px;
}

.tracking-in-expand {
  -webkit-animation: tracking-in-expand 1s cubic-bezier(0.215, 0.61, 0.355, 1)
    both;
  animation: tracking-in-expand 1s cubic-bezier(0.215, 0.61, 0.355, 1) both;
  animation-delay: 0.6s;
}

/* ----------------------------------------------
 * Generated by Animista on 2022-3-7 19:55:57
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation tracking-in-expand
 * ----------------------------------------
 */
@-webkit-keyframes tracking-in-expand {
  0% {
    letter-spacing: -0.5em;
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

@keyframes tracking-in-expand {
  0% {
    letter-spacing: -0.5em;
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

/*---------------Piano---------------*/
kbd {
  font-size: 24px;
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
}
/*---------------Keys---------------*/
.keys {
  display: inline-grid;
  grid-template-columns: repeat(8, 1fr);
}

.key {
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-end;
  justify-content: center;
  box-shadow: 0 0 1rem rgba(255, 255, 255, 0.05);
  transition: all 0.1s ease;
}

.playing {
  border-color: rgba(255, 255, 255, 1); 
  box-shadow: 0 0 1rem rgba(255, 255, 255, 1);
  transform: scale(1.1);
}


/*---------------Top Keys---------------*/
.key.top {
  width: 3em;
  height: 8em;
  z-index: 1;
  grid-row: 1/1;
  position: relative;
  left: 3.5em;
  background: var(--key-color-top);
  text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.8);
  color: rgba(0, 0, 0, 0.8);
}

div[data-key="87"] {
  grid-column: 1/2;
  grid-row: 1/1;
}

div[data-key="69"] {
  grid-column: 2/3;
}

div[data-key="84"] {
  grid-column: 4/4;
}

div[data-key="89"] {
  grid-column: 5/6;
}

div[data-key="85"] {
  grid-column: 6/7;
}

/*---------------Bottom Keys---------------*/

.key.bottom {
  width: 5em;
  height: 14em;
  z-index: 0;
  grid-row: 1/1;
  background: var(--key-gradient-bottom);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.05);
  --web-kit--backdrop-filter: blur(20px);
  color: white;
}

div[data-key="65"] {
  grid-column: 1/1;
  border-left: 2px solid rgba(255, 255, 255, 0.3);
}

div[data-key="83"] {
  grid-column: 2/2;
}

div[data-key="68"] {
  grid-column: 3/3;
}

div[data-key="70"] {
  grid-column: 4/4;
}

div[data-key="71"] {
  grid-column: 5/5;
}

div[data-key="72"] {
  grid-column: 6/6;
}

div[data-key="74"] {
  grid-column: 7/7;
}

div[data-key="75"] {
  grid-column: 8/8;
  border-right: 2px solid rgba(255, 255, 255, 0.3);
}
