@import url("https://fonts.googleapis.com/css?family=Raleway:400,400i,700");
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #0f0f0f, #444);
  color: white;
  font-family: 'Orbitron', sans-serif;
  text-align: center;
  margin: 0;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.pad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.3);
  max-width: 500px;
  backdrop-filter: blur(10px);
}

.key {
  padding: 20px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  text-transform: uppercase;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.1s ease-in-out;
  cursor: pointer;
  position: relative;
}

.key kbd {
  font-size: 1.8rem;
  text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.8);
}

.key span {
  font-size: 0.9rem;
  opacity: 0.8;
}

.key:active,
.key.playing {
  transform: scale(1.1);
  background: #ff4500;
  box-shadow: 0px 0px 20px #ff4500;
  color: #fff;
}

.key[data-key="82"] { /* R key */
  background: #ff0000;
  box-shadow: 0px 0px 15px #ff0000;
}

.key[data-key="80"] { /* P key */
  background: #1daf00;
  box-shadow: 0px 0px 15px #1daf00;
}

@media (max-width: 600px) {
  .pad {
    grid-template-columns: repeat(3, 1fr);
    max-width: 90%;
  }
  .key {
    font-size: 1rem;
    padding: 15px;
  }
  .key kbd {
    font-size: 1.4rem;
  }
}
