/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(../assets/fonts/Lato-Regular.ttf) format('truetype');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(../assets/fonts/Lato-Regular.ttf) format('truetype');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  src: local('EB Garamond Regular'), local('EBGaramond-Regular'), url(../assets/fonts/EBGaramond-Regular.ttf) format('truetype');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  src: local('EB Garamond Regular'), local('EBGaramond-Regular'), url(../assets/fonts/EBGaramond-Regular.ttf) format('truetype');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Lato", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #222;
  height: 100%;
}

a {
  color: #fff;
}

p {
  line-height: 1.5;
}

h1 {
  margin: 0;
}

img {
  display: block;
  border: 0;
}

nav img {
  display: inline !important;
  border-style: none;
}

.icon-button {
  display: block;
  padding: 8px;
  border: none;
  background: none;
  outline: 0;
  cursor: pointer;
}

.icon-button > * {
  width: 30px;
  height: 30px;
}

.app {
  height: 100%;
  display: flex; display: -ms-flexbox;
  flex-direction: column; -ms-flex-direction: column;
  overflow: hidden;
}

.header {
  border-bottom: 1px solid #999;
  background-color: #444;
  padding-bottom: 10px;
}

.header-content {
  display: flex; display: -ms-flexbox;
  align-items: center; -ms-flex-align: center;
  justify-content: space-between; -ms-flex-pack: justify;
  background-color: rgb(132, 204, 235);
  padding: 4px 10px;
}

.page-number-container {
  display: flex; display: -ms-flexbox;
  align-items: center; -ms-flex-align: center;
}

@media (max-width: 800px) {
  .header-content {
    flex-direction: column; -ms-flex-direction: column;
    align-items: flex-start; -ms-flex-align: start;
  }

  .page-number-container {
    margin: 6px 10px;
    margin-left: 10px;
    align-self: stretch; -ms-flex-item-align: stretch;
  }
}

.header-title {
  flex: 1; -ms-flex: 0 1 auto;
  font-weight: bold;
  font-family: 'EB Garamond', serif;
  margin-left: 10px;
}

.page-indicator {
  margin-right: 20px;
  font-size: 20px;
}

#page-number-form {
  display: inline;
}

#help {
  margin-left: 12px;
}

.dialog-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex; display: -ms-flexbox;
  flex-direction: column; -ms-flex-direction: column;
  justify-content: center; -ms-flex-pack: center;
  align-items: center; -ms-flex-align: center;
  overflow: hidden;
  padding: 12px;
}

.dialog-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(44, 44, 44, 0.8);
  width: 100%;
  height: 100%;
}

.dialog-full {
  width: 100%;
}

.dialog {
  position: relative;
  background-color: #fafafa;
  max-width: 800px;
  max-height: 800px;
  z-index: 3;
  border-radius: 6px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
  display: flex; display: -ms-flexbox;
  flex-direction: column; -ms-flex-direction: column;
  overflow: hidden;
}

.dialog-toolbar {
  display: flex; display: -ms-flexbox;
  background: rgb(132, 204, 235);
}

.dialog-title-container {
  display: flex; display: -ms-flexbox;
  align-items: center; -ms-flex-align: center;
  flex: 1; -ms-flex: 1;
  padding: 20px;
}

.dialog-title {
  font-weight: normal;
}

.dialog-content {
  padding: 20px;
  overflow-y: scroll;
}

.dialog-full .dialog-content {
  flex: 1; -ms-flex: 1 0 auto;
}

.panels {
  position: relative;
  display: flex; display: -ms-flexbox;
  flex: 1; -ms-flex: 1;
  overflow: hidden;
}

.image-panel {
  position: relative;
  display: flex; display: -ms-flexbox;
  flex: 1; -ms-flex: 1;
  overflow: hidden;
  user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
}

.image-toolbar {
  margin: 10px;
  position: absolute;
  left: 0;
  top: 0;
  background-color: rgb(132, 204, 235);
  display: flex; display: -ms-flexbox;
  flex-direction: column; -ms-flex-direction: column;
  z-index: 1;
  box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
  flex-wrap: wrap; -ms-flex-wrap: wrap;
  border-radius: 2px;
}

.image-toolbar > .icon-button:not(:last-child) {
  margin-bottom: 10px;
}

.view-toolbar {
  left: auto;
  right: 0;
  flex-direction: row; -ms-flex-direction: row;
}

.view-toolbar > .icon-button:not(:last-child) {
  margin: 0;
  margin-right: 10px;
}

.image-toolbar .icon-button:hover {
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.12), inset 0 1px 2px rgba(0,0,0,0.24);
  background-color: rgba(0, 0, 0, 0.05);
}

.image-toolbar .icon-button:active {
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.16), inset 0 3px 6px rgba(0,0,0,0.23);
  background-color: rgba(0, 0, 0, 0.1);
}

.image-container {
  display: flex; display: -ms-flexbox;
  justify-content: center; -ms-flex-pack: center;
  align-items: center; -ms-flex-align: center;
  flex: 1; -ms-flex: 1;
  background-color: #666;
  cursor: grab;
}

.image-container.panning {
  cursor: grabbing;
}

.paper {
  position: relative;
}

.image {
  display: block;
  pointer-events: none;
}

.ocr-layer {
  position: absolute;
  top: 0;
  left: 0;
}

.image-error {
  color: #fafafa;
  font-size: 26px;
  text-align: center;
}

.ocr-error {
  margin: auto;
  text-align: center;
}

.image-error-text, .ocr-error-text {
  margin-bottom: 10px;
}

.loader {
  width: 50px;
  height: 50px;
  border: 6px solid #fafafa;
  border-radius: 50%;
  border-bottom-color: transparent;
  border-left-color: transparent;
  animation: spin .6s linear infinite;
}

.export-loader {
  border-color: #36658D;
  border-bottom-color: transparent;
  border-left-color: transparent;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.export-progress {
  position: relative;
  border-radius: 2px;
  border: 1px solid #16698c;
  width: 200px;
  height: 40px;
  overflow: hidden;
}

.export-progress-bar {
  height: 100%;
  background-color: rgb(132, 204, 235);
}

.export-progress-text-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex; display: -ms-flexbox;
  justify-content: center; -ms-flex-pack: center;
  align-items: center; -ms-flex-align: center;
}

.ocr-panel {
  position: relative;
  border-left: 1px solid #aaa;
  display: flex; display: -ms-flexbox;
  flex-direction: column; -ms-flex-direction: column;
  width: 400px;
}

.ocr-resize-handle {
  position: absolute;
  top: 0;
  left: -5px;
  height: 100%;
  width: 10px;
  cursor: ew-resize;
  user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
}

.ocr-panel-hidden .ocr-resize-handle {
  cursor: auto;
}

.ocr-panel-hidden .ocr-error {
  display: none;
}

.ocr-toolbar {
  background-color: rgb(132, 204, 235);
}

.toggle-img {
  width: 24px;
  height: 24px;
}

.ocr-panel-content {
  flex: 1; -ms-flex: 1;
  display: flex; display: -ms-flexbox;
  flex-direction: column; -ms-flex-direction: column;
  overflow-y: auto;
}

.ocr-export {
  background-color: #ddd;
  padding: 10px 20px;
}

.ocr-export a {
  color: #36658D;
  margin-left: 10px;
}

.ocr-content {
  flex: 1; -ms-flex: 1;
}

@media (max-width: 700px) {
  .ocr-panel {
    width: 100%;
  }
}

.ocr-content p {
  padding: 20px 40px;
  margin: 0;
  cursor: pointer;
}

.ocr-content p:hover {
  background-color: #ccc;
}

.ocr-text-highlight {
  background-color: rgba(172, 65, 39, 0.43);
}

.ocr-text-search-term {
  border-radius: 4px;
  background-color: rgba(67, 101, 173, 0.43);
}

.ocr-panel-hidden {
  width: auto !important;
}

.ocr-panel-hidden .ocr-panel-content {
  display: none;
}

.slider-container {
  display: flex; display: -ms-flexbox;
  background-color: #fafafa;
  border-top: 1px solid #aaa;
  user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
}

.slider {
  margin: 0 20px;
  flex: 1; -ms-flex: 1;
  height: 100%;
  position: relative;
  display: flex; display: -ms-flexbox;
  align-items: center; -ms-flex-align: center;
}

.slider-track {
  height: 2px;
  flex: 1; -ms-flex: 1;
  background-color: #D1D3D4;
}

.slider-thumb {
  position: absolute;
  top: 50%;
  margin-top: -16px;
  left: -16px;
  width: 30px;
  height: 30px;
  border: 2px solid rgb(45, 82, 116);
  background-color: #36658D;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}

.slider-title-container {
  position: absolute;
  bottom: 50px;
  left: 50%;
  margin-left: -150px;
  width: 300px;
  text-align: center;
  pointer-events: none;
}

.slider-title {
  padding: 6px 10px;
  background-color: #fafafa;
  border: 1px solid #aaa;
  border-radius: 4px;
  font-size: 20px;
}

.slider-ticks {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.slider-tick {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-left: -6px;
  margin-top: -6px;
  background-color: #D1D3D4;
}

.image-navigation {
  display: flex; display: -ms-flexbox;
  flex-direction: row; -ms-flex-direction: row;
}

.image-navigation > .icon-button:not(:last-child) {
  margin: 0;
  margin-right: 10px;
}

.flex {
  flex: 1; -ms-flex: 1;
}

.rotate {
  transform: rotate(180deg);
}

.flip {
  transform: rotateY(180deg);
}

.input {
  font-size: 20px;
  color: inherit;
  padding: 10px 10px;
  background-color: #fafafa;
  border: 2px solid #36658D;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  border-right: none;
  text-align: right;
  outline: 0;
  width: 70px;
}

.input:focus {
  background-color: rgb(206, 232, 255);
}

.button {
  font-size: 20px;
  color: #fafafa;
  padding: 12px 24px;
  background-color: #36658D;
  border: none;
  outline: 0;
  border-radius: 6px;
}

.button:hover {
  box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}

.button:focus {
  background-color: rgb(65, 120, 168);
}

.button:active {
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.16), inset 0 3px 6px rgba(0,0,0,0.23);
}

.page-number-submit {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.round {
  border-radius: 50%;
}

.no-scroll {
  overflow: hidden;
}

.hidden {
  display: none;
}


