@font-face {
  font-family: "InclusiveSansZero";
  src: url("/fonts/InclusiveSansZero/InclusiveSans-Regular.ttf");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "InclusiveSansZero", sans-serif;
  background-color: #f6f6f7;
  color: rgba(0, 0, 0, 0.825);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.container {
  text-align: center;
  padding: 48px 32px;
  max-width: 480px;
}

/* Viewer overrides the default centered-card layout */
.container:has(#viewer:not(.hidden)) {
  max-width: none;
  width: 100%;
  padding: 0;
  text-align: left;
}

body:has(#viewer:not(.hidden)) {
  display: block;
  min-height: 100vh;
}

#viewer {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.toolbar {
  flex: 0 0 auto;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #ddd;
  background: #fafafa;
  display: flex;
  justify-content: flex-end;
}

#pdfFrame {
  flex: 1 1 auto;
  width: 100%;
  border: none;
  display: block;
}

.spinner {
  display: inline-block;
  width: 56px;
  height: 56px;
  border: 5px solid #e0e0e0;
  border-top-color: #58595b;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin-bottom: 24px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

h1 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

p {
  font-size: 16px;
  color: rgba(0, 0, 0, 0.6);
}

.error-icon {
  font-size: 48px;
  margin-bottom: 16px;
  line-height: 1;
}

.hidden {
  display: none;
}
