/* Define visual theme */
:root {
  --color-primary: #4A90E2; /* Soft calming blue */
  --color-secondary: #50E3C2; /* Soft green */
  --color-accent: #F5A623; /* Warm accent orange */
  --color-bg: #F7F7F7; /* Light gray background */
  --color-text: #333333; /* Dark text */
  --color-muted: #999999; /* Muted text */

  --font-family: 'Arial', sans-serif;
  --border-radius: 10px;
  --spacing-unit: 16px;
}

/* Global Reset */
body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  margin: 0;
}
header {
  background-color: var(--color-primary);
  color: white;
  text-align: center;
  padding: calc(var(--spacing-unit) * 2);
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
header h1 {
  font-size: 2rem;
  margin-bottom: var(--spacing-unit);
}
header p {
  font-size: 1.2rem;
  margin: 0;
}
main {
  padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
}
section {
  margin-bottom: calc(var(--spacing-unit) * 2);
}
#controls {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: var(--spacing-unit);
  margin-bottom: var(--spacing-unit);
}
.control-group {
  margin-bottom: var(--spacing-unit);
}
.control-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.control-group input[type="range"] {
  width: 100%;
  margin: var(--spacing-unit) 0;
}
.control-group select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--color-muted);
  border-radius: var(--border-radius);
  font-size: 1rem;
}
.control-group span {
  display: inline-block;
  margin-left: var(--spacing-unit);
  font-weight: bold;
}
#visualization {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: var(--spacing-unit);
}
#viz-container {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--border-radius);
  background-color: white;
}
#viz {
  display: block;
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-muted);
  border-radius: var(--border-radius);
}
footer {
  text-align: center;
  padding: var(--spacing-unit);
  background-color: var(--color-secondary);
  color: white;
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}

.control-group input[type="range"]:focus,
.control-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 5px var(--color-accent);
}
.control-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
}
.control-group input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
}