/* =========================================
   Portfolio-style CSS for Sphinx Slides
   Based on sion908 portfolio design
   ========================================= */
:root {
  --primary-color: #72A893;
  --secondary-color: #A8A26A;
  --accent-color: #E63946;
  --text-color: #333;
  --bg-color: #F9F9F9;
  --header-bg: rgba(34, 49, 52, 0.95);
  --white: #ffffff;
  --link-color: #23527c;
  --font-base: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --sion-color: #8d73b0;
  /* 紫苑色 */
}

body {
  font-family: var(--font-base);
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* =========================================
   Sphinx Default Theme (Classic) Overrides
   ========================================= */

div.document {
  background-color: var(--bg-color);
}

div.body {
  background-color: var(--white);
  color: var(--text-color);
}

div.sphinxsidebar {
  background-color: var(--header-bg);
  color: rgba(255, 255, 255, 0.8);
}

div.sphinxsidebar a {
  color: var(--white);
  text-decoration: none;
}

div.sphinxsidebar a:hover {
  text-decoration: underline;
}

div.sphinxsidebar h3,
div.sphinxsidebar h4 {
  color: var(--primary-color);
}

div.related {
  background-color: var(--header-bg);
  color: rgba(255, 255, 255, 0.8);
}

div.related a {
  color: var(--white);
  text-decoration: none;
}

div.related a:hover {
  color: var(--primary-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary-color);
  font-family: var(--font-base);
}

div.body a {
  color: var(--sion-color) !important;
  font-weight: bold;
}

div.body a:hover {
  text-decoration: underline;
  color: #6a4c93 !important;
}

div.footer {
  background-color: var(--header-bg) !important;
  color: rgba(255, 255, 255, 0.6) !important;
  padding: 15px !important;
  text-align: center;
}

div.footer a {
  color: var(--white) !important;
  text-decoration: underline;
}

div.footer a:hover {
  color: var(--primary-color) !important;
}

/* =========================================
   Reveal.js customization (for slides)
   Premium Modern Design
   ========================================= */

/* Base Viewport & Background (Gradient matching site theme) */
.reveal-viewport {
  background: linear-gradient(135deg, #F0F4F2 0%, #E2EBE6 100%) !important;
}

/* Slides Container */
.reveal {
  font-family: var(--font-base);
  color: var(--text-color);
}

/* Slide Card Aesthetic */
.reveal .slides>section,
.reveal .slides>section>section {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  padding: 40px;
  box-sizing: border-box;
}

/* Typography & Headings */
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
  color: var(--primary-color);
  font-family: var(--font-base);
  font-weight: 700;
  text-transform: none;
  /* Prevent uppercase transformation */
  letter-spacing: 0.02em;
}

.reveal h1 {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 1.5rem;
  text-wrap: balance;
  line-height: 1.2;
}

/* Add a subtle underline accent to h1 */
.reveal h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 20px auto 0;
  border-radius: 2px;
}

.reveal h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(114, 168, 147, 0.2);
  /* Primary color light */
}

.reveal h3 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 1.2rem;
}

/* Text alignment & spacing for content */
.reveal .slides section {
  text-align: left;
}

.reveal p {
  line-height: 1.8;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

/* Stylish Lists */
.reveal ul {
  list-style: none;
  /* Remove default bullets */
  padding-left: 0;
}

.reveal ul li {
  position: relative;
  padding-left: 1.8em;
  margin-bottom: 0.8em;
  font-size: 1.4rem;
  line-height: 1.6;
}

/* Custom Bullet Points */
.reveal ul li::before {
  content: "▸";
  /* Or "✦" */
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1.2;
}

/* Links */
.reveal a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px dashed var(--primary-color);
  transition: all 0.2s ease;
}

.reveal a:hover {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

/* Controls (Navigation Arrows) */
.reveal .controls {
  color: var(--primary-color);
}

.reveal .controls:hover {
  color: var(--accent-color);
}

/* Progress Bar */
.reveal .progress {
  height: 6px;
  background-color: rgba(114, 168, 147, 0.2);
}

.reveal .progress span {
  background-color: var(--primary-color);
  transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
}

/* Code Blocks & Inline Code */
.reveal pre {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  width: 100%;
}

.reveal code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  background-color: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--primary-color);
}

.reveal pre code {
  padding: 20px;
  background-color: #282c34;
  color: #abb2bf;
  border-radius: 8px;
}

/* =========================================
   Fixes for Sphinx Docinfo and Default Bullets
   ========================================= */

/* Fix docinfo (author/date/event) sizing and layout */
.reveal dl.field-list dt {
  font-size: 1.2rem;
  color: var(--secondary-color);
  font-weight: normal;
  margin-top: 1.5rem;
}

.reveal dl.field-list dd {
  font-size: 2rem;
  font-weight: bold;
  margin-left: 0;
}

.reveal dl.field-list dd p {
  margin: 0;
  line-height: 1.2;
}

/* Force removal of default bullets from reveal.js */
.reveal .slides section ul {
  list-style: none !important;
  list-style-type: none !important;
}

.reveal .slides section ul li {
  list-style: none !important;
  list-style-type: none !important;
}