body {
  margin: 0;
  padding: 0;
  background-image: url("img/fundo-natal.jpg"); /* coloque sua imagem aqui */
  background-size: cover; /* cobre toda a tela */
  background-position: center; /* centraliza */
  background-attachment: fixed; /* efeito bonito ao rolar */
  position: relative;
}

.container {
  max-width: 900px;
  margin: 20px auto; /* <-- isso centraliza horizontalmente */
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
}

h1 {
  text-align: center;
}

label {
  display: block;
  margin-top: 10px;
}

input[type="tel"],
input[type="password"] {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  box-sizing: border-box;
}

button {
  margin-top: 16px;
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.saudacao {
  text-align: center;
  margin-top: 5px;
  margin-bottom: 8px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  font-family: "Arial", sans-serif;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto; /* <-- centraliza de verdade */
}

.btn-primary {
  background: #007bff;
  color: white;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 4px;
  display: inline-block;
}
.btn-secondary {
  background: #ccc;
  color: #333;
}

.mensagem {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
}

.mensagem.erro {
  color: red;
}

.hidden {
  display: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  justify-items: center;
  padding: 10px 0;
}
.card {
  text-align: center;
  width: 100%;
  max-width: 200px;
}
.card img {
  width: 160px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

.card .apelido {
  margin-top: 8px;
  font-weight: bold;
}

.preto-branco {
  filter: grayscale(100%);
}

.colorida {
  filter: none;
}

@media (max-width: 600px) {
  .card img {
    width: 120px;
    height: 150px;
  }

  .card {
    max-width: 150px;
  }

  .grid {
    gap: 14px;
  }
}

.top-bar {
  position: relative;
  text-align: center;
  margin-bottom: 10px;
}
.top-bar > .btn-secondary {
  position: absolute;
  top: 0;
  right: 0;
}

.small-text {
  font-size: 13px;
  color: #555;
  text-align: center;
}

#acao-container {
  margin-top: 20px;
  text-align: center;
}

#acao-container button {
  margin: 4px;
}
.destaque-contagem {
  font-size: 20px;
  font-weight: bold;
  color: #b30000;
  margin-top: 4px;
  text-align: center;
}

.participantes-titulo {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); /* <<--- controle de opacidade aqui */
  z-index: -1;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-card {
  background: linear-gradient(135deg, #fff7f7, #ffffff);
  border-radius: 16px;
  padding: 20px 24px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border: 2px solid #d62828;
}

.modal-header {
  text-align: center;
  margin-bottom: 10px;
}

.modal-title {
  font-size: 20px;
  font-weight: bold;
  color: #b30000;
}

.modal-body {
  font-size: 14px;
  color: #333;
  margin-bottom: 16px;
  text-align: left;
}

.modal-body p {
  margin: 0 0 10px 0;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

#modal-textarea-wrapper label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

#modal-textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 8px;
  resize: vertical;
}

.modal-card::before {
  content: "🎅🎁✨";
  position: absolute;
  top: -18px;
  left: 16px;
  font-size: 20px;
}

/* só pra garantir que o hidden esconda o modal também */
.hidden {
  display: none !important;
}

/* Tela de login ocupa a tela toda e centraliza o card */
.login-page {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Wrapper central da tela de login */
.login-wrapper {
  width: 100%;
  padding: 16px;
  display: flex;
  justify-content: center;
}

/* Card de login */
.login-card {
  width: 100%;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 20px 18px 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  border: 2px solid #ffb3b3;
  text-align: left;
}

.login-title {
  text-align: center;
  margin-top: 0;
  margin-bottom: 6px;
}

.login-subtitle {
  text-align: center;
  font-size: 14px;
  margin-top: 0;
  margin-bottom: 16px;
  color: #555;
}

/* Inputs mais confortáveis no celular */
.login-card input[type="tel"],
.login-card input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-top: 4px;
  margin-bottom: 10px;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

/* Botão ocupando a largura toda no login */
.full-width {
  width: 100%;
}

/* Mensagem de erro/aviso */
.mensagem {
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  text-align: center;
}

.mensagem.erro {
  color: red;
}

/* Ajuste fino para telas bem pequenas */
@media (max-width: 480px) {
  .login-card {
    max-width: 340px;
    padding: 18px 14px 22px;
  }

  .login-title {
    font-size: 20px;
  }

  .login-subtitle {
    font-size: 13px;
  }
}
