 
:root {
  --cube-size: 300px; /* Default cube size */
  --face-size: var(--cube-size);
  --translate-z: calc(var(--cube-size) / 2);
}
.cuber-outer{
  padding-top: 30px;
}
.scene {
  width: var(--cube-size);
  height: var(--cube-size);
  perspective: 1000px;
  margin: 0 auto;
}
.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-10deg) rotateY(15deg); /* <-- Initial angled position */
  transition: transform 1s;
}
.face {
  position: absolute;
  width: var(--face-size);
  height: var(--face-size);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px; /* Adjust the spacing between images */
  padding: 10px; /* Padding inside each face */
  box-sizing: border-box;
  backface-visibility: hidden;
}
.img-box {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 6px; /* Optional: rounded corners */
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.8); /* Optional: subtle shadow */
  cursor: pointer;
}
.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
} 
.rotate-buttons {
  text-align: center;
   margin-top: 100px;
}
.rotate-buttons button {
  background-image: linear-gradient(to bottom, #f5af16, #e09f0e);
  padding: 10px 30px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  color: #000;
  border: none;
}
.top {
  transform: rotateX(90deg) translateZ(150px);
  background: #ccc; /* Or any color you'd like for the blank top */
}
.face.top .img-box {
  display: flex;
  align-items: center;
  justify-content: center;
}
.face.top .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.face.top {
  grid-template-columns: repeat(1, 1fr);
  grid-template-rows: repeat(1, 1fr);
}
#cube {
  transition: transform 1s ease;
  transform-style: preserve-3d;
}
.rotate-buttons li{
    display: inline-block;
    margin: 0 10px;
}
 
button.disable {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}
.cuber-header-details {
  background: #e0dede;
  padding: 10px 15px;
  border-radius: 15px 15px 0 0;
  text-align: center;
} 
.cuber-header-details h4{
  font-weight: 600;
  margin-bottom: 0;
  font-size: 20px;
}
.cuber-body-details {
  display: flex;
    background: #f1f1f1;
    border-radius: 0 0 15px 15px;
}
.cuber-body-left img {
  min-width: 150px;
}
.cuber-body-left {

  padding: 20px;
}
.cuber-body-right {
  -ms-flex-item-align: center !important;
  align-self: center !important;
  padding: 15px 20px;
}
.cuber-outer-details {
  margin-top: 55px;
}
.front  { transform: rotateY(  0deg) translateZ(var(--translate-z)); background: #fff; }
.back   { transform: rotateY(180deg) translateZ(var(--translate-z)); background: #fff; }
.right  { transform: rotateY( 90deg) translateZ(var(--translate-z)); background: #fff; }
.left   { transform: rotateY(-90deg) translateZ(var(--translate-z)); background: #fff; }
.top    { transform: rotateX(90deg)  translateZ(var(--translate-z)); background: #ccc; }
@media only screen and (min-width:320px) and (max-width: 400px) {
  .cube{
    transform: rotateX(-8deg) rotateY(15deg);
  }
  :root {
    --cube-size: 220px; /* Between 320px and 400px */
  }
  .rotate-buttons{
    margin-top: 65px;
    padding: 0;
  }
  .rotate-buttons li button {
    padding: 6px 10px;
  }
  .cuber-body-details {
    display: inline-block;
  }
  .cuber-body-left img {
    height: 200px;
  } 
  .cuber-body-right{
    padding: 0 15px;
  }
  .cuber-outer{
    padding-top: 45px;
    padding-bottom: 15px;
  }
  
}

@media only screen and (min-width:401px) and (max-width: 500px) {
  .cube{
    transform: rotateX(-8deg) rotateY(15deg);
  }
  :root {
    --cube-size: 260px; /* Between 320px and 400px */
  }
}

@media only screen and (min-width:401px) and (max-width: 767px) {  
  .rotate-buttons{
    margin-top: 65px;
    padding: 0;
  }
  .rotate-buttons li button {
    padding: 6px 10px;
  }
  .cuber-body-details {
    display: inline-block;
  }
  .cuber-body-left img {
    height: 200px;
  } 
  .cuber-body-right{
    padding: 0 15px;
  }
  .cuber-outer{
padding-top: 45px;
    padding-bottom: 15px;
  }
}