* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Poppins', sans-serif;
}

/* TOPO */
/* Seu CSS existente */
.topo {
  background-color: #8a0606;
  padding: 15px 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px; /* Espaço entre itens dentro do topo */
}

.container-topo {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo: evita que fique muito colada nos botões */
.logo-topo {
  height: 70px;
  display: block;
}

/* Container dos botões para controlar espaçamento */
.container-botoes {
  display: flex;
  gap: 10px; /* Espaço entre os botões */
}

/* Botões */
.btn-login {
  background-color: #04b521;
  color: white;
  padding: 8px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.btn-login:hover {
  background-color: #038c17;
}

.btn-cadastrar {
  background-color: #f2ff00;
  color: black; /* Contraste melhor para amarelo */
  padding: 8px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.btn-cadastrar:hover {
  background-color: #d4dd00;
}

.info-cpf {
  color: #ff0000;
  font-size: 12px;
  margin-top: -10px;
  margin-bottom: 15px;
}

/* Responsivo: para telas pequenas empilha os itens */
@media (max-width: 480px) {
  .topo {
    padding: 10px 15px;
  }

  .logo-topo {
    height: 50px; /* menor em telas pequenas */
  }

  .container-topo {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .container-botoes {
    display: flex;
    gap: 8px;
  }

  .btn-login,
  .btn-cadastrar {
    padding: 6px 12px;
    font-size: 10px;
    white-space: nowrap;
  }
}

/* BACKGROUND PRINCIPAL */
.background-principal {
  background-image: url('img/background.jpg');
  background-size: cover;
  background-attachment: scroll;
  background-position: center;
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* CONTEÚDO CENTRAL */
.conteudo-central {
  max-width: 100%;
  margin: auto;
  text-align: center;
  color: white;
  overflow-x: hidden;
  padding-left: 15px;
  padding-right: 15px;
}

.logo-central {
  width: 700px;
  margin-bottom: 30px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}

table td:last-child {
  min-height: 40px;
  vertical-align: middle;
}

/* CARDS */
.sessao-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-bottom: 80px;
}

.card {
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  border-radius: 10px;
  padding: 20px;
  width: 220px;
  text-align: center;
}

.card:hover {
  transform: scale(1.05);
}

.card img {
  height: 60px;
  margin-bottom: 10px;
}

.preco {
  color: #8a0606;
  font-weight: bold;
}

.card h3 {
  font-size: 1.0rem;
  margin-bottom: 15px;
}

/* BOTÃO */
.botao-aposta a {
  background-color: #8a0606;
  color: white;
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
}

/* REGULAMENTO */
.regulamento {
  margin-top: 100px;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
}

.regulamento h2 {
  margin-bottom: 15px;
  text-align: center;
}

.regulamento ul {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.regulamento li {
  margin-bottom: 10px;
}

/* RODAPÉ */
.rodape {
  width: 100%;
  background-color: #111; /* igual ao topo */
  color: #fff;
  text-align: center;
  padding: 15px 10px;
  font-size: 14px;
  position: relative;
  overflow-x: hidden;
}


/* === Estilo do container do formulário de cadastro === */
.container-form {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 30px;
  max-width: 400px;
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.container-form h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.container-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}

.container-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
}

.container-form button {
  width: 100%;
  padding: 12px;
  border: none;
  background-color: #111;
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.container-form button:hover {
  background-color: #444;
}

.alert {
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
}

.alert.error {
  background-color: #ffcccc;
  color: #b30000;
}

.alert.success {
  background-color: #d2ffd2;
  color: #006600;
}


/* Fim do cadastro */


/* RESPONSIVO GERAL */
@media (max-width: 768px) {
  /* Ajuste da logo central */
  .logo-central {
    width: 90%; /* redimensiona proporcionalmente */
    max-width: 300px;
    margin: 20px auto;
  }

  /* Cards em largura total e fontes menores */
  .sessao-cards {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
  }

  .card {
    width: 90%;
    padding: 15px;
  }

  .card h3 {
    font-size: 0.95rem;
  }

  .preco {
    font-size: 1rem;
  }

  /* Texto menor no botão */
  .botao-aposta a {
    font-size: 16px;
    padding: 10px 20px;
  }

  /* Regulamento ajustado */
.regulamento {
  margin: 50px auto 0 auto; /* centraliza horizontalmente */
  padding: 20px;
  font-size: 14px;
  width: 90%;
  max-width: 800px;         /* evita que fique largo demais em telas grandes */
  box-sizing: border-box;   /* evita ultrapassar a largura com padding */
}

  .regulamento h2 {
    font-size: 18px;
  }

  .regulamento li {
    font-size: 14px;
  }
}