.wrapper {
  overflow: hidden;
  position: relative;
  border-radius: 0.5rem;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(255 237 213);
  opacity: 0.075;
  z-index: 20;
  pointer-events: none;
}

.content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border-radius: 0.5rem;
  background: black;
  background-image: radial-gradient(rgba(23, 23, 23, 1) 1px, transparent 0);
  background-size: 20px 20px;
  background-position: center;
  border: 1px solid rgba(64, 64, 64, 1);
  max-width: 400px;
  transform: translateZ(0px);
}

@media screen and (max-width: 640px) {
  .content {
    padding: 1rem;
  }
}

.bulbcover {
  padding: 0 3rem 3rem 3rem;
}

.bulb {
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  color: white;
  background: black;
  aspect-ratio: 1/1;
  border: 1px solid rgba(64, 64, 64, 1);
  box-shadow: 0px 0px 8px 0px rgba(12, 12, 12, 1);
  transform: rotate(0deg);
  will-change: transform;
  animation: rotate-bulb 5s infinite;
}

.light {
  position: absolute;
  top: 3.25rem;
  left: 50%;
  background: black;
  border: 5rem inset transparent;
  border-top: 0;
  border-bottom: 50vh inset rgba(255, 255, 255, 1);
  transform-origin: top center;
  transform: translateX(-50%) rotate(60deg);
  filter: blur(1.5rem);
  mix-blend-mode: color-dodge;
  z-index: 10;
  pointer-events: none;
  will-change: transform;
  animation: rotate-light 5s infinite;
}

.textbox {
  flex: 1;
  color: rgb(64, 64, 64);
  line-height: 1.3;
  text-align: center;
  font-size: 1rem;
  font-weight: 300;
  text-wrap: balance;
}

@media screen and (min-width: 640px) {
  .textbox {
    font-size: 1.25rem;
  }
}

@keyframes rotate-light {
  0% {
    transform: translateX(-50%) rotate(0deg);
  }
  25% {
    transform: translateX(-50%) rotate(60deg);
  }
  75% {
    transform: translateX(-50%) rotate(-60deg);
  }
  100% {
    transform: translateX(-50%) rotate(0deg);
  }
}

@keyframes rotate-bulb {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(60deg);
  }
  75% {
    transform: rotate(-60deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
