* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}


html, body {
  background-image: linear-gradient(#000000, #363636);
  height: 100vh;
}

a:link, 
a:visited, 
a:hover, 
a:active {
    color: #d3d3d3;
    text-align: center;
}

.help {
  text-align: center;
  }

.piano-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90vw;
  height: 30vh;
  margin: 0 auto;
  position: relative;
  padding: 1rem;
}

.text {
  text-align: center;
  font-family: 'Times New Roman', Times, serif;
  color: white;
  padding-top: 150px;
}

.key {
  width: 2.5rem;
  height: 10rem;
  border-radius: 0 0 2px 2px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: pointer;
  font-family:'Times New Roman', Times, serif;
}

.whitekey {
  border: 2px solid #000;
  background-color: #fff;
  transition: 0.2s all;
}

.whitekey:hover {
    background: rgb(200, 200, 200);
    transform: translateY(2px);
}

.blackkey {
  z-index: 1;
  background: black;
  height: 7rem;
  width: 1.5rem;
  position: absolute;
  top: 0px;
  transition: 0.2s all;
  right: -0.75rem; 
  padding-bottom: 5px;
  font-size: 10px;
  color: white;
}

.key-group {
    position: relative;
}

.blackkey:hover {
    background: rgb(26, 26, 26);
    transform: translateY(5px);
}

.fade-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
  z-index: 9999;
}

.fade-overlay.active {
  opacity: 1;
}

.music-note {
  position: absolute;
  font-size: 24px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: floatUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  color: white;
}

.music-note { 
  position: absolute; 
  font-size: 24px; 
  pointer-events: none; 
  transform: translate(-50%, -50%); 
  animation: floatUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards; 
  color: white; z-index: 3; text-shadow: 2px 2px 4px #000000; 
}

@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0) scale(1) rotate(0deg);
  }

  70% {
    opacity: 0.8;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-120px) scale(0.7) rotate(25deg);
  }
}

@media (max-width: 600px) {
  .key {
    width: 12vw;
    height: 40vw;
  }

  .blackkey {
    width: 6vw;
    height: 25vw;
  }
}