/* =========================================
   GLOBAL THEME VARIABLES
========================================= */
:root {
  --gold: #d4af37;
  --gold-light: #ffe8a8;
  --parchment: #f3ecd8;
  --deep-blue: #0c1a2e;
  --mid-blue: #17314d;
  --radius: 12px;

  /* New variables for reflection box and text */
  --reflection-bg: rgba(23, 49, 77, 0.2); /* A lighter mid-blue */
  --reflection-border: #3498db; /* Specific blue from user's example */
  --reflection-text: #e9dba8; /* Light goldish for readability on dark bg */
  --lecture-text-color: var(--gold-light); /* Matching main text color */
}

/* =========================================
   BASIC PAGE SETUP
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold-light);
  background: radial-gradient(circle, #1a2a3a 0%, #0a131f 90%);
  min-height: 100vh;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Center the slideshow content */
  text-align: left !important; /* Ensure content is left-aligned by default */
}

/* ======================================================
   SLIDESHOW CONTAINER & PANEL
====================================================== */
#main-content.panel {
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(212,175,55,.35);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 90vw; /* Use viewport width */
  height: 90vh; /* Use viewport height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ======================================================
   SLIDE STYLES
====================================================== */
.slide {
    display: none;
    width: 100%;
    height: 100%;
    overflow-y: auto; /* Add scroll if content overflows */
    padding: 40px; /* Increased padding */
    max-width: 900px; /* Max width for readability */
    margin: 0 auto; /* Center slide content */
}

.slide.active {
    display: block;
}

h1, h2 {
  font-family: 'Cinzel Decorative', serif;
  text-shadow:
    0 0 12px rgba(255,215,100,0.5),
    0 0 24px rgba(200,155,60,0.35);
}

h1 {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.8rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

p { /* General paragraph styling */
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--lecture-text-color);
}

.lecture-text { /* Specific class for main lecture text */
    margin-top: 20px;
    line-height: 1.8;
    color: var(--lecture-text-color);
}

ul {
    list-style-position: outside; /* Changed from inside for better bullet alignment */
    padding-left: 25px; /* Indent for bullet points */
    margin: 20px 0;
    text-align: left;
    max-width: 100%; /* Adjust based on parent width */
    color: var(--lecture-text-color);
}

li {
    margin-bottom: 12px;
}

/* Reflection Box Styles */
.reflection-box {
    background-color: var(--reflection-bg);
    border-left: 3px solid var(--reflection-border);
    padding: 25px;
    margin: 30px 0;
    color: var(--reflection-text);
    text-align: left;
}

hr {
    border: 0;
    border-top: 1px solid rgba(212,175,55,0.2); /* Gold-tinted border */
    margin: 40px 0;
}


/* ======================================================
   BUTTONS
====================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: var(--gold);
  border-radius: 1.5rem;
  border: 1px solid rgba(212,175,55,0.4);
  color: var(--deep-blue);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.slide-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    display: flex;
    justify-content: space-between;
    z-index: 1000;
}

.exit-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}