#settings-menu-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none; /* Initially hidden */
  background-color: rgba(10, 10, 10, 0.85);
  color: white;
  pointer-events: auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1010;
  font-family: 'Arial Black', Gadget, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.settings-menu-content {
  background-color: rgba(0, 0, 0, 0.2);
  border: 2px solid #00f2ff;
  border-radius: 8px;
  padding: 20px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px; /* Adjusted max-width */
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
  gap: 20px; /* Adjusted gap */
}

.settings-menu-content h2 {
  font-weight: 900;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: white;
  transform: skewX(-10deg);
  text-shadow: 2px 2px 0px rgba(0,0,0,0.4);
  margin-bottom: 15px; /* Adjusted margin */
}

.settings-slider-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 15px;
}

.settings-slider-label {
  font-size: 0.9em;
  color: #E0E0E0;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.settings-slider-control {
  flex-grow: 1;
  display: flex;
  align-items: center;
  height: 20px;
}

.settings-custom-slider-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: rgba(0, 242, 255, 0.4);
  outline: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.settings-custom-slider-input:hover {
  background: rgba(0, 242, 255, 0.6);
}

.settings-custom-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 4px;
  height: 24px;
  background: #00f2ff;
  border-radius: 0;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 242, 255, 0.5);
}

.settings-custom-slider-input::-moz-range-thumb {
  width: 4px;
  height: 24px;
  background: #00f2ff;
  border-radius: 0;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 242, 255, 0.5);
}

.settings-slider-value {
  font-size: 0.9em;
  color: #E0E0E0;
  text-align: right;
  min-width: 40px;
}

#settings-close-button {
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid #00f2ff;
  color: #00f2ff;
  padding: 12px 0;
  font-family: 'Arial Black', Gadget, sans-serif;
  font-size: 1rem;
  width: 100%;
  max-width: 240px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  border-radius: 5px;
  margin-top: 15px;
}

#settings-close-button:hover {
  background-color: rgba(0, 242, 255, 0.2);
}

#settings-close-button:active {
  transform: scale(0.98);
}