body {
    margin: 0 0;
    padding: 0 0;
    overflow: hidden;
    overflow: -moz-hidden-unscrollable;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333333;
}

* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

input,
input:before,
input:after,
textarea,
textarea:before,
textarea:after {
    -webkit-user-select: initial;
    -khtml-user-select: initial;
    -moz-user-select: initial;
    -ms-user-select: initial;
    user-select: initial;
}

div.bookviewport {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    overflow: hidden;
    background-color: #333333;
    z-index: 100;
}

div.bookviewport.scrollable {
    overflow: scroll;
    -webkit-overflow-scrolling: touch;
}



div.fullscreen {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    overflow: hidden;
    z-index: 110;
    background-color: rgba(0, 0, 0, 0.7);
}

* {
    overflow: visible;
}

/**
    PAGE CONTAINER
**/

.pagecontainer {
    font-size: 16px;
}

.content-area {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
}

.content-area .animate-start-hidden {
    visibility: hidden;
    opacity: 0;
}

.content-area .animate-start-hidden.animated {
    visibility: visible;
    opacity: 1;
}

.content-area.scrollable,
.content-area-wrapper.scrollable,
.figure.scrollable {
    overflow-y: scroll;
    -webkit-user-drag: auto;
    -webkit-overflow-scrolling: touch;
}

.content-area-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.content-area-wrapper .content-area {
    position: relative;
}

a {
    color: #0000ee;
    text-decoration: underline;
    word-wrap: break-word;
    cursor: pointer;
}

sup {
    line-height: 0;
}

/* Remove borders around linked images in IE */
a img {
    border: 0;
}

/**
    COLUMNS
**/

.column-top {
    margin-top: 0 !important;
}

.column-split-top {
    text-indent: 0 !important;
    border-top: none !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.column-bottom {}

.column-split-bottom {
    border-bottom: none !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/**
 * Loading Indicator
 */

#busy {
    z-index: 1000;
    position: absolute;
    opacity: 1;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(51, 51, 51, 0.75);
}

#layout-percent {
    position: absolute;
    display: block;
    background-size: contain;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 350px;
    max-height: 350px;
}

#busy .nxtlogo {
    position: absolute;
    display: block;
    right: 10px;
    bottom: 10px;
}

/*#busy-img*/
/*{*/
/*position: absolute;*/
/*left: 50%;*/
/*top: 50%;*/
/*margin-top: -128px;*/
/*margin-left: -128px;*/
/*display: block;*/
/*background-size: contain;*/
/*height: 256px;*/
/*width: 256px;*/
/*}*/

#busy-percent-back {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-top: -10px;
    margin-left: -55px;
    display: block;
    height: 20px;
    width: 110px;
    background-color: #3a76cc;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

#busy-percent {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-top: -5px;
    margin-left: -50px;
    display: block;
    height: 10px;
    width: 0;
    background-color: #d0f7ff;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
}

.pagecontainer.loadingpage {
    background-color: transparent !important;
}

.pagecontainer .articleLoadingContainer {
    background-color: #666;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 30px;
    border-radius: 20px;
}

.pagecontainer .articleLoadingContainer h2 {
    color: #fff;
    text-align: center;
}

.pagecontainer .articleLoadingContainer h2 small {
    color: #ccc;
}

.pagecontainer .articleLoadingProgress {
    margin: auto;
    width: 200px;
    height: 230px;
}


/**
 * Book
 */

#pagebuilder {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    visibility: hidden;
    /*display: none;*/
}

.figure {
    position: absolute;
    z-index: 101;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

b,
strong {
    font-weight: 700;
}

/* STYLE RESETS */
.pagecontainer h1,
.pagecontainer .figure h1,
.lightbox-content .figure h1,
.pagecontainer h1.reset-styles,
.pagecontainer article h1,
.pagecontainer article .figure h1,
.lightbox-content .figure h1,
.pagecontainer article h1.reset-styles {
    background-color: transparent;
    font-variant: normal;
    letter-spacing: normal;
    text-transform: none;
    box-sizing: border-box;
    color: #222222;
    display: block;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 32px;
    font-weight: 300;
    text-align: left;
    line-height: 1.6em;
    margin-bottom: 0px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0px;
    padding: 0 0;
    border: none;
}

.pagecontainer h2,
.pagecontainer .figure h2,
.lightbox-content .figure h2,
.pagecontainer h2.reset-styles,
.pagecontainer article h2,
.pagecontainer article .figure h2,
.lightbox-content .figure h2,
.pagecontainer article h2.reset-styles {
    background-color: transparent;
    font-variant: normal;
    letter-spacing: normal;
    text-transform: none;
    box-sizing: border-box;
    color: #222222;
    display: block;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: 300;
    text-align: left;
    line-height: 1.6em;
    margin-bottom: 0px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0px;
    padding: 0 0;
    border: none;
}

.pagecontainer h3,
.pagecontainer .figure h3,
.lightbox-content .figure h3,
.pagecontainer h3.reset-styles,
.pagecontainer article h3,
.pagecontainer article .figure h3,
.lightbox-content .figure h3,
.pagecontainer article h3.reset-styles {
    background-color: transparent;
    box-sizing: border-box;
    font-variant: normal;
    letter-spacing: normal;
    text-transform: none;
    color: #222222;
    display: block;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 300;
    text-align: left;
    line-height: 1.6em;
    margin-bottom: 0px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0px;
    padding: 0 0;
    border: none;
}

.pagecontainer h4,
.pagecontainer .figure h4,
.lightbox-content .figure h4,
.pagecontainer h4.reset-styles,
.pagecontainer article h4,
.pagecontainer article .figure h4,
.lightbox-content .figure h4,
.pagecontainer article h4.reset-styles {
    background-color: transparent;
    box-sizing: border-box;
    font-variant: normal;
    letter-spacing: normal;
    text-transform: none;
    color: #222222;
    display: block;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 300;
    text-align: left;
    line-height: 1.6em;
    margin-bottom: 0px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0px;
    padding: 0 0;
    border: none;
}

.pagecontainer h5,
.pagecontainer .figure h5,
.lightbox-content .figure h5,
.pagecontainer h5.reset-styles,
.pagecontainer article h5,
.pagecontainer article .figure h5,
.lightbox-content .figure h5,
.pagecontainer article h5.reset-styles {
    background-color: transparent;
    box-sizing: border-box;
    font-variant: normal;
    letter-spacing: normal;
    text-transform: none;
    color: #222222;
    display: block;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 300;
    text-align: left;
    line-height: 1.6em;
    margin-bottom: 0px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0px;
    padding: 0 0;
    border: none;
}

.pagecontainer h6,
.pagecontainer .figure h6,
.lightbox-content .figure h6,
.pagecontainer h6.reset-styles,
.pagecontainer article h6,
.pagecontainer article .figure h6,
.lightbox-content .figure h6,
.pagecontainer article h6.reset-styles {
    background-color: transparent;
    box-sizing: border-box;
    font-variant: normal;
    letter-spacing: normal;
    text-transform: none;
    color: #222222;
    display: block;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 300;
    text-align: left;
    line-height: 1.6em;
    margin-bottom: 0px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0px;
    padding: 0 0;
    border: none;
}

.pagecontainer p,
.pagecontainer .figure p,
.lightbox-content .figure p,
.pagecontainer p.reset-styles,
.pagecontainer article p,
.pagecontainer article .figure p,
.lightbox-content .figure p,
.pagecontainer article p.reset-styles {
    background-color: transparent;
    box-sizing: border-box;
    font-variant: normal;
    letter-spacing: normal;
    text-transform: none;
    color: #222222;
    display: block;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6em;
    margin-bottom: 0px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    padding: 0 0;
    border: none;
}

.figure span {
    background-color: inherit;
    font-variant: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    margin-bottom: 0px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    padding: 0 0;
    border: none;
}

.pagecontainer .column li p {
    background-color: inherit;
    box-sizing: inherit;
    font-variant: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    margin-bottom: inherit;
    margin-left: inherit;
    margin-right: inherit;
    margin-top: inherit;
    padding: inherit;
    border: inherit;
    list-style-type: none;
    text-align: inherit;
}

.pagecontainer .column ol {
    background-color: transparent;
    box-sizing: border-box;
    font-variant: normal;
    letter-spacing: normal;
    text-transform: none;
    color: #222222;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6em;
    border: none;
}

.pagecontainer .column ol li ol {
    background-color: inherit;
    box-sizing: inherit;
    font-variant: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    border: inherit;
    list-style-type: inherit;
}


.pagecontainer ul,
.pagecontainer .figure ul,
.lightbox-content .figure ul,
.pagecontainer ul.reset-styles,
.pagecontainer article ul,
.pagecontainer article .figure ul,
.lightbox-content .figure ul,
.pagecontainer article ul.reset-styles {
    block-margin-top: 0;
}

.pagecontainer ol,
.pagecontainer .figure ol,
.lightbox-content .figure ol,
.pagecontainer ol.reset-styles,
.pagecontainer article ol,
.pagecontainer article .figure ol,
.lightbox-content .figure ol,
.pagecontainer article ol.reset-styles {
    block-margin-top: 0;
}

.pagecontainer>img,
.pagecontainer article>img,
{
max-width: 100%;
width: 100%;
height: auto;
display: block;
float: none;
alignment: center;
margin-left: auto;
margin-right: auto;
}

.pagecontainer .column img.image-character {
    max-width: unset;
    width: unset;
    height: auto;
    display: inline;
    float: unset;
    margin-left: unset;
    margin-right: unset;
    vertical-align: middle;
}

.pagecontainer {
    width: 940px;
    height: 600px;
    top: 0;
    margin: 0 0;
    padding: 0 0;
    left: 0;
    position: absolute;
    background-color: #fff;
}

.column {
    position: absolute;
    padding: 0 0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    /* overflow: hidden; */
    text-align: left;
    z-index: 100;
}

.content-area div[data-extended="1"] {
    width: var(--wrapper-width, 100%);
    margin-left: calc(-1 * var(--extended-offset, 0)) !important;
    margin-right: 0px !important;
    box-sizing: border-box;
}

.pagecontainer .column {
    top: 10px;
    bottom: 10px;
}

.pagecontainer .page_disable_overlay {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background-color: #333333;
    opacity: 0.5;
}

/**
 * List support
 */
li.column-split-top {
    list-style-type: none;
    list-style-image: none;
}

/**
 * Lightbox
 */

.bookviewport {
    -webkit-transition: -webkit-transform 0.5s, opacity 0.5s;
    -moz-transition: -moz-transform 0.5s, opacity 0.5s;
    transition: transform 0.5s, opacity 0.5s;
}

.bookviewport.overlay-open {
    -webkit-transform: scale(0.8);
    -moz-transform: scale(0.8);
    -ms-transform: scale(0.8);
    transform: scale(0.8);
}

.lightbox {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    -webkit-transform: scale(0.8);
    opacity: 0;
    -webkit-transition: -webkit-transform 0.5s, opacity 0.5s;
    -moz-transition: -moz-transform 0.5s, opacity 0.5s;
    transition: transform 0.5s, opacity 0.5s;
    display: block;
    z-index: 300;
}

.lightbox.hidden {
    z-index: 1;
    opacity: 0;
}

.lightbox.overlay-open {
    opacity: 1;
    -webkit-transform: scale(1.0);
    -moz-transform: scale(1.0);
    -ms-transform: scale(1.0);
    transform: scale(1.0);
}

.lightbox-content {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

/**
 * Link maps
 **/

.image-map-overlay {
    background-color: rgba(0, 0, 0, 0);
    position: absolute;
    z-index: 10000;
    pointer-events: none;
    overflow: hidden;
}

.image-map-link {
    position: absolute;
    background-color: #ffff00;
    opacity: 0.3;
    pointer-events: all;
    border-radius: 4px;
    cursor: pointer;
}

.image-map-link:hover,
.image-map-link.hide-link:hover {
    opacity: 0.8;
    -webkit-transform: scale(1.01);
    -moz-transform: scale(1.01);
    -ms-transform: scale(1.01);
    transform: scale(1.01);
}

.image-map-link,
.image-map-link.hide-link {
    -webkit-transition: -webkit-transform 0.5s, opacity 0.5s;
    -moz-transition: -moz-transform 0.5s, opacity 0.5s;
    transition: transform 0.5s, opacity 0.5s;
}

.image-map-link.hide-link {
    opacity: 0.01;
}

.image-map-link.link-hidden {
    opacity: 0;
}

.inlinePageInNPA {
    position: relative;
}

.bookviewport .scrollable {
    touch-action: pan-y;
}


/* Anchor link popup */
.anchor-link-popup {
    visibility: hidden;
    border-radius: 6px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    padding: 8px;
    margin: 0 10px;
    position: absolute;
    background-color: #fff;
    border: solid 2px #949494;
    z-index: 1000;
}

.anchor-link-popup.show {
    visibility: visible;
    -webkit-animation: anchorPopupFadeIn 0.3s;
    animation: anchorPopupFadeIn 0.3s
}

@-webkit-keyframes anchorPopupFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes anchorPopupFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* Audio version */
.raft-audio-highlight {
    z-index: 100;
    display: none;
    position: absolute;
    background-color: #04689e41;

    border: #04679e dotted 0px;
    border-left: #04679e solid 6px;
    border-right: #04679e solid 6px;
    border-radius: 20px;

    padding: 10px;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: -20px;
    margin-top: -10px;
}

.raft-audio-highlight.active {
    display: block;
}

.raft-audio-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    background-color: #fff;
    --plyr-color-main: #00b3ff;
    --plyr-font-family: Arial, sans-serif;
    border-top: 2px solid #dadee3;
}

.raft-audio-player {
    max-width: 600px;
    flex-grow: 1;
}

.raft-audio-close-button {
    background-color: transparent;
    outline: none;
    border: none;
    cursor: pointer;
    color: var(--plyr-audio-control-color, #4a5464);
}

.raft-audio-container.top {
    top: 0;
    bottom: unset;
    border-bottom: 2px solid #dadee3;
    border-top: unset;
}

.raft-audio-container.top .plyr__menu__container {
    bottom: auto !important;
    top: 100% !important;
    margin-top: 10px;
    transform-origin: top !important;
}

.raft-audio-container.top .plyr__tooltip {
    top: 100% !important;
    bottom: auto !important;
    margin-top: 10px;
}

.raft-audio-container.top .plyr__tooltip::before {
    border-top-color: transparent !important;
    border-bottom-color: inherit !important;
    top: -5px !important;
    bottom: auto !important;
}

/* --- DARK MODE LOGIC --- */
.raft-audio-container.dark-mode {
    --plyr-audio-controls-background: #232323;
    --plyr-audio-control-color: #eeeeee;
    --plyr-audio-control-color-hover: #ffffff;
    --plyr-tooltip-background: #444;
    --plyr-tooltip-color: #fff;
    --plyr-menu-background: #333;
    --plyr-menu-color: #eee;
    background-color: #232323;
}

.raft-audio-container.dark-mode .plyr--audio .plyr__controls {
    background: #232323;
    border-radius: 8px;
}

.raft-audio-container.dark-mode .plyr__tooltip::before {
    border-top-color: #444 !important;
}

.raft-audio-container.dark-mode.top .plyr__tooltip::before {
    border-top-color: transparent !important;
    border-bottom-color: #444 !important;
}





/* Print */
@media print {

    body {
        overflow: visible !important;
        background-color: #fff !important;
    }

    .lightbox {
        display: none;
    }

    .bookviewport {
        background-color: #fff !important;
        display: block !important;
        position: relative !important;
        overflow: visible !important;
        left: initial !important;
        right: initial !important;
        top: initial !important;
        bottom: initial !important;
    }

    .pagecontainer.focusedpage {
        display: block !important;
        position: relative !important;
        height: initial !important;
        left: initial !important;
        right: initial !important;
        top: initial !important;
        bottom: initial !important;
        margin-left: auto;
        margin-right: auto;
    }

    .scrollable {
        display: block !important;
        position: relative !important;
        overflow: visible !important;
    }

    body *:not(.bookviewport) {
        visibility: hidden;
    }

    .bookviewport .pagecontainer:not(.focusedpage) {
        display: none !important;
    }

    body .bookviewport .focusedpage,
    body .bookviewport .focusedpage * {
        visibility: visible;
    }

    body .bookviewport .focusedpage .darthFader {
        display: none;
        visibility: hidden;
    }

    body .bookviewport .focusedpage .scrollHint {
        display: none;
        visibility: hidden;
    }

    body .bookviewport .focusedpage .scroll-indicator {
        display: none;
        visibility: hidden;
    }

}