/* Turn.js Universal Flipbook Styles - Optimized for Centering and Premium UI */
.fb-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    background: #fdfdfd;
    padding: 60px 0;
    overflow: hidden;
}

.flipbook {
    margin: 0 auto !important;
    display: block;
    box-shadow: 0 0 50px rgba(0,0,0,0.15);
    z-index: 5;
}

.flipbook .page {
    background-color: white;
    overflow: hidden;
}

.flipbook .hard {
    background-color: #333;
    color: white;
}

/* Navigation Arrows */
.fb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #40030f; /* Website's dark red */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(64, 3, 15, 0.3);
    opacity: 0.8;
}

.fb-nav:hover {
    background: #5a0415;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.fb-nav.disabled {
    background: #ccc;
    cursor: default;
    opacity: 0.3;
    box-shadow: none;
}

.fb-nav svg {
    width: 30px;
    height: 30px;
}

.fb-nav-prev {
    left: 20px;
}

.fb-nav-next {
    right: 20px;
}

/* Controls / Page Info */
.fb-controls {
    margin-top: 30px;
    z-index: 10;
}

.fb-page-info {
    font-family: 'Poppins', sans-serif;
    background: #40030f;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Loader */
.fb-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.fb-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(64, 3, 15, 0.1);
    border-top-color: #40030f;
    border-radius: 50%;
    animation: fb-spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    margin-bottom: 20px;
}

@keyframes fb-spin {
    to { transform: rotate(360deg); }
}

.fb-progress {
    font-family: 'Poppins', sans-serif;
    color: #40030f;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .fb-wrapper {
        padding: 40px 0;
    }
    
    .fb-nav {
        width: 40px;
        height: 40px;
        background: rgba(64, 3, 15, 0.7); /* More transparent on mobile */
    }
    
    .fb-nav-prev { left: 10px; }
    .fb-nav-next { right: 10px; }
    
    .fb-nav svg {
        width: 24px;
        height: 24px;
    }
}
