.container_bingo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px;
}

.left-panel,
.center-panel {
  padding: 15px;
  margin: 10px;
  border-radius: 10px;
  background-color: #2e2e4e;
  color: white;
  box-sizing: border-box; /* importante */
}

.left-panel {
  flex: 1 1 180px;
  max-width: 400px;
}

.center-panel {
  flex: 2 1 450px;
  max-width: 600px;
}

.right-panel {
  flex: 1 1 180px;
  max-width: 400px;
  margin: 10px 20px;
  background-color: #062635;
  border-radius: 10px;
  padding: 10px;
}

.center-panel {
  flex: 2;
  padding: 20px;
  background-color: #39395c;
  margin: 10px;
  border-radius: 10px;
  text-align: center;
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 7px;
  margin-top: 20px;
}

.number-grid div {
  width: 28px;
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #555;
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  position: relative;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Bola chamada com efeito 3D */
.number-grid div.called {
  transform: scale(1.2);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.7),
    inset 0 -4px 6px rgba(255, 255, 255, 0.5);
}

/* Gradiente circular para efeito de esfera */
.number-grid div.called span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #ccc);
  color: #000;
  font-weight: bold;
  font-size: 15px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.drawn {
  background-color: yellow;
}

#draw-number {
  font-size: 80px;
  font-weight: bold;
  margin: 20px auto;
  line-height: 100px;
}

.button-bingo {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #00aaff;
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
}

button:hover {
  background-color: #0088cc;
}

.cartelas {
  display: grid;
  gap: 7px;
  justify-content: center;
  grid-template-columns: repeat(2, 1fr);
  max-width: 540px;
  margin: 0 auto;
  overflow-x: hidden;
  max-height: 400px;
}

.leaderboard ul,
.cartelas ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.leaderboard li,
.cartelas li {
  margin: 5px 0;
  padding: 10px;
  background-color: #3c414b;
  border-radius: 5px;
}

.leaderboard {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid #345a8b;
  padding: 10px;
  background-color: #ffd596;
  border-radius: 5px;
}

.saldo {
  margin-top: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.saldo p {
  padding: 10px;
  background-color: #3d3d5c;
  border-radius: 5px;
}

.cartela_rodape {
  background: #007bff;
  color: #fff;
  font-size: 0.9em;
  font-weight: bold;
  padding: 8px;
  border-radius: 5px;
}

.cartela_numeros {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  justify-items: center;
}

@media (min-width: 1024px) {
  .cartela_numeros {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .cartelas_geradas {
    justify-content: space-between;
  }

  .cartela {
    width: calc(20.33% - 16px);
    max-height: none;
  }

  .cartela_numeros div {
    width: 28px;
    height: 28px;
  }
}

.cartelas_geradas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 0px;
}

.cartela_numeros div {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #000;
  font-weight: bold;
  color: #000;
  border-radius: 4px;
}

.cartela_usuario {
  font-size: 1.1em;
  font-weight: bold;
  padding: 10px;
}

.cartela_cupom {
  font-size: 0.9em;
  padding: 5px;
}

.cabecalho {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.rodape {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  margin-bottom: 0%;
}

.modal-header-cartela {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: start;
  align-items: flex-start;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 1rem 1rem;
  border-bottom: 1px solid #dee2e6;
}

.marked {
  background-color: #00aaff;
  color: white;
}

.cartela .marked {
  background-color: green;
  color: white;
}

.number {
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #555;
  border-radius: 50%;
  font-size: 14px;
  color: white;
}

.number.drawn {
  background-color: #00aaff;
  color: white;
}

.number.highlight {
  background-color: #ffdd44;
}

.winners {
  margin-top: 20px;
  padding: 10px;
  background-color: #4caf50;
  color: white;
  border-radius: 5px;
}

#prizes {
  background-color: #1e293b;
  color: white;
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

#prizes h3 {
  margin: 0 0 15px;
  font-size: 1.8rem;
  text-align: center;
  color: #ffdd57;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#prizes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#prizes li {
  background-color: #334155;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

#prizes li:hover {
  transform: translateY(-2px);
  background-color: #475569;
}

#prizes li strong {
  color: #93c5fd;
}

#prizes li span {
  color: #facc15;
  font-size: 1.5rem;
  font-weight: bold;
}

.speaker {
  top: 10px;
  left: 10px;
  font-size: 30px;
  cursor: pointer;
  z-index: 10;
}

.speaker.disabled {
  text-decoration: line-through;
}

#draw-number {
  perspective: 1000px;
}

#draw-number {
  perspective: 1000px;
}

#currentDraw {
  display: inline-block;
  font-size: 7rem;
  font-weight: bold;
  color: rgb(166, 255, 0);
  transform-style: preserve-3d;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.rotate-3d {
  animation: rotate3d 1s ease-in-out;
}

@keyframes rotate3d {
  0% {
    transform: rotateX(0deg);
    opacity: 1;
  }

  50% {
    transform: rotateX(180deg);
    opacity: 0;
  }

  100% {
    transform: rotateX(360deg);
    opacity: 1;
  }
}

@keyframes glow {
  0% {
    text-shadow: 0 0 5px rgb(11, 143, 231), 0 0 10px rgb(11, 169, 231);
  }

  50% {
    text-shadow: 0 0 10px rgb(0, 204, 255), 0 0 20px rgb(11, 231, 58);
  }

  100% {
    text-shadow: 0 0 5px rgb(0, 195, 255), 0 0 10px rgb(11, 231, 58);
  }
}

.glowing-text {
  color: rgb(94, 255, 0);
  animation: glow 1s infinite alternate;
}

.bingo-modal {
  display: none;
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.bingo-modal-content {
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 30px 40px;
  border-radius: 15px;
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  animation: pulse 1s infinite alternate;
}

.trophy {
  font-size: 20px;
  margin-bottom: 10px;
}

@keyframes pulse {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.05);
  }
}
