@font-face {
    font-family: "Galeries";
    src: url("/font/galeries.ttf");
}

@font-face {
    font-family: "Noto Emoji";
    src: url("/font/NotoEmoji-VariableFont_wght.ttf");
}


@font-face {
    font-family: "Vollkorn";
    src: url("/font/Vollkorn.woff2");
}

/*@font-face {
    font-family: "Volkhov";
    src: url("/font/Volkhov.woff2");
}*/

/*@font-face {
    font-family: "Nevins Hand";
    src: url("/font/NevinsHand.ttf");
}*/

:root {
    --html-bg-colour: #0f061d;

    /*
    --html-bg-img: url("/img/ghosts.gif");
    --html-bg-size: 150px;
    */
    --html-bg-img: url("/img/vampire-castle-seamless-background-ultraviolet_dark.jpg");
    --html-bg-size: 300px;

    --html-left-decor-img: url("/img/r8jQsSlleft.gif");
    --html-right-decor-img: url("/img/r8jQsSlright.gif");
    --html-decor-size: 60px;

    --body-bg-colour: #F3DDB8;
    --body-txt-colour: black;

    --heading-txt-colour: black;

    --border-high-colour: #d4a77e;
    --border-low-colour: #a57951;
    --box-heading-bg-colour: #ac8662;
    --box-content-bg-colour: #EAC8AB;
    --box-heading-txt-colour: #281208;

    --title-bg-color: black;
    --title-bg-img: url("/img/purple_black_florets.png");

    --nav-bg-colour: #ac8662;
    --nav-txt-colour: white;
    --nav-sep-colour: #F3DDB8;
}

html, body {
    position: fixed;
    overflow: hidden;
    overscroll-behavior-y: none;
}

html {
    padding: 0;
    margin: 0;
}

body {
    background-color: var(--html-bg-colour);  
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    color: var(--body-txt-colour);
    font-family: "Vollkorn";
}

div#scroll-wrapper {
    background-image: var(--html-bg-img);
    background-size: var(--html-bg-size);
    background-position-y: bottom;
    overscroll-behavior-y: none;
}

td#main-table-left, td#main-table-right {
    background-repeat:repeat-y;
    background-size: var(--html-decor-size);
}

td#main-table-left {
    background-image: var(--html-left-decor-img);
    background-position-x:100%;
}

td#main-table-right {
    background-image: var(--html-right-decor-img);
}

hr {
    border-left: 2px solid var(--border-high-colour);
    border-top: 2px solid var(--border-high-colour);
    border-bottom: 2px solid var(--border-low-colour);
    border-right: 2px solid var(--border-low-colour);
    margin: 1em 0;
}

h1, h2, h3, h4 {
    font-family: "Galeries";
    font-weight: bold;
    text-transform: uppercase;
    color: var(--heading-txt-colour);
}

h1 {
    font-size: 3em;
    margin: 0;
    text-align: center;

}

h2 {
    font-size: 2.5em;
    margin-top: 0.5em;
    margin-bottom: 0.2em;
}

h3 {
    /*font-family: "Georgia";*/
    font-family: "Vollkorn";
    font-size: 1.5em;
    text-transform: none;
    font-variant: small-caps;
    letter-spacing: 0.1em;
}

h4 {
    text-align: right;
    font-size: 2.1em;
    margin-bottom: 0.2em;
}

p {
    /*font-family: "Times New Roman";*/
    font-size: 1.3em;
}

div#scroll-wrapper {
    width: 100vw;
    height: 100vh;
    overflow-y: scroll;
}

table#main-table {
    width: 100%;
    min-height: 100%;
    border-spacing:0;
}

table#main-table > tbody > tr {
    height: 100%;
}

table#main-table > tbody > tr > td {
    padding: 0;
}


@media only screen and (orientation: landscape) {
    body {
        font-size: /*0.9em*/ 9.5pt;
    }   
    
    td#main-table-left, td#main-table-right {
        width: 25%;
    }

    td#main-table-center {
        width: 50%;
        height: 100%;
    }
}

@media only screen and (orientation: portrait) {
    body {
        font-size: /*1.6em*/ 18pt;
    }

    td#main-table-left, td#main-table-right {
        width: 0%;
    }

    td#main-table-center {
        width: 100%;
        height: 100%;
    }

    div#main-column {
        padding-bottom: 10em;
    }
}



div#main-column {
    background-color: var(--body-bg-colour);
    min-width: 100%;
    max-width: 100%;
    min-height: 100vh;
    /*padding: 1px 1px 1px 1px;*/
    margin: auto;
}

div#header {
    /*border-bottom: 0.3em solid black;*/
    
}

div#header-title-area {
    padding: 1.2em 0em;
    background-color: var(--title-bg-color);
    background-image: var(--title-bg-img);
}

div#header-title-area > h1 {
    color: white;
}

div#header-nav {
    width: 100%;
    background-color: var(--nav-bg-colour);
}

div#header-nav > menu {
    padding: 0;
    margin: 0;
    border-top: 2px solid var(--border-high-colour);
    border-bottom: 2px solid var(--border-low-colour);
}

div#header-nav > menu li {
    display: inline-block;
    color: white;
    text-transform: uppercase;
    /*font-family:'Times New Roman', Times, serif;*/
    /*padding: 0.3em 1em;*/
    padding: 0.2em 1em 0.1em 1em;
    font-size: 1.0em;
    border-right: 2px solid var(--nav-sep-colour);
}

div#header-nav > menu > a {
    text-decoration: none;
    color: inherit;
}

div#header-nav > menu li:hover {
    background-color: #b459a6;
    text-decoration: underline;
}


div#main-column-body {
    padding: 0em 1em 1em 1em;
}

iframe#chapter-iframe {
    flex-grow:1;
    /*height: 100vh;*/
    box-sizing: border-box;
    border-style: solid;
    border-color: black;
    border-width: 1px 1px 2px 1px;
}

div.chapter-iframe-container {
    width: calc(100% + 2em);
    height: calc(100vh - 25em);
    margin: 0 -1em;
    box-sizing: border-box;
    display: flex;
    resize: vertical;
    padding: 0;
    overflow: hidden;
}

details#chapter-note {
    margin: 0.5em 0em;
    padding: 1px 0.5em;
    background-color: var(--box-content-bg-colour);
    border-left: 2px solid var(--border-high-colour);
    border-top: 2px solid var(--border-high-colour);
    border-bottom: 2px solid var(--border-low-colour);
    border-right: 2px solid var(--border-low-colour);
}

details#chapter-note > p {
    margin: 1em;
}

details#chapter-note > summary {
    /*font-family: "Times New Roman";*/
    font-size: 1.4em;
    background-color: var(--box-heading-bg-colour);
    margin: -1px -0.4em -1px -0.4em;
    padding: 0 0.4em 0 0.4em;
    color: var(--box-heading-txt-colour);
}

p#chapter-date {
    text-align: right;
    margin: 0 0 1em 0;
    font-size: 1.2em;
    font-style:italic;
}

a#prev-chapter-link, a#next-chapter-link {
    color: black;
    text-decoration: none;
}

span#prev-chapter, span#next-chapter {
    font-weight: bold;
    font-size: 1.5em;
    margin-top: 1em;
    text-transform: uppercase;
    font-family: "Galeries";
}

span#prev-chapter{
    float: left;
}

span#next-chapter {
    float: right;
}



ul#chapter-list {
    list-style:none;
    padding: 0;
}

ul#chapter-list > li {
    background-color: var(--box-content-bg-colour);
    border-left: 2px solid var(--border-high-colour);
    border-top: 2px solid var(--border-high-colour);
    border-bottom: 2px solid var(--border-low-colour);
    border-right: 2px solid var(--border-low-colour);
    margin-bottom: 1em;
}

ul#chapter-list > li > a {
    color: black;
    text-decoration: none;
}

ul#chapter-list > li h3 {
    background-color: var(--box-heading-bg-colour);
    margin: 0;
    padding: 0.25em;
    color: var(--box-heading-txt-colour);
}

ul#chapter-list > li p {
    margin: 0.5em;
}

figure {
    width: 40%;
    display: block;
    margin: 1em 0em;
    margin: 1em 0em 1em 0.5em;
}

figure.left {
    float: left;
    margin-right: 0.5em;
}

figure.right {
    float: right;
    margin-left: 0.5em;
}

figure > img {
    max-width: 100%;
    display: block;
    border-left: 2px solid var(--border-high-colour);
    border-top: 2px solid var(--border-high-colour);
    border-bottom: 2px solid var(--border-low-colour);
    border-right: 2px solid var(--border-low-colour);
}

figure > figcaption {
    text-align: center;
    font-size: 1.2em;
}

a.accel-link {
    display: inline-block;
    text-decoration: none;
    color: var(--box-heading-txt-colour);
    border-left: 2px solid var(--border-high-colour);
    border-top: 2px solid var(--border-high-colour);
    border-bottom: 2px solid var(--border-low-colour);
    border-right: 2px solid var(--border-low-colour);
    background-color: var(--box-heading-bg-colour);
    text-transform: uppercase;
    font-size: 1.3em;
    text-align: center;
    width: calc(50% - 2*0.25em);
    box-sizing: border-box;
    margin: 0 0.25em;
    padding: 0.25em 0;
}

a.accel-link:hover {
    background-color: #b459a6;
    text-decoration: underline;
}

p.question-text {
    font-weight:bold;
    margin-bottom: 0;
}

p.answer-text {
    margin-top: 0.5em;
    margin-bottom: 2em;
    margin-left: 0.5em;
}


ul.chars-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.chars-list > li {
    border-left: 2px solid var(--border-high-colour);
    border-top: 2px solid var(--border-high-colour);
    border-bottom: 2px solid var(--border-low-colour);
    border-right: 2px solid var(--border-low-colour);
    background-color: var(--box-content-bg-colour);
    padding: 0;
    margin-bottom: 1em;
}

ul.chars-list > li > h3 {
    margin: 0;
    padding: 0.25em;
    color: var(--box-heading-txt-colour);
    background-color: var(--box-heading-bg-colour);
}

ul.chars-list > li > p {
    margin: 0.5em;
}

ul.chars-list > li > a {
    float: right;
    margin: 0;
    text-decoration: none;
    color: white;
    width: 4em;
    height: 2.5em;
    display: block;
    background-image: url("/img/mail122.gif");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

span.fleuron {
    font-family: "Noto Emoji";
}

p#home-update-date {
    text-align: right;
    margin: 0 0 1em 0;
    font-size: 1.2em;
    font-style:italic;
}

p#home-update-author {
    text-align: right;
    margin: 0 0 1em 0;
}

div#rss-icon-container {
    position:relative;
}

div#rss-icon-container > a > img {
    position:absolute; 
    width: 1.6em; 
    height: 1.6em; 
    right:-0.7em; 
    top:-1em;
}

iframe#guestbook-iframe {
    width: 100%;
    height: 600px;
    border: none;
}