// ------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
// #region Imports
import { css } from '../../../../../Dom/Css';
// #endregion
/**
 * @public
 */
export function marqueeElementJoyStyle() {
    return css `
:host {
  --marquee-direction: normal;
  --marquee-font-family: unset;
  --marquee-font-letter-spacing: unset;
  --marquee-font-line-height: unset;
  --marquee-font-size: unset;
  --marquee-font-text-decoration: unset;
  --marquee-font-text-transform: unset;
  --marquee-font-weight: unset;
  --marquee-gap: unset;
  --marquee-padding-bottom: unset;
  --marquee-padding-left: unset;
  --marquee-padding-right: unset;
  --marquee-padding-top: unset;
  --marquee-shadow: unset unset unset unset unset;
  --marquee-shadow-blur: unset;
  --marquee-shadow-color: unset;
  --marquee-shadow-offset-x: unset;
  --marquee-shadow-offset-y: unset;
  --marquee-shadow-spread: unset;
  --marquee-speed: calc(var(--joy-duration-long) * 10);
  --marquee-transition-duration: unset;
  --marquee-transition-mode: unset;
  --marquee-transition-property: unset;
  --marquee-translate: none;
}

@media screen and (prefers-reduced-motion: reduce) {
  :host {
    transition-duration: .01ms;
  }
}

:host {
  box-sizing: border-box;
  display: block;
  position: relative;
}

:host *, :host :before, :host :after {
  box-sizing: border-box;
  background-repeat: no-repeat;
}

:host :before, :host :after {
  text-decoration: inherit;
  vertical-align: inherit;
}

:host([hidden]) {
  display: none !important;
}

:host {
  display: block;
  position: relative;
  overflow: hidden;
}

:host [part="track"] {
  white-space: nowrap;
  will-change: transform;
  width: max-content;
  animation: marquee var(--marquee-speed) linear infinite var(--marquee-direction);
  flex-direction: row;
  display: flex;
}

:host [part="track"] .group {
  align-items: center;
  gap: var(--marquee-gap);
  flex-direction: row;
  flex-shrink: 0;
  display: flex;
}

:host [part="track"] ::slotted(*), :host [part="track"] .clone > * {
  flex-shrink: 0;
}

:host [part="overlay"] {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

:host [part="overlay"]:before, :host [part="overlay"]:after {
  content: "";
  width: 2rem;
  position: absolute;
  top: 0;
  bottom: 0;
}

:host [part="overlay"]:before {
  left: 0;
}

:host [part="overlay"]:after {
  right: 0;
}

:host([reverse]) [part="track"] {
  animation: marquee-reverse var(--marquee-speed) linear infinite var(--marquee-direction);
}

:host(:hover) [part="track"] {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes marquee-reverse {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

:host [part="overlay"]:before {
  background: linear-gradient(to right, var(--joy-scheme-background), transparent);
}

:host [part="overlay"]:after {
  background: linear-gradient(to left, var(--joy-scheme-background), transparent);
}

:host [part="track"] {
  animation-name: elastic-marquee;
  animation-timing-function: cubic-bezier(.4, 0, .2, 1);
}

:host([reverse]) [part="track"] {
  animation-name: elastic-marquee-reverse;
  animation-timing-function: cubic-bezier(.4, 0, .2, 1);
}

@keyframes elastic-marquee {
  0% {
    transform: translateX(0%);
  }

  10% {
    transform: translateX(-2.5%);
  }

  20% {
    transform: translateX(-6%);
  }

  30% {
    transform: translateX(-10%);
  }

  40% {
    transform: translateX(-15%);
  }

  50% {
    transform: translateX(-21%);
  }

  58% {
    transform: translateX(-27.5%);
  }

  65% {
    transform: translateX(-34%);
  }

  72% {
    transform: translateX(-40%);
  }

  80% {
    transform: translateX(-45%);
  }

  88% {
    transform: translateX(-48%);
  }

  95% {
    transform: translateX(-49.5%);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes elastic-marquee-reverse {
  0% {
    transform: translateX(-50%);
  }

  10% {
    transform: translateX(-47.5%);
  }

  20% {
    transform: translateX(-44%);
  }

  30% {
    transform: translateX(-40%);
  }

  40% {
    transform: translateX(-35%);
  }

  50% {
    transform: translateX(-29%);
  }

  58% {
    transform: translateX(-22.5%);
  }

  65% {
    transform: translateX(-16%);
  }

  72% {
    transform: translateX(-10%);
  }

  80% {
    transform: translateX(-5%);
  }

  88% {
    transform: translateX(-2%);
  }

  95% {
    transform: translateX(-.5%);
  }

  100% {
    transform: translateX(0%);
  }
}

@media (prefers-reduced-motion: reduce) {
  :host [part="track"] {
    animation: none;
  }
}

    `;
}
//# sourceMappingURL=MarqueeElement.Joy.js.map