/* Custom Styles para la Galería e Interfaz */
:root{
  /* Tamaño de los títulos principales (# en Markdown) */
  --r-heading1-size: 1.8em;

  /* Tamaño de los subtítulos (## en Markdown) */
  --r-heading2-size: 1.4em;

  /* Tamaño de los títulos de nivel 3 (### en Markdown) */
  --r-heading3-size: 1.2em;
}

li, p, table * {
  font-size: 2.2rem;
}

em {
  font-size: 1.3rem;
  font-family: "Roboto", "Lucida Console", "Courier New", monospace;
  font-stretch: ultra-condensed;
}



/* Estilos de la Galería (index.html) */
body.gallery {
  font-family: system-ui, -apple-system, sans-serif;
  background-color: #191919;
  color: #ffffff;
  padding: 2rem;
  margin: 0;
}

.gallery h1 {
  text-align: center;
  color: #42aff0;
  margin-bottom: 2rem;
}

.gallery .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery .card {
  background: #2b2b2b;
  padding: 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: #ffffff;
  border: 1px solid #3d3d3d;
  transition: transform 0.2s, border-color 0.2s;
}

.gallery .card:hover {
  border-color: #42aff0;
  transform: translateY(-3px);
}

.gallery .card h2 {
  margin: 0;
  font-size: 1.2rem;
  text-transform: capitalize;
}

/* Personalizaciones adicionales para Reveal.js (viewer.html) */
.reveal .slides section h1 {
  color: #42aff0;
}

/*---*/
/* Custom styles to ensure progress bar and slide numbers are visible */

/* Force progress bar to be visible */
.reveal .progress {
  display: block !important;
  height: 4px !important;
  z-index: 1000 !important;
}

/* Ensure slide number has enough bottom margin */
.reveal .slide-number {
  bottom: 15px !important;
  right: 15px !important;
  font-size: 14px !important;
}

/* Center only headings horizontally */
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
  text-align: center !important;
}

/* Left-align all other content (paragraphs, lists, etc.) */
.reveal p,
.reveal ul,
.reveal ol,
.reveal li {
  text-align: left !important;
}

/* Keep images centered */
.reveal img {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* Secciones por categoría */
.category-section {
  max-width: 1000px;
  margin: 0 auto 2.5rem auto;
}

.category-title {
  color: #42aff0;
  font-size: 1.4rem;
  text-transform: capitalize;
  border-bottom: 2px solid #3d3d3d;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.gallery .card h3 {
  margin: 0;
  font-size: 1.1rem;
  text-transform: capitalize;
}

/* Desplazamiento suave al hacer clic en los anclas */
html {
  scroll-behavior: smooth;
}

/* Espaciado para que los títulos no queden ocultos debajo de la barra al desplazarse */
.category-section {
  scroll-margin-top: 5rem;
}

/* Navbar Fija Superior */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #212121;
  border-bottom: 1px solid #3d3d3d;
  padding: 0.75rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.navbar-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow-x: auto;
}

.navbar-title {
  font-weight: bold;
  color: #888;
  font-size: 0.9rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.navbar-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.navbar-links a {
  color: #fff;
  text-decoration: none;
  background: #2b2b2b;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid #3d3d3d;
  white-space: nowrap;
  text-transform: capitalize;
  transition: background-color 0.2s, border-color 0.2s;
}

.navbar-links a:hover {
  background: #42aff0;
  border-color: #42aff0;
  color: #fff;
}