#sim-surface {
  height: 80vh;
  aspect-ratio: 1;
  image-rendering: crisp-edges;
}

main {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  align-content: center;
  gap: 2rem;
  width: 100vw;
  height: 100vh;
}

.panel {
  padding: 12px;
  border-radius: 8px;
  background-color: #ffffff;
  -webkit-box-shadow: 3px 2px 16px 1px rgba(0,0,0,0.2); 
  box-shadow: 3px 2px 16px 1px rgba(0,0,0,0.2);
}

.panel h1 {
  font-size: 1.25rem;
  margin-top: 2px;
  margin-bottom: 16px;
}

#panels {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
}

body {
  background-color: #f8f8f8;
  font-family: sans-serif;
  margin: 0px;
  padding: 0px;
}

button {
  padding: 6px;
  border: none;
  border-radius: 6px;
  margin-bottom: 4px;
  transition-duration: 0.25s;
  transition-property: background-color;
}

button:hover {
  cursor: pointer;
}

#stopButton {
  background-color: #ff6060;
}

#stopButton:hover {
  background-color: #ffa0a0;
}

#static-params p,
#mutable-params p {
  display: inline;
  margin: 4px 0;
}

#static-params span {
  display: inline;
  color: #333;
}

/* Parameter controls styling */
.param-control {
  margin-bottom: 12px;
}

.param-control label {
  display: block;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 4px;
}

.param-control .input-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.param-control input[type="range"] {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: #ddd;
  border-radius: 3px;
  outline: none;
}

.param-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4a90e2;
  cursor: pointer;
  transition: background 0.15s;
}

.param-control input[type="range"]::-webkit-slider-thumb:hover {
  background: #357abd;
}

.param-control input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4a90e2;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
}

.param-control input[type="range"]::-moz-range-thumb:hover {
  background: #357abd;
}

.param-control .value-display {
  min-width: 50px;
  text-align: right;
  font-size: 0.85rem;
  color: #333;
  font-family: monospace;
}

#mutable-params {
  min-width: 280px;
}

#pauseButton {
  background-color: #4a90e2;
  color: white;
}

#pauseButton:hover {
  background-color: #357abd;
}

#stopButton:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}
