/* Reset and base setup */
* {
  position: relative;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  background: transparent !important; /* 🟢 Set body background to transparent */
}

/* Background completely transparent */
html {
  background-color: #000 !important; /* 🟢 Set background to black */
}

/* Visibility control */
.hide {
  opacity: 0;
  visibility: hidden;
}

.remove {
  display: none !important;
}

.blur {
  filter: blur(12px);
}

/* Center container */
.fireworks-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Set to -1 to be in the background */
  pointer-events: none; /* Animation ke neeche click karne ke liye */
  display: flex;
  justify-content: center;
  align-items: center;
}
.fireworks-container, .fireworks-container * {
  color: rgba(255, 255, 255, 0.5);
  font-family: "Russo One", arial, sans-serif;
  line-height: 1.25;
  letter-spacing: 0.06em;
}


/* Diwali Wish Styles */
.diwali-wish {
  position: absolute;
  z-index: 1; /* Isko canvas ke upar rakhega */
  text-align: center;
  color: white;
  pointer-events: auto; /* Isse text select ho sakta hai */
  animation: fadeInOut 8s ease-in-out forwards;
}

.diwali-wish h1 {
  font-family: 'Russo One', 'Arial', sans-serif;
  font-size: 5rem;
  font-weight: bold;
  color: #FFD700; /* Gold color */
  text-shadow: 0 0 10px #FFD700, 0 0 20px #FF8C00, 0 0 30px #FF4500, 0 0 40px #FF0000;
  letter-spacing: 0.1em;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: scale(0.8); }
  25% { opacity: 1; transform: scale(1.1); }
  75% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(0.8); display: none; }
}

@media (max-width: 600px) {
  .diwali-wish h1 {
    font-size: 3rem;
  }
}

/* Loading screen */
.loading-init {
  width: 100%;
  align-self: center;
  text-align: center;
  text-transform: uppercase;
}

.loading-init__header {
  font-size: 2.2em;
}

.loading-init__status {
  margin-top: 1em;
  font-size: 0.8em;
  opacity: 0.75;
}

/* Stage area */
.stage-container {
  overflow: hidden;
  box-sizing: initial;
  border: 1px solid rgba(34, 34, 34, 0.4); /* 🔹 Border made semi-transparent */
  border: none; /* No border for background */
  margin: -1px;
  background: transparent !important; /* 🟢 No background */
}

@media (max-width: 840px) {
  .stage-container {
    border: none;
    margin: 0;
  }
}

/* Canvas transparency */
.canvas-container {
  width: 100%;
  height: 100%;
  transition: filter 0.3s;
  background: transparent !important; /* 🟢 Transparent canvas wrapper */
}

.canvas-container canvas {
  position: absolute;
  mix-blend-mode: lighten;
  transform: translateZ(0);
}

/* Controls */
.controls {
  position: absolute;
  top: 0;
  width: 100%;
  padding-bottom: 50px;
  display: flex;
  justify-content: space-between;
  transition: opacity 0.3s, visibility 0.3s;
  pointer-events: auto; /* Pause button ko clickable banane ke liye */
  background: transparent !important;
}

@media (min-width: 840px) {
  .controls {
    visibility: visible;
  }
  .controls.hide:hover {
    opacity: 1;
  }
}

.menu__header {
  margin-top: auto;
  margin-bottom: 8px;
  padding-top: 16px;
  font-size: 2em;
  text-transform: uppercase;
}

.menu__subheader {
  margin-bottom: auto;
  padding-bottom: 12px;
  font-size: 0.86em;
  opacity: 0.8;
}

@media (max-width: 840px) {
  .menu .form-option select, .menu .form-option input {
    outline: none;
  }
}

/* Buttons */
.btn {
  opacity: 0.16;
  width: 50px;
  height: 50px;
  display: flex;
  user-select: none;
  cursor: default;
  transition: opacity 0.3s;
}

.btn--bright {
  opacity: 0.5;
}

@media (min-width: 840px) {
  .btn:hover {
    opacity: 0.32;
  }
  .btn--bright:hover {
    opacity: 0.75;
  }
}

.btn svg {
  display: block;
  margin: auto;
}

/* Credits section */
.credits {
  margin-top: auto;
  margin-bottom: 10px;
  padding-top: 6px;
  font-size: 0.8em;
  opacity: 0.75;
}

.credits a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.credits a:hover,
.credits a:active {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
}
