:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: #111;
  color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

body {
  min-height: 100dvh;
}

.app {
  width: 100%;
  min-height: 100dvh;
}

.viewer {
  width: 100%;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 1rem;
}

.viewport {
  width: 100%;
  min-height: calc(100dvh - 2rem);
  display: grid;
  place-items: center;
}

#pdf-canvas {
  display: block;
  width: min(100%, 100vw);
  height: auto;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.status {
  margin: 0;
  padding: 1rem;
  text-align: center;
  line-height: 1.5;
}

.status a {
  color: #9ad0ff;
}

.noscript {
  position: fixed;
  inset: auto 0 0;
  background: #1b1b1b;
}

@media (max-width: 767px) {
  .viewer {
    padding: 0.5rem;
  }

  .viewport {
    min-height: calc(100dvh - 1rem);
  }
}
