/**
 * Generation Web Custom Theme for reveal.js
 * Based on proposal design with wave graphics and brand colors
 */

/*********************************************
 * GLOBAL STYLES
 *********************************************/

:root {
  --dark-teal: #1C4A52;
  --vibrant-orange: #EB6C2A;
  --blue-gray: #7399A4;
  --sage-green: #7AB399;
  --white: #FFFFFF;
  --dark-gray: #2B2B2B;
}

.reveal-viewport {
  background: #fff;
  background-color: #fff;
  overflow: hidden !important;
}

/* Ensure no padding/margin on reveal elements */
.reveal-viewport,
.reveal {
  padding: 0 !important;
  margin: 0 !important;
}

/* Ensure body and html have no margin/padding */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.reveal {
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 40px;
  font-weight: normal;
  color: var(--dark-gray);
}

/* Slide container - let reveal.js handle positioning */
.reveal .slides > section {
  padding: 60px;
  box-sizing: border-box;
}

/* Interior slides should be vertically centered */
.reveal .slides > section:not(.title-slide):not(.section-divider) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Ensure all content (except corner waves) is above graphics */
.reveal .slides > section > :not(.corner-wave) {
  position: relative;
  z-index: 1;
}

.reveal .slides > section > section {
  padding: 60px;
  box-sizing: border-box;
}

/*********************************************
 * HEADERS
 *********************************************/

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
  margin: 0 0 20px 0;
  color: var(--dark-teal);
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
  word-wrap: break-word;
}

.reveal h1 {
  font-size: 2.5em;
}

.reveal h2 {
  font-size: 1.6em;
}

.reveal h3 {
  font-size: 1.3em;
}

.reveal h4 {
  font-size: 1em;
}

/*********************************************
 * TEXT & LINKS
 *********************************************/

.reveal p {
  margin: 20px 0;
  line-height: 1.6;
}

.reveal strong,
.reveal b {
  font-weight: bold;
  color: var(--dark-teal);
}

.reveal a {
  color: var(--vibrant-orange);
  text-decoration: none;
  transition: color 0.15s ease;
}

.reveal a:hover {
  color: var(--sage-green);
  text-shadow: none;
  border: none;
}

/*********************************************
 * IMAGES
 *********************************************/

.reveal section img {
  margin: 15px 0px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  box-shadow: none;
}

/*********************************************
 * LISTS
 *********************************************/

.reveal ul,
.reveal ol {
  display: inline-block;
  text-align: left;
  margin: 0 0 0 1em;
}

.reveal ul {
  list-style-type: none;
}

.reveal ul li::before {
  content: "▸";
  color: var(--vibrant-orange);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.reveal ol {
  list-style-type: decimal;
}

.reveal ul ul,
.reveal ul ol,
.reveal ol ol,
.reveal ol ul {
  display: block;
  margin-left: 40px;
}

.reveal li {
  margin: 10px 0;
}

/*********************************************
 * QUOTES
 *********************************************/

.reveal blockquote {
  display: block;
  position: relative;
  width: 70%;
  margin: 20px auto;
  padding: 20px;
  font-style: italic;
  background: rgba(255, 255, 255, 0.05);
  border-left: 5px solid var(--vibrant-orange);
  box-shadow: none;
}

.reveal blockquote p:first-child,
.reveal blockquote p:last-child {
  display: inline-block;
}

/*********************************************
 * CODE
 *********************************************/

.reveal code {
  font-family: monospace;
  background: #f5f5f5;
  padding: 2px 8px;
  border-radius: 3px;
}

.reveal pre {
  display: block;
  position: relative;
  width: 90%;
  margin: 20px auto;
  text-align: left;
  font-size: 0.55em;
  font-family: monospace;
  line-height: 1.2em;
  word-wrap: break-word;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
}

.reveal pre code {
  display: block;
  padding: 15px;
  overflow: auto;
  max-height: 400px;
  word-wrap: normal;
  background: #f5f5f5;
}

/*********************************************
 * TABLES
 *********************************************/

.reveal table {
  margin: auto;
  border-collapse: collapse;
  border-spacing: 0;
}

.reveal table th {
  font-weight: bold;
  background: var(--dark-teal);
  color: white;
}

.reveal table th,
.reveal table td {
  text-align: left;
  padding: 0.5em 1em 0.5em 1em;
  border-bottom: 1px solid var(--blue-gray);
}

.reveal table tr:last-child td {
  border-bottom: none;
}

/*********************************************
 * CUSTOM SLIDE BACKGROUNDS
 *********************************************/

.reveal .slides section.has-dark-background h1,
.reveal .slides section.has-dark-background h2,
.reveal .slides section.has-dark-background h3,
.reveal .slides section.has-dark-background h4,
.reveal .slides section.has-dark-background h5,
.reveal .slides section.has-dark-background h6 {
  color: #fff;
}

/*********************************************
 * WAVE BACKGROUNDS
 *********************************************/

.reveal .slides section.title-slide {
  background-color: white;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Corner wave graphics */
.corner-wave {
  position: fixed !important;
  z-index: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
  flex: none !important;
  width: calc(min(30vw, 450px)) !important;
  height: auto !important;
}

.corner-wave.top-left {
  top: 0 !important;
  left: 0 !important;
}

.corner-wave.bottom-right {
  bottom: 0 !important;
  right: 0 !important;
}

.reveal .slides section.section-divider {
  background-color: var(--vibrant-orange);
  color: white;
  min-height: 100% !important;
  width: calc(100% + 120px) !important;
  max-width: none !important;
  margin-left: -60px !important;
  margin-right: -60px !important;
  padding-left: 60px !important;
  padding-right: 60px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}

.reveal .slides section.section-divider h1,
.reveal .slides section.section-divider h2 {
  color: white;
}

/*********************************************
 * LOGO POSITIONING
 *********************************************/

.reveal .slide-logo {
  position: absolute;
  top: 20px;
  left: 20px;
  max-width: 200px;
  z-index: 10;
}

/*********************************************
 * PROGRESS BAR
 *********************************************/

.reveal .progress {
  background: rgba(0, 0, 0, 0.1);
  color: var(--vibrant-orange);
  height: 15px !important;
}

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

/*********************************************
 * SLIDE NUMBER
 *********************************************/

.reveal .slide-number {
  color: var(--dark-teal);
  background-color: rgba(255, 255, 255, 0.8);
  padding: 5px 10px;
  border-radius: 3px;
}

/*********************************************
 * CONTROLS
 *********************************************/

.reveal .controls {
  color: var(--vibrant-orange);
  z-index: 9999 !important;
}

.reveal .controls button {
  z-index: 9999 !important;
}

/*********************************************
 * CUSTOM UTILITY CLASSES
 *********************************************/

.text-orange {
  color: var(--vibrant-orange) !important;
}

.text-teal {
  color: var(--dark-teal) !important;
}

.text-green {
  color: var(--sage-green) !important;
}

.text-blue-gray {
  color: var(--blue-gray) !important;
}

.bg-orange {
  background-color: var(--vibrant-orange) !important;
}

.bg-teal {
  background-color: var(--dark-teal) !important;
}

.two-column {
  display: flex;
  gap: 2rem;
}

.two-column > * {
  flex: 1;
}

/*********************************************
 * FOOTER
 *********************************************/

.reveal .footer {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

.reveal .footer img {
  max-height: 40px;
  opacity: 0.8;
}
