p.caption {
  color: #777;
  margin-top: 10px;
}
p code {
  white-space: pre;
}
pre {
  word-break: normal;
  word-wrap: normal;
}
pre code {
  white-space: pre;
}

.table-wrapper {
  overflow-x: scroll;
}

body {
  text-align: justify;
}

/* footnote counter to restart numbering for each chapter */

/* don't show the wrong footnote calls */
.footnote-ref sup {
display: none;
}

/* use a counter for footnote calls */
.level1 {
counter-reset: fn-call;
}

.footnote-ref {
counter-increment: fn-call;
}

/* generate new footnote calls */
.footnote-ref::after {
content: counter(fn-call);
position: relative;
top: -.5em;
font-size: 85%;
line-height: 0;
vertical-align: baseline;
}

/* use a counter for footnotes numbering */
.footnotes ol {
list-style: none;
counter-reset: fn-number;
}

.footnotes li {
counter-increment: fn-number;
}

.footnotes p::before {
content: counter(fn-number) '. ';
}