/* Ensure the Divi wrapper doesn't hide the 3D content */
.et_pb_text_inner {
    overflow: visible !important;
}

/* The Dice Container - Pinned to the top right */
#dice-canvas-container {
    position: fixed !important; /* Pinned to viewport */
    top: 100px !important;       /* Space from top */
    right: 0px !important;     /* Space from right */
    width: 200px !important;    /* Square size for the d20 */
    height: 200px !important;   /* Square size for the d20 */
    z-index: 999999 !important; /* Above Vanta and Divi */
    cursor: pointer;
    display: block !important;
    background: transparent;    /* Ensure no background blocks view */
    touch-action: none;
    -webkit-user-drag: none;
}

/* The Canvas - Must fill the 200px box above */
#dice-canvas-container canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: auto;       /* Ensures you can click the die */
}

/* The Transition Overlay */
#dice-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    z-index: 1000000;
    pointer-events: none;
}

#dice-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Blocks clicks while fading */
}

/* #your-container-id {
    touch-action: none;
    -webkit-user-drag: none;
} */
