/* Viewer */
#viewer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;          
    justify-content: flex-start;
    height: calc(100vh - 3.5rem);
    background: rgba(0,0,0,0);
}

/* make the comic-container shrink-wrap the image */
#comic-container {
    position: relative;
    display: inline-flex;   /* so it sizes to the image */
    height: calc(100vh - 3.5rem);
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;

}
/* overlay layer now sits exactly on top of the picture */
#comic-container img {
    display: block;
    align-items: center;
    justify-content: center;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
}

#nav-controls {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    /* kill the bottom:10% so we can drive it from JS */
    bottom: auto;
}

#nav-controls button {
    background: rgba(255,255,255,0.8);
    border: 1px solid black;
    border-radius: 8px;
    padding: 0px 20px 0px 20px;
    height: 3rem;
    font-size: 1.5rem;
    cursor: pointer;
}
#nav-controls button:hover {
    background: rgba(168, 168, 168, 0.4);
}

#nav-controls #page-count {
    font-size: 1.5rem;
}
#prev {
    padding: 0px 20px 0px 15px;
}
#next {
    padding: 0px 15px 0px 20px;
}
#play-all {
    position: absolute;
    left: 50%;
    transform: translateX(80%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    /* kill the bottom:10% so we can drive it from JS */
    bottom: auto;
    background: rgba(255,255,255,0.8);
    border: 1px solid black;
    border-radius: 8px;
    padding: 0px 20px 0px 20px;
    height: 3rem;
    font-size: 1.5rem;
    cursor: pointer;
    width:8.6rem;
}
#play-all-img {
    scale: 0.8;
}

#play-all:hover {
    background: #98bc7c;
}

#play-all.active {
    background: #98bc7c;
}

#play-all.paused {
    background: #bc7c8d;
}

#play-all-text {
    font-family: Rockwell;
}

#openInfoButton {
    font-family: Rockwell;
}

#page-count {
    font-family: Rockwell;
}


/* for mobile (small screen sizes) */
@media (max-width: 768px) {
    #comic-container img {
        max-width: 105%;
        max-height: 105%;
    }
    #nav-controls button {
        padding: 0px 14px 0px 14px;
        height: 2.3rem;
        font-size: 1rem;
        cursor: pointer;
    }
    #nav-controls {
        gap: 0.5rem;
    }
    #nav-controls #page-count {
        font-size: 1.2rem;
    }
    #play-all {
        transform: translateX(70%);
        padding: 0px 20px 0px 10px;
        height: 2.3rem;
        font-size: 1rem;
        width: 6rem;
    }
    #play-all-img {
        scale: 0.7;
        margin-right: -10px;
    }
}
