html, body {
  margin: 0;
  padding: 0;
  overflow: hidden; /* ensures no scrollbars for firefox? */
}

canvas {
  position: absolute;  /* or `fixed` would work too maybe? */
  top: 0;
  left: 0;
  display: block;      /* kills the inline baseline gap, per ChatGPT */
}

/* original css, works fine in chrome
canvas {
  position: absolute;
  top:  0px;
  left: 0px;
}
*/

/* Help Dialog Styles */
#helpDialog {
  border: 0;
  border-radius: 8px;
  padding: 2rem;
  max-width: clamp(20ch, 90vw, 60ch);
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#helpDialog::backdrop {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
}

#helpDialog h2 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  text-align: center;
  color: #64ffda;
}

#helpDialog p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

#helpDialog button {
  background: #333;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
  display: block;
  margin: 0 auto;
}

#helpDialog button:hover {
  background: #555;
}

.dialog-content {
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dialog-content h2 {
  margin: 0 0 20px 0;
  font-size: 24px;
  text-align: center;
  color: #64ffda;
}

.help-text {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.dialog-footer {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.close-button {
  background: #333;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.close-button:hover {
  background: #555;
}