/* Custom styles for Real3D FlipBook integration - Style 6 */

/* Modal customization - Fullscreen with dark gray background */
#flipbookModal {
    z-index: 99999;
}

#flipbookModal .modal-dialog {
    max-width: 100vw;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
}

#flipbookModal .modal-content {
    height: 100vh;
    border: none;
    border-radius: 0;
    background-color: #4a4a4a;
}

#flipbookModal .modal-header {
    border: none;
    padding: 0;
    background: transparent;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10000;
    width: auto;
}

#flipbookModal .modal-body {
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

/* Flipbook container - Full viewport */
#flipbookContainer {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Close button styling - Clean white X button */
#flipbookModal .close {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 10001;
    color: #fff;
    opacity: 0.9;
    font-size: 32px;
    background: transparent;
    border: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 300;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#flipbookModal .close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Flipbook toolbar customization - Light theme */
.flipbook-toolbar {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Page shadows for depth */
.flipbook-page-shadow {
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

/* Loading animation */
.flipbook-loading {
    background: #4a4a4a;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #flipbookModal .close {
        width: 35px;
        height: 35px;
        font-size: 28px;
        right: 15px;
        top: 15px;
    }
}
