/* projects/shapesound/style.css */
body {
  font-family: monospace;
  background: #111;
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 2rem;
}

#app {
  width: 90%;
  max-width: 900px;
}

#prompt-box {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

#prompt-box input {
  flex: 1;
  padding: 0.5rem;
  background: #222;
  color: #fff;
  border: 1px solid #333;
  font-family: monospace;
}

#prompt-box button {
  padding: 0.5rem 1rem;
  background: #444;
  border: none;
  color: #fff;
  cursor: pointer;
}

#prompt-box button:hover {
  background: #666;
}

textarea {
  width: 100%;
  height: 200px;
  margin-bottom: 1rem;
  background: #222;
  color: #f8f8f2;
  border: none;
  padding: 1rem;
  font-size: 1rem;
  resize: vertical;
}

canvas {
  border: 1px solid #444;
  margin-top: 1rem;
  background: #000;
  width: 100%;
  max-width: 100%;
}

#controls {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

#help-panel {
  background: #222;
  padding: 1rem;
  border: 1px solid #444;
  margin-top: 1rem;
  max-width: 800px;
  white-space: pre-wrap;
  font-size: 0.9rem;
  color: #ddd;
}

#error-box {
  margin-top: 0.5rem;
  background: #330000;
  color: #f88;
  padding: 0.5rem;
  display: none;
  font-size: 0.9rem;
  white-space: pre-wrap;
}

@media (max-width: 600px) {
  #controls, #prompt-box {
    flex-direction: column;
    align-items: stretch;
  }

  #controls button, #prompt-box button {
    width: 100%;
  }

  textarea {
    height: 150px;
  }
}
