/* Definindo variáveis para cores e estilos */
:root {
  --primary-color: #ffd500; /* Cor principal */
  --secondary-color: #2e2e2e; /* Cor de fundo escura */
  --accent-color: #f0c800; /* Cor de destaque */
  --text-color-light: #ffffff; /* Cor de texto clara */
  --text-color-dark: #3b3b3b; /* Cor de texto escura */
  --background-light: #e6e6e6; /* Cor de fundo clara */
  --background-dark: #dbdbdb; /* Cor de fundo alternada tabela */
  --border-color: #cbd5e0; /* Cor de borda */
  --button-border-radius: 6px; /* Raio da borda dos botões */
  --font-size-base: 14px;
  --font-size-large: 3rem;
  --font-size-medium: 1.5rem;
  --font-size-small: 1rem;
  --font-family-main: "Roboto", "Arial", sans-serif;
  --font-family-secondary: "Montserrat", sans-serif;
}

@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-width: 360px;
}
header {
  display: flex;
  max-width: max-content;
  min-height: max-content;
  height: 125px;
}

#home {
  display: flex;
  align-items: center;
  flex-direction: row;
  margin: 30px 46px 20px 46px;
}

.hero {
  width: 90%;
  max-width: 700px;
  min-height: 700px;
  padding: 0px;
  padding-top: 40px;
  margin: 20px;
  color: var(--text-color-light);
  display: flex;
  flex-direction: row;
  background-image: url("hero_img.png");
  background-repeat: no-repeat;
  background-size: 70%;
  background-position-x: right;
  background-position-y: -20px;
  justify-content: space-between;
}

.hero-text {
  flex-shrink: 0;
}

.hero button {
  width: fit-content;
}
.hero h1 {
  text-align: left;
}

.hero h2 {
  color: var(--text-color-light);
  text-align: left;
}
.sticky-header {
  position: sticky;
  top: 0;
  background-color: var(--secondary-color);
}

.sticky-nav {
  position: sticky;
  top: 125px;
  background-color: var(--secondary-color);
}

body {
  font-family: var(--font-family-main);
  font-size: var(--font-size-base);
  background-color: var(--secondary-color);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  background-color: var(--background-light);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 700px;
  padding: 30px;
  margin: 20px;
}

nav {
  border-style: solid;
  border-color: var(--primary-color);
  border-width: 2px 0 0 0;
  justify-content: center;
  background-color: var(--secondary-color);
  overflow-x: auto; /* Permite rolar horizontalmente */
  max-width: max-content;
  width: 100%;
  -webkit-overflow-scrolling: touch; /* Suporte para rolagem suave em dispositivos móveis */
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  background-color: var(--secondary-color);
  display: flex;
  white-space: nowrap;
}

nav ul li a {
  display: inline-block;
  color: var(--text-color-light);
  padding: 14px 16px;
  text-decoration: none;
  user-select: none; /* Impede a seleção de texto */
  -webkit-user-drag: none; /* Impede o arraste do link */
}

nav ul li a:hover {
  background-color: var(--primary-color);
}

h1 {
  font-size: var(--font-size-large);
  color: var(--text-color-light);
  text-align: center;
}

h1 i {
  margin-right: 8px;
  color: #bac0c7;
}

h2 {
  font-size: var(--font-size-medium);
  color: var(--text-color-dark);
  margin-top: 20px;
  margin-bottom: 10px;
}

section {
  border-bottom: 3px solid #bac0c7;
  padding-bottom: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

section:last-child {
  border-bottom: none;
}

div {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

p {
  line-height: 1.5rem;
  font-size: var(--font-size-small);
  text-align: justify;
}

label {
  font-size: var(--font-size-small);
  color: var(--text-color-dark);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  font-weight: bold;
}

label i {
  margin-right: 8px;
  color: var(--text-color-dark);
}

input,
select {
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--button-border-radius);
  font-size: var(--font-size-base);
  color: #2d3748;
  background-color: #ffffff;
  transition: border-color 0.3s;
}

input:focus,
select:focus {
  border-color: #2b6cb0;
  outline: none;
}

button {
  background-color: var(--primary-color);
  color: var(--text-color-dark);
  padding: 12px 20px;
  border: none;
  border-radius: var(--button-border-radius);
  font-size: var(--font-size-small);
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

button i {
  margin-right: 8px;
}

button:hover {
  background-color: var(--accent-color);
}

.results-btn {
  background-color: var(--primary-color);
}

.results-btn:hover {
  background-color: var(--accent-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

th,
td {
  padding: 12px 15px;
  text-align: left;
  font-size: var(--font-size-base);
  color: var(--text-color-dark);
}

th {
  background-color: #2b6cb0;
  color: var(--text-color-light);
  font-weight: 600;
  text-transform: uppercase;
}

tr:nth-child(even) {
  background-color: #ffffff;
}

tr:nth-child(odd) {
  background-color: var(--background-dark);
}

tr:hover {
  background-color: var(--primary-color);
}

td:first-child {
  font-weight: 500;
  color: var(--text-color-dark);
}

td:last-child {
  color: var(--text-color-dark);
}

.group-header > td {
  background-color: #bebebe;
  font-weight: bold;
  color: var(--text-color-dark);
  text-transform: uppercase;
  padding: 10px 15px;
}

.resultado {
  font-size: var(--font-size-small);
  color: var(--text-color-dark);
  margin-bottom: 5px;
  display: flex;
  align-items: flex-start;
}

footer {
  font-size: 0.9rem;
  color: #797c83;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

/* Estilo do Popup */
.popup {
  display: none; /* O popup começa oculto */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Cor de fundo semi-transparente */
}

.popup-content {
  background-color: white;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  margin: 15% auto;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  text-align: justify;
  line-height: 1.5;
  max-width: 700px;
}

.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 15px;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#disclaimerLink {
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  color: #797c83;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  flex-direction: column;
}

a {
  font-size: 0.9rem;
  color: #797c83;
  text-decoration: none;
  margin-bottom: 5px;
}

a:hover {
  color: #47494d;
}

.blog-link a {
  display: flex;
  margin: 0px 30px;
  color: var(--text-color-light);
  border-top: 2px solid var(--primary-color);
  padding-top: 10px;
  justify-content: right;
  font-size: 0.9rem;
}

.blog-link a:hover {
  color: var(--primary-color);
}

/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* Tooltip text */
.tooltiptext {
  visibility: hidden; /* Hidden by default */
  width: 200px;
  background-color: var(--secondary-color);
  color: var(--text-color-light);
  font-size: 13px;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  position: absolute;
  z-index: 1; /* Certifique-se de que o tooltip fique acima do conteúdo */
  top: -10px;
  right: -2%;
}

/* Mostrar o texto do tooltip ao passar o mouse */
.tooltip:hover .tooltiptext {
  visibility: visible;
}

#imagem {
  display: flex;
  justify-content: center;
  padding: 20px;
}

#imagem img {
  display: none; /* As imagens começam com display: none */
  max-width: 100%;
  height: auto;
  padding: 10px;
  justify-content: center;
}
