/* HRP 3D Book Viewer Styles */

.hrp3d-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 0 30px 0;
    background: #e8dcd4;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.hrp3d-stage {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hrp3d-stage {
        height: 450px;
    }
}

@media (max-width: 480px) {
    .hrp3d-stage {
        height: 360px;
    }
}

.hrp3d-canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    cursor: grab;
}

.hrp3d-canvas:active {
    cursor: grabbing;
}

.hrp3d-loader {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: #e8dcd4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    transition: opacity 0.7s ease;
    opacity: 1;
}

.hrp3d-loader.hrp3d-gone {
    opacity: 0;
    pointer-events: none;
}

.hrp3d-loader-text {
    font-family: Georgia, serif;
    color: #6b2020;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.hrp3d-loader-bar {
    width: 130px;
    height: 1px;
    background: rgba(107, 32, 32, 0.18);
}

.hrp3d-loader-fill {
    height: 100%;
    width: 0%;
    background: #9b3030;
    transition: width 0.25s ease;
}

.hrp3d-hint {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    color: rgba(100, 40, 30, 0.5);
    font-family: Georgia, serif;
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.5s ease;
    opacity: 1;
}

.hrp3d-hint.hrp3d-gone {
    opacity: 0;
}
