@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* ===== RESET / LAYOUT GERAL ===== */
html {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background: #f8f8f8;
  color: #4e4e4e;
}

main {
  flex: 1;
  padding: 20px 0;
}

/* ===== HEADER ===== */
header {
  background: #222;
  color: #fff;
  padding: 10px 0;
  text-align: center;
}

.container {
  max-width: 100%;
  padding: 0 15px;
}

.logo {
  display: block;
  max-height: 120px;
  margin: 0 auto 10px;
  width: auto;
}

/* ===== MENU / NAVEGAÇÃO ===== */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
  padding: 0;
}

nav ul li {
  margin: 0 10px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

nav a:hover {
  background-color: #ffcc80;	/*#ff6f00; */
  color: #000;
}

/* ===== INTRODUÇÃO ===== */
.capa-lotoexplorer {
  max-width: 70%;
  margin: auto;
  color: #4e4e4e;
}

.capa-lotoexplorer h1 {
  font-size: 2.5em;
  color: #ff6f00;
  margin-bottom: -25px;
  text-align: center;
}

.capa-lotoexplorer h2 {
  font-size: 1.4em;
  margin-bottom: 10px;
  text-align: center;
}

.capa-lotoexplorer p {
  font-size: 1.1em;
  margin-bottom: 20px;
}

.capa-lotoexplorer strong {
  color: #ff6f00;
}

.capa-lotoexplorer em {
  font-style: italic;
  color: #d63384;
}

.capa-lotoexplorer .slogan {
  display: inline-block;
  font-size: 1.2em;
  font-weight: bold;
}

.lotofacil-banner-item {
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: #0056b3;
  padding: 5px;
}

.lotofacil-banner-item:hover {
  background-color: #ffcc80;
}

/* ===== BOTÕES GERAIS ===== */
.btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #00796b;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
}

.btn:hover {
  background: #005a4f;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  background: #222;
  color: white;
  font-size: 0.9em;
}

.footer-info {
  font-size: 1em;
  color: #ffcc80;
}

.footer-info span {
	margin-right: 20px;
}

footer p {
  margin-bottom: 0;
}


/* ===== LOTOEXPLORER: LOTOFACIL VISUAL ===== */

#resultado-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.lotofacil-coluna {
  flex: 1 1 20%;
  min-width: 400px;
  min-height: 420px;
  font-size: 0.95em;
  padding: 10px;
  border-radius: 8px;
}

.lotofacil-coluna h4 {
  font-size: 1.2em;
  margin-bottom: 16px;
  border-bottom: 2px solid #00796b;
  padding-bottom: 6px;
  color: #00796b;
}

.lotofacil-dados {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lotofacil-par {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 4px;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.lotofacil-label {
  flex: 1 1 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #00796b;
}

.lotofacil-valor {
  flex: 0 0 28%;
  text-align: right;
  font-weight: bold;
  color: #222;
}

/* ===== MATRIZ LOTOFACIL ===== */
#matriz-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#nav-buttons {
  text-align: center;
  margin-top: 20px;
}

#nav-buttons button {
  width: 60px;
  padding: 5px 5px;
  margin: 0 6px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid #00796b;
  color: #00796b;
  border-radius: 3px;
  transition: background-color 0.2s;
}

#nav-buttons button:hover {
  background-color: #00796b;
  color: white;
}

.lotofacil-matriz {
  display: grid;
  grid-template-columns: repeat(5, 50px);
  grid-template-rows: repeat(5, 50px);
  gap: 8px;
  justify-content: center;
}

.lotofacil-matriz div {
  background: #eee;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 18px;
  border-radius: 5px;
  cursor: default;
  user-select: none;
  transition: background-color 0.3s;
}

.lotofacil-matriz div.highlighted {
  background: #ffcc80;
  color: #000;
  font-weight: 900;
  box-shadow: 0 0 6px #fbc02d;
}

/* ===== BANNER COMERCIAL ===== */
#link-comercial {
  background-color: #ff6f00;
  width: 100%;
  text-align: center;
  color: white;
  padding: 5px 10px;
  display: inline-block;
  font-size: 20px;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.popup-aviso-comercial {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 10px; /* margem interna para evitar overflow no mobile */
  box-sizing: border-box;
}

.popup-aviso-comercial-conteudo {
  background: #fff;
  padding: 20px;
  width: 100%;
  max-width: 900px; /* limite para desktop */
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
  position: relative;
  font-size: 15px;
  text-align: left;
  box-sizing: border-box;
  overflow-y: auto;
  max-height: 90vh; /* evita que o conteúdo ultrapasse a altura da tela */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.popup-aviso-comercial-conteudo h2 {
  margin-top: 0;
  color: #ff6f00;
}

.fechar-popup-aviso-comercial {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #222;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.home-credencial-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.home-credencial-wrapper a,
.home-credencial-wrapper button {
  flex-grow: 1;
  flex-shrink: 1;
  min-width: 250px; /* largura mínima para desktop, mas adaptável */
  max-width: 100%;
  min-height: 60px;
  padding: 14px 20px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  box-sizing: border-box;
  display: inline-block;
  line-height: 1.4;
  border: none;
  cursor: pointer;
}

/* Estilo do link como botão */
.home-credencial-link {
  background-color: #00796b;   /* verde petróleo */
  color: white;
}

/* Estilo do botão de credencial */
.home-credencial-button {
  background-color: #ff6f00;   /* laranja mais escuro */
  color: white;
}

/* ===== RESPONSIVO: MOBILE ===== */
@media (max-width: 768px) {
	.capa-lotoexplorer {
	  max-width: 100%;
	}	

	.capa-lotoexplorer h1 {
	  font-size: 1.25em;
  	  margin-bottom: -10px;
	}	

	.capa-lotoexplorer h2 {
	  font-size: 0.9em;
	}	

	#resultado-container {
		flex-direction: column;
		align-items: center;
	}

	.lotofacil-coluna {
		max-width: 100%;
		width: 90%;
		margin-bottom: 20px;
	}

	nav ul {
		display: flex;
		flex-wrap: nowrap;             /* não quebra linha */
		overflow-x: auto;              /* ativa scroll lateral */
		white-space: nowrap;           /* impede quebra dentro do texto */
		justify-content: flex-start;   /* itens à esquerda */
		padding-bottom: 6px;           /* dá respiro pro dedo arrastar */
		-webkit-overflow-scrolling: touch; /* scroll suave iOS */
	}

	nav ul li {
		flex: 0 0 auto;                /* cada item mantém largura */
		margin: 0 8px;
	}
	
	.logo {
		max-width: 70%;
		height: auto;
	}

	.home-credencial-wrapper {
		flex-direction: column;
		align-items: stretch;
	}

	.home-credencial-wrapper a,
	.home-credencial-wrapper button {
		width: 100%;
	}

	.footer-info {
	  display: flex;
	  flex-direction: column;
	  font-size: 0.95em;
	  align-items: center;
	  text-align: center;
	  margin-top: 2px;
	}

	.footer-info span {
	  display: block;
	  line-height: 1; 
	  margin: 2px;     
	  padding: 2px;    
	  font-size: 1.25em;
	}
	
	footer {
		font-size: 0.7em;	
	}	

}
