/* Base styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #222;
}

/* Navigation */
nav.nav-pills {
  display: flex;
  justify-content: center;
  background: #fff;
  padding: 1em;
  border-bottom: 1px solid #ccc;
}

.nav-link {
  margin: 0 1em;
  padding: 0.5em 1em;
  border-radius: 5px;
  text-decoration: none;
  color: #007bff;
  background: #e9ecef;
  transition: background 0.3s ease;
}

.nav-link:hover {
  background: #d0e3ff;
}

.nav-link.active {
  background: #007bff;
  color: white;
}

/* Sections */
section {
  padding: 2em;
  max-width: 800px;
  margin: auto;
}

/* Footer */
footer {
  text-align: center;
  padding: 1em;
  background: #fff;
  border-top: 1px solid #ccc;
  margin-top: 2em;
  font-size: 0.9em;
  color: #666;
}

/* Buttons */
button {
  padding: 0.5em 1em;
  font-size: 1em;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #0056b3;
}

/* Forms */
form label {
  display: block;
  margin: 1em 0 0.5em;
  font-weight: bold;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 0.5em;
  margin-bottom: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

/* SVG animation overrides */
svg .ball {
  fill: white;
  stroke: black;
  stroke-width: 2;
}

svg .stitch {
  fill: none;
  stroke: red;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 4 2;
  animation: spin 4s linear infinite;
  transform-origin: center;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

svg .label {
  font-family: sans-serif;
  font-size: 12px;
  fill: black;
  text-anchor: middle;
}