@import url('https://fonts.googleapis.com/css?family=Special+Elite');


/**
* Captions
**/

.caption {
  color: #999;
  font-size: 12px;
  line-height: 16px;
  margin: 10px 60px 20px;
}

@media (max-width: 600px) {
  .caption {
    margin: 10px 10px 20px;
  }
}

/**
* Text Reuse Sample Pages
**/

.cookery-images {
  text-align: center;
}

.cookery-images img {
  width: 300px;
  display: inline-block;
  vertical-align: top;
  box-shadow: 0px 0px 5px #ddd;
  margin: 6px;
}

/**
* Nova Scotia Images
**/

.nova-scotia-images a {
  display: inline-block;
}

.center-images.nova-scotia-images img {
  max-height: 140px;
  filter: grayscale(100%);
}

/**
* Methods Images
**/

.center-images {
  text-align: center;
}

.center-images img {
  display: inline-block;
  margin: 10px auto 0;
  max-height: 184px;
}

.center-images .cut-l {
  max-height: 210px;
}

.center-images .cut-r {
  max-height: 211px;
}

.center-images .alembic-l {
  max-height: 220px;
}

.center-images .alembic-r {
  max-height: 225px;
}

/**
* Anson's Maps
**/

.map-images {
  max-width: 100%;
  overflow: auto;
  white-space: nowrap;
}

.map-images img {
  max-height: 128px;
  margin-top: 0;
}

/**
* Skeletons
**/

.center-images.skeleton-images img {
  max-height: 200px;
  margin: 0 5px -5px;
  vertical-align: top;
}

.center-images.skeleton-images img:first-of-type {
  max-height: 217px;
}

/**
* Sample Matches
**/

#image-browser #sample-images {
  max-width: 100%;
  height: 446px;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: pointer;
  opacity: 1;
}

#image-browser img {
  height: 34px;
  display: inline-block;
  margin: 0;
}

#image-browser #sample-images.active img {
  opacity: 0.2;
}

#image-browser #sample-images.active img.active {
  opacity: 1;
}

#image-browser #refresh-sample-images {
  margin: 20px auto 25px;
}

#image-browser #match-reel {
  background: #f9f9f9;
  padding: 9px;
  border: 1px solid #efefef;
  margin-bottom: 18px;
  box-shadow: 0px 0px 2px #555;
  height: 100px;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  text-align: center;
  box-sizing: border-box;
}

#image-browser #match-reel img {
  height: 100%;
}

#image-browser #match-reel span {
  color: #777;
  font-size: 0.9em;
  position: relative;
  top: 27px;
}

@media(max-width: 600px) {
  #image-browser #match-reel span {
    font-size: 0.7em;
  }
}

/**
* Moore Text Samples
**/

.paragraphs {
  text-align: center;
}

.paragraphs img {
  display: inline-block;
  padding: 5px;
  box-sizing: border-box;
  width: 300px;
  vertical-align: top;
  margin: 0;
}

/**
* Moore's Pages
**/

.moore-voyages {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}

.moore-voyages img {
  max-height: 240px;
  margin: 3px;
}

/**
* Russia images
**/

.russia-images img {
  max-height: 220px;
  vertical-align: top;
}

.russia-images img:nth-of-type(1) {
  max-height: 242px;
}

.russia-images img:nth-of-type(2) {
  margin-top: 13px;
}

/**
* Natives images
**/

.native-images {
  white-space: initial;
}

.carver-images img {
  max-height: 194px;
}

/**
* Congo images
**/

.astley-images img {
  max-height: 261px;
}

/**
* Kangaroo images
**/

.kangaroo-images img {
  max-height: 130px;
}

/**
* Notes
**/

.code-highlight {
  background: black;
  color: #eee;
  padding: 3px 5px;
  border-radius: 4px;
  font-family: courier;
}

.variable-list {
  margin: 10px 40px 15px;
}

/**
* Inline Equations
**/

.fraction {
  display: inline-block;
  position: relative;
  vertical-align: middle;
  text-align: center;
  font-size: 0.7em;
  line-height: 0.8em;
  letter-spacing: 0.001em;
}

.fraction > span {
  display: block;
  padding: 0.1em;
}

.fraction span.bottom {
  border-top: thin solid black;
}

.fraction span.bar {
  display: none;
}

/**
* Moore Text Matches
**/

canvas {
  width: 100%;
  height: 100%;
}

.gl-wrap {
  margin-left: -65px;
  width: 800px;
  max-width: 100vw;
  overflow-x: auto;
  overflow-y: hidden;
}

@media (max-width: 785px) {
  .gl-wrap {
    margin-left: -40px;
  }
}

@media (max-width: 520px) {
  .gl-wrap {
    margin-left: -10px;
  }
}

.gl-container {
  position: relative;
  width: 100%;
}

#gl-line {
  width: 1px;
  height: 400px;
  margin-top: 25px;
  display: inline-block;
  position: absolute;
  left: 30px;
  background: #cbcbcb;
  pointer-events: none;
  box-shadow: 0px 1px 3px #bfbfbf;
}

#gl-target {
  width: 100%;
  height: 450px;
}

/**
* Match table
**/

.moore-match-table {
  padding: 5px 0;
  width: 100%;
  display: block;
  color: #888;
  height: 200px;
  overflow: auto;
  border-radius: 0px;
  margin-top: 10px;
  border-bottom: 1px solid #ececec;
}

.moore-match-table .match-row:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.moore-match-table .match-meta {
  font-family: sans-serif;
  font-size: 0.7em;
  padding: 0px 10px 0px;
  background: #f2f2f2;
  display: block;
  white-space: nowrap;
  height: 21px;
}

.moore-match-table .match-passage {
  font-family: Special Elite;
  font-size: 12px;
  padding: 10px;
  line-height: 1.2em;
}

.moore-match-table .match-hit {
  color: #444;
}

.match-author {
  text-transform: uppercase;
}

.container img.keys-display {
  position: absolute;
  width: 35px;
  bottom: 15px;
  right: 20px;
  margin: 0;
}

@media (max-width: 800px) {
  img.keys-display {
    display: none;
  }
}

#gl-labels {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

#gl-labels a {
  display: block;
  font-size: 6px;
  font-family: courier;
  position: absolute;
  left: 42px;
}

#gl-y-axis-label,
#gl-x-axis-label {
  color: #777;
  font-size: 11px;
}

#gl-y-axis-label {
  position: absolute;
  top: 225px;
  transform: rotate(-90deg);
  left: -24px;
}

#gl-x-axis-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
}
