body {
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
  background: #eef2f3;
  margin: 0;
  padding: 20px;
}

h1 {
  margin-top: 10px;
  margin-bottom: 20px;
  color: #333;
}

.controls {
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.controls select,
.controls input[type="number"],
.controls button {
  height: 40px;
  border-radius: 8px;
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.3s;
}

.controls select {
  min-width: 120px;
}

.controls input[type="number"] {
  width: 120px;
}

.controls button {
  background-color: #007bff;
  color: white;
  border: none;
  min-width: 120px;
  transition: background-color 0.3s;
}

.controls button:hover {
  background-color: #02377e;
}

.ball {
  width: 40px;
  height: 40px;
  line-height: 40px;
  background-color: #bbb;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  font-size: 20px;
  margin: auto;
  transition: background 0.3s;
  cursor: pointer;
}

.ball:hover {
  background-color: #535353;
}

.ball.marked {
  background-color: #e74c3c;
}

.bingo-panel {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 8px;
  max-width: 850px;
  margin: 0 auto 10px;
  padding: 20px;
  background: white;
  border: 2px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}


@media (max-width: 576px) {
  .bingo-panel {
    grid-template-columns: repeat(5, 1fr);
  }

  .controls {
    flex-direction: column;
    gap: 12px;
  }

  .controls select,
  .controls input[type="number"],
  .controls button {
    width: 100%;
  }
}

/* Modal geral */
#modalCombinacoes {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

#modalCombinacoes .modal-content {
  background-color: white;
  width: 300px;
  margin: 100px auto;
  padding: 20px 15px 15px;
  border-radius: 8px;
  text-align: center;
  position: relative;
}

/* Botão fechar */
#modalCombinacoes .close-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 20px;
  color: #555;
  cursor: pointer;
}

/* Título */
#modalTitulo {
  font-weight: bold;
  margin-bottom: 15px;
}

/* Linhas e bolas */
.modal-linha {
  display: flex;
  justify-content: center;
  margin: 5px 0;
}

.modal-bola {
  width: 32px;
  height: 32px;
  line-height: 32px;
  margin: 2px;
  border-radius: 50%;
  background-color: #f0f0f0;
  font-weight: bold;
  font-size: 14px;
  color: #333;
  border: 2px solid #ccc;
}

.modal-bola.sorteada {
  background-color: #4CAF50;
  color: white;
  border-color: #388E3C;
}

/* Linha destacada */
.linha-destacada {
  background-color: #f3f3f3;
  border-radius: 6px;
  padding: 2px;
}
