/* Flip Book Styles - TweenMax Book Style */
.flipbook-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    overflow: hidden;
}

.flipbook-container.active {
    display: block;
}

.flipbook-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Center Class for positioning */
.centerClass {
    position: absolute;
    top: 50%;
    left: 50%;
}

/* Page Wrapper */
.pageWrapper {
    position: relative;
    width: 654px;
    height: 500px;
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* Individual Page */
.page {
    position: absolute;
    width: 327px;
    height: 500px;
    transform-style: preserve-3d;
    cursor: pointer;
}

/* Front and Back of Page */
.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backfaceVisibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
}

.front {
    z-index: 1;
}

.back {
    z-index: 0;
    transform: rotateY(-180deg);
}

/* Page Images */
.page img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Page Fold Effects */
.pageFoldRight {
    position: absolute;
    right: 0;
    top: 0;
    width: 0px;
    height: 0px;
    z-index: 10;
    pointer-events: none;
}

.pageFoldLeft {
    position: absolute;
    left: 0;
    top: 0;
    width: 0px;
    height: 0px;
    z-index: 10;
    pointer-events: none;
}

/* Close Button */
.flipbook-close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: rgba(6, 15, 114, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: all 0.3s ease;
}

.flipbook-close:hover {
    background: coral;
    transform: scale(1.1);
}

.flipbook-close::before,
.flipbook-close::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: white;
}

.flipbook-close::before {
    transform: rotate(45deg);
}

.flipbook-close::after {
    transform: rotate(-45deg);
}

/* Zoom Controls */
.zoom-controls {
    position: absolute;
    top: 80px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.zoom-btn {
    width: 45px;
    height: 45px;
    background: rgba(6, 15, 114, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: coral;
    transform: scale(1.1);
}

.zoom-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.zoom-btn:disabled:hover {
    background: rgba(6, 15, 114, 0.9);
    transform: none;
}

.zoom-btn.zoom-reset {
    font-size: 20px;
}

/* Zoom Level Display */
.zoom-level-display {
    position: absolute;
    top: 80px;
    left: 30px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    border-radius: 20px;
}

/* Page Number Display */
.page-number-display {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 20px;
    border-radius: 20px;
}

/* Responsive Styles */
@media screen and (max-width: 1000px) {
    .pageWrapper {
        width: 500px;
        height: 380px;
    }
    
    .page {
        width: 250px;
        height: 380px;
    }
    
    .pageWrapper {
        left: 250px;
    }
}

@media screen and (max-width: 600px) {
    .pageWrapper {
        width: 300px;
        height: 230px;
        left: 150px;
    }
    
    .page {
        width: 150px;
        height: 230px;
    }
    
    .zoom-controls {
        top: 60px;
        right: 15px;
    }
    
    .zoom-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .zoom-level-display {
        top: 60px;
        left: 15px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .flipbook-close {
        top: 15px;
        right: 20px;
        width: 35px;
        height: 35px;
    }
}
