/* fonts */
@font-face {
    font-family: DreamsAdventure;
    src: url('/fonts/DreamsAdventureCo-1GywL.ttf') format('truetype');
}

@font-face {
    font-family: 'Sirius';
    src: url('/fonts/SiriusTOT-Reg.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Sirius';
    src: url('/fonts/SiriusTOT-RegIta.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Sirius';
    src: url('/fonts/SiriusTOT-Bol.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Sirius SC';
    src: url('/fonts/SiriusSCTOT-Reg.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Gotu';
    src: url('/fonts/Gotu-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'OpenDyslexic';
    src: url('/fonts/OpenDyslexic-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'OpenDyslexic';
    src: url('/fonts/OpenDyslexic-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'OpenDyslexic';
    src: url('/fonts/OpenDyslexic-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'OpenDyslexic';
    src: url('/fonts/OpenDyslexic-BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
}

/* scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

/* lange ding "track" */
::-webkit-scrollbar-track {
    background: #f7ece3;
}

/* beweegbare ding "thumb" */
::-webkit-scrollbar-thumb {
    background: #541919;
}

/* muis/cursor */
* {
    cursor: url("http://www.rw-designer.com/cursor-extern.php?id=98738") 8 8, auto !important;
}

    *:hover {
        cursor: url("https://www.rw-designer.com/cursor-view/98738-48.png") 8 8, pointer !important;
    }

    /* layout */
    
    html {
        font-family: 'Sirius', serif;
    }
    
    body {
    margin: 0;
    background: #f7ece3;
    color: #541919;
    font-feature-settings: "ss01" 1, "salt" 1, "kern" 1, "onum" 1, "liga" 1, "dlig" 1, "calt" 1;
}

.layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

    /* sidebar */
    .sidebar {
        box-sizing: border-box;
        width: 260px;
        padding: 3rem;
        border-right: 2px solid #541919;
        background: #f7ece3;
        padding: 1.5rem;
        overflow-y: scroll;
      }

    .sidebar h2 {
        font-family: "Sirius SC", serif;
        font-size: 1.25rem;
        letter-spacing: 0.08em;
        margin-top: 3rem;
        margin-bottom: 0.75rem;
        border-bottom: 2px solid #541919;
        color: #541919;
    }

.sidebar h3 {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    font-family: "Sirius SC", serif;
}

    .sidebar ul {
        list-style: none;
        margin-bottom: 1.5rem;
    }

    .sidebar li {
        margin-bottom: 0.25rem;
    }

    .sidebar a {
        color: #000000;
        text-decoration: none;
    }

    .sidebar a:hover {
        text-decoration: underline;
    }


    /* readability settings */
    .settings {
        margin-bottom: 2.5rem;
    }

    .settings label {
        display: block;
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }

    /* fic reading area */
    .reading-area {
        flex: 1;
        padding: 2rem 3rem;
        max-width: 60rem;
        margin: 0 auto;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }

    .chapter-header h1 {
        text-align: center;
        color: #541919;
        font-feature-settings: "c2sc" 1;
        font-family: "Sirius SC", serif;
        font-size: 2.2em;
        text-decoration: underline #541919;
        margin-bottom: 1rem;
    }

    .chapter-header h2 {
        text-align: center;
        font-style: italic;
        font-size: 1.1em;
        margin-bottom: 2rem;
    }

    article {
        margin: 0 auto;
        max-width: 48rem;
    }
    
    article h2 {
    font-family: "Sirius SC", serif;
    letter-spacing: 0.08em;
    font-size: 1.1rem;
    border-bottom: 1px solid #541919;
    margin-bottom: 0.75rem;
    }

    article p {
        margin-bottom: 0.5rem;
        font-size: 1.125em;
        line-height: 150%;
        text-align: justify;
    }

    article p:not(:first-child) {
        text-indent: 1.5rem;
    }

    article p:first-child:first-line {
        font-variant: small-caps;
        font-size: 1.2em;
    }

    article p:first-child:first-letter {
    font-family: 'DreamsAdventure', serif;
    font-size: 3em;
    line-height: 1;
    display: inline-block;
    vertical-align: sub;
    margin-right: 0.15rem;
    margin-top: 0.1rem;
}

    .noindent {
        text-indent: 0 !important;
    }

    hr.stars {
        border: none;
        margin: 3rem auto;
        text-align: center;
        width: 100%;
        background: none;
        color: inherit;
    }

    hr.stars::before {
        content: "✬ ✬ ✬";
        display: block;
        font-size: 1.25em;
        letter-spacing: 0.5rem;
        font-family: inherit;
        color: currentColor;
    }
    
    @media (max-width: 800px) {
    .layout {
        flex-direction: column;
        overflow-x: hidden;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #541919;
        padding: 1rem;
    }
    .reading-area {
        padding: 1.5rem;
        max-width: 100%;
    }
}

    /* footer */
    footer {
        text-align: center;
        font-size: 1rem;
        color: #541919;
        border-top: 1px solid #541919;
        margin-top: 3rem;
        padding-top: 1rem;
        font-style: italic;
    }

    .nav-buttons {
        display: flex;
        justify-content: space-between;
        margin-bottom: 2rem;
        gap: 1rem;
    }

    @media (max-width: 600px) {
        .nav-buttons {
            flex-direction: column;
        }
    }

    .previous,
    .next,
    .comment {
        background-color: #f7ece3;
        color: #541919;
        padding: 0.5rem 1rem;
        border: 1px solid #541919;
        text-decoration: none;
        text-align: center;
    }

    .previous:hover,
    .next:hover,
    .comment:hover {
        background-color: #ffffff;
    }

    /* themes */
    body.theme-default {
        background-color: #f7ece3;
        color: #541919;
    }

    body.theme-dark {
        background-color: #320f0f;
        color: #fcf7f4;
    }

    body.theme-easy {
        background-color: #ffffff;
        color: #000000;
        letter-spacing: 0.03em;
    }

    body.theme-dark ::-webkit-scrollbar-track {
        background: #320f0f;
    }

    body.theme-dark ::-webkit-scrollbar-thumb {
        background: #fcf7f4;
    }

    body.theme-easy ::-webkit-scrollbar-track {
        background: #f2f2f2;
    }

    body.theme-easy ::-webkit-scrollbar-thumb {
        background: #000;
    }

    body.theme-dark .sidebar {
        background-color: #320f0f;
        border-right: 2px solid #fcf7f4;
    }

    body.theme-dark .sidebar h2 {
        color: #fcf7f4;
    }

    body.theme-dark .sidebar a {
        color: #fff;
    }

    body.theme-dark .current {
        color: #ffffff;
    }

    body.theme-default a {
        color: #000;
    }

    body.theme-dark a {
        color: #fff;
    }

    body.theme-easy a {
        color: #000;
    }


    body.theme-dark footer {
        color: #fcf7f4;
        border-top: 1px solid #fcf7f4;
    }

    body.theme-dark .previous,
    body.theme-dark .next,
    body.theme-dark .comment {
        background-color: #320f0f;
        color: #fcf7f4;
        border: 1px solid #fcf7f4;
    }

    body.theme-dark .chapter-header h1 {
        color: #fcf7f4;
        text-decoration-color: #fcf7f4;
    }

    body.theme-easy article p {
        text-indent: 0 !important;
        font-feature-settings: normal !important;
        line-height: 1.7 !important;
        margin-bottom: 1rem !important;
        text-align: left !important;
    }

    body.theme-easy article p:first-child:first-letter {
        float: none !important;
        font-size: inherit !important;
        margin: 0 !important;
        font-family: inherit !important;
    }

    body.theme-easy .chapter-header h1,
    body.theme-easy .chapter-header h2 {
        font-feature-settings: normal !important;
        text-decoration: none !important;
    }

    body.theme-easy .sidebar {
        background-color: #f2f2f2;
        border-right: 2px solid #000;
    }

    body.theme-easy .sidebar h2,
    body.theme-easy .sidebar a {
        color: #000 !important;
    }

    body.theme-easy .previous,
    body.theme-easy .next,
    body.theme-easy .comment {
        background-color: #f2f2f2;
        color: #000;
        border: 1px solid #000;
    }