﻿.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0,0,0,0.85);
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff !important; /* Màu trắng */

    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

    .lightbox-close:hover {
        color: #ff4d4d; /* Đổi sang đỏ khi hover */
    }

.lightbox-content {
    position: relative;
    z-index: 2;
    background: #fff;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0; /* hoặc padding nhỏ nếu muốn */
    overflow-y: auto;
    border-radius: 0;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 14px;
    color: #000;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

#df_manual_book {
    height: 100vh !important; /* 56px là chiều cao header Bootstrap mặc định */
    background-color: gray;
}

.df-container.df-floating > .df-ui-next,
.df-container.df-floating > .df-ui-prev {
    width: 40px;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
}
@media (max-width: 768px) {
    #df_manual_book {
        display: flex !important;
        justify-content: center;
        align-items: center;
        height: 100vh;
        position: relative; /* Quan trọng để canh .df-3dcanvas */
    }

    .df-csscanvas, .df-3dcanvas {
        width: 100%;
        max-width: 400px; /* hoặc chiều rộng phù hợp với cuốn sách */
        margin: 0 auto;
    }

    .df-3dcanvas {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 1;
        width: 100vw;
        height: 100vh;
    }
}




