/* Happy Diwali Text Begin */
.diwali-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  font-weight: bold;
  color: yellow;
  text-shadow: 0 0 5vw gold, 0 0 10vw gold; /* glow scales */
  pointer-events: none; /* clicks pass through */
  opacity: 0; /* hidden initially */
  transition: opacity 0.5s;
  text-align: center;
  white-space: nowrap;
}
/* Happy Diwali Text End */

canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.credits {
  position: absolute;
  right: 4%;
  bottom: 2%;
  color: #aaa;
  font-size: 12px;
  text-align: right;
}

#fireworks-container {
  position: relative;
  width: 100%;          /* fluid width */
  max-width: 1080px;    /* optional max width */
  margin: 20px auto;   /* center horizontally with top margin */
  height: 50vh;        /* responsive height based on viewport */
  min-height: 300px;   /* minimum height */
  background: #000;    /* dark background for fireworks */
  overflow: hidden;    /* hide particles outside container */
  border-radius: 20px; /* round corners */
}

@media (max-width: 768px) {
  #fireworks-container {
    height: 35vh;      /* reduce height on mobile */
    min-height: 200px; /* optional smaller minimum height */
  }
}

/* Ensure canvas fills container */
#fireworks-container canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

