/* Rainbow Gradient Border Animation for Demo Button */
.rainbow-border-button {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.rainbow-border-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  aspect-ratio: 1/1;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    #ff0000,
    #ff8000,
    #ffff00,
    #80ff00,
    #00ff00,
    #00ff80,
    #00ffff,
    #0080ff,
    #0000ff,
    #8000ff,
    #ff00ff,
    #ff0080,
    #ff0000
  );
  border-radius: 50%;
  animation: rainbow-spin 3s linear infinite;
  z-index: -1;
}

.rainbow-border-button::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: inherit;
  border-radius: 5px;
  z-index: -1;
}

/* Ensure the background color works for different button types */
.rainbow-border-button.button.primary::after {
  background: var(--dd);
}

.rainbow-border-button.button.secondary.white::after {
  background: white;
}

@keyframes rainbow-spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Enhanced hover effect for the rainbow button */
.rainbow-border-button:hover::before {
  animation-duration: 1.5s;
  filter: blur(0.5px) brightness(1.2);
}

.rainbow-border-button:hover {
  transform: translateY(-1px);
  transition: transform 0.2s ease;
}

/* Make sure the button text stays on top */
.rainbow-border-button .bold-text {
  position: relative;
  z-index: 2;
} 