/* ==========================================================================
   AFYA EPUB Reader - Full Screen + Draggable Controls
   ========================================================================== */

html, body {
    margin: 0;
    padding: 0;
}

/* Main reader container */
.afya-reader {
    max-width: 1000px;
    margin: 0 auto;
    height: 100vh;
    height: 100svh;
    border: 1px solid #ccc;
    box-shadow: 0 0 30px rgba(0,0,0,0.15);
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
}

/* Draggable control bar */
.afya-controls {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #2c3e50;
    color: white;
    z-index: 9999;
    flex-wrap: wrap;
    border-radius: 10px;
    cursor: move;
    touch-action: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Buttons */
.afya-controls button {
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    background: #34495e;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.afya-controls button:hover {
    background: #1abc9c;
}

#night {
    background: #8e44ad;
}

#fontMinus, #fontPlus {
    background: #2980b9;
    min-width: 45px;
    font-family: monospace;
    font-size: 16px;
}

/* Flipbook fills space */
#flipbook {
    flex: 1;
    width: 100%;
    background-color: #fcfcfc;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* iframe fixes */
#flipbook iframe {
    border: none !important;
    width: 100%;
    height: 100%;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .afya-controls button {
        padding: 6px 8px;
        font-size: 12px;
    }
}
