body {
  font-family: Arial, sans-serif;
  background-color: #000000;
  color: #ffffff;
  margin: 0;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}

h1 {
  text-align: center;
  color: #ffd700;
  text-shadow: 0 0 10px #ffd700;
  grid-column: 1 / -1;
}

.control-panel {
  background-color: rgba(50, 50, 50, 0.7);
  border-radius: 10px;
  padding: 20px;
  width: 280px;
  height: fit-content;
}

.slider-container,
.color-container,
.background-container {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

label {
  display: inline-block;
  width: 120px;
  margin-right: 10px;
  font-size: 0.9em;
}

input[type="range"] {
  width: 100px;
}

input[type="color"] {
  width: 50px;
  height: 25px;
  margin-right: 10px;
}

#fireworks-display {
  width: 100%;
  height: calc(100vh - 100px);
  background-color: #000000;
  border: 1px solid #333;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  cursor: crosshair;
  transition: background 0.5s ease;
}

.starry-night {
  background: radial-gradient(circle at center, #0a1529 0%, #000000 100%) !important;
  position: relative;
}

.starry-night::before,
.moonlit-sky::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.moonlit-sky {
  background: linear-gradient(to bottom, #1a237e 0%, #000051 100%) !important;
}

.moonlit-sky::before {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background: url('https://www.freeiconspng.com/uploads/moon-png-25.png') no-repeat center center;
  background-size: contain;
  top: 30px;
  right: 50px;
  opacity: 0.8;
}

.firework {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background-color: white;
  border-radius: 50%;
}
