:root {
  --bg-color: #0b0d17;
  --text-color: #ffffff;
  --accent-color: #4cc9f0;
  --secondary-color: #4895ef;
  --panel-bg: rgba(255, 255, 255, 0.1);
  --panel-border: rgba(255, 255, 255, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

#simulation-container {
  position: relative;
  width: 100%;
  height: 100%;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#ui-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 500px;
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.control-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #ccc;
}

input[type="range"] {
  width: 100%;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  margin-bottom: 0.5rem;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: var(--accent-color);
  cursor: pointer;
  margin-top: -6px;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

#velocityValue {
  display: block;
  text-align: right;
  font-family: monospace;
  color: var(--accent-color);
  font-size: 1.5rem;
  /* Increased size */
  font-weight: bold;
}

.buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
}

button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

#fireBtn {
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  color: white;
}

#fireBtn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

#resetBtn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#resetBtn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.info {
  font-size: 0.8rem;
  color: #aaa;
  line-height: 1.4;
  border-top: 1px solid var(--panel-border);
  padding-top: 10px;
}

.info-title {
  font-size: 0.8rem;
  color: #aaa;
  padding-bottom: 20px;
}