/* *{
    margin: 0;
    padding: 0;
} */

/* arithmetic.css — enhancements: focus styles, ripple, simple transitions */

:root {
  --primary: #06b6d4; /* teal-ish */
  --muted: #6b7280;
}

/* Utility focus-visible for keyboard users */
:focus {
  outline: none;
}
:focus-visible {
  outline: 3px solid rgba(6,182,212,0.18);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Buttons (daisyUI / Tailwind adapters still apply) */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform 160ms cubic-bezier(.2,.9,.3,1), box-shadow 160ms;
  user-select: none;
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn:hover { box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06); }

/* Primary variant */
.btn-primary {
  background: linear-gradient(180deg, var(--primary), #0496a2);
  color: white;
}

/* Ripple element */
.ripple {
  position: absolute;
  border-radius: 9999px;
  background: rgba(6,182,212,0.18);
  transform: scale(0);
  opacity: 1;
  pointer-events: none;
  will-change: transform, opacity;
  animation: rippleAnim 520ms cubic-bezier(.2,.9,.3,1);
}
@keyframes rippleAnim {
  to { transform: scale(1); opacity: 0; }
}

/* Result animation helper */
.result-pulse {
  transform-origin: center;
  animation: resultPulse 420ms cubic-bezier(.2,.9,.3,1);
}
@keyframes resultPulse {
  0% { transform: scale(.98); opacity: 0.85; }
  60% { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Steps simple styling */
.steps p {
  margin: 6px 0;
  padding-left: 8px;
  border-left: 2px solid rgba(0,0,0,0.04);
  color: var(--muted);
}

/* visually hidden helper (skip link) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sr-only.focus\:not-sr-only:focus { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ripple, .result-pulse { animation: none !important; transition: none !important; }
}

.text-black{
  color: black;
}

/* Force steps to show vertically */
#arithSteps,
#arithPracticeSteps {
  display: flex;
  flex-direction: column;
  gap: 6px;
}