:root {
  --accent-color: #c0392b;
  --secondary-color: #3498db;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --info-color: #9b59b6;
}

.reveal .slides section {
  text-align: left;
}

.reveal .slides section h1,
.reveal .slides section h2,
.reveal .slides section h3 {
  text-align: center;
  margin-bottom: 1em;
}

.reveal .slides section > h1:first-child,
.reveal .slides section > h2:first-child,
.reveal .slides section > h3:first-child {
  text-align: center;
}

.reveal .slides section:first-child {
  text-align: center;
}

.reveal pre code {
  border-radius: 8px;
  padding: 20px;
  font-size: 0.8em;
  line-height: 1.4;
}

.reveal ul, .reveal ol {
  margin-left: 0;
  padding-left: 1.5em;
}

.reveal li {
  margin-bottom: 0.5em;
}

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

.reveal em {
  color: var(--secondary-color);
}

.reveal a {
  color: white !important;
  text-decoration: underline !important;
}

.reveal blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 20px;
  font-style: italic;
  margin: 1em 0;
}

.reveal a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.reveal a:hover {
  color: var(--success-color);
}

.reveal section[data-background-color] h1,
.reveal section[data-background-color] h2,
.reveal section[data-background-color] h3 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}


.reveal .slides section[data-background-color="#27ae60"] strong,
.reveal .slides section[data-background-color="#27ae60"] .slides section strong {
  color: #fdfefe;
}
.reveal .slides section[data-background-color="#27ae60"] em {
  color: #d5f5e3;
}
.reveal .slides section[data-background-color="#27ae60"] a {
  color: #1a5276 !important;
}
.reveal .slides section[data-background-color="#27ae60"] a:hover {
  color: #154360 !important;
}
.reveal .slides section[data-background-color="#27ae60"] blockquote {
  border-left-color: #1a5276;
}

.reveal .slides section[data-background-color="#3498db"] strong {
  color: #fef9e7;
}
.reveal .slides section[data-background-color="#3498db"] em {
  color: #fdebd0;
}
.reveal .slides section[data-background-color="#3498db"] a {
  color: #1b2631 !important;
}
.reveal .slides section[data-background-color="#3498db"] a:hover {
  color: #fef9e7 !important;
}
.reveal .slides section[data-background-color="#3498db"] blockquote {
  border-left-color: #fef9e7;
}


.reveal .slides section[data-background-color="#f39c12"] strong {
  color: #1c1c1c;
}
.reveal .slides section[data-background-color="#f39c12"] em {
  color: #4a235a;
}
.reveal .slides section[data-background-color="#f39c12"] a {
  color: #1c1c1c !important;
}
.reveal .slides section[data-background-color="#f39c12"] a:hover {
  color: #4a235a !important;
}
.reveal .slides section[data-background-color="#f39c12"] blockquote {
  border-left-color: #1c1c1c;
}


.reveal .slides section[data-background-color="#9b59b6"] strong {
  color: #fdfefe;
}
.reveal .slides section[data-background-color="#9b59b6"] em {
  color: #f9ebea;
}
.reveal .slides section[data-background-color="#9b59b6"] a {
  color: #fdfefe !important;
}
.reveal .slides section[data-background-color="#9b59b6"] a:hover {
  color: #f9ebea !important;
}
.reveal .slides section[data-background-color="#9b59b6"] blockquote {
  border-left-color: #fdfefe;
}

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

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

@media (max-width: 768px) {
  .reveal h1 {
    font-size: 2em;
  }
  
  .reveal h2 {
    font-size: 1.5em;
  }
  
  .reveal h3 {
    font-size: 1.2em;
  }
  
  .reveal pre code {
    font-size: 0.7em;
  }
}

.reveal .slides section.present {
  opacity: 1;
  transform: translateX(0);
}

.reveal .slides section.past {
  opacity: 0;
  transform: translateX(-100%);
}

.reveal .slides section.future {
  opacity: 0;
  transform: translateX(100%);
}

.reveal .facet-code {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

.reveal .facet-code code {
  background: transparent;
  color: #fff;
}

.reveal .device {
  display: inline-block;
  background: #34495e;
  color: #ecf0f1;
  padding: 8px 15px;
  border-radius: 20px;
  margin: 5px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.reveal .benefits-drawbacks {
  display: flex;
  justify-content: space-between;
  gap: 2em;
}

.reveal .benefits-drawbacks > div {
  flex: 1;
}

#wave-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 100vh;
  background-color: white;
  z-index: 9999;
  display: none;
  transform: translateX(-100%);
  box-shadow: 0 0 30px 10px rgba(255, 255, 255, 0.6);
}

@keyframes brightness-pulse {
  0%, 100% { filter: brightness(0.3); }
  50% { filter: brightness(1.2); }
}

body.page-brightness-oscillator .reveal {
  animation: brightness-pulse 6s infinite ease-in-out;
}
