:root {
  --accent-color: #ffae42;
  --accent-color-hover: #ffebcd;
  --awards-color: #2f4858;
  --black: #000;
  --border-color: #e6e6e6;
  --checkbox-bg: #f5f0e4;
  --dark-gray: #686867;
  --error-color: #d64e2f;
  --footer-color: #726f68;
  --form-background: #fbfbfb;
  --form-border: #707070;
  --gray: #f1f3f4;
  --header-border: #b1b1b1;
  --light-gray: #e2e2ea;
  --lighter-text-color: #adadad;
  --medium-gray: #d6d6d6;
  --primary-color: #2e2e2e;
  --primary-color-hover: #3d3d3d;
  --success-color: #7cc52c;
  --white: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  overflow: hidden;
  background: var(--primary-color);
  color: var(--white);
}

/* Smooth transitions */
@media (prefers-reduced-motion: no-preference) {
  .slide {
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
  }

  .fade-in {
    animation: fadeIn 0.6s ease-in;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .count-up {
    animation: pulse 0.5s ease-in-out;
  }

  @keyframes pulse {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide,
  .fade-in,
  .count-up {
    animation: none !important;
    transition: none !important;
  }
}

/* Progress bar */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1000;
}

.progress-bar {
  height: 100%;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

/* Navigation areas */
.nav-area {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 30%;
  cursor: pointer;
  z-index: 100;
  user-select: none;
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

.nav-left {
  left: 0;
  justify-content: flex-start;
  padding-left: 1rem;
}

.nav-right {
  right: 0;
  justify-content: flex-end;
  padding-right: 1rem;
}

/* Navigation arrows */
.nav-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 174, 66, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent-color);
  transition: all 0.3s ease;
  opacity: 0.6;
  pointer-events: none;
}

.nav-area:hover .nav-arrow {
  opacity: 1;
  background: rgba(255, 174, 66, 0.3);
  transform: scale(1.1);
}

.nav-left.hidden .nav-arrow,
.nav-right.hidden .nav-arrow {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .nav-arrow {
    transition: opacity 0.3s ease;
  }

  .nav-area:hover .nav-arrow {
    transform: none;
  }
}

/* Hide arrows on mobile to avoid clutter */
@media (max-width: 768px) {

  .nav-area {
    align-items: start;
  }

  .nav-arrow {
    width: 30px;
    height: 30px;
    font-size: 20px;
    margin-top: 28px;
  }

  .nav-right {
    padding-right: 4px;
  }
  .nav-left {
    padding-left: 4px;
  }
}

/* Slide animations */
.slide {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Quiz styles */
.quiz-option {
  transition: all 0.2s ease;
  cursor: pointer;
}

.quiz-option:hover:not(.correct):not(.incorrect) {
  background: var(--primary-color-hover);
  transform: translateX(4px);
}

.quiz-option.correct {
  background: var(--success-color) !important;
  color: var(--white);
  border-color: var(--success-color);
}

.quiz-option.incorrect {
  background: var(--error-color) !important;
  color: var(--white);
  border-color: var(--error-color);
}

.quiz-option.disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Button styles */
.btn-primary {
  background: var(--accent-color);
  color: var(--primary-color);
  transition: all 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-color-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 174, 66, 0.3);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-color);
}

/* Country flags emoji */
.flag {
  font-size: 1.5em;
  margin-right: 0.5rem;
}

/* Bar chart styles */
.bar {
  background: var(--accent-color);
  transition: width 0.8s ease-out;
}

/* Tooltip */
.tooltip {
  position: absolute;
  background: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.tooltip.show {
  opacity: 1;
}
