
@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;
}


* {
      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;
    }

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

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

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

body {
    margin: 0;
    background: #E6E0D6;
    color: #1C1722;
    font: 1.25rem "Bellefair", serif;
}

#container {
    display: flex;
    min-height: 100vh;
}

#sidebar {
    width: 320px;
    background: #ECE9E4;
    border-right: 1px solid #A07C86;
    padding: 12px;
    box-sizing: border-box;
}

hr {
  border-color: #A07C86;
}

.title {
    text-align: center;
    margin-bottom: 12px;
}

.title h1 {
    margin: 0;
    font-size: 2rem;
    font-family: "Bellefair", serif;
    font-weight: bold;
    color: #1C1722;
}

.title p {
    margin: 3px 0 0;
    color: #1C1722;
    font-size: 1rem;
}

/* COLLAPSIBLE BOX (SIDEBAR) */

details.box {
    background: #C8A6AE;
    border: 1px solid #A07C86;
    margin-bottom: 10px;
}

summary.box-title {
    background: #C8A6AE;
    color: #1C1722;
    padding: 4px 6px;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

.box-content {
    padding: 6px;
}

.box-content a {
    color: #1C1722;
    text-decoration: none;
}

.box-content a:hover {
    text-decoration: underline;
}

a {
    color: #1C1722;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* CONTENT */

#reading-area {
    flex: 1;
    padding: 15px;
    box-sizing: border-box;
}

/* COLLAPSIBLE STORY ENTRIES */

details.entry {
    background: #C8A6AE;
    border: 1px solid #A07C86;
    margin-bottom: 12px;
}

summary.entry-header {
    background: #C8A6AE;
    padding: 6px 8px;
    cursor: pointer;
    list-style: none;
    border-bottom: 1px solid #A07C86;
}

summary.entry-header::-webkit-details-marker {
    display: none;
}

.entry-title {
    font-weight: bold;
    font-size: 1.5rem;
}

.entry-title a {
    color: #1C1722;
    text-decoration: underline dotted;
}

.entry-meta {
    color: #1C1722;
    font-size: 1rem;
    margin-top: 2px;
}

.entry-body {
    padding: 10px;
    line-height: 1.5;
}

.fic {
    max-width: 42rem;
    margin: 0 auto;
    padding: 0 1rem;
}
  

@media (max-width: 780px) {
    #container {
        flex-direction: column;
    }

    #sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #7a6274;
    }

    #reading-area {
        padding: 10px;
    }
    
    
}

@media (max-width: 480px) {
    body {
        font-size: 1.5rem;
    }

    .title h1 {
        font-size: 1.75rem;
    }

    #sidebar {
        padding: 10px;
    }

    .entry-body {
        padding-left: 2rem;
        padding-right: 2rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    summary.box-title,
    summary.entry-header {
        padding: 6px;
    }
}

.entry-title,
.entry-meta,
.box-content {
    overflow-wrap: break-word;
    word-break: break-word;
}

.entry-title,
.entry-meta {
    display: block;
}

.settings {
        margin-bottom: 2.5rem;
    }

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

/* themes */
body.theme-default {
    background: #E6E0D6;
    color: #1C1722;
}

body.theme-default #sidebar {
    background: #ECE9E4;
    border-right: 1px solid #A07C86;
}

body.theme-default .box,
body.theme-default .entry {
    background: #C8A6AE;
    border-color: #A07C86;
}

body.theme-default .box-title,
body.theme-default .entry-header {
    background: #C8A6AE;
    color: #1C1722;
}

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

/* DARK MODE */
body.theme-dark {
    background: #1C1722;
    color: #E6E0D6;
}

body.theme-dark #sidebar {
    background: #260b0b;
    border-right: 1px solid #E6E0D6;
}

body.theme-dark .title h1,
body.theme-dark .title p,
body.theme-dark a,
body.theme-dark .entry-meta {
    color: #E6E0D6;
}

body.theme-dark hr {
    border-color: #E6E0D6;
}

body.theme-dark .box,
body.theme-dark .entry {
    background: #5B3740;
    border-color: #E6E0D6;
}

body.theme-dark .box-title,
body.theme-dark .entry-header {
    background: #5B3740;
    color: #E6E0D6;
    border-color: #E6E0D6;
}

body.theme-dark .entry-title a {
    color: #E6E0D6;
}

/* DARK SCROLLBAR */
body.theme-dark ::-webkit-scrollbar-track {
    background: #260b0b;
}

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

/* EASY READ */
body.theme-easy {
    background: #ffffff;
    color: #000000;
    letter-spacing: 0.03em;
    font-family: "Atkinson Hyperlegible Next", sans-serif;
}

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

body.theme-easy #reading-area p:first-of-type::first-letter {
  font-size: inherit;
  float: none;
  line-height: inherit;
  padding: 0;
  color: inherit;
}

body.theme-easy #reading-area p:first-of-type::first-line {
  font-variant-caps: normal;
  letter-spacing: normal;
}

body.theme-easy .title h1,
body.theme-easy .title p,
body.theme-easy a,
body.theme-easy .entry-meta {
    color: #000;
}

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

body.theme-easy .box,
body.theme-easy .entry {
    background: #ffffff;
    border: 2px solid #000;
}

body.theme-easy .box-title,
body.theme-easy .entry-header {
    background: #f2f2f2;
    color: #000;
    border-color: #000;
}

/* Easier reading */
body.theme-easy .entry-body p {
    text-indent: 0;
    line-height: 1.8;
    text-align: left;
    margin-bottom: 1rem;
}

/* EASY SCROLLBAR */
body.theme-easy ::-webkit-scrollbar-track {
    background: #f2f2f2;
}

body.theme-easy ::-webkit-scrollbar-thumb {
    background: #000;
}
    
    
    #reading-area p {
    margin-bottom: 1.2em;
    text-align: justify;
    text-indent: 1.8em;
  }
  
  .noindent {
            text-indent: 0 !important;
  }

  #reading-area p:first-of-type { text-indent: 0; }

  #reading-area p:first-of-type::first-letter {
    font-size: 4.5em;
    float: left;
    line-height: 0.6;
    padding-right: 0.08em;
    padding-top: 0.08em;
    color: #7a6274;
  }
  
  #reading-area p:first-of-type::first-line {
  font-variant: small-caps;
  letter-spacing: 0.04em;
}

@media (max-width: 480px) {

  #reading-area p:first-of-type::first-letter {
    font-size: 4em;
    line-height: 0.8;
    padding-right: 0.01em;
    padding-top: 0.05em;
  }

  #reading-area p:first-of-type::first-line {
    font-variant: small-caps;
    letter-spacing: 0.03em;
  }
}


#reading-area p.no-dropcap:first-of-type::first-letter {
  font-size: inherit;
  float: none;
  line-height: inherit;
  padding: 0;
  color: inherit;
}

#reading-area p.no-dropcap:first-of-type::first-line {
  font-variant-caps: normal;
  letter-spacing: normal;
}
    