/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif,
    sans-serif;
}

/* Layout */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: #f4f4f9;
  color: #333;
}

h1 {
  margin-bottom: 20px;
}

.section {
  max-width: 800px;
  width: 100%;
  margin-bottom: 40px;
  padding: 10px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.subsection {
  max-width: 800px;
  width: 100%;
  margin-bottom: 40px;
  padding: 10px;
  background-color: #f5e8e8;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #858585;
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #0056b3;
}

.section p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 10px;
  margin: 5px; /* Set a larger margin for unordered lists */
}
.section ul,
ol {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 10px;
  margin: 10px; /* Set a larger margin for unordered lists */
}
.sub-list {
  list-style: none;
  padding-left: 20px;
}
.sub-list li {
  margin-bottom: 12px;
}
.sub-list li::before {
  content: attr(data-num) " ";
  font-weight: bold;
  font-size: 1.1em;
  margin-right: 4px;
  color: #444;
}

.link {
  background-color: #ccf6ea;
  color: #434343;
}

.download-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0056b3;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1rem;
  transition: background-color 0.3s;
}
.responsive-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px; /* Opcional: arredonda os cantos */
}
p {
  margin: 5px;
  text-align: justify;
}
ul,
ol {
  margin: 10px; /* Set a larger margin for unordered lists */
}

.download-btn:hover {
  background-color: #003d80;
}

.code-block {
  font-family: "Courier New", Courier, monospace;
  background-color: #f6f8fa; /* Fundo típico do GitHub */
  color: #333; /* Cor do texto */
  padding: 3px;
  border-radius: 3px;
  border: 1px solid #d1d5da; /* Borda leve */
  font-size: 0.7rem;
  line-height: 1.5;
  overflow-x: auto; /* Barra de rolagem horizontal para texto longo */
  margin-bottom: 20px;
  white-space: pre-wrap; /* Preserve newlines and wrap text */
  word-wrap: break-word; /* Ensure long lines are wrapped */
}

.code-block-output {
  font-family: "Courier New", Courier, monospace;
  background-color: #f6f8fa; /* Fundo típico do GitHub */
  color: #333; /* Cor do texto */
  padding: 2px;
  border-radius: 3px;
  border: 1px solid #d1d5da; /* Borda leve */
  font-size: 0.65rem;
  line-height: 1.5;
  overflow-x: auto; /* Barra de rolagem horizontal para texto longo */

  margin-bottom: 20px;
  white-space: pre-wrap; /* Preserve newlines and wrap text */
  word-wrap: break-word; /* Ensure long lines are wrapped */
}

.code-script {
  font-family: "Courier New", Courier, monospace;
  background-color: #f6f8fa; /* Fundo típico do GitHub */
  color: #333; /* Cor do texto */
  padding: 2px;

  font-size: 0.65rem;
  line-height: 1.5;
  overflow-x: auto; /* Barra de rolagem horizontal para texto longo */

  margin-bottom: 20px;
  white-space: pre-wrap; /* Preserve newlines and wrap text */
  word-wrap: break-word; /* Ensure long lines are wrapped */
}
.code-file {
  font-family: monospace;
  background-color: #ffffff; /* Fundo típico do GitHub */
  color: #161616; /* Cor do texto */
  padding: 2px;
  border-radius: 3px;
  border: 1px solid #d1d5da; /* Borda leve */
  font-size: 0.7rem;
  line-height: 1.5;
  overflow-x: auto; /* Barra de rolagem horizontal para texto longo */
  white-space: nowrap; /* Permite quebra de linha */
}

.code-comand {
  font-family: monospace;
  background-color: #dedbdb; /* Fundo típico do GitHub */
  color: #161616; /* Cor do texto */
  padding: 2px;
  border-radius: 3px;
  border: 1px solid #d1d5da; /* Borda leve */
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: auto; /* Barra de rolagem horizontal para texto longo */
  white-space: nowrap; /* Permite quebra de linha */
}

/* Estilo para o menu */
.auditor {
  color: #ffffff;
  text-decoration: none;
  padding: 8px 15px;
  margin: 0 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

nav#menu {
  position: sticky;
  top: 0;
  max-width: 800px;
  width: 100%;
  background-color: #0056b3;
  padding: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Permite quebrar as linhas em telas pequenas */
}

nav#menu a {
  color: #ffffff;
  text-decoration: none;
  padding: 8px 15px;
  margin: 0 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

nav#menu a:hover {
  background-color: #003d80;
  border-radius: 4px;
}

.image-wrapper {
  display: flex;
  justify-content: center; /* Centraliza as imagens dentro do contêiner */
  max-width: 100%; /* Garante que o contêiner não ultrapasse o limite da página */
  overflow: hidden; /* Evita que o conteúdo estoure o contêiner */
}

.image-container {
  position: relative;
}

img {
  max-width: 100%; /* Garante que a imagem nunca ultrapasse o contêiner */
  height: auto; /* Mantém a proporção da imagem */
}
.img-icon {
  width: 30px; /* Ajuste o valor conforme necessário */
  margin-top: 10px; /* Adiciona um pequeno espaçamento, se necessário */
}

.img-small {
  width: 25%; /* Ajuste o valor conforme necessário */
  margin-top: 10px;
}

.img-large {
  width: 40%; /* Ajuste o valor conforme necessário */
  margin-top: 10px; /* Adiciona um pequeno espaçamento, se necessário */
}

.tabs {
  display: flex;
  flex-wrap: wrap; /* Allows tabs to wrap into multiple lines */
  border-bottom: 2px solid #ccc;
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  border: 1px solid #ccc;
  border-bottom: none;
  background-color: #f4f4f4;
  transition: background-color 0.3s;
  flex: 1; /* Ensures each tab has equal width */
  text-align: center; /* Centers the text */
}

.tab:hover {
  background-color: #ddd;
}

.tab.active {
  background-color: #fff;
  font-weight: bold;
  border-top: 2px solid #007bff;
  border-right: 1px solid #ccc;
  border-left: 1px solid #ccc;
}

.tab-content {
  display: none;
  padding: 20px;
  border: 1px solid #ccc;
}

.tab-content.active {
  display: block;
}

/* Responsive */
@media (max-width: 600px) {
  h1 {
    font-size: 1.8rem;
  }

  .section h2 {
    font-size: 1.2rem;
  }

  .section p,
  .download-btn {
    font-size: 0.9rem;
  }

  .tabs {
    flex-direction: column; /* Stacks tabs vertically */
  }
  .tab {
    flex: unset; /* Removes equal width for vertical stacking */
  }
}

.download-card {
  background: #fff;
  padding: 1em;
  margin: 0 auto 1em auto;
  /* max-width: 400px; */
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.download-card h2 {
  font-size: 1.2em;
  margin: 0 0 0.5em;
}
.download-card p {
  margin: 0.2em 0;
  word-break: break-word;
}
.download-card a {
  display: inline-block;
  margin-top: 0.5em;
  padding: 0.4em 0.8em;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
}
.download-card a:hover {
  background: #0056b3;
}

.hyperfine_container {
  max-width: 100%;
  padding: 1rem;
  box-sizing: border-box;
}

.hyperfine_container table {
  width: 100%;
  border-collapse: collapse;
  word-break: break-word;
}

.hyperfine_container thead {
  background-color: #f2f2f2;
}

.hyperfine_container th,
.hyperfine_container td {
  padding: 8px 12px;
  border: 1px solid #ccc;
  text-align: left;
}

.hyperfine_container td code {
  white-space: pre-wrap; /* allows line breaks in long code */
  display: block;
}

.hash_integridade {
  font-size: 0.8em;
  background: #f4f4f4;
  padding: 10px;
  border-radius: 4px;
  overflow-x: auto;
}
.note {
  background: #ffffe0;
  border-left: 5px solid #ffd700;
  padding: 10px;
  margin: 10px 0;
  text-align: justify;
}

.language-list {
  column-count: 3;
  column-gap: 2em;
  list-style: none;
  padding: 0;
  max-width: 600px;
}

.language-list li {
  margin-bottom: 0.5em;
}

.language-list a {
  text-decoration: none;
  color: #0077cc;
}

.language-list a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .hyperfine_container {
    overflow-x: auto;
  }

  .hyperfine_container table {
    min-width: 600px; /* allow scrolling if table is wider */
  }
}
