/* ===============================
   Asteikon muodostaminen – tyyli
   =============================== */

body {
  font-family: "Marker Felt", sans-serif;
  text-align: center;
  background: #fafafa;
  margin: 0;
  padding: 20px;
}

#asteikko-app {
  max-width: 800px;
  margin: 0 auto;
}

/* ---------------------------------
   TEHTÄVÄNAPIT
--------------------------------- */
#task-buttons {
  margin: 20px 0;
}
.task-btn {
  background: #ccc;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  margin: 4px;
  font-size: 16px;
  cursor: pointer;
  font-family: "Marker Felt", sans-serif;
  box-shadow: none;
  transition: background 0.2s, color 0.2s;
}
.task-btn:hover {
  background: #bbb;
}
.task-btn.active {
  background: #2196F3;
  color: white;
}

/* ---------------------------------
   PLAYER-NAPIT
--------------------------------- */
#player-controls {
  margin: 15px 0;
}
#player-controls button {
  background: #e0e0e0;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  margin: 3px;
  cursor: pointer;
  font-size: 16px;
  box-shadow: none;
  transition: background 0.2s;
}
#player-controls button:hover {
  background: #ccc;
}
#player-controls button:active {
  background: #2196F3;
  color: white;
}
#progress {
  vertical-align: middle;
  margin-left: 10px;
}

/* ---------------------------------
   NUOTTINAPIT
--------------------------------- */
#note-buttons {
  margin-top: 20px;
}
#note-buttons button {
  background: #ddd;
  border: none;
  border-radius: 6px;
  padding: 10px 14px;
  margin: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s, color 0.2s;
}
#note-buttons button:hover {
  background: #ccc;
}
#note-buttons button.active {
  background: #4CAF50;
  color: white;
}
/* ---------------------------------
   ETUMERKKINAPIT AKTIVOITUINA
--------------------------------- */
#note-buttons button[data-sign='sharp'].active {
  background: #f44336 !important; /* punainen */
  color: white !important;
}

#note-buttons button[data-sign='flat'].active {
  background: #ffeb3b !important; /* keltainen */
  color: black !important;
}

/* ---------------------------------
   ETUMERKKINAPIT (♯ ja ♭)
--------------------------------- */
#note-buttons button[data-accidental="^"],
#note-buttons button[data-accidental="_"] {
  background: #ddd; /* sama perusharmaa kuin muilla nuottinapeilla */
  color: black;
}

#note-buttons button[data-accidental="^"].flash {
  background: #f44336; /* punainen ♯ */
  color: white;
}

#note-buttons button[data-accidental="_"].flash {
  background: #ffeb3b; /* keltainen ♭ */
  color: black;
}

/* ---------------------------------
   ABC-NOTAATIO JA STATUS
--------------------------------- */
#abcName {
  font-size: 20px;
  color: #1976d2;
  margin-top: 15px;
  font-weight: bold;
}

#paperUser {
  margin: 20px auto;
  display: inline-block;
  background: white;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  transform: scale(1.6);
  transform-origin: top center;
}

#status {
  margin-top: 20px;
  font-size: 18px;
  color: #333;
}

/* ---------------------------------
   NUOTTIEN OIKEIN / VÄÄRIN
--------------------------------- */
.abcjs-note.correct {
  fill: #4CAF50 !important;
  stroke: #4CAF50 !important;
}
.abcjs-note.wrong {
  fill: #f44336 !important;
  stroke: #f44336 !important;
}

/* ---------------------------------
   TÄHTIARVIOINTI
--------------------------------- */
#stars {
  margin-top: 12px;
  font-size: 36px;
  color: gold;
  letter-spacing: 4px;
}

/* ---------------------------------
   MISC
--------------------------------- */
button:focus {
  outline: none;
}