body, html {
    margin: 0;
    padding: 0;
    height: 100%;
  }
  
  body {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    margin: 0;
  }
  
  .scene {
    width: 100px;
    height: 100px;
    perspective: 1000px;
    margin-top: 150px;
  }
  
  .cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: spin 5s infinite linear;
    transform: translateZ(0);
  }
  
  .face {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("img/tezpole.png");
    background-size: cover;
    background-position: center;
  }
  
  .front {
    transform: translateZ(50px);
  }
  
  .back {
    transform: rotateY(180deg) translateZ(50px);
  }
  
  .right {
    transform: rotateY(90deg) translateZ(50px);
  }
  
  .left {
    transform: rotateY(-90deg) translateZ(50px);
  }
  
  .top {
    transform: rotateX(90deg) translateZ(50px);
  }
  
  .bottom {
    transform: rotateX(-90deg) translateZ(50px);
  }

  #background {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
  }

  .square {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #3498db;
    pointer-events: none;
  }

  
  
  @keyframes spin {
    0% {
      transform: rotateX(0) rotateY(0);
    }
    100% {
      transform: rotateX(360deg) rotateY(360deg);
    }
  }