* {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  min-height: 100vh;
  position: relative;
  background-color: #ffffff;
}

#main-container {
  height: 100%;
  width: 100%;
  position: absolute;
  background-color: #ffffff;
}

#toolbar-top {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e9edf8;
  border-bottom: none;
  position: absolute;
  height: 60px;
  left: 0;
  top: 0;
  right: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

#document-title {
  font-weight: bold;
  font-size: smaller;
  color: #666;
}

#canvas-container {
  border: 1px solid #e9edf8;
  background-color: #ffffff;
  bottom: 45px;
  left: 0;
  overflow: auto;
  position: absolute;
  right: 0;
  top: 60px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#loading {
  color: #666;
}

.canvas-page {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 0 auto;
  border: 1px #efefef solid;
  box-shadow: 2px 2px 10px #efefef;
}

#hcanvas {
  display: none;
}

#toolbar-bottom {
  background: #fff;
  border: 1px solid #e9edf8;
  bottom: 0;
  box-sizing: border-box;
  height: 45px;
  left: 0;
  padding: 0 14px 0 24px;
  position: absolute;
  right: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 0 20px;
}

#toolbar-bottom #download {
  font-size: 0.85rem;
}

#toolbar-bottom #download a,
#toolbar-bottom #download a:visited {
  text-decoration: none;
  color: #c93631;
  cursor: pointer;
}

#toolbar-bottom #download a:hover {
  text-decoration: underline;
}

#toolbar-bottom #page-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #666;
}

#toolbar-bottom #page-info input[type="number"] {
  width: 30px;
  border: 1px #999 solid;
  border-radius: 3px;
}

#toolbar-bottom #fullscreen {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

#toolbar-bottom #fullscreen button {
  appearance: none;
  border: 0 none;
  background-color: transparent;
  color: #666;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
  text-align: center;
  width: 15%;
  padding: 3px;
  font-size: 0.85rem;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

@media only screen and (max-width: 600px) {
  #document-title {
    display: none;
  }
}
