/*
 * 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.
 */

/* Recipe picker dialog: slide up on mobile, fade in on desktop */
dialog#recipe-picker-dialog {
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.2s ease, transform 0.25s ease, display 0.25s allow-discrete;
}

dialog#recipe-picker-dialog[open] {
  opacity: 1;
  transform: translateY(0);
}

@starting-style {
  dialog#recipe-picker-dialog[open] {
    opacity: 0;
    transform: translateY(100%);
  }
}

@media (min-width: 768px) {
  dialog#recipe-picker-dialog {
    transform: translateY(-48%) scale(0.95);
  }

  dialog#recipe-picker-dialog[open] {
    transform: translateY(-50%) scale(1);
  }

  @starting-style {
    dialog#recipe-picker-dialog[open] {
      transform: translateY(-48%) scale(0.95);
      opacity: 0;
    }
  }
}
