html,
body,
body * {
    cursor: url("/img/sys/cursor.png") 4 1, auto !important;
}

a,
a:hover,
a:active,
a:focus,
button,
button:hover,
button:active,
button:focus {
    cursor: url("/img/sys/cursorlink.png") 4 1, auto !important;
}

html,
body {
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    line-height: normal;
}

.pagewrap {
    display: flex;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    background:
        url("/img/logbg.jpg")
        80% / 400px auto
        repeat;
    background-color: #17191f86;
    background-blend-mode: multiply;
}

.bodywrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

.contentwrap {
    display: flex;
    flex-direction: column;
    align-content: center;
    max-width: 32em;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
}

.contentwrap::-webkit-scrollbar {
    display: none;
}

.centerbox {
    display: flex;
    z-index: 1;
    flex-direction: column;
    justify-content: flex-start;
    margin: 2vh;
    height: 96vh;
    min-height: 0;
}

.logtop {
    display: flex;
    flex-shrink: 0;
    height: 70px;
    width: 100%;
}

.controlwrap {
    display: flex;
    position: relative;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2%;
    height: 100%;
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.logbut,
a.logbut {
    display: flex;
    flex-direction: row;
    justify-content: center;
    height: 100%;
    width: 12%;
    transition: .25s;
    filter:
        drop-shadow(2px 0 0 #17191f)
        drop-shadow(-2px 0 0 #17191f)
        drop-shadow(0 2px 0 #17191f)
        drop-shadow(0 -2px 0 #17191f);
}

.logbut:hover {
    width: 13%;
    opacity: 80%;
    transition: .25s;
}

.logbut:hover .butimg {
    filter:
        brightness(0)
        saturate(100%)
        invert(69%)
        sepia(28%)
        saturate(700%)
        hue-rotate(330deg)
        brightness(100%);
}

.rightpnt:hover {
    transform: translateX(5px);
    transition: .25s;
}

.leftpnt:hover {
    transform: translateX(-5px);
    transition: .25s;
}

.logbutlink {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: transparent;
}

.butimg {
    display: flex;
    align-self: center;
    height: auto;
    width: 100%;
}

.logwrap {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    overflow: visible;
    filter:
        drop-shadow(0px 0px 5px #17191f47);
}

.reader-area {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    flex: 1;
    min-height: 0;
    padding-top: 25px;
    overflow: visible;
    box-sizing: border-box;
}

#comic-page {
    position: relative;
    z-index: 3;
    display: block;
    align-self: flex-start;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

#comic-page.fade {
    opacity: 0;
}

.reader-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 6;
    width: 35%;
}

.reader-zone.left {
    left: 0;
}

.reader-zone.right {
    right: 0;
}

#loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 20;
    transform: translate(-50%, -50%);
}

#loading img {
    display: block;
    width: 32px;
    height: 32px;
}

#bottom-btn {
    position: absolute;
    right: 0px;
    top: 15px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    color: #e1e4eb;
    border: none;
    background-color: transparent;
    transition: 0.25s ease;
    filter:
        drop-shadow(2px 0 0 #17191f)
        drop-shadow(-2px 0 0 #17191f)
        drop-shadow(0 2px 0 #17191f)
        drop-shadow(0 -2px 0 #17191f);
}

#bottom-btn:hover {
    filter:
        brightness(0)
        saturate(100%)
        invert(69%)
        sepia(28%)
        saturate(700%)
        hue-rotate(330deg)
        brightness(100%);
    transform: scale(1.08);
}

#bottom-btn img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

#bottom-btn img.flipped {
    transform: rotate(180deg);
}

.chapter-menu {
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: absolute;
    top: 11%;
    left: 83%;
    transform: translate(-50%, -70%) scale(.98);
    z-index: 40;
    width: 150px;
    height: auto;
    padding: 6px;
    box-sizing: border-box;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background-color: #17191f;
    border-radius: 4px 10px;
    box-shadow:
        0 0 5px rgba(23, 25, 31, 1);
    transition:
        opacity .1s ease,
        transform .2s ease,
        visibility 0s linear .2s;
}

.chapter-menu.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    transition:
        opacity .1s ease,
        transform .2s ease,
        visibility 0s;
}

.chapter-button {
    display: block;
    width: 100%;
    padding: 7px;
    background-color: #31343d;
    color: #e1e4eb;
    font-family: 'AdobeGaramondProSB';
    font-size: 14px;
    text-align: center;
    transition: .2s;
    border-radius: 5px;
    border: none;
}

.chapter-button:hover {
    background-color: #e1a185;
    color: #17191f;
}

@media (max-width: 600px) {
    .logbut,
    a.logbut {
        width: 15%;
    }

    .logbut:hover {
        width: 16%;
    }

    .readerbg {
        left: 25px;
        right: 25px;
    }

    .reader-area::before,
    .reader-area::after {
        width: 25px;
    }

    .reader-zone {
        width: 40%;
    }
}