body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: url(img/fundo.png) no-repeat;
    background-size: cover;
    width: 100vw;

    margin: 0;
  }
  
  .scene {
    width: 200px;
    height: 200px;
    perspective: 800px;
    margin-bottom: 20px;
  }
  
  .cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s;
    will-change: transform;
    transform: translateZ(0); /* força renderização em GPU */
  }
  
  .face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid #333;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;

    backface-visibility: hidden;
    transform-style: preserve-3d;
    /* Reduz o efeito de suavização */
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
  }
  
  .face img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    image-rendering: crisp-edges
  }
  
  /* Faces */
  .front  { transform: rotateY(0deg) translateZ(100px); }
  .back   { transform: rotateY(180deg) translateZ(100px); }
  .right  { transform: rotateY(90deg) translateZ(100px); }
  .left   { transform: rotateY(-90deg) translateZ(100px); }
  .top    { transform: rotateX(90deg) translateZ(100px); }
  .bottom { transform: rotateX(-90deg) translateZ(100px); }

  #botao{
    margin-top: 20px;
    padding: 10px;
    border-radius: 10px;
    background-color: rgb(226, 2, 2);
    font-family: "Chicle";
    font-size: 1.3em;
    border: 3px solid rgb(143, 0, 0);
    color: white;
    box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.596);
  }
