body {
  background-color: #f5f5dc;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
}

.container {
  text-align: center;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly; /* Distribute space evenly */
  height: 100vh; /* Ensure container takes full viewport height */
  width: 100%;
  max-width: 800px;
}

h1 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 2em;
}

#canvas {
  border: 1px solid #ccc;
  max-width: 90%;
  max-height: 50vh; /* Slightly reduce canvas height to make more room */
}

.palette-selector-container {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  flex-wrap: wrap;
}

.palette-option {
  display: flex;
  border: 2px solid transparent;
  cursor: pointer;
  margin: 4px;
  padding: 2px;
  border-radius: 5px;
  transition: border-color 0.2s ease-in-out;
}

.palette-option:hover {
  border-color: #666;
}

.color-swatch {
  width: 16px;
  height: 16px;
  margin: 1px;
  border-radius: 3px;
}

.emitter-selector-container {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.emitter-selector-container h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.5em;
  color: #555;
}

.emitter-selector-container .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.emitter-option {
  padding: 6px 12px;
  margin: 4px;
  border: 2px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  background-color: #e0e0e0;
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
  font-size: 0.9em;
}

.emitter-option:hover {
  background-color: #d0d0d0;
}

.emitter-option.selected {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}
