/*
 * Custom overrides for BookReader Demo.
 */
html {
    /** This must be set because the nav menu uses rem and sets the fonts really big? */
    font-size: 10px;
    font-family: sans-serif;
}

body {
    font-size: 16px;
    background-color: #939598;
    margin: 0px;
}

/* Hide print and embed functionality */
.BRtoolbar .embed, .print {
    display: none;
}

body.BRfullscreenActive section.theater {
    height: 100vh;
}
ia-bookreader[fullscreen] {
    height: unset;
}

ia-bookreader{
    --br-height: calc(100vh - 100px);
    display: block;
    height: var(--br-height);
}

.BookReader {
    height: var(--br-height);
    overflow: hidden;
    margin: 0 auto;
}

@media only screen and (max-width: 799px) {
    body.BRbodyMobileNavEnabled {
        margin: 0;
        width: 100%;
        overflow: hidden;
    }
    .BRbodyMobileNavEnabled .BookReader {
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        position: absolute;
        height: 100%;
        margin: 0;
        width: 100%;
    }
  }
