body {
  margin: 0;
  padding: 0;
  font-family: Montserrat, sans-serif;
  text-align: center;
  overflow-x: hidden;
  color: white;
 /*  background-color: #4285f4; Fundo azul */
}
.h2 {
color:white;
;

}

/* Área da roleta */
.roleta-container {
  position: fixed;
  top: 50%;
  right: -600px; /* Inicia fora da tela */
  transform: translateY(-50%);
  width: 575px;
  height: 645px;
 background-image: url("https://2961792.fs1.hubspotusercontent-na1.net/hubfs/2961792/BG_Black.png");
 background-size: cover;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 10px;
  z-index: 9999;
  transition: right 0.5s ease-in-out;
}

/* Botão para fechar */
.fechar-roleta {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* Contêiner da roleta */
.contenedor-ruleta {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

.roleta {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 5px solid white;
  background: conic-gradient(
    #F1C40F 0deg 90deg,
    #33FF57 90deg 180deg,
    #FF5733 180deg 270deg,
    #3357FF 270deg 360deg
  );
  transform: rotate(0deg);
  transition: transform 3s ease-out;
}

/* Fatias e texto */
.roleta .opcao {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%; /* A origem é o centro da roleta */
}

.roleta .opcao span {
  position: absolute;
  top: 25%; /* Alinha o texto ao centro da fatia */
  left: 55%;
  transform: translate(-50%, -50%) rotate(-45deg); /* Centraliza o texto e rotaciona para alinhar à fatia */
  font-size: 16px;
  font-weight: bold;
  color: white; /* Cor do texto */
  text-align: center;
  pointer-events: none; /* O texto não interfere com o clique na roleta */
}

/* Seta indicadora */
.seta {
  position: absolute;
  top: -20px; /* Mantém a posição no topo */
  left: 50%;
  transform: translateX(-50%) rotate(180deg); /* Aplica a rotação de 180° */
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 20px solid white; /* Mantém a borda inferior */
  z-index: 2;
}
/* Botão */

#botao-desconto {
  width: 100%;
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 16px;
  color: white;
  background-color: #ca8f03;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

#botao-desconto:hover {
  background-color: #f8b820;
}

/* Ajustes para telas menores */
@media (max-width: 768px) {
  .roleta-container {
    width: 80%; /* Ajusta a largura para ocupar 90% da tela */
    height: auto; /* Permite altura dinâmica */
    background-image: url("https://2961792.fs1.hubspotusercontent-na1.net/hubfs/2961792/BG_Black_mb%20(1).jpg");
    background-size: contain;
    right: -100%; /* Inicialmente fora da tela */
    padding: 0px;
  }

  
  
  }
 .roleta .opcao span {
    font-size: 14px;
  } 

  .fechar-roleta {
    top: 5px;
    right: 5px;
    font-size: 18px;
  }

  .contenedor-ruleta {
    width: 250px; /* Reduz o tamanho da roleta */
    height: 250px;
  }

  .roleta {
    width: 100%;
    height: 100%;
  }

  .seta {
    top: -15px;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid white;
  }

  #botao-desconto {
    width: 100%; /* Ocupa quase toda a largura da tela */
    padding: 10px;
    font-size: 14px; /* Reduz o tamanho da fonte */
  }

  .resultado {
    font-size: 16px; /* Reduz o tamanho do texto */
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .contenedor-ruleta {
    width: 200px; /* Ajuste adicional para telas muito pequenas */
    height: 200px;
  }

  #botao-desconto {
    font-size: 12px; /* Fonte menor para dispositivos muito pequenos */
    padding: 8px;
  }

  .resultado {
    font-size: 14px; /* Ajusta o tamanho do texto para telas menores */
  }

  .fechar-roleta {
    font-size: 16px; /* Reduz o tamanho do botão de fechar */
  }

 .roleta .opcao span {
    font-size: 10px; /* Ajuste para telas muito pequenas */
  }
}