/* View Transitions API styles */

/* Drawer transition */
.drawer-panel {
  view-transition-name: drawer;
}

::view-transition-old(drawer) {
  animation: slide-out-right 0.3s ease-in;
}

::view-transition-new(drawer) {
  animation: slide-in-right 0.3s ease-out;
}

/* Drawer slide animations */
@keyframes slide-in-right {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-out-right {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.animate-slide-in-right {
  animation: slide-in-right 0.3s ease-out;
}

/* Backdrop fade */
.backdrop {
  view-transition-name: backdrop;
}

::view-transition-old(backdrop),
::view-transition-new(backdrop) {
  animation-duration: 0.2s;
}

/* Response card morph transition */
::view-transition-group(response-*) {
  animation-duration: 0.35s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

::view-transition-old(response-*),
::view-transition-new(response-*) {
  animation: none;
  mix-blend-mode: normal;
}

/* Question header morph transition */
::view-transition-group(question-header) {
  animation-duration: 0.35s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

::view-transition-old(question-header),
::view-transition-new(question-header) {
  animation: none;
  mix-blend-mode: normal;
}

/* Default page transition - crossfade */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.2s;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
