.book-container {
    perspective: 1000px;
    width: 100%;
    max-width: 2000px;
    height: 680px;
    margin: 50px auto;
    position: relative;
}

.book {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.page {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform-origin: center;
    transform-style: preserve-3d;
    transition: transform 1s ease;
    z-index: 1;
}

.page-content {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: white;
    backface-visibility: hidden;
    overflow: hidden;
    border-radius: 3px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    display: flex;
}

.page-back {
    transform: rotateY(180deg);
}

.page.flipped {
    transform: rotateY(-180deg);
}

.page-number {
    position: absolute;
    bottom: 10px;
    font-size: 12px;
    color: #999;
}

.left-page .page-number {
    left: 10px;
}

.right-page .page-number {
    right: 10px;
}

.left-page, .right-page {
    width: 50%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.left-page {
    border-right: 1px solid #ddd;
}

.cover {
    background-color: #3a86ff;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.cover-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.pdf-canvas-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.pdf-canvas {
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.flip-control {
    position: absolute;
    height: 100%;
    width: 20%;
    top: 0;
    z-index: 10;
    cursor: pointer;
}

.flip-prev {
    left: 0;
}

.flip-next {
    right: 0;
}

.navigation {
    text-align: center;
    margin-top: 20px;
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.spinner-border {
    margin-right: 10px;
}

.book-spine {
    position: absolute;
    width: 4px;
    height: 100%;
    background-color: #333;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}