/*
 * @theme minimal-dark
 * @author Alexis Perrier
 * @description Minimal Dark Theme - Clean and simple, no fancy effects
 */

/* Removed broken @import 'default' */

:root {
  --color-background: #1a3a3a;
  --color-foreground: #e6f2ff;
  --color-heading: #d0d0FF;
  --color-link: #8263ff;
  --color-bluesky: #0478ec;
  --color-white: #FFd8FF;
  --color-red: #AA3a3a;
  --color-code-bg: #1e1e1e;
  --color-code-border: #404040;
  --color-accent: #666666;
}

section {
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  padding: 30px;
  padding-top: 0px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

/* Headers - simple light gray */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  font-weight: normal;
  margin-top: 30px;
  margin-bottom: 20px;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: var(--color-bluesky);
}

h2 {
  font-size: 2em;
  margin-top: 40px;
}

h3 {
  font-size: 1.5em;
}

/* Paragraphs - very light blue */
p {
  color: var(--color-foreground);
  margin: 15px 0;
  font-size: 1.1em;
}

/* Links - bright blue with dashed underline */
a {
  color: #4da6ff;
  text-decoration: underline dashed;
}

a:hover {
  text-decoration: underline solid;
}

/* Lists */
ul, ol {
  margin: 20px 0;
  padding-left: 30px;
}

li {
  margin: 8px 0;
  color: var(--color-foreground);
}

/* Code blocks */
code {
  background: var(--color-code-bg);
  color: var(--color-heading);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

pre {
  background: var(--color-code-bg);
  color: var(--color-heading);
  padding: 20px;
  border-radius: 5px;
  overflow-x: auto;
  margin: 20px 0;
}

/* Strong and emphasis */
strong {
  color: var(--color-heading);
  font-weight: bold;
}

em {
  color: var(--color-heading);
  font-style: italic;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--color-accent);
  margin: 20px 0;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  font-style: italic;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  /* border-radius: 5px; */
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
}

th, td {
  border: 1px solid var(--color-accent);
  padding: 12px;
  text-align: left;
}

th {
  background: var(--color-code-bg);
  color: var(--color-heading);
  font-weight: bold;
}

/* Horizontal rules */
hr {
  border: none;
  border-top: 1px solid var(--color-accent);
  margin: 30px 0;
}

/* Utility classes */
.center {
  text-align: center;
}

.large {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--color-heading);
}

.highlight {
  background: rgba(85, 136, 187, 0.2);
  padding: 20px;
  border-radius: 5px;
  margin: 20px 0;
}

.boom {
  background: rgba(176, 44, 32, 0.2);
  display: block;
  padding: 30px;
  border: 3px solid darkorange;
  text-align: center;
  margin: 20px auto;
  padding-bottom: 0px;
  width: fit-content;
}

.note {
  background: rgba(102, 102, 102, 0.2);
  padding: 20px;
  border-radius: 5px;
  margin: 20px 0;
  border-left: 4px solid var(--color-accent);
}

.small {
  font-size: 0.8em;
}

.small table {
  font-size: 0.7em;
}

.small th, .small td {
  padding: 6px;
}

/* Two-column layout */
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Title slide */
section[data-theme="title"] {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

section[data-theme="title"] h1 {
  font-size: 3.5em;
  margin: 20px 0;
}

section[data-theme="title"] h2 {
  font-size: 2em;
  margin: 20px 0;
  color: var(--color-foreground);
}

/* Centered slide for single text */
section.centered {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100vh;
}

section.centered h1 {
  color: var(--color-red);
  margin: 0;
  font-size: 3em;
  padding-bottom: 200px;
}

/* Remove default footer */
section::after {
  display: none;
}

/* Page number positioning using Marp's pagination system */
section {
  --paginate-color: var(--color-accent);
}

/* Custom footer positioning - right aligned at same level as page number */
section > header,
section > footer {
  position: absolute;
  bottom: 20px;
  right: 60px;
  left: auto;
  font-size: 14px;
  color: var(--color-accent);
  text-align: right;
  height: auto;
  width: auto;
}

/* ===== CODE STYLING FOR SLIDES ===== */
/* Black background, no borders, syntax highlighting */

/* Nuclear option: Reset all code styling first */
* pre,
* code,
section * pre,
section * code {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Maximum specificity code styling */
section pre,
section code,
div pre,
div code,
body pre,
body code {
  background-color: #000000 !important;
  background: #000000 !important;
  color: #f8f8f2 !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 4px !important;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
  font-size: 1.1rem !important;
}

section pre,
div pre,
body pre {
  padding: 1rem !important;
  margin: 1rem 0 !important;
  overflow-x: auto !important;
  display: block !important;
  line-height: 1.5 !important;
}

section code,
div code,
body code {
  padding: 0.2rem 0.4rem !important;
  word-break: normal !important;
}

/* Inline code with maximum specificity */
section p code,
section li code,
section td code,
div p code,
div li code,
div td code,
body p code,
body li code,
body td code {
  background-color: #000000 !important;
  background: #000000 !important;
  color: #f8f8f2 !important;
  padding: 0.2rem 0.4rem !important;
  border-radius: 3px !important;
  border: none !important;
  font-size: 1.1rem !important;
}

/* Override any framework styles */
section .highlight pre,
section .highlight code,
div.highlight pre,
div.highlight code,
div.highlighter-rouge pre,
div.highlighter-rouge code {
  background-color: #000000 !important;
  background: #000000 !important;
  border: none !important;
  box-shadow: none !important;
  color: #f8f8f2 !important;
}

/* Highlight.js styling for black background */
section .hljs,
div .hljs,
body .hljs,
pre .hljs,
code .hljs {
  background: #000000 !important;
  color: #f8f8f2 !important;
  padding: 1rem !important;
  border-radius: 4px !important;
  border: none !important;
  box-shadow: none !important;
}

/* Aggressive fix for line-by-line background issues */
/* Remove backgrounds from ALL possible line elements */
.hljs *,
section .hljs *,
div .hljs *,
pre .hljs *,
code .hljs *,
.hljs .hljs-ln-line,
.hljs .hljs-ln-code,
.hljs .hljs-ln-numbers,
.hljs span,
.hljs div,
.hljs code,
section .hljs span,
section .hljs div,  
section .hljs code,
pre span,
pre div,
pre code {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* Ensure code blocks have unified background and proper line height */
pre code,
section pre code,
div pre code,
body pre code {
  background: #000000 !important;
  display: block !important;
  line-height: 1.5 !important;
  padding: 0 !important; /* Remove inner padding, let pre handle it */
}

/* OPTION 1: Current Monokai-style (keep this) */
/* Python & Shell syntax highlighting colors for black background */
/* Maximum specificity for all syntax elements */
/* Atom One Dark Theme Colors */
.hljs-keyword, section .hljs-keyword, div .hljs-keyword, body .hljs-keyword, 
pre .hljs-keyword, code .hljs-keyword { color: #c678dd !important; }

.hljs-string, section .hljs-string, div .hljs-string, body .hljs-string,
pre .hljs-string, code .hljs-string { color: #98c379 !important; }

.hljs-comment, section .hljs-comment, div .hljs-comment, body .hljs-comment,
pre .hljs-comment, code .hljs-comment { color: #5c6370 !important; }

.hljs-number, section .hljs-number, div .hljs-number, body .hljs-number,
pre .hljs-number, code .hljs-number { color: #d19a66 !important; }

.hljs-built_in, section .hljs-built_in, div .hljs-built_in, body .hljs-built_in,
pre .hljs-built_in, code .hljs-built_in { color: #e06c75 !important; }

.hljs-function, section .hljs-function, div .hljs-function, body .hljs-function,
pre .hljs-function, code .hljs-function { color: #61afef !important; }

.hljs-class, section .hljs-class, div .hljs-class, body .hljs-class,
pre .hljs-class, code .hljs-class { color: #e5c07b !important; }

.hljs-title, section .hljs-title, div .hljs-title, body .hljs-title,
pre .hljs-title, code .hljs-title { color: #e5c07b !important; }

.hljs-variable, section .hljs-variable, div .hljs-variable, body .hljs-variable,
pre .hljs-variable, code .hljs-variable { color: #abb2bf !important; }

.hljs-attr, section .hljs-attr, div .hljs-attr, body .hljs-attr,
pre .hljs-attr, code .hljs-attr { color: #d19a66 !important; }

.hljs-literal, section .hljs-literal, div .hljs-literal, body .hljs-literal,
pre .hljs-literal, code .hljs-literal { color: #56b6c2 !important; }

.hljs-meta, section .hljs-meta, div .hljs-meta, body .hljs-meta,
pre .hljs-meta, code .hljs-meta { color: #5c6370 !important; }

.hljs-symbol, section .hljs-symbol, div .hljs-symbol, body .hljs-symbol,
pre .hljs-symbol, code .hljs-symbol { color: #56b6c2 !important; }

/* Additional Python-specific classes for Atom One Dark */
.hljs-params, section .hljs-params, div .hljs-params, body .hljs-params { color: #d19a66 !important; }
.hljs-doctag, section .hljs-doctag, div .hljs-doctag, body .hljs-doctag { color: #5c6370 !important; }

/* 
OPTION 2: Atom One Dark Theme (uncomment to use)
.hljs-keyword { color: #c678dd !important; }
.hljs-string { color: #98c379 !important; }
.hljs-comment { color: #5c6370 !important; }
.hljs-number { color: #d19a66 !important; }
.hljs-built_in { color: #e06c75 !important; }
.hljs-function { color: #61afef !important; }
.hljs-class { color: #e5c07b !important; }
.hljs-title { color: #e5c07b !important; }
.hljs-variable { color: #abb2bf !important; }
.hljs-attr { color: #d19a66 !important; }
.hljs-literal { color: #56b6c2 !important; }

OPTION 3: VS Code Dark+ Theme (uncomment to use)
.hljs-keyword { color: #569cd6 !important; }
.hljs-string { color: #ce9178 !important; }
.hljs-comment { color: #6a9955 !important; }
.hljs-number { color: #b5cea8 !important; }
.hljs-built_in { color: #4ec9b0 !important; }
.hljs-function { color: #dcdcaa !important; }
.hljs-class { color: #4ec9b0 !important; }
.hljs-title { color: #dcdcaa !important; }
.hljs-variable { color: #9cdcfe !important; }
.hljs-attr { color: #92c5f7 !important; }
.hljs-literal { color: #569cd6 !important; }
*/

/* Remove gray backgrounds from containers */
section div.highlight,
section div.highlighter-rouge,
div.highlight,
div.highlighter-rouge {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}