/* Slides presentation styles - inspired by Go present */

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 28px;
  line-height: 1.5;
  background: #fff;
  color: #222;
}

.slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  padding: 60px 80px;
  overflow: auto;
}

.slide.current {
  display: flex;
}

.slide-content {
  flex: 1;
  overflow: auto;
}

.slide-number {
  position: absolute;
  bottom: 20px;
  right: 30px;
  font-size: 14px;
  color: #999;
  font-variant-numeric: tabular-nums;
}

/* Typography */
.slide h1 {
  font-size: 2.2em;
  font-weight: 600;
  margin-bottom: 0.5em;
  color: #000;
  line-height: 1.2;
}

.slide h2 {
  font-size: 1.6em;
  font-weight: 600;
  margin-top: 0.8em;
  margin-bottom: 0.4em;
  color: #222;
}

.slide h3 {
  font-size: 1.2em;
  font-weight: 600;
  margin-top: 0.6em;
  margin-bottom: 0.3em;
  color: #333;
}

.slide p {
  margin-bottom: 0.8em;
}

.slide ul, .slide ol {
  margin-left: 1.5em;
  margin-bottom: 0.8em;
}

.slide li {
  margin-bottom: 0.4em;
}

.slide li::marker {
  color: #666;
}

/* Code blocks */
.slide pre {
  background: #f6f8fa;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 16px 20px;
  overflow-x: auto;
  font-size: 0.75em;
  line-height: 1.45;
  margin: 0.8em 0;
}

.slide code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.9em;
  background: #f0f0f0;
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

.slide pre code {
  background: none;
  padding: 0;
  font-size: 1em;
}

.slide .math-block {
  margin: 0.8em 0;
  overflow-x: auto;
}

.slide .katex-display {
  margin: 0;
}

/* Tables */
.slide table {
  border-collapse: collapse;
  margin: 0.8em 0;
  font-size: 0.85em;
}

.slide th, .slide td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
}

.slide th {
  background: #f6f8fa;
  font-weight: 600;
}

/* Blockquotes */
.slide blockquote {
  border-left: 4px solid #ddd;
  padding-left: 20px;
  margin: 0.8em 0;
  color: #555;
  font-style: italic;
}

/* Strong and emphasis */
.slide strong {
  font-weight: 600;
}

.slide em {
  font-style: italic;
}

/* Links */
.slide a {
  color: #0969da;
  text-decoration: none;
}

.slide a:hover {
  text-decoration: underline;
}

/* Help overlay */
#help {
  position: fixed;
  bottom: 20px;
  left: 30px;
  font-size: 13px;
  color: #999;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 14px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: opacity 0.3s;
  z-index: 100;
}

#help.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Navigation hints */
.nav-hint {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 80px;
  cursor: pointer;
  z-index: 50;
}

.nav-hint.left {
  left: 0;
}

.nav-hint.right {
  right: 0;
}

.nav-hint:hover {
  background: rgba(0, 0, 0, 0.02);
}

/* Progress bar */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: #0969da;
  transition: width 0.2s ease;
  z-index: 100;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  body {
    font-size: 22px;
  }

  .slide {
    padding: 40px 50px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 18px;
  }

  .slide {
    padding: 30px;
  }

  .slide h1 {
    font-size: 1.8em;
  }

  #help {
    display: none;
  }
}

/* Print styles */
@media print {
  .slide {
    display: block !important;
    page-break-after: always;
    position: relative;
    height: auto;
    min-height: 100vh;
  }

  #help, .nav-hint, .progress {
    display: none;
  }
}
