/* Äänenkuljetus -testi */

#ak-app {
  font-family: inherit;
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 8px;
  box-sizing: border-box;
}

#ak-instructions {
  color: #555;
  font-size: 14px;
}

#ak-task-buttons {
  margin-bottom: 6px;
}

#ak-task-name {
  color: #555;
  font-size: 14px;
  margin: 4px 0;
}

#ak-task-info {
  color: #333;
  font-size: 14px;
  font-weight: bold;
  margin: 6px 0 10px;
}

#ak-rules {
  margin: 0 0 10px;
  font-size: 13px;
  color: #444;
}

#ak-rules label {
  display: block;
  margin: 2px 0;
  cursor: pointer;
}

#ak-stage {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: crosshair;
}

#ak-paper {
  width: 100%;
}

#ak-ghost-layer {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.ak-ghost-head {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid #2a6fdb;
  border-radius: 50%;
  background: rgba(42, 111, 219, 0.15);
  transform: rotate(-20deg);
}

.ak-ghost-ledger {
  position: absolute;
  height: 2px;
  background: rgba(42, 111, 219, 0.7);
}

.ak-ghost-label {
  position: absolute;
  padding: 1px 6px;
  border-radius: 6px;
  background: #2a6fdb;
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}

#ak-accidental-buttons,
#ak-action-buttons {
  margin-top: 14px;
}

#ak-app button {
  font-family: inherit;
  font-size: 18px;
  padding: 8px 16px;
  margin: 4px;
  border: none;
  border-radius: 8px;
  background: #ddd;
  color: #000;
  cursor: pointer;
}

#ak-app button:hover {
  background: #ccc;
}

#ak-app #ak-accidental-buttons button.active {
  background: #85bb1a;
  color: #fff;
  box-shadow: 0 0 6px #85bb1a;
}

#ak-feedback {
  margin-top: 14px;
  font-size: 16px;
}

#ak-feedback .ak-summary {
  font-size: 20px;
  font-weight: bold;
}

#ak-feedback .ak-summary.ok {
  color: #3d8b1f;
}

#ak-feedback .ak-summary.bad {
  color: #d33;
}

#ak-feedback ul {
  margin: 8px 0 0 20px;
  padding: 0;
}

/* Tarkistuksen väritys: oikea sointu vihreä, väärä punainen. */
#ak-paper .ak-correct path,
#ak-paper .ak-correct text {
  fill: #3d8b1f;
}

#ak-paper .ak-wrong path,
#ak-paper .ak-wrong text {
  fill: #d33;
}
