* { transform-style: preserve-3d }

html,
body,
.perspective,
.camera,
.rotate {
  width: 100%;
  height: 100%;
}

body {
  background: black;
  margin: 0;
  overflow: hidden;
}

.perspective {
  perspective: 800px;
  overflow: hidden;
}

.camera { transform: translateZ(800px) }

.drag-area { cursor: -webkit-grab }

.drag-area:active { cursor: -webkit-grabbing }

/* Cube*/
.cube {
  transform: translate3d(-50%, -100%, 0) rotateX(-90deg);
  width: 400px;
  height: 400px;
  position: absolute;
  top: 50%;
  left: 50%;
}

.cube.borders .side { box-shadow: inset 0 0 0px 1px green }

.side {
  background-image: url('https://user-images.githubusercontent.com/828776/224199403-9077b0ed-0210-427b-9c58-16ee9d360b4b.png');
  background-repeat: no-repeat;
  background-size: 400% 300%;
  position: absolute;
  width: 100%;
  height: 100%;
  transform-origin: left;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateX(99.9%) rotateY(-90deg);
}

.cube.grid .side {
  background-image: url('https://user-images.githubusercontent.com/828776/46119846-6a4d7c00-c1e3-11e8-95c1-f95e1f3547ea.jpg'), url('https://user-images.githubusercontent.com/828776/224199403-9077b0ed-0210-427b-9c58-16ee9d360b4b.png');
  background-blend-mode: lighten;
}

.cube .top {
  background-position: 33.33% 0%;
  transform-origin: bottom;
  transform: translateY(-99.9%) rotateX(-90deg);
}

.cube .bottom {
  background-position: 33.33% 100%;
  transform-origin: top;
  transform: translateY(99.9%) rotateX(90deg);
}

.cube .front {
  transform: translateX(0%);
  background-position: 0% 50%;
}

.cube .left { background-position: 33.33% 50% }

.cube .back { background-position: 66.66% 50% }

.cube .right { background-position: 99.99% 50% }

/* Axes */
.axes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.axes .rotate {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
}

.axis {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 150px;
  transform-origin: top center;
}

.main-axis.red-axis {
  transform: rotateZ(90deg) rotateX(180deg) translateY(-50%);
}

.main-axis.green-axis { transform: rotateY(-90deg) translateY(-50%) }

.main-axis.blue-axis { transform: rotateX(90deg) translateY(-50%) }

.perpendicular-axis { transform: rotateY(90deg) }

.red-axis {
  background-image: linear-gradient(
    transparent,
    rgba(255, 0, 0, 0.1) 50%,
    red 50%,
    transparent
  );
}

.green-axis {
  background-image: linear-gradient(
    transparent,
    rgba(0, 255, 0, 0.1) 50%,
    green 50%,
    transparent
  );
}

.blue-axis {
  background-image: linear-gradient(
    transparent,
    rgba(0, 0, 255, 0.1) 50%,
    blue 50%,
    transparent
  );
}

/* Controls */
.controls {
  border-radius: 5px 5px 0 0;
  background-color: rgba(82, 120, 169, 0.35);
  color: white;
  font: 12px arial, sans-serif;
  user-select: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 400px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}

.zoom {
  flex: auto;
  padding: 10px;
}

.zoom input {
  display: block;
  margin: auto;
  width: 65%;
  transform: scale(1.5) rotate(180deg);
}

svg {
  height: 30px;
  width: 30px;
  padding: 10px;
}

.input-show-borders,
.input-show-grid,
.zoom input {
  cursor: pointer;
  opacity: 0.8;
}

.input-show-borders:hover,
.input-show-grid:hover,
.zoom input:hover {
  opacity: 1;
}

  .cube-video {
    position: absolute;
    width: 220px;
    height: 80px;
    left: 76%;
    top: 33%;
    transform: rotateY(130deg) translateZ(-102px) scaleX(-1); /* 30 derece çevrilecek şekilde */
    transform-origin: center; /* Döndürme merkezini video elementinin ortasına ayarlar */
  }

  .start-video {
    position: absolute;
    width: 40px;
    height: 12px; /* Butonun yüksekliğini belirleyin */
    left: 100%; /* Video ile aynı yatay konumda */
    top: calc(33% + 86px); /* Video yüksekliği kadar altta */
    transform: rotateY(130deg) translateZ(-102px) scaleX(-1);
    transform-origin: center;
    border: solid 1px black; /* Butonun kenarlığını kaldırın */
    border-radius: 3px;
    background-color: rgba(255, 255, 255, .7); /* Butonun arka planını şeffaf yapın */
    cursor: pointer;
    font-size: 8px;
  }
  