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

/* Dialog アニメーション */
dialog {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 1s ease, transform 1s ease;
  width: 80%;
  max-width: 80%;
  margin: auto;
}

@media (min-width: 768px) {
  dialog {
    width: 50%;
    max-width: 50%;
  }
}

dialog[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0);
  transition: background 1s ease;
}

dialog[open]::backdrop {
  background: rgba(0, 0, 0, 0.5);
}
