:root {
    --toc-header-bg-color: #4b4f65;
    --toc-header-txt-color: #dcdcdc;
    
    --button-bg-color: #4b4f65;
    --button-border-color: #747786;

    --header-hover-button-bg-color: #747786;
    --header-hover-button-border-color: #747786;

    --button-bg-color-hover: #9597a0;
    --button-border-color-hover: #9597a0;

    --toc-bg-color: #ffff;
    --toc-txt-color: #555;
    --toc-link-color: #555;
    --toc-link-color-hover: #000;

    --body-txt-color: #444;
    --body-bg-color: #ffffff;

    --scrollbar: #444;

}

/* READER */
body.reader                   { background-color: var(--body-bg-color); color: var(--body-txt-color); padding-top: 100px; } 

/*
#
# HEADER
# 
*/  
body.reader header            { 
  background-color: var(--toc-header-bg-color); 
  color: var(--toc-header-txt-color);
  padding: 10px; max-height: 62px; 
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}
body.reader.xs-editmode header  { position: relative; } 

body.reader header .book-title {
    font-weight: 700;
}

body.reader header .book-author   {
  line-height: 1.0em;
}

/*
#
# BUTTONS
# 
*/  

.buttonwrapper .btn.square,
body.reader header .btn.square,
#inhoudsopgave .btn.square {
  width: 2.6rem; height: 2.6rem; line-height: 1.8rem; padding: .375rem 0.0rem !important; 
  background-color: var(--button-bg-color) !important;
  border-color: var(--button-border-color) !important;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  -ms-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
  border-radius: 8px;
}

body.reader header:hover .btn.square       { 
  background-color: var(--header-hover-button-bg-color) !important;
  border-color: var(--header-hover-button-border-color) !important;
}

body.reader header:hover .btn.square:hover,
body.reader #inhoudsopgave .btn.square:hover       { 
  background-color: var(--button-bg-color-hover) !important; 
  border-color: var(--button-border-color-hover) !important; 
}

.btn.btn-primary:focus,.btn.btn-primary:active {
   outline: none !important;
   box-shadow: none !important;
}

/*
#
# BUTTON ICONEN
# 
*/  
.btn.btn-primary.square { position: relative; }

#btnprev::after { 
    content: ' ';
    width: 40px;
    height: 40px;
    background: url('/images/icons/white/chevron-right-regular.svg') center / 13px no-repeat;
    position: absolute;
    top: -1px;
    left: 0;
    transform: rotate(180deg); 
}
#btnnext::after { 
    content: ' ';
    width: 40px;
    height: 40px;
    background: url('/images/icons/white/chevron-right-regular.svg') center / 13px no-repeat;
    position: absolute;
    top: -1px;
    left: 0;
    transform: rotate(0deg); 
}
#btnToTop   { position: absolute; right: 1.5rem; bottom: 1.5rem; z-index: 5;  }
#btnToTop::after {
    content: ' ';
    width: 40px;
    height: 40px;
    background: url('/images/icons/white/chevron-right-regular.svg') center / 13px no-repeat;
    position: absolute;
    top: -1px;
    left: 0;
    transform: rotate(-90deg); 
}

#btnTocToggle::after,
#btnTocToggle2::after { 
    content: ' ';
    width: 40px;
    height: 40px;
    background: url('/images/icons/white/bars-regular.svg') center / 14px no-repeat;
    position: absolute;
    top: -1px;
    left: 0;
    transform: rotate(0deg); 
}



/*
#
# INHOUDSOPGAVE
# 
*/  

body.reader #inhoudsopgave {
  border-left: 9px solid #4b4f65;
  height: 100vh;
  width: 90vw;
  position: fixed;
  z-index: 10000000;
  top: 0;
  right: -1000px;
  background-color: var(--toc-bg-color) !important;
  overflow-x: auto;
  overflow: hidden;
  transition: right 0.4s ease-out;
}

body.reader #inhoudsopgave.showTOC {
    right:0px !important;
}

body.reader #inhoudsopgave-backdrop {
    background: rgba(75,79,101,0.0);
    height: 100vh;
    width: 100vw;
    position: fixed;
    z-index: 900;
    top: 0;
    left: 0px;
    overflow-x: auto;
    overflow: hidden;
    content: '';
    transition: background 0.4s ease-out;
}

body.reader #inhoudsopgave-backdrop.showTOC {
    background: rgba(75,79,101,0.5);
}

body.reader #inhoudsopgave #inhoudsopgave-content  { 
  position: absolute;
  top: 0; left: 0; 
  width: 100%;
  height: 100%;
  overflow-y: scroll;  
    padding-top: 30px;
}


body.reader #inhoudsopgave .inhoudsopgave-sluiten {
  position: absolute; 
  top:10px; right:10px;
  z-index: 5; 
} 
body.reader #inhoudsopgave H1#inhoudsopgave-title { 
  color: var(--toc-txt-color) !important; 
  position: absolute;
  top: 10px; left: 70px; 
}

body.reader #inhoudsopgave #inhoudsopgave-content a { color: var(--toc-link-color) !important; }
body.reader #inhoudsopgave #inhoudsopgave-content a:hover { color: var(--toc-link-color-hover) !important; }
body.reader #inhoudsopgave #inhoudsopgave-content ol,
body.reader #inhoudsopgave #inhoudsopgave-content ul { list-style-type: none; }

body.reader .main-content { padding: 0 20px  }

body.reader .main-content h2[id]::before { 
  margin-top: 40px; 
}



/*
#
# SCROLLBARS
# 
*/  

::-webkit-scrollbar {
    width: 5px !important;
    height: 5px !important;
  }
  ::-webkit-scrollbar-button {
    width: 0px;
    height: 0px;
  }
  ::-webkit-scrollbar-thumb {
    background: var(--scrollbar);
    border: 0px none #ffffff;
    border-radius: 0px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar);
  }
  ::-webkit-scrollbar-thumb:active {
    background: var(--scrollbar);
  }
  ::-webkit-scrollbar-track {
    background: transparent;
    border: 0px none #ffffff;
    border-radius: 50px;
  }
  ::-webkit-scrollbar-track:hover {
    background: transparent;
  }
  ::-webkit-scrollbar-track:active {
    background: transparent;
  }
  ::-webkit-scrollbar-corner {
    background: transparent;
  }


/*
#
# MAIN CONTENT
# 
*/

div.body      { padding: 30px 0px; max-width: 800px; margin: 0 auto; }

main * {
        -webkit-user-select: none;
        -webkit-touch-callout: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
}

nav#toc > ol > li > a { font-weight:600; display: block; padding-top: 0.5rem; padding-bottom: 0.1rem; }
dl, ol, ul            { padding-left: 1.5rem; }