/**
 * Day-based page CSS for 3D FlipBook
 * This CSS helps ensure the book loads properly with our day-based page
 */

/* Hide the book initially to prevent flicker when changing pages */
._3d-flip-book {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Show the book once it's loaded */
._3d-flip-book.fb3d-loaded {
    opacity: 1;
}

/* Add a loading indicator */
._3d-flip-book:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #333;
    animation: fb3d-spin 1s linear infinite;
    z-index: 999;
}

@keyframes fb3d-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Hide loading indicator once loaded */
._3d-flip-book.fb3d-loaded:before {
    display: none;
} 