/* Full-screen "opening" cover for the PDF.js viewer — shown until the document
   has actually finished loading, then faded out to reveal the toolbar/pages
   underneath (loadingoverlay.js drives the timing). Matches the branded
   loading screen used on the fallback index.html page. */
#pdfLoadingOverlay {
  position: fixed;
  inset: 0;
  z-index: 100000; /* above the toolbar's own z-index */
  background: #5D633B;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vw;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  transition: opacity 320ms ease;
}

#pdfLoadingOverlay.pdf-loading-overlay-hidden {
  opacity: 0;
  pointer-events: none;
}

#pdfLoadingOverlay main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 100%;
}

#pdfLoadingOrb {
  display: flex;
  align-items: center;
  justify-content: center;
}

#pdfLoadingOverlay p {
  margin: 0;
  color: #EFF0E9;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-align: center;
  opacity: 0.92;
  max-width: 90vw;
}

@media (prefers-reduced-motion: reduce) {
  #pdfLoadingOverlay {
    transition: none;
  }
}
