*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background-color: #391e46;
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}


.text{
  color: rgb(255, 217, 2);
  font-size: 120%;
  position: absolute;
  left: 3%;
  top: 10%;
  width: 60%;
}

.piano {
  display: flex;
  position: absolute;
  top:  10%;
  left: 70%;
}

.key {
  height: calc(var(--width) * 4);
  width: var(--width);
}

.white {
  --width: 50px;
  background-color: rgb(255, 217, 2);
  border: 1px solid #333;
}

.white.active {
  background-color: rgb(211, 144, 58);
}

.black {
  --width: 30px;
  background-color: #391e46;
  margin-left: calc(var(--width) / -2);
  margin-right: calc(var(--width) / -2);
  z-index: 2;
  
}

.black.active {
  background-color: #333;
}

.audioc {
  position: absolute;
  top: 50%;
  left: 72%;
}

.giff {
  position: absolute;
  top: 2%;
  left: 2%;
}










:root {
  --bg-color: #391e46;
  --typewriterSpeed: 6s;
  --typewriterCharacters: 24;
}

body {
  margin: 0;
  font-family: "Source Sans Pro", sans-serif;
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--bg-color);
}

h1 {
  font-size: clamp(1rem, 3vw + 1rem, 4rem);
  position: relative;
  font-family: "Source Code Pro", monospace;
  position: relative;
  width: max-content;
}

h1::before,
h1::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}



h1::before {
  background: var(--bg-color);
  animation: typewriter var(--typewriterSpeed)
    steps(var(--typewriterCharacters)) 1s forwards;
}

h1::after {
  width: 0.125em;
  background: black;
  animation: typewriter var(--typewriterSpeed)
      steps(var(--typewriterCharacters)) 1s forwards,
    blink 750ms steps(var(--typewriterCharacters)) infinite;
}

.subtitle {
  color: hsl(0 0% 0% / 0.7);
  font-size: 2rem;
  font-weight: 400;
  opacity: 0;
  transform: translateY(3rem);
  animation: fadeInUp 2s ease calc(var(--typewriterSpeed) + 2s) forwards;
}

@keyframes typewriter {
  to {
    left: 100%;
  }
}

@keyframes blink {
  to {
    background: transparent;
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#yt-link {
  position: absolute;
  bottom: 2em;
  width: 100%;
  color: hsl(0 0 0 / 0.7);

  &:hover,
  &:focus {
    color: teal;
  }
}
