#epub-main {
    margin: 0 auto;
    height: 100%;
    font: menu;
    font-family: system-ui, sans-serif;
}
#epub .icon {
    display: block;
    fill: none;
    stroke: currentcolor;
    stroke-width: 2px;
}
#epub .empty-state-icon {
    margin: auto;
}
#epub .epub-toolbar {
    box-sizing: border-box;
    position: absolute;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 78%;
    height: 20px;
    padding: 6px;
    transition: opacity 250ms ease;
    visibility: hidden;
}
#epub .epub-toolbar button {
    padding: 3px;
    border-radius: 6px;
    background: none;
    border: 0;
    color: GrayText;
}
#epub .epub-toolbar button:hover {
    background: rgba(0, 0, 0, .1);
    color: currentcolor;
}
#epub #header-bar {
    top: 10px;
}
#epub #nav-bar {
    bottom: 10px;
}
#epub #progress-slider {
    flex-grow: 1;
    margin: 0 12px;
    visibility: hidden;
}
#epub #side-bar {
    visibility: hidden;
    box-sizing: border-box;
    position: absolute;
    z-index: 2;
    height: auto;
    width: 20%;
    display: flex;
    flex-direction: column;
    background: Canvas;
    color: CanvasText;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .2), 0 0 40px rgba(0, 0, 0, .2);
}
@media all and (max-width: 600px) {
#epub #header-bar {
    top: 60px;
}
#epub #side-bar {
    width: 45%;
	height: calc(100vh - 50px);
}
}
#epub #side-bar.show {
    visibility: visible;
    transition-delay: 0s;
}
#epub #dimming-overlay {
    visibility: hidden;
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .2);
    opacity: 0;
    transition: visibility 0s linear 300ms, opacity 300ms ease;
}
#epub #dimming-overlay.show {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}
#epub #side-bar-header {
    padding: 1rem;
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    align-items: center;
}
#epub #side-bar-cover {
    height: 10vh;
    min-height: 60px;
    max-height: 180px;
    border-radius: 3px;
    border: 0;
    background: lightgray;
    box-shadow: 0 0 1px rgba(0, 0, 0, .1), 0 0 16px rgba(0, 0, 0, .1);
    margin-inline-end: 1rem;
	margin: 10px;
}
#epub #side-bar-cover:not([src]) {
    display: none;
}
#epub #side-bar-title {
    margin: .5rem 0;
    font-size: inherit;
	text-align: left;
}
#epub #side-bar-author {
    margin: .5rem 0;
    font-size: small;
    color: GrayText;
	text-align: left;
}
#epub #toc-view {
    padding: .5rem;
    overflow-y: scroll;
	text-align: left;
}
#epub #toc-view li, #toc-view ol {
    margin: 0;
    padding: 0;
    list-style: none;
}
#epub #toc-view a, #toc-view span {
    display: block;
    border-radius: 6px;
    padding: 8px;
    margin: 2px 0;
}
#epub #toc-view a {
    color: CanvasText;
    text-decoration: none;
}
#epub #toc-view a:hover {
    background: var(--active-bg);
}
#epub #toc-view span {
    color: GrayText;
}
#epub #toc-view svg {
    margin-inline-start: -24px;
    padding-inline-start: 5px;
    padding-inline-end: 6px;
    fill: CanvasText;
    cursor: default;
    transition: transform .2s ease;
    opacity: .5;
}
#epub #toc-view svg:hover {
    opacity: 1;
}
#epub #toc-view [aria-current] {
    font-weight: bold;
    background: var(--active-bg);
}
#epub #toc-view [aria-expanded="false"] svg {
    transform: rotate(-90deg);
}
#epub #toc-view [aria-expanded="false"] + [role="group"] {
    display: none;
}
#epub .menu-container {
    position: relative;
}
#epub .epub-menu, .epub-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#epub .epub-menu {
    visibility: hidden;
    position: absolute;
    right: 0;
    background: Canvas;
    color: CanvasText;
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .2), 0 0 16px rgba(0, 0, 0, .1);
    padding: 6px;
    cursor: default;
}
#epub .epub-menu.show {
    visibility: visible;
}
#epub .epub-menu li {
    padding: 6px 12px;
    padding-left: 24px;
    border-radius: 6px;
}
#epub .epub-menu li:hover {
    background: var(--active-bg);
}
#epub .epub-menu li[aria-checked="true"] {
    background-position: center left;
    background-repeat: no-repeat;
    background-image: url('data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22%2F%3E%3C%2Fsvg%3E');
}
#epub .popover {
    background: Canvas;
    color: CanvasText;
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .2), 0 0 16px rgba(0, 0, 0, .1), 0 0 32px rgba(0, 0, 0, .1);
}
#epub .popover-arrow-down {
    fill: Canvas;
    filter: drop-shadow(0 -1px 0 rgba(0, 0, 0, .2));
}
#epub .popover-arrow-up {
    fill: Canvas;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .2));
}