@font-face {
  font-family: "Baskervville-regular";
  src: url(../resources/fonts/Baskervville/Baskervville-Regular.ttf);
}

@font-face {
  font-family: "Baskervville-italic";
  src: url(../resources/fonts/Baskervville/Baskervville-Italic.ttf);
}

@font-face {
  font-family: "Speciale Elite";
  src: url(../resources/fonts/Special_Elite/SpecialElite-Regular.ttf);
}

@font-face {
  font-family: "Cinzel";
  src: url(../resources/fonts/Cinzel/Cinzel-VariableFont_wght.ttf);
}

@font-face {
  font-family: "Caveat";
  src: url(../resources/fonts/Caveat/Caveat-VariableFont_wght.ttf);
}

@font-face {
  font-family: "Homemade Apple";
  src: url(../resources/fonts/Homemade_Apple/HomemadeApple-Regular.ttf);
}

@font-face {
  font-family: "Orbitron";
  src: url(../resources/fonts/Orbitron/Orbitron-VariableFont_wght.ttf);
}

@font-face {
  font-family: "Shamson";
  src: url(../resources/fonts/shamson_signature/Shamson\ Signature\ Regular.otf);
}



html {
    background-color:#fff;
}

body { 
    border: none;
    background-color:#fff;
    font-family: 'Times New Roman', Times, serif;

    width: 90%;
    max-width: 850px;
    margin: 0 auto;
}

p {
  font-family: "Special Elite", serif;
}

li {
  font-family: "Special Elite", serif;
}

.next-page-buttons {
  text-align: center;
}
.next-page-buttons a {
  text-decoration:none;
  display:inline-block;
  padding:8px 16px;
}

.next-page-buttons a:hover {
  background-color:#ddd;
  color:#000;
  transition: ease-in-out 25ms;
}

.previous {
  background-color:#f1f1f1;
  color:#000;
}

.next {
  background-color:#04aa6d;
  color:#fff;
}

.round {
  border-radius:50%;
}

#letter p {
  padding-left:25px;
}

#title-page-container {
  text-align:center;
}

.FEH-cover img {
  width: auto;
  height: 100vh;
}

/* Marginal glosses */


.gloss-1 {
    font-family: "Mom's Typewriter", system-ui, monospace;
    color: #A3B2B7;
    display: block;
    margin: 0em;
    padding: 0em 0.5em;
    font-size: .9em;
    line-height: 1.5;
    
}
  
.gloss-2 {
    font-family: "Cinzel", serif;
    color: Blue;
    display: block;
    margin: 0em;
    padding: 0em 0.5em;
    font-size: .9em;
    line-height: 1.5;
   
}
  
.gloss-3 {
    font-family: 'Homemade Apple';
    padding: 0em 0.5em;
    display: block;
    margin: 0em;
    padding: 0em 0.5em;
    font-size: .9em;
    line-height: 1.5;
    color: rgb(255, 0, 0);

}
  
.gloss-4 {
    font-family: "Caveat", cursive;
    font-style: italic;
    padding: 0em 0.5em;
    color: #fff;
    /* old color: #FBC901 */
    display: block;
    margin: 0em;
    padding: 0em 0.5em;
    font-size: .9em;
    line-height: 1.5;
}
  
.gloss-5 {
    font-family: "Orbitron", sans-serif;
    color: Green;
    display: block;
    margin: 0em;
    padding: 0em 0.5em;
    font-size: .9em;
    line-height: 1.5;
}

.gloss.gloss-5:hover {
  color: #66ccff;
  text-shadow: 0 0 8px #8be9ff, 0 0 14px #33aaff;
  font-style: italic;
}


.gloss {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.gloss.hidden {
  opacity: 0;
  pointer-events: none;
}


/* Naviagation buttons found at bottom of A Final Ecclesiastical History pages */
.next-page-buttons a {
  text-decoration: none;
  display: inline-block;
  padding: 8px 16px;
}

.next-page-buttons a:hover {
  background-color: #ddd;
  color: black;
}

.next-page-buttons .previous {
  background-color: #f1f1f1;
  color: black;
}

.next-page-buttons .next {
  background-color: #04AA6D;
  color: white;
}

/* Letter padding offset from main body text--need to improve */
.letter {
  padding-left: 50px;
}

/* Table of Contents */
.visually-hidden {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(100%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

.toc-list, .toc-list ol {
list-style-type: none;
}

.toc-list {
padding: 0;
}

.toc-list ol {
padding-inline-start: 2ch;
}

.toc-list > li > a {
font-weight: bold;
margin-block-start: 1em;
}

.toc-list li > a {
  text-decoration: none;
  display: grid;
  grid-template-columns: auto max-content;
  align-items: end;
}

.toc-list li > a > .title {
  position: relative;
  overflow: hidden;
}

.toc-list li > a .leaders::after {
  position: absolute;
  padding-inline-start: .25ch;
  content: " . . . . . . . . . . . . . . . . . . . "
      ". . . . . . . . . . . . . . . . . . . . . . . "
      ". . . . . . . . . . . . . . . . . . . . . . . "
      ". . . . . . . . . . . . . . . . . . . . . . . "
      ". . . . . . . . . . . . . . . . . . . . . . . "
      ". . . . . . . . . . . . . . . . . . . . . . . "
      ". . . . . . . . . . . . . . . . . . . . . . . ";
  text-align: right;
}

.toc-list li > a > .page {
  min-width: 2ch;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
