/* book cover */
.book_cover {
    aspect-ratio: 1024/1536;
    height: auto;
    max-width: 100%;
    width: 100%;
    font-size: .8em;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #ffffff;
    padding: 3em 3em;
    text-align: center;
    box-sizing: border-box;       
}
.book_cover hr {
    border-style: dashed none none;
    border-width: .15em;
    color: #000000;
    opacity: 0.6;
}        
/* Vignette overlay */
.book_cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, transparent 30%, rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
}
.book_cover .nowrap {
    white-space: nowrap;
}

/* Book Cover Top Section */
.book_cover_top_padding {
    height: 8em;
}
.book_cover_top {
    width: 80%;
    border-style: dashed none none;
    border-width: .15em;
    border-color: #000000;
    opacity: 0.6;
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%); /* Centers the element horizontally based on its own size */    
}

/* Book Cover Bottom Section */
.book_cover_bottom_padding {
    height: 15em;
}
.book_cover_bottom {
    width: 80%;
    border-style: none none dashed;
    border-width: .15em;
    border-color: #000000;
    opacity: 0.6;
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%); /* Centers the element horizontally based on its own size */    
}


/* Book Cover Series */
.book_cover_series {
    text-align: center;
    text-align-last: center;
    text-indent: 0em;
    font-size: 1em;
    line-height: 1.2em;
    font-weight: normal;
    font-variant: normal;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #000000;
    margin-top: 3em;
    margin-bottom: 2em;
}
.book_cover_series .definite_article {
    display: none;
}

/* Book Cover Day */
.book_cover_day {
    text-align: center;
    text-align-last: center;
    text-indent: 0em;
    font-size: 1em;
    line-height: 1.2em;
    font-weight: normal;
    font-variant: normal;
    color: #000000;
    margin-top: 0em;
    margin-bottom: 2em;
}
.book_cover_day::before,
.book_cover_day::after {
    content: " --- ";
}


/* Book Cover Title */
.book_cover_title {
    text-align: center;
    text-align-last: center;
    text-indent: 0em;
    color: #000000;
    font-weight: normal;            
}
.book_cover_title .word {
  display: block; /* Forces each span (word) onto a new line */
}
.book_cover_title .definate_article {
    font-size: 0.4em;
    color: #000000;
    font-style: italic;
}
.book_cover_title .emphasis {
    font-size: 1.15em;
    color: #000000;
}
.book_cover_title .minor_word {
    font-size: 0.4em;
    color: #000000;
    font-style: italic;
}


/* Book Cover Subtitle */
.book_cover_subtitle {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center;    /* Centers vertically */
    margin-top: 0em;
    margin-bottom: 3em;
}
.book_cover_subtitle .text {
    border-top: .15em dashed #000000;
    border-bottom: .15em dashed #000000;
    text-align: center;
    text-align-last: center;
    text-indent: 0em;
    font-size: 1em;
    line-height: 1.6em;
    font-weight: normal;
    font-variant: normal;
    font-style: italic;
    color: #000000;
    margin-top: 0em;
    margin-bottom: 0em;
}

/* Book Cover Attribution */
.book_cover_attribution {
    text-align: center;
    text-align-last: center;
    text-indent: 0em;
    font-size: 1em;
    line-height: 1.2em;
    font-weight: normal;
    font-variant: normal;
    color: #000000;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 0em;
    margin-bottom: 1em;
}

/* Book Cove Version */
.book_cover_version {
    text-align: center;
    text-align-last: center;
    text-indent: 0em;
    font-size: 1em;
    line-height: 1.2em;
    font-weight: normal;
    font-variant: normal;
    color: #000000;
    margin-top: 0em;
    margin-bottom: 3em;
}

blockquote {
    border-left: 3px solid; /* Adds a left border */
    margin-left: 1em; /* Creates a left margin */
    padding: 10px; /* Adds padding inside the blockquote */
}
body {
    font-size: 20px;
    margin-left: auto;
    margin-right: auto;
    max-width: 32em;
    padding-left: 1em;
    padding-right: 1em;
}
body {
    /* Better Hyphens */
    -epub-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
h1 {
 font-size: clamp(1.7rem, 5vw, 3.2rem);
}
h2 {
 font-size: clamp(1.6rem, 4vw, 2.3rem);
}
h3 {
 font-size: clamp(1.5rem, 3vw, 1.9rem);
}
h4 {
  font-size: 1.3rem;
}
h5 {
  font-size: 1.2rem;
}
h6 {
  font-size: 1.1rem
}

/* Print to PDF */
@media print {
  .no_print {
    display: none !important;
  }
  hr {
    break-before: always;
    break-after: avoid;
    visibility: hidden;
  }
  p {
    orphans: 2;
    widows: 2;
  }
}

/* Settings Bar */
.settings {
    text-align: center;
    text-align-last: center;    
}

/* Center */
.center {
    text-align: center;
    text-align-last: center;    
}

/* Table of Contents */
.toc-title {
  white-space: nowrap;
}
@media (min-width: 769px) {
  /* 
   * Table of Contents for Desktop
   * should display dots between 
   * chapter title and subtitle or
   * it is hard to visually connect 
   * the two.
   */
  .toc-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
  }
  /* The left span grows to fill the gap */
  .toc-title {
    display: flex;
    flex: 1;
    align-items: baseline;
  }
  .toc-title::after {
    content: "";
    flex: 1;
    margin: 0 0.5em;
    background-image: radial-gradient(circle, currentColor 0.05em, transparent 0.06em);
    background-size: 0.3em 100%;
    background-repeat: repeat-x;
    background-position: bottom;
    height: 0.1em;
    opacity: 0.5;
  }
  /* The right container for sub-items */
  .toc-subtitle {
    text-align: right;
    white-space: nowrap;
  }
}
@media (max-width: 768px) {
  /* 
   * Table of Contents for Mobile
   * should use a normal list so
   * that all subtitles begin on 
   * a new line.
   */
  .toc-subtitle {
    text-align: left;
    display: block;
    margin-left: 1em;
  }
}

