
        @import "https://unpkg.com/open-props/easings.min.css";

.sun-and-moon > :is(.moon, .sun, .sun-beams) {
  transform-origin: center;
}

.sun-and-moon > :is(.moon, .sun) {
  fill: var(--icon-fill);
}

.theme-toggle:is(:hover, :focus-visible) > .sun-and-moon > :is(.moon, .sun) {
  /* fill: var(--icon-fill-hover); */
}

.sun-and-moon > .sun-beams {
  stroke: var(--icon-fill);
  stroke-width: 2px;
}

.theme-toggle:is(:hover, :focus-visible) .sun-and-moon > .sun-beams {
  /* stroke: var(--icon-fill-hover); */
}

[data-theme="dark"] .sun-and-moon > .sun {
  transform: scale(1.75);
}

[data-theme="dark"] .sun-and-moon > .sun-beams {
  opacity: 0;
}

[data-theme="dark"] .sun-and-moon > .moon > circle {
  transform: translateX(-7px);
}

@supports (cx: 1) {
  [data-theme="dark"] .sun-and-moon > .moon > circle {
    cx: 17;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sun-and-moon > .sun {
    transition: transform .5s var(--ease-elastic-3);
  }

  .sun-and-moon > .sun-beams {
    transition: transform .5s var(--ease-elastic-4), opacity .5s var(--ease-3);
  }

  .sun-and-moon .moon > circle {
    transition: transform .25s var(--ease-out-5);
  }

  @supports (cx: 1) {
    .sun-and-moon .moon > circle {
      transition: cx .25s var(--ease-out-5);
    }
  }

  [data-theme="dark"] .sun-and-moon > .sun {
    transition-timing-function: var(--ease-3);
    transition-duration: .25s;
    transform: scale(1.75);
  }

  [data-theme="dark"] .sun-and-moon > .sun-beams {
    transition-duration: .15s;
    transform: rotateZ(-25deg);
  }

  [data-theme="dark"] .sun-and-moon > .moon > circle {
    transition-duration: .5s;
    transition-delay: .25s;
  }
}

.theme-toggle {
    background: none; /* Remove the default background */
    border: none; /* Remove the default border */
    padding: 0; /* Remove any default padding */
    cursor: pointer; /* Change cursor to pointer */
    outline: none; /* Remove the outline on focus */
}

/* Optional: To improve accessibility, you might want to set a hover/focus effect */
.theme-toggle:hover,
.theme-toggle:focus {
    outline: 2px solid transparent; /* You can customize the outline if needed */
}


:root {
    --icon-fill: #000; /* Example for light mode */
}

[data-theme="dark"] {
    --icon-fill: #fff; /* Example for dark mode */
}

.sun-and-moon {
    width: 24px; /* Set the width of the SVG */
    height: 24px; /* Set the height of the SVG */
    viewBox: 0 0 24 24; /* The viewBox is not a CSS property, it should remain in the SVG element */
    display: inline-block; /* Optional: Ensure it behaves like an inline element */
    /* Optional: Adjust other styles as needed */
}
