/* Reset margins and prevent scroll */
html, body {
  font-family: Verdana, Tahoma, sans-serif;
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
}

/* Make canvas flush to edges */
canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* (Optional) Keep UI clean later */
* {
  box-sizing: border-box;
}

#controls {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;

  background: rgba(255, 255, 255, 0.7);
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);

  width: 100%;
  max-width: 360px;     /* limits width on large screens */
  min-width: 280px;
  box-sizing: border-box;

  transition: transform 0.2s ease;
  transform-origin: top center;

  font-family: inherit;
}

.slider-group {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  font-family: inherit;
}

.slider-group span {
  display: inline-block;
  width: 80px;        /* consistent space for values like "100 each" */
  text-align: left;
  flex-shrink: 0;     /* don’t shrink when wrapping */
  white-space: nowrap; /* prevents wrapping of '100 each' */
}

label {
  font-weight: normal;
  font-family: inherit;
}

button {
  padding: 8px 16px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 6px;
  font-family: inherit;
}

#cycleMusicButton {
  position: absolute;
  top: 16px;
  right: 56px;
  font-size: 20px;
  font-family: inherit;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 3000;
}