:root {
  --background-color: #1a1a2e;
  --text-color: #e6e6e6;
  --accent-color: #4361ee;
  --correct-color: #4caf50;
  --correct-bg: rgba(76, 175, 80, 0.2);
  --incorrect-color: #ff6b6b;
  --incorrect-bg: rgba(255, 107, 107, 0.2);
  --hover-color: rgba(67, 97, 238, 0.2);
  --explanation-bg: rgba(255, 255, 255, 0.05);
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  overflow-x: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}

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

.reveal .slides section {
  height: 100%;
  overflow-y: auto !important;
  padding: 40px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 8px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  max-width: 100vw;
  word-break: break-word;
  overflow-wrap: break-word;
}

.reveal h1 {
  font-size: 2.4em;
  margin-bottom: 0.8em;
  color: #4cc9f0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.reveal h2 {
  font-size: 1.9em;
  margin-bottom: 0.8em;
  color: #4cc9f0;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 10px;
}

.reveal h3 {
  font-size: 1.5em;
  color: #4cc9f0;
  margin-bottom: 0.5em;
}

.reveal p {
  font-size: 1.4em;
  line-height: 1.5;
  margin-bottom: 1em;
}

.answer-choice {
  font-size: 1.3em;
  padding: 15px 20px;
  margin: 15px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 4px solid transparent;
}

.answer-choice:hover {
  background-color: var(--hover-color);
  border-left: 4px solid var(--accent-color);
  transform: translateX(5px);
}

.answer-choice.correct {
  background-color: var(--correct-bg);
  border-left: 4px solid var(--correct-color);
}

.answer-choice.incorrect {
  background-color: var(--incorrect-bg);
  border-left: 4px solid var(--incorrect-color);
}

.answer-marker {
  display: none;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3em;
}

.correct .answer-marker {
  color: var(--correct-color);
}

.incorrect .answer-marker {
  color: var(--incorrect-color);
}

.question-container {
  margin-bottom: 40px;
}

.explanation {
  font-size: 1.2em;
  padding: 20px;
  margin-top: 25px;
  background-color: var(--explanation-bg);
  border-radius: 8px;
  border-left: 4px solid #4cc9f0;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.explanation ul {
  margin-left: 25px;
}

.explanation li {
  margin-bottom: 10px;
  line-height: 1.4;
}

.show-explanation-btn {
  font-size: 1.2em;
  padding: 12px 24px;
  margin-top: 20px;
  background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.show-explanation-btn:hover {
  background: linear-gradient(135deg, #3a0ca3 0%, #4361ee 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Progress bar styling */
.reveal .progress {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, #4361ee 0%, #4cc9f0 100%);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  z-index: 10;
}

/* Animation for correct answer */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.pulse {
  animation: pulse 1.5s infinite;
}

.intro-slide, .thankyou-slide {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #4361ee 100%);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.intro-content, .thankyou-content {
  text-align: center;
  width: 100%;
}

.intro-content h1, .thankyou-content h1 {
  font-size: 3em;
  color: #4cc9f0;
  margin-bottom: 0.5em;
  letter-spacing: 2px;
  text-shadow: 0 2px 16px rgba(67, 97, 238, 0.3);
  font-family: 'Segoe UI', 'Arial Rounded MT Bold', Arial, sans-serif;
}

.intro-content p, .thankyou-content p {
  font-size: 1.6em;
  color: #e6e6e6;
  opacity: 0.85;
  margin: 0.5em 0;
}

.intro-content .presenter, .thankyou-content .presenter {
  font-size: 1.2em;
  color: #b4b4b4;
  margin-top: 2em;
  letter-spacing: 1px;
  font-style: italic;
}

.thankyou-content h1 {
  color: #f72585;
  text-shadow: 0 2px 16px rgba(247, 37, 133, 0.3);
}

.thankyou-content p {
  color: #fff;
}

.intro-slide p {
  font-size: 1.8em;
  color: #e6e6e6;
  opacity: 0.8;
}
