body {
    padding: 0;
    margin: 0;
    /* 
       Background color is controlled by the ACBF on a per comic and or page basis.
       To set the background here, set perPageColor in panelbypanel.js to false.
   */
}

a {
    outline: 0;
}

/* Layout */

#navcontainer, #pagecontainer, #loadingcontainer {
    height: 100vh;
    width: 100vw;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

#pagecontainer {
    z-index: 0;
}

#navcontainer {
    z-index: 1;
}


#menuzone {
    opacity: 1;
    width: 100vw;
    height: 48px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
}

#loadingcontainer {
    z-index: 4;
    display: none;
    justify-content: center;
    align-items: center;
    background: black;
    opacity: 0.5;
    animation: fadein ease-in-out 1s;
}

#loadinganim {
    opacity: 1;
    width: 25%;
    animation: fadein ease-in-out 1500ms, spin 3600ms ease-in-out infinite;
}

@keyframes fadein {
    0% {
	opacity: 0;
    }
    100% {
	opacity: 0.5;
    }
}
@keyframes spin {
    0% { transform: rotate(0deg) }
    25% { transform: rotate(90deg) }
    50% { transform: rotate(180deg) }
    75% { transform: rotate(270deg) }
    100% { transform: rotate(360deg) }
}

.helper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

#page {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
}


/* Main menu */

#menu {
    width: 100%;
    height: 48px;
    position: absolute;
    display: block;
    /* Set the color and opacity of the menu strip */
    background: rgba(100, 100, 100, 0.7);
}

.menu-icon {
    width: 48px;
    height: 48px;
    /* Change the color of the menu buttons (in a somewhat hacky way */
    /* filter: brightness(1) sepia(1) saturate(17) hue-rotate(0deg); */
}

.button {
    text-decoration: none;
}

#menu-left {
    float: left;
    width: 20%;
}

#menu-center {
    display: inline-block;
    margin: 0 auto;
    width: 60%;
    text-align: center;
}
#menu-center a {
    margin-left: auto;
    margin-right: auto;
}

#menu-right {
    float: right;
    width: 20%;
}
#menu-right a {
    float: right;
}

/* About & Help */
@font-face {
    font-family: "KomikaSlick";
    src: url("fonts/komikask.ttf") format("truetype");
}

#about, #help {
    display: none;
    position: absolute;
    width: 80%;
    max-width: 600px;
    top: 68px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.9;
    z-index: 2;
    border: 2px solid #1d1d1d;
    border-radius: 0.2em;
}


.icon-list {
    list-style-type: none;
    padding-left: 20px;
}

.help-icon {
    width: 32px;
    vertical-align: middle;
}

.bubble {
    position: absolute;
    font-family: "KomikaSlick", Arial, sans-serif;
    z-index: 2;
    width: 100%;
    background: white;
    border-radius: .4em;
}

.bubble-inner {
    padding: 20px;
    text-align: left;
}

#title {
    margin-top: 0;
}

#publisher {
    font-size: 0.7em;
    background: #ffe39f;
    padding: 8px;
    border: 2px solid #1d1d1d;
    border-radius: 0.2em;
}


/* Page Navigation */
.navbtn {
    display: flex;
    align-content: center;
    height: 100%;
    width: 35%;
    float: left;
    opacity: 0.5;
    border: 0;
}

#prevbtn {
    justify-content: flex-start;
}

#prevbtn:hover > .navarrow {
    display: block;
}

#menubtn {
    width: 30%;
}

#nextbtn {
    justify-content: flex-end;
}

#nextbtn:hover > .navarrow {
    display: block;
}

.navarrow {
    display: none;
    width: 48px;
}

/* Thumbnails */
.thumblink {
    text-decoration: none;
}

#active-thumb {
    border: 1px dotted red;
}
