/* Configuração Geral */
* {
  box-sizing: border-box; /* Garante que padding não aumente o tamanho dos elementos */
  margin: 0;
  padding: 0;
}

body {
  height: 100vh;
  width: 100%;
  background-color: gray;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
}

#princ {
  background-color: white;
  text-align: center;
  padding: 20px;
  width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px; /* Controla o espaço entre os botões (pouco espaço) */
  border-radius: 8px;
}

/* Padronização: Input e Botões todos iguais */
#num,
button {
  width: 100%; /* Todos ocupam a mesma largura do container */
  max-width: 280px; /* Limita para não ficarem gigantes */
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}

button {
  background-color: #e0e0e0;
}

button:hover {
  background-color: #d0d0d0;
}

#tentar {
  margin-top: 5px;
}

/* Ajuste Mobile */
@media (max-width: 480px) {
  body {
    background-color: white; /* Remove o fundo cinza no mobile */
  }

  #princ {
    width: 100%;
    height: 100%;
    justify-content: center; /* Centraliza tudo no meio da tela */
    border-radius: 0;
  }
}
