body, html {
    height: 100%;
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevents scrolling */
    background: transparent;
    color: #fff;
    font-family: Arial, sans-serif;
}

#bgVideo {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%; 
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    background-size: cover;
    overflow: hidden;
}

.scene {
    width: 200px;
    height: 200px;
    perspective: 600px;
    -webkit-perspective: 600px; /* for Safari */
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d; /* for Safari */
    animation: rotate 5s infinite linear;
    -webkit-animation: rotate 5s infinite linear; /* for Safari */
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #ccc;
    line-height: 200px;
    text-align: center;
    font-size: 20px;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d; /* for Safari */
}

.video-background {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 100%; 
    min-height: 100%;
    width: 100%;
    height: 100%;
    background-size: cover;
    overflow: hidden;
    z-index: -1; /* Ensures the video stays in the background */
}

.front  { transform: rotateY(0deg) translateZ(100px); background-image: url("/images/cube-e.svg");}
.back   { transform: rotateY(180deg) translateZ(100px); background-image: url("/images/cube-e.svg");}
.left   { transform: rotateY(-90deg) translateZ(100px); background-image: url("/images/cube-c.svg");}
.right  { transform: rotateY(90deg) translateZ(100px); background-image: url("/images/cube-c.svg");}
.top {transform: rotateX(90deg) translateZ(100px);overflow: hidden; /* Prevents the video from spilling outside the face */
}
.bottom { transform: rotateX(-90deg) translateZ(100px);}

@keyframes rotate {
    from { transform: rotateX(0deg) rotateY(0deg); -webkit-transform: rotateX(0deg) rotateY(0deg); }
    to { transform: rotateX(360deg) rotateY(360deg); -webkit-transform: rotateX(360deg) rotateY(360deg); }
}

body, html {
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    color: #fff;
    font-family: Arial, sans-serif;
}








