/* Headers: surfacebound.start and surfacebound.end */
.comic-header {
    background-color: black;
    color: white;
    text-align: left;
    font-family: monospace;
    font-size: 1.5rem;
    /* padding: 1rem; */
    letter-spacing: 0.1em;
    margin: 0;
}

/* Comic reader layout */
.comic-reader {
    display: flex;
    align-items: center;
    justify-content: center;
    /* gap: 1rem; */
    flex-wrap: nowrap;
    max-width: 100%;
    min-height: 85vh; /* Keeps height consistent to prevent jumping */
    box-sizing: border-box;
}

/* Container for the comic image */
.comic-panel {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 90vw;
    max-height: 80vh;
}

/* Comic image */
#comicPage {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    object-fit: contain;
}

/* Navigation arrows */
.nav-side {
    font-size: 24px;
    padding: 12px 18px;
    background: none;
    color: white;
    border: 4px solid white;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
  }
  
  .nav-side:hover:not(:disabled) {
    background: white;
    color: black;
  }
  
  .nav-side:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

/* Modal for full-screen image view */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.image-modal img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s;
}

.image-modal:hover img {
    transform: scale(1.02);
}

.image-modal.hidden {
    display: none;
}
