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

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;

  --h: 0;
  --s: 100%;
  --l: 85%;
  --bg-color: hsl(var(--h), var(--s), var(--l));

  background-color: var(--bg-color);
  color: hsl(180, var(--s), 15%);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  --l: 95%;
}

.game-container {
  text-align: center;
  border-radius: 20px;
  padding: 8rem;
  align-content: center;
  height: 90vh;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

#piano {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.note {
  width: 50px;
  height: 150px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.note:active {
  transform: scale(0.95);
}

.note[data-note="C"] {
  --h: 35;
}
.note[data-note="D"] {
  --h: 65;
}
.note[data-note="E"] {
  --h: 110;
}
.note[data-note="F"] {
  --h: 185;
}
.note[data-note="G"] {
  --h: 215;
}
.note[data-note="A"] {
  --h: 250;
}
.note[data-note="B"] {
  --h: 300;
}

.info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

#start-btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  --h: 180;
  --l: 15%;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#start-btn:hover {
  --l: 25%;
}
