/* Button Base */
.button {
  padding: 1rem 2rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  color: var(--color);
  border-radius: 35px;
  border: 2px solid var(--color);
  font-weight: 700;
  gap: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  transition: 0.2s;
  background: transparent;
  cursor: pointer;
}

.button:active {
  transform: scale(0.99); 
}

/* Hover and Focus-Visible State for Transparent Buttons */
.button:hover,
.button:focus-visible {
  color: var(--color);
  background: rgba(var(--color-rgb, 255, 212, 69), 0.05);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.nav-button {
  padding: 0.5rem 2rem;
  margin: .5rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  color: var(--color);
  border-radius: 25px;
  border: 2px solid var(--color);
  font-weight: 700;
  gap: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease-in-out;
  background: transparent;
  cursor: pointer;
}

/* Hover and Focus-Visible State for Transparent Buttons */
.nav-button:hover,
.nav-button:focus-visible {
  color: var(--color);
  background: rgba(var(--color-rgb, 255, 212, 69), 0.05);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Active State */
.nav-button:active {
  box-shadow: 0 0 2px var(--color);
}
/* Active State */
.button:active {
  box-shadow: 0 0 2px var(--color);
}

/* Filled State */
.filled {
  color: var(--background);
  background: var(--color);
  border: 2px solid var(--color);
  transition: filter 0.1s ease-in-out;
}

.filled:hover,
.filled:focus-visible {
  filter: brightness(1);
}

.darken:hover,
.darken:focus-visible {
  filter: brightness(0.99);
  /* Slightly darkens the filled button */
  background-color: var(--color) !important;
  color: var(--background);
}

/* Transparent Outline Modifier */
.transparent-outline {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.transparent-outline:hover,
.transparent-outline:focus-visible {
  background: rgba(var(--color-rgb, 255, 212, 69), var(--button-bg-opacity)) !important;
  border-color: transparent !important;
  color: var(--color);
  box-shadow: none;
}

/* Disabled State
.button:disabled,
.button.disabled {
  background: var(--foreground);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
  cursor: not-allowed !important;
  opacity: 0.6;
  pointer-events: none;
} */

/* Error State */
.button.error {
  --color: var(--error-color);
  --color-rgb:var(--error-color-rgb);
}

/* Success State */
.button.success {
  --color: var(--success-color);
  --color-rgb: var(--success-color-rgb);
}

/* Warning State */
.button.warning {
  --color: var(--warning-color);
  --color-rgb: var(--warning-color-rgb);
}

/* White State */
.button.white {
  --color: var(--white-color);
  --color-rgb: var(--white-color-rgb);
}

/* Black State */
.button.black {
  --color: var(--black-color);
  --color-rgb: 51, 51, 51;
}

/* Question State */
.button.question {
  --color: var(--question-color);
  --color-rgb: var(--question-color-rgb);
}

/* Odd State */
.button.odd {
  --color: var(--odd-color);
  --color-rgb: var(--odd-color-rgb);
}

/* Disabled State */
.nav-button:disabled,
.nav-button.disabled {
  background: var(--foreground);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
  cursor: not-allowed !important;
  opacity: 0.6;
  pointer-events: none;
}

/* Error State */
.nav-button.error {
  --color: var(--error-color);
  --color-rgb: 242, 155, 158;
}

/* Success State */
.nav-button.success {
  --color: var(--success-color);
  --color-rgb: 157, 223, 158;
}

/* Warning State */
.nav-button.warning {
  --color: var(--warning-color);
  --color-rgb: 248, 218, 133;
}

/* White State */
.nav-button.white {
  --color: var(--white-color);
  --color-rgb: 255, 255, 255;
}

/* Black State */
.nav-button.black {
  --color: var(--black-color);
  --color-rgb: 51, 51, 51;
}

/* Question State */
.nav-button.question {
  --color: var(--question-color);
  --color-rgb: 51, 51, 51;
}

/* Odd State */
.nav-button.odd {
  --color: var(--odd-color);
  --color-rgb: 51, 51, 51;
}

/* Darken Modifier */
.darken {
  transition: filter 0.1s ease-in-out;
}

.full-width {
  width: -webkit-fill-available;
}

.normal-weight {
  font-weight: normal;
}

.button-display-wrapper {
  width: 100%;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  align-content: flex-start;
}

/* For the button stack in the membership card */
.responsive-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Full-width buttons for smaller screens */
@media screen and (max-width: 600px) {
  .responsive-buttons .button {
    width: 100%;
  }
}

.button-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  /* Center buttons */
}

.button-stack .button {
  flex: 1;
  min-width: 120px;
  /* Prevent buttons from being too small */
}

@media (max-width: 768px) {
  .button-stack .button {
    width: 100%;
    /* Full-width buttons on smaller screens */
  }
}

[data-particles] {
  position: relative;
}

[data-particles] particle {
  position: absolute;
}

particle {
  position: fixed;
  top: var(--particle-top, 0px);
  left: var(--particle-left, 0px);
  width: var(--particle-size, 10x);
  height: var(--particle-size, 10x);
  background-color: hsl(var(--particle-hue-rotation, 0), 100%, 55%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform-origin: 50% 50% 0px;
  will-change: opacity, transform;
}

particle.is-animating {
  -webkit-animation-name: particle-animation;
  animation-name: particle-animation;
  -webkit-animation-delay: var(--particle-animation-delay, 120ms);
  animation-delay: var(--particle-animation-delay, 120ms);
  -webkit-animation-duration: var(--particle-animation-duration, 480ms);
  animation-duration: var(--particle-animation-duration, 480ms);
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  -webkit-animation-timing-function: cubic-bezier(0.125, 0.6, 0.5, 0.65);
  animation-timing-function: cubic-bezier(0.125, 0.6, 0.5, 0.65);
}

@-webkit-keyframes particle-animation {
  0% {
    opacity: 0;
    transform: translate(0px, 0px);
  }

  10%,
  50% {
    opacity: 0.86;
  }

  100% {
    opacity: 0;
    transform: translate(var(--particle-translate-x, 0px), var(--particle-translate-y, -120px));
  }
}

@keyframes particle-animation {
  0% {
    opacity: 0;
    transform: translate(0px, 0px);
  }

  10%,
  50% {
    opacity: 0.86;
  }

  100% {
    opacity: 0;
    transform: translate(var(--particle-translate-x, 0px), var(--particle-translate-y, -120px));
  }
}