@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --bg-gradient-top: #141414;
  --bg-gradient-bottom: #141414;
  --bg-color: var(--bg-gradient-top);
  --text-color: #e6edf3;
  --accent-color: #a5d8ff;
  --secondary-color: #4a90e2;
  --tertiary-color: #d1e9ff;
  --earth-color: #4675bc;
  --earth-border-color: #82a4d7;
  --mountain-color: #515d71;
  --panel-bg: rgba(22, 30, 45, 0.7);
  --panel-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: 'Outfit', 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: 24px;
  left: 24px;
  width: 380px;
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--glass-shadow);
  z-index: 10;
  animation: slideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--accent-color);
}

.info-title {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 25px;
  font-weight: 300;
  line-height: 1.4;
}

.control-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 16px top 50%;
  background-size: 10px auto;
}

select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

select option {
  background: var(--bg-color);
  color: white;
}

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

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: var(--text-color);
  border: 3px solid var(--accent-color);
  cursor: pointer;
  margin-top: -8px;
  transition: transform 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  transition: background 0.3s;
}

input[type="range"]:focus::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.2);
}

#velocityValue {
  display: block;
  text-align: right;
  font-family: inherit;
  color: var(--accent-color);
  font-size: 1.8rem;
  font-weight: 800;
  font-weight: 800;
}

.buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  margin-bottom: 20px;
}

button {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#fireBtn {
  background: var(--secondary-color);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

#fireBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

#fireBtn:active {
  transform: translateY(1px);
}

#resetBtn {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

#resetBtn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.info {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
  border-top: 1px solid var(--panel-border);
  padding-top: 15px;
  text-align: center;
}