Note: This file may not be current and is superseded by the file in the scripts folder. - synched March 20, 2026

/* ****************
ORCA DEFAULT STYLES
- NON-FICTION —
***************** */

@font-face {
    font-family: font_name_1;
    font-style: normal;
    font-weight: normal;
    src: url("../font/FONT_NAME.otf");
}

@font-face {
    font-family: font_name_2;
    font-style: normal;
    font-weight: normal;
    src: url("../font/FONT_NAME.otf");
}

@font-face {
    font-family: font_name_3;
    font-style: normal;
    font-weight: normal;
    src: url("../font/FONT_NAME.otf");
}

/* GENERAL */

@page {
    margin: 1em;
}

body {
    adobe-hyphenate: auto;
    font-family: serif;
    font-variant-numeric: oldstyle-nums;
    hyphens: auto;
    -epub-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    orphans: 2;
    widows: 2;
}

h1,h2,h3,h4,h5 {
    adobe-text-layout: optimizespeed;
    break-after: avoid;
    break-inside: avoid;
    font-family: sans-serif;
    font-weight: normal;
    hyphens: none  !important;
    -epub-hyphens: none;
    -moz-hyphens: none  !important;
    -webkit-hyphens: none  !important;
    margin: 0;
    padding: 0;
    page-break-after: avoid;
    page-break-inside: avoid;
    text-align: center;
    text-indent: 0;
}

p,ul,ol,li,dl {
    font-size: .9rem;
    margin: 0;
    hyphenate-limit-chars: 6 3 2;
    -ms-hyphenate-limit-chars: 6 3 2;
    -webkit-hyphenate-limit-chars: 6 3 2;
    hyphenate-limit-last: always;
    -ms-hyphenate-limit-last: always;
    -webkit-hyphenate-limit-last: always;
    hyphenate-limit-lines: 3;
    -ms-hyphenate-limit-lines: 3;
    -webkit-hyphenate-limit-lines: 3;
}

h1 + p,
h2 + p,
h3 + p,
h4 + p,
h5 + p,
hr + p,
p.no-indent {
    text-indent: 0;
}

i > i,
em > i,
i > em {
    font-style: normal;
}


/* BODY MATTER */
p {
    text-indent: 1.2rem;
}

a {
    color: #666666  !important;
    font-size: inherit;
    font-weight: bold;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: #006666;
}

hr {
    border: none;
    margin: 1em 0;
    width: 0; /* makes line invisible */
}

small,
.smallcaps {
    font-size: 0.85em;
    text-transform:uppercase;
    font-variant-numeric: lining-nums;
    letter-spacing: 0.05em;
}

strong,
.upper {
    font-weight: normal;
    text-transform: uppercase;
}

.glossary-term,
.bold-italic {
    font-style: italic;
    font-weight: bold;
}

/* Prevent Sub- and Super- Script from affecting line-height */
sub {
    font-size: 0.675em;
    line-height: 1.2em;
    vertical-align: sub;
    vertical-align: -20%;
}

sup {
    font-size: 0.675em;
    line-height: 1.2em;
    vertical-align: super;
    vertical-align: 35%;
}

/* Make html5 Tags Behave as Expected in Legacy rmsdk */
article, aside, figure, figcaption, 
footer, header, main, section {
    display: block;
}


/* HEADINGS */

h1.front-back,
h1.contents {
    color: #444444;
    font-family: font_name_1, sans-serif;
    font-size: 2.5em;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 1.4;
    margin: 10% 0 1em;
    text-align: left;
}

h1.chapter-num {
    font-family: font_name_1, sans-serif;
    font-size: 3.5em;
    font-weight: normal;
    line-height: 1em;
    margin: 10% 0 .5em 0;
}

/* Adjust the heading size for very small screens, such as iPhone (~375px width) */
@media (max-width: 375px) {
    h1.front-back,
    h1.chapter-num {
        font-size: 120%; /* Smaller font size for small viewports */
        hyphens: auto !important;
        -epub-hyphens: auto;
        -moz-hyphens: auto !important;
        -webkit-hyphens: auto !important;
        word-break: break-word; /* Add this */
        overflow-wrap: break-word; /* Add this */
    }
}

span.chapter-title {
    display: block;
    font-family: font_name_1, sans-serif;
    font-size: 2.5rem;
    font-weight: normal;
    line-height: 0.9;
    margin: 0 0 .5em;
    text-transform: uppercase;
}

h2.subhead {
    font-family: font_name_1, sans-serif;
    font-size: 1.8em;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 0.9;
    margin: .75em 0 .4em;
    text-align: left;
}

h3.subhead {
    font-family: font_name_1, sans-serif;
    font-size: 1.2em;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 1.2;
    margin: 1em 0 .25em;
    text-align: left;
    text-transform: uppercase;
}

/* ***** */
/* PAGES */

/* DIGITAL RIGHTS */

/* digitalrights.xhtml */
section.digitalrights {
    display: block;
    margin: 15% auto;
    max-width: 80%;
}

section.digitalrights p {
    text-indent:0;
    margin-bottom:1em;
}

/* TITLE PAGE */

h1.halftitlepage {
    color: #747474;
    font-size: 2em;
    margin: 15% auto;
    width: 50%;
}

h1.titlepage {
    color: #444444;
    font-family: font_name_1, sans-serif;
    font-size: 2em;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 0.9;
    margin: 15% auto 0;
    text-align: center;
    /* text-transform: uppercase; */
}

span.subtitle,
h2.subtitle {
    font-family: font_name_1, sans-serif;
    font-size: 2em;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 0.9;
    margin: .5em 0 0;
    text-align: center;
}

h2.author {
    color: #444444;
    font-family: font_name_1, sans-serif;
    font-size: 1.5em;
    font-style: normal;
    font-weight: normal;
    line-height: 1.2;
    margin: 1em 0em;
    text-align: center;
    text-indent: 0;
    text-transform: uppercase;
}

h2.translator,
h2.illustrator {
    color: #444444;
    font-family: font_name_1, sans-serif;
    font-weight: normal;
    line-height: 1.2;
    margin: 1em 0 2em;
    text-align: center;
    text-indent: 0;
    text-transform: uppercase;
}

span.by {
    display: block;
    font-size: .8em;
    text-transform: initial;
}


/* COPYRIGHT */

.copyright {
    font-size: 0.75em;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 1.2;
    margin: 0 2em;
    text-align: center;
    text-indent: 0;
}

.copyright-pub {
    font-family: sans-serif;
    font-size: 0.75em;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 1.2;
    margin: 0 2em;
    text-align: center;
    text-indent: 0;
}

#copyright figure.small {
    clear: both;
    margin: .5em auto 1em;
    width: 15rem;
}

#copyright figure.icon2 {
    clear: both;
    margin: .5em auto 0em ;
    width: 3rem;
}

#copyright figure.icon2 img {
    height: auto;
    object-fit: contain;
    vertical-align: bottom;
}


/* DEDICATION */

p.dedication {
    font-family: serif;
    font-size: 1em;
    font-style: italic;
    margin: 15% 0;
    text-align: center;
    text-indent:0;
}


/* CONTENTS */

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

ol.toc a,
ol.contentlist a{
    font-weight:normal;
}

ol.toc .sb{
    margin-top: 1.2em;
}

li.toc-fb {
    font-family: sans-serif;
    font-size: 1em;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 1.2;
    margin: .25em 0 0;
    text-align: center;
    text-transform: uppercase;
}

li.toc-1 {
    font-family: sans-serif;
    font-size: 1em;
    font-style: normal;
    font-variant: normal;
    font-weight: bold;
    line-height: 1.2;
    margin: .25em 0 0;
    text-align: center;
    text-transform: uppercase;
}

li.toc-2 {
    font-family: sans-serif;
    font-size: 0.85em;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 1.5;
    text-align: center;
    text-transform: uppercase;
}


/* RESOURCES */

h2.resources {
    font-family: font_name_1, sans-serif;
    font-size: 1em;
    font-weight: normal;
    margin: 1em 0 0 0;
    text-align: left;
    text-transform: uppercase;
}

ul.resources{
    list-style-type: none;
    padding-left: 0;
}

li.resources {
    line-height: 1.2;
    margin: .5em 0;
    padding-left: 2em;
    text-indent: -2em;
}

p.resources-disclaimer,
p.resource-disclaimer {
    font-family: serif;
    font-size: 0.75em;
    font-style: italic;
    line-height: 1.5;
    margin: 1em 0;
    text-align: center;
    text-indent: 0;
}


/* GLOSSARY */

dt {
    float: left;
    clear: left;
    margin-left: .5em;
    font-weight: bold;
}

dt::after {
    content: "—"; 
}

dd {
    margin: 0 2em;
    padding: 0 0em .5em;
}


/* INDEX */

ul.index {
    list-style-type: none;
    margin-top: 1em;
}

.index-1 {
    margin-left: 1.5em;
    text-indent: -1.5em;
}

.index-2 {
    margin-left: 2.5em;
    text-indent: -1.5em;
}

b.index {
    font-style: italic;
    text-decoration: underline;
}


/* ABOUT-THE-AUTHOR */

section.author {
    background: #fffff1;
    margin: 0 !important;
    padding: 1.5em;
}

span.author-name {
    color: #0a0a8b;
    font-family: font_name_1, sans-serif;
    font-size: 1.4em;
    font-style: normal;
}


/* IMAGES */

/* Cover */

figure.cover-img {
    display: block;
    text-align: center;
}

img.cover-image {
    height: 98%;
    object-fit: contain;
    width: 100%;
}

img.cover-image:only-of-type {
    /* overrides the previous setting, but only in newer systems that support CSS3 */
    height: 98vh;
}

@media amzn-kf8 {
/* CSS for KF8 devices */
    img.cover-image:only-of-type {
        height: 98%;
    }
}

/* Body Images */

figure {
    margin-inline-start: .5em;
    margin-inline-end: .5em;
}

@media amzn-kf8 {
    figure {
        page-break-inside: auto;
        break-inside: auto;
        /* Fix blank bug because of page-break-inside: avoid… */
    }
}

img{
    height: auto;
    max-width: 100%;
}

figure.full {
    margin: .5em auto;
}

figure.full img {
    height: auto;
    object-fit: contain;
    width: auto;
}

figure.left {
    clear: left;
    float: left;
    margin: 1rem 1rem 1rem 0;
    page-break-inside: avoid;
    width: 33%;
}

figure.left:after {
    clear: both;
    content: "";
    display: table;
}

figure.right {
    clear: right;
    float: right;
    margin: 1rem 0 1rem 1rem;
    page-break-inside: avoid;
    width: 33%;
}

figure.right:after {
    clear: both;
    content: "";
    display: table;
}

figure.center {
    clear: both;
    margin: 2rem auto 1rem;
    text-align: center;
    width: 60%;
}

figure.circle {
    clear: both;
    margin: 2rem auto 1rem;
    text-align: center;
    width: 45%;
}

figure.circle img {
    border: 5px solid #ffffff;
    border-radius: 50%;
}

figure.small {
    clear: both;
    margin: 2rem auto 1rem;
    text-align: center;
    width: 25%;
}

figure.icon {
    clear: both;
    margin: .5rem auto;
    max-width: 150px;
    text-align: center;
    width: 5rem;
}

figure.title {
    clear: both;
    margin: 2rem auto;
    text-align: center;
    width: 50%;
    max-width:300px;
}

figure.title img {
    width: 15em;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    vertical-align: bottom;
}

figure.author {
    clear: both;
    margin: 2rem auto;
    text-align: center;
    width: 50%;
    max-width:300px;
}

img.author {
    border: 3px solid #41A69A;
    border-radius: .5em;
    height: auto;
    width: 100%;
}

img.float {
    width: 100%;
}

figcaption {
    font-family: serif;
    font-size: 0.8em;
    font-style: italic;
    font-variant: normal;
    font-weight: normal;
    hyphens: none  !important;
    -epub-hyphens: none;
    -moz-hyphens: none  !important;
    -webkit-hyphens: none  !important;
    line-height: 1.3;
    margin: .25em 0;
    text-align: left;
    text-indent: 0;
}

figure.circle figcaption {
    text-align: center;
}

.photo-credit {
    font-family: serif;
    font-size: 0.65em;
    font-style: normal;
    font-variant: normal;
    text-transform: uppercase;
}


/* ASIDES & SIDEBARS */

aside {
    margin: 2em auto;
    overflow: hidden;
    padding: 0;
    page-break-inside: avoid;
    break-inside: avoid
}

p.sidebar {
    font-family: sans-serif;
    font-size: 0.75rem;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 1.5;
    margin: 0;
    padding: .15em 1em;
    text-align: left;
    text-indent: 1.2em;
}

p.sidebar:first-of-type {
    text-indent: 0;
}

aside.sidebar_1 {
    /*
    background: url("../image/IMAGE_NAME.png") no-repeat;
    background-position: top center;
    background-size: contain;
    */
    border: 5px solid #444444;
    border-radius: 15px;
    background-color: #def2e1;
    clear: both;
    overflow: hidden;
    width: 65%;
}

aside.sidebar_1 h2 {
    background: #444444;
    color: #fff;
    font-family: sans-serif;
    font-size: 1.5em;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 1em;
    margin: 0 0 .25em;
    padding: .5em 1em;
    text-align: left;
    text-transform: uppercase;
    width: 100%;
    }

aside.sidebar_1 h3 {
    color: #747474;
    font-family: sans-serif;
    font-size: 1.2em;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 1.2;
    margin: 0;
    text-align: left;
}

/* DESIGN CHEATS */
.center {
    text-align: center;
    text-indent: 0;
}

.linebreak{
    display: block;
}

.lowercase {
    text-transform: lowercase;
}

.sb {
    margin-top: .75em !important;
}


/* CUSTOM */
/* Put any file specific code here */




/* END CUSTOM */

/* COLOURS */
/* all contrast safe */

.f_b{
    color: #d73b2d; /* orange red */
}

.ch_1{
    color: #653078; /* purple */
}

.ch_2{
    color: #416108; /* green */
}

.ch_3{
    color: #A12278; /* burgundy */
}

.ch_4{
    color: #d73b2d; /* orange */
}

.ch_5{
    color: #d70017; /* red */
}

.ch_6{
    color: #923000; /* orange */
}

.bck_1{
    background-color: #ca3700; /* orange */
}

.bck_2{
    background-color: #653078; /* purple */
}

.bck_3{
    background-color: #c70010; /* red */
}

.bck_4{
    background-color: #387e3c; /* green */
}

.bck_5{
    background-color: #a86800; /* tan */
}

.bck_6{
    background-color: #667900; /* olive */
}