/* print.css — exportação para PDF do Reveal.js (funciona com ?print-pdf)
   Cada <section> vira uma página A4/Letter. Baseado no padrão do reveal.js. */

@media print {
  html.print-pdf, html.print-pdf body {
    height: auto !important;
    overflow: visible !important;
  }

  html.print-pdf .reveal {
    overflow: visible !important;
  }

  html.print-pdf .reveal .slides {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
  }

  html.print-pdf .reveal .slides > section,
  html.print-pdf .reveal .slides > section > section {
    position: relative !important;
    visibility: visible !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    width: 100% !important;
    height: 100% !important;
    padding: 40px 56px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    page-break-after: always !important;
    break-after: page !important;
    transform: none !important;
    opacity: 1 !important;
  }

  /* fragmentos aparecem completos no PDF */
  html.print-pdf .reveal .fragment {
    opacity: 1 !important;
    visibility: visible !important;
  }

  html.print-pdf .reveal img,
  html.print-pdf .reveal video {
    max-width: 100% !important;
    max-height: 80vh !important;
  }

  /* esconde UI de tela */
  html.print-pdf .reveal .progress,
  html.print-pdf .reveal .controls,
  html.print-pdf .reveal .slide-number,
  html.print-pdf .reveal .pause-overlay,
  html.print-pdf .md-toolbar {
    display: none !important;
  }

  /* remove animação de entrada e decoração fixa no PDF */
  html.print-pdf body::before,
  html.print-pdf body::after,
  html.print-pdf .app-frame {
    display: none !important;
  }
  html.print-pdf .reveal .slides section > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  @page {
    size: A4 landscape;
    margin: 0;
  }
}
