body, html {
  height: 100%;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0px;
  padding: 0px;
}

.h1{
  font-size: 42pt;
}

.p{
  font-size: 20pt;
}

.snap-container {
  height: 100%;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}

.snap-section {
  padding: 10px;
  height: 100%;
  scroll-snap-align: start;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#section1 {
  background-color: #333;
  color: #fff;
}

#section2 {
  background-color: #222;
}

.selector {
  padding: 5px;
}

.swipe-message {
  text-align: center;
  margin-top: 20px;
}

.arrow {
  padding-top: 10px;
  font-size: 2em;
  animation: bounce 3s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

.harpeji-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  height: 90%;
  overflow: hidden;
}

.harpeji {
  display: grid;
  grid-template-rows: repeat(15, 1fr);
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
  width: 95%;
  height: 95%;
  background-color: #222;
}

.key {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #555;
  position: relative;
}

.white-key {
  background-color: #fff;
}

.black-key {
  background-color: #000;
  color: #fff;
}

.c-note {
  background-color: #333;
  border: 3px solid #fff;
}

.key.active {
  background-color: #ffeb3b;
}

@keyframes fadeOut {
  0% {
    background-color: #ffeb3b;
  }
  100% {
    background-color: transparent;
  }
}

.key.active {
  animation: fadeOut 2s forwards; /* Adjust duration as needed */
}

.key.available {
  opacity: 1; /* Fully visible */
}

.key.unavailable {
  opacity: 0.02; /* Less visible */
  pointer-events: none; /* Unclickable */
}
