/* --- ALAC ZINE READER STYLES --- */

.zine-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 75vh;
    background-color: var(--bg-main);
    border: 3px solid var(--border-color);
    box-shadow: 6px 6px 0 var(--alac-dark);
    position: relative;
    overflow: hidden;
}

html[data-theme="light"] .zine-container {
    box-shadow: 6px 6px 0 #ccc;
}

.zine-page-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 100%;
    max-width: calc(100% - 160px);
}

/* Images */
.zine-page-wrapper img {
    height: 100%;
    max-height: 70vh;
    max-width: 50%;
    object-fit: contain;
    transition: opacity 0.15s ease-in-out;
    opacity: 1;
}

#zineImageLeft {
    object-position: right center;
}

#zineImageRight {
    object-position: left center;
}

.zine-page-wrapper img.fade {
    opacity: 0;
}

/* Navigation Controls */
#prevBtn, #nextBtn {
    background-color: transparent;
    color: var(--alac-teal);
    border: none;
    cursor: pointer;
    font-size: 64px;
    padding: 0 20px;
    z-index: 10;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#prevBtn:hover:not(:disabled), #nextBtn:hover:not(:disabled) {
    opacity: 1;
    color: var(--alac-red);
    transform: scale(1.1);
}

#prevBtn:disabled, #nextBtn:disabled {
    visibility: hidden;
    cursor: default;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Content Box */
.modal-content {
    background-color: var(--bg-card);
    border: 3px solid var(--alac-teal);
    box-shadow: 8px 8px 0 var(--alac-dark);
    padding: 40px;
    position: relative;
    color: var(--text-main);
    max-width: 600px;
    width: 90%;
    height: 80vh;
    overflow-y: auto;
}

html[data-theme="light"] .modal-content {
    box-shadow: 8px 8px 0 #ccc;
}

.dashed-divider {
    border: none;
    border-top: 2px dashed var(--alac-teal);
    margin: 20px 0;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--alac-red);
    color: white;
    border: 2px solid var(--border-color);
    cursor: pointer;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    padding: 4px 10px;
    margin: 0;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 2px 2px 0 var(--alac-dark);
}

.close-btn:hover {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--alac-dark);
}

/* --- FULLSCREEN TOGGLE --- */
.fullscreen-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--bg-card);
    color: var(--alac-teal);
    border: 2px solid var(--border-color);
    padding: 8px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 2px 2px 0 var(--alac-dark);
}

.fullscreen-toggle:hover {
    color: var(--alac-red);
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--alac-dark);
}

/* --- NATIVE FULLSCREEN STATE OVERRIDES --- */
.zine-container:fullscreen {
    height: 100vh;
    width: 100vw;
    border: none;
    box-shadow: none;
    background-color: var(--bg-main);
    padding: 0;
}

.zine-container:-webkit-full-screen { 
    height: 100vh; width: 100vw; border: none; box-shadow: none; 
}