/* ── ePaper Flipbook — style.css ──────────────────────────────────────── */

.epaper-flipbook-wrap {
    font-family: sans-serif;
    max-width: 340px;
    margin: 0 auto 16px;
}

/* Header row */
.epaper-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 8px;
}

.epaper-title {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    flex: 1;
}

.epaper-open-btn {
    font-size: 11px;
    background: #c00;
    color: #fff !important;
    text-decoration: none !important;
    padding: 4px 9px;
    border-radius: 3px;
    white-space: nowrap;
    transition: background 0.2s;
}

.epaper-open-btn:hover {
    background: #900;
}

/* Stage / book area */
.epaper-stage {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.epaper-book {
    position: relative;
    width: 100%;
    text-align: center;
}

/* The canvas itself */
.epaper-canvas {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    transition: opacity 0.3s ease, transform 0.35s ease;
    background: #fff;
}

/* Flip animations */
.epaper-canvas.flip-left {
    opacity: 0;
    transform: translateX(-30px) scale(0.97);
}

.epaper-canvas.flip-right {
    opacity: 0;
    transform: translateX(30px) scale(0.97);
}

.epaper-canvas.flip-in {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Loader text */
.epaper-loader {
    padding: 30px;
    color: #888;
    font-size: 13px;
}

/* Controls */
.epaper-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.epaper-btn {
    background: #c00;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.epaper-btn:hover {
    background: #900;
}

.epaper-btn:disabled {
    background: #aaa;
    cursor: default;
}

.epaper-page-info {
    font-size: 12px;
    color: #555;
}
