body {
    overflow-x: hidden;
}

html {  
  overflow-x: hidden;
}

#topbar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 58px;
    padding: 0;
    margin: 0;
    z-index: 2;
    overflow: hidden;
    min-height: 32px;
}



#sidebar {
    position: fixed;
    z-index: 1;
    top: 58px;
    left: 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    bottom: 0;
    width: 15%;
    height: calc(100% - 116px);
    padding: 0;
    margin: 0;
    transition: 0.2s;
}

#sidebar #sidebarContent {
    top: 0px;
    width: 100%;
    height: 100%;
    padding: 10px;
    margin: 0;
    overflow: auto;
    transition: 0.1s;
    display: none;
}

#sidebar #thumbContent {


    top: 0px;
    width: 100%;
    height: 100%;
    padding: 10px;
    margin: 0;
    overflow: auto;
    transition: 0.1s;
}

#sidebar #thumbContent::-webkit-scrollbar {
    /* display: none;*/
}

#sidebar #thumbContent .thumb-pg {
    margin: auto;
    text-align: center;
    padding: 10px;
}

#sidebar #thumbContent .thumb-pg:hover {


    background-color: #138496;

}

#sidebar #thumbContent .thumb-pg.active {


    background-color: #138496;

}

#sidebar #thumbContent .thumb-pg img {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

#sidebar #shSideBar {
    top: 0;
    right: 0px;
    bottom: 0;
    width: 12px;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 2px;
    margin: 0;
    background-color: #cdcccb;
    transition: 0.5s;
}

.viewer {
    position: relative;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.drawBoardReal {
    position: absolute;
    left: 0;
    border: 0;
    margin: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}


.drawBoard {
    position: absolute;
    left: 0;
    border: 0;
    margin: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#page-container {

    position: absolute;

    top: 58px;
    left: 0%;
    background-color: #F8F8F8;
    border: 1px solid #EAEAEA;
    border-radius: 3px;
    margin: 0px;
    width: 100%;
    padding: 0px;
    overflow: auto;
    height: calc(100% - 116px);
}

#page-container {


    -webkit-transition: left 500ms;
    transition: left 500ms
}

#page-container::-webkit-scrollbar {
    /* display: none;*/
}




@media screen {
    #topbar.opened+#page-container {
        left: 0;
    }

    #sidebar.opened+#page-container {
        top: 0%;

    }

    #page-container {

        bottom: 0;
        right: 0;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .loading-indicator {
        display: none
    }

    .loading-indicator.active {
        display: block;
        position: absolute;
        width: 64px;
        height: 64px;
        top: 50%;
        left: 50%;
        margin-top: -32px;
        margin-left: -32px
    }

    .loading-indicator img {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0
    }
}

@media print {
    @page {
        margin: 0;
        display: none
    }

    html {
        margin: 0;
        display: none
    }

    body {
        visibility: hidden;
        display: none;
        -webkit-print-color-adjust: exact
    }

    #topbar {
        display: none
    }

    #sidebar {
        display: none
    }

    #page-container {
        width: auto;
        height: auto;
        overflow: visible;
        background-color: transparent;
        will-change: scroll-position;
    }

    .d {
        display: none
    }
}

.CE.opened{
         display: block;
     visibility: visible;
}
.CE.closed{
         display: none;
     visibility: hidden;
}
.EE.opened{
         display: block;
     visibility: visible;
}
.EE.closed{
         display: none;
     visibility: hidden;
}


#myModal .opened{
     display: block;

}
#myModal .closed{
     display: none;
}



#mediaMenu .opened, #pgBox .opened, #myModal .dropdown .opened{
     display:inline;
}
.pf.opened {
    display: block;
}

.spread.opened {
   display: block;
}

.spread.closed {
    display: none;
}

.spread {
    white-space: nowrap;
    position: static;

    text-align: center !important;

}
.spread .pf .pc, .spread .pf, .spread .pf.opened,  .spread {

    display: inline-block;
    vertical-align: middle;
}

.spread .pf {
    position: relative;
   margin:  5px;
}


.pf {
  
    position: absolute;
    background-color: white;
    overflow: hidden;
    margin: 0;
    border: 0;
    height: 842px;

}


.pc {
    position: absolute;
    border: 0;
    padding: 0;
    margin: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: block;
    transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    -webkit-transform-origin: 0 0 will-change: transform;
    display: none;
}


.pc.opened {
    display: block;
}



.bf {
    position: absolute;
    border: 0;
    margin: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none
}

.csimg {
    position: absolute;
    border: 0;
    margin: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none
}

.bi {
    position: absolute;
    border: 0;
    margin: 0;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    background-size: contain !important;
    width: 100%;
    height: 100%;
}

.bi {}


@media print {
    .pf {
        margin: 0;
        box-shadow: none;
        page-break-after: always;
        page-break-inside: avoid
    }

    @-moz-document url-prefix() {
        .pf {
            overflow: visible;
            border: 1px solid #fff
        }

        .pc {
            overflow: visible
        }
    }
}

.c {
    position: absolute;
    border: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    display: block
}

.t {
    position: absolute;
    white-space: pre;
    font-size: 1px;
    transform-origin: 0 100%;
    -ms-transform-origin: 0 100%;
    -webkit-transform-origin: 0 100%;
    unicode-bidi: bidi-override;
    -moz-font-feature-settings: "liga"0
}

.t:after {
    content: ''
}

.t span {
    position: relative;
    display: inline-block;
    unicode-bidi: bidi-override
}

._ {
    color: transparent;
    z-index: -1
}

::selection {
    background: rgba(127, 255, 255, 0.4)
}

::-moz-selection {
    background: rgba(127, 255, 255, 0.4)
}

.pi {
    display: none
}

.d {
    position: absolute;
    transform-origin: 0 100%;
    -ms-transform-origin: 0 100%;
    -webkit-transform-origin: 0 100%
}


@media screen {

    #page-container {

        /* background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjOWU5ZTllIj48L3JlY3Q+CjxwYXRoIGQ9Ik0wIDVMNSAwWk02IDRMNCA2Wk0tMSAxTDEgLTFaIiBzdHJva2U9IiM4ODgiIHN0cm9rZS13aWR0aD0iMSI+PC9wYXRoPgo8L3N2Zz4=");*/
        -webkit-transition: left 500ms;
        transition: left 500ms;

    }

    .pf {

        margin: 13px auto;
        box-shadow: 1px 1px 3px 1px #333;
        border-collapse: separate;
    }

    .pf {
        position: absolute;
        background-color: white;
        overflow: hidden;
        margin: 0;
        border: 0;
        height: 842px;
        visibility: hidden;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;

    }
    .pf .mlayer {
      /*  visibility: hidden;
        display: none;*/

    }

    .pf #svg-container {
        visibility: hidden;
        display: none;

    }

    .pf.opened {
        visibility: visible;

    }

    .pf.closed {
        visibility: hidden;

    }

    .pf.opened .mlayer {
        visibility: visible;
        display: block;
    }

    .pf.closed .mlayer {
        visibility: hidden;
        display: none;

    }

    .pf.opened #svg-container {
        visibility: visible;
        display: block;
    }

    .pf.closed #svg-container {
        visibility: hidden;
        display: none;

    }

    .pc.opened {
        /* -webkit-animation: fadein 200ms;
        animation: fadein 200ms;*/
        visibility: visible;
    }

    .pc.closed {
        /* -webkit-animation: fadeout 200ms;
        animation: fadeout 200ms;*/
        visibility: hidden;
    }

    .loading-indicator.active {
        /*  -webkit-animation: swing 1.5s ease-in-out .01s infinite alternate none;
        animation: swing 1.5s ease-in-out .01s infinite alternate none*/
    }

    #sidebar {
        background: #ff7b0d;
        /* Old browsers */
        background: -moz-linear-gradient(top, #ff7b0d 0%, #ec722d 100%);
        /* FF3.6-15 */
        background: -webkit-linear-gradient(top, #ff7b0d 0%, #ec722d 100%);
        /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to bottom, #ff7b0d 0%, #ec722d 100%);
        /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff7b0d', endColorstr='#ec722d', GradientType=0);
        z-index: 5;
    }

    #topbar {
        width: 100%;
        background: #ff7b0d;
        /* Old browsers */
        background: -moz-linear-gradient(top, #ff7b0d 0%, #ec722d 100%);
        /* FF3.6-15 */
        background: -webkit-linear-gradient(top, #ff7b0d 0%, #ec722d 100%);
        /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to bottom, #ff7b0d 0%, #ec722d 100%);
        /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff7b0d', endColorstr='#ec722d', GradientType=0);
    }

    #topbar::-webkit-scrollbar {
        /* display: none;*/
    }

    #topbar {
        display: flex;
        flex-direction: row;
        -webkit-flex-wrap: wrap;
        /* Safari 6.1+ */

        flex-wrap: wrap;
    }

    #topbar #outline {

        height: 100%;
        font-family: Georgia, Times, "Times New Roman", serif;
        font-size: 13px;
        /*margin: 2em 1em;*/
        /*background-color:#ec722d;*/
        /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ff7b0d+0,ec722d+100 */
        background: #ff7b0d;
        /* Old browsers */
        background: -moz-linear-gradient(top, #ff7b0d 0%, #ec722d 100%);
        /* FF3.6-15 */
        background: -webkit-linear-gradient(top, #ff7b0d 0%, #ec722d 100%);
        /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to bottom, #ff7b0d 0%, #ec722d 100%);
        /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff7b0d', endColorstr='#ec722d', GradientType=0);
        /* IE6-9 */
    }

    #topbar #outline2 {

        height: 100%;
        font-family: Georgia, Times, "Times New Roman", serif;
        font-size: 13px;
        /*margin: 2em 1em;*/
        /*background-color:#ec722d;*/
        /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ff7b0d+0,ec722d+100 */
        background: #ff7b0d;
        /* Old browsers */
        background: -moz-linear-gradient(top, #ff7b0d 0%, #ec722d 100%);
        /* FF3.6-15 */
        background: -webkit-linear-gradient(top, #ff7b0d 0%, #ec722d 100%);
        /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to bottom, #ff7b0d 0%, #ec722d 100%);
        /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff7b0d', endColorstr='#ec722d', GradientType=0);
        /* IE6-9 */
        flex-basis: 100%;
    }

    #topbar .front {
        width: 10%;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;

        align-items: center;
    }

    #topbar .end {
        width: 90%;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
    }

    #sidebar .outline {
display: flex;
    width: 100%;
    height: auto;
    font-family: arial;
    font-size: 13px;
    /* background-color: #ec722d; */
    background: #fff;
    padding: 0 10px;
    border-radius: 0.5rem;
    }


    #sidebar .outline input {
        display: inline-block;
    }

    #sidebar .outline ul {
        padding: 0;
    }

    #sidebar .outline li {
        list-style-type: none;
        margin: 1em 0
    }

    #sidebar .outline li>ul {
        margin-left: 1em
    }


#sidebar .outline a, #sidebar .outline a:visited, #sidebar .outline a:hover, #sidebar .outline a:active {
    text-decoration: none;
    display: block;
    word-wrap: break-word;
    outline: 0 font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
}
    #sidebar .outline a:hover {
        color: #0cf
    }

    /*  .zoom-in,
    .zoom-out,
    .zoom-fitWidth,
    .zoom-fitHeight,
    .prev,
    .next {
        border-radius: 4px;
        margin: 0 20px 0 0;
        border-collapse: collapse;
        border: 0;
        outline: 0;
        cursor: pointer;
        height: 41px;
        width: 37px;
        -webkit-transition-duration: 0.2s;

        transition-duration: 0.2s;
    }*/
    .zoom-in {
        order: 1;
        /* background: url("../svg/menu/zoomin.svg") no-repeat scroll 0 0 transparent;*/
    }

    .zoom-out {
        order: 2;
        /* background: url("../svg/menu/zoomout.svg") no-repeat scroll 0 0 transparent;*/
    }


    .zoom-fitWidth {
        order: 3;
        /* background: url("../svg/menu/fitwidth.svg") no-repeat scroll 0 0 transparent;*/
    }


    .zoom-fitHeight {
        order: 4;
        /* background: url("../svg/menu/fitheight.svg") no-repeat scroll 0 0 transparent;*/
    }

    .prev {
        order: 5;
        /* background: url("../svg/menu/prev.svg") no-repeat scroll 0 0 transparent;*/
    }

    .next {
        order: 6;
        /*background: url("../svg/menu/next.svg") no-repeat scroll 0 0 transparent;*/
    }



    .pf {
        margin: 0px;
        box-shadow: 1px 1px 3px 1px #333;
        border-collapse: separate;
    }


    .pc.opened {
        /*  -webkit-animation: fadein 100ms;
        animation: fadein 100ms;*/
        visibility: visible;
    }

    .pc.closed {
        /*-webkit-animation: fadeout 100ms;
        animation: fadeout 100ms;*/
        visibility: hidden;
    }



    .loading-indicator.active {
        /* -webkit-animation: swing 1.5s ease-in-out .01s infinite alternate none;
        animation: swing 1.5s ease-in-out .01s infinite alternate none*/
    }
}


.popover-close {
    position: absolute;
    top: 2px;
    right: 10px;
    opacity: 1;


}

audio:focus {
    outline: -webkit-focus-ring-color auto 0px;
}

.popover,
.popover-body {
    touch-action: pan-y;
}

.modal {
    touch-action: pan-y;
}

#thumbContent {
    touch-action: pan-y;
}

#page-container {
    touch-action: pan-x pan-y;
}

#sidebarContent {
    touch-action: pan-y;
    overflow-x: hidden;
}

body {
    touch-action: pan-x pan-y;
}

#sidebar #sidebarContent::-webkit-scrollbar {
    /* display: none;*/
}

#thumbContent {
    touch-action: pan-y;
}

