/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@keyframes flash-toast {
  0% {
    opacity: 0;
    transform: translateY(1rem);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  88% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(0.5rem);
  }
}

.flash-toast {
  animation: flash-toast 4s ease forwards;
}

:root {
  --slide-direction: 1;
}

@keyframes slide-out {
  to { transform: translateY(calc(-100% * var(--slide-direction))); }
}

@keyframes slide-in {
  from { transform: translateY(calc(100% * var(--slide-direction))); }
}

::view-transition-old(root) {
  animation: none;
  opacity: 0;
}

::view-transition-new(root) {
  animation: none;
}

::view-transition-group(page-content) {
  overflow: hidden;
}

::view-transition-old(page-content) {
  animation: slide-out 420ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

::view-transition-new(page-content) {
  animation: slide-in 420ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
