/* Diwali: a string of lights hanging under the top bar, and fireworks over
   the screen (diwali.js). */

.jtop {
  position: relative;
}

.lights {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 40px;
  pointer-events: none;
  z-index: 11;
  overflow: visible;
}
.lights svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.lights .wire {
  fill: none;
  stroke: #5a3a2c;
  stroke-width: 1.4;
}
.lights .bulb {
  filter: drop-shadow(0 0 3px currentColor) drop-shadow(0 0 7px currentColor);
}
.lights .cap {
  fill: #6b4a34;
}

/* The fireworks pass over the page, under the top bar; nothing stays behind. */
.sky-show {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9;
}

/* Phones: room under the lights so they don't cover the first line. */
@media (max-width: 600px) {
  .lights {
    height: 32px;
  }
  section.hero {
    padding-top: 64px;
  }
  .wrap.hero {
    padding-top: 56px;
  }
  .jtop {
    margin-bottom: 18px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .lights .bulb {
    animation: twinkle 1.8s ease-in-out infinite;
    animation-delay: var(--d, 0s);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
