/* Diffusion limited aggregation simulator (dla.html): same GeoCities energy as
   style.css. A separate file, not inline, so the site CSP can be style-src 'self'. */
body {
  background-color: #000033;
  background-image:
    radial-gradient(circle at 10% 20%, #1a1a4d 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, #1a1a4d 0%, transparent 40%);
  color: #00ff00;
  font-family: "Comic Sans MS", "Comic Sans", cursive, sans-serif;
  font-size: 16px;
  margin: 0;
  padding: 16px;
}
h1 {
  font-size: 1.8em;
  text-align: center;
  text-shadow: 2px 2px 0 #ff00ff;
}
.rainbow-text {
  background-image: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet, red);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbow-scroll 4s linear infinite;
}
@keyframes rainbow-scroll {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.rainbow-rule {
  border: 0;
  height: 4px;
  background-image: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
  width: 80%;
}
a { color: #00ffff; }
a:visited { color: #ff00ff; }
.siteframe {
  max-width: 760px;
  margin: 0 auto;
  padding: 10px;
  border: 4px double #00ffff;
  background-color: #000018;
}
.stage {
  display: flex;
  justify-content: center;
}
canvas {
  display: block;
  width: min(100%, 600px);
  aspect-ratio: 1;
  image-rendering: pixelated;
  background: #000;
  border: 2px ridge #888;
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  margin: 12px 0 4px;
}
.controls label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
button, select {
  font-family: inherit;
  font-size: 0.95em;
  color: #000;
  background: #c0c0c0;
  border: 2px outset #fff;
  padding: 3px 10px;
  cursor: pointer;
}
button:active { border-style: inset; }
output { min-width: 2.5em; color: #ffff00; }
.stats {
  font-family: "Courier New", monospace;
  text-align: center;
  margin: 8px 0;
}
.stats span {
  background-color: #000;
  color: #ff0000;
  padding: 1px 6px;
  border: 1px solid #333;
}
.footer {
  font-size: 0.8em;
  color: #888;
  text-align: center;
}
