/*
  Global styles for the microphone visualizer.
  We keep the layout simple: the canvas fills the entire viewport,
  and a status message is displayed at the top. A dark background
  helps the colorful geometry stand out.
*/

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background-color: #000; /* dark background */
  color: #fff;
  font-family: sans-serif;
}

/* Settings bar at the top of the page */
#settings-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  padding: 0 10px;
  box-sizing: border-box;
  z-index: 20;
}

/* Toggle button styling */
#settings-bar button {
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  margin-right: 1rem;
}

/* Panel for frequency range inputs */
#settings-panel {
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px;
  box-sizing: border-box;
  color: #fff;
  z-index: 21;
}

#settings-panel label {
  margin-right: 0.5rem;
}

#settings-panel input {
  width: 70px;
  margin-right: 1rem;
  background: #222;
  color: #fff;
  border: 1px solid #444;
  padding: 2px 4px;
}

#settings-panel button {
  padding: 4px 8px;
  background-color: #444;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* Hide elements with the hidden class */
.hidden {
  display: none;
}

/* Position the status message at the top center */
#message {
  position: absolute;
  top: 40px; /* place below settings bar */
  left: 0;
  width: 100%;
  padding: 0.5rem;
  text-align: center;
  pointer-events: none;
  z-index: 10;
}

/* Make the canvas fill the entire screen */
#visualizer {
  display: block;
  width: 100vw;
  height: 100vh;
}