.flipbook-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: auto;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.flipbook-container {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    background: white;
    position: relative;
}

.page {
    width: 100%;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.page img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* CSS for image spreads across two pages */
.page.spread-left {
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-color: white;
}

.page.spread-right {
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-color: white;
}

.flipbook-controls {
    margin-top: 20px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.flipbook-controls button {
    margin: 0 5px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.flipbook-controls button:hover {
    background-color: #0056b3;
}

.flipbook-controls button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
