:root {
  --toolbar-height: 0px;
}

html,
body {
  height: 100%;
  margin: 0;
  background: #525659;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial,
    sans-serif;
}

#toolbar[hidden] {
  display: none;
}

#toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 40px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  padding: 4px 8px;
  background: #38383d;
  color: #fff;
  z-index: 10;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

#toolbar button,
#toolbar select,
#toolbar a {
  background: #4a4a50;
  color: #fff;
  border: none;
  border-radius: 3px;
  height: 26px;
  padding: 0 8px;
  cursor: pointer;
  font-size: 13px;
  line-height: 26px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

#toolbar button:hover,
#toolbar select:hover,
#toolbar a:hover {
  background: #5a5a60;
}

#pageNumber {
  width: 42px;
  height: 26px;
  text-align: center;
  border-radius: 3px;
  border: none;
}

#viewerContainer {
  position: absolute;
  top: var(--toolbar-height);
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
}

#loadingIndicator {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13px;
  z-index: 20;
}

#errorWrapper {
  position: fixed;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  background: #b71c1c;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 20;
  text-align: center;
}

#errorMessage a {
  color: #fff;
}

#legacyFallback {
  position: relative;
  z-index: 30;
  padding: 24px;
  color: #fff;
  text-align: center;
}

#legacyFallback a {
  color: #9ecbff;
}
