@font-face {
  font-family: Eliot Lord;
  src: url(Fonts/Eliothand-Regular.otf);
}

@font-face {
  font-family: Times;
  src: url(/Fonts/TIMES%20CY.TTF);
}

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

img {
  -webkit-user-drag: none;
}

body {
  opacity: 100%;
  font-family: Eliot Lord;
  font-size: 2.2dvw;
  margin: 0;
  user-select: none;
  -webkit-user-drag: none;
  cursor: url(img/background/cursors/Cursor.svg),
    url(img/background/Pointer.svg), pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: white;
  min-height: 100vh;
  overflow-x: hidden;
}

nav {
  font-family: "Times New Roman", Times, serif;
  font-weight: 900;
  font-size: 0.75em;
  top: 0;
  position: sticky;
  background: white;
  padding: 10px 0;
  width: 100%;
  text-align: right;
  z-index: 1000;
  color: #2a2d3c;
  display: inline-block;
}

nav img {
  top: 0;
  display: inline block;
}

nav a:hover {
  color: #2a48ab;
  font-weight: bolder;
  text-decoration: underline;
  text-decoration-thickness: 4px;
  cursor: url(img/background/cursors/Pointer.svg), pointer;
}

button:hover {
  cursor: url(img/background/cursors/Pointer.svg), pointer;
}

.nav-link {
  margin: 0 15px;
  text-decoration: none;
  color: #2c3e50;
  transition: color 0.3s ease;
}

.container {
  max-width: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  text-align: center;
}

h1 {
  font-family: Eliot Lord;
  color: #e4003b;
  margin-bottom: 10px;
  font-weight: 700;
}

.subtitle {
  color: #b50938;
  font-size: 1.1em;
  margin-bottom: 40px;
}

.fact-card {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  margin: 30px 0;
  box-shadow: 0 10px 30px #0087dc(0, 0, 0, 0.1);
  border-left: 5px solid #000000;
  border-right: 5px solid #000000;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fact-text {
  line-height: 1;
  color: #2c3e50;
  text-align: center;
}

.fact-category {
  display: inline-block;
  background: #0087dc;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

button {
  font-family: Eliot Lord;
  background: linear-gradient(45deg, #00bed6, #0087dc);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 1em;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(52, 152, 219, 0.4);
}

button:active {
  transform: translateY(-1px);
}

option {
  font-size: 2em;
  font-family: Eliot Lord;
}

.controls {
  margin: 30px 0;
}

.category-filter {
  margin: 20px 0;
}

.category-filter select {
  font-family: Eliot Lord;
  padding: 30px 20px;
  border-radius: 25px;
  border: 2px solid #3498db;
  font-size: 1em;
  color: #2c3e50;
  margin: 0 10px;
  cursor: url(img/background/cursors/Pointer.svg), pointer;
}

.stats {
  display: flex;
  justify-content: space-around;
  margin: 30px 0;
  padding: 20px;
  background: #ffffff;
  border-radius: 10px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2em;
  font-weight: bold;
  color: #3498db;
}

.stat-label {
  color: #7f8c8d;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 600px) {
  .container {
    padding: 20px;
  }

  h1 {
    font-size: 2em;
  }

  .fact-text {
    font-size: 1.1em;
  }

  .stats {
    flex-direction: column;
    gap: 15px;
  }
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  z-index: 1000;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  box-sizing: border-box;
}

nav .logo {
  height: 100px;
  width: auto;
  margin: 0;
}

nav {
  display: flex;
  gap: 20px;
}

nav .nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 100;
  padding: 8px 2px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

nav .nav-link a:hover {
  text-decoration: underline;
  font-weight: bolder;
}

body {
  padding-top: 80px;
  margin: 0;
}

@media (max-width: 768px) {
  .top-nav {
    flex-direction: column;
    padding: 5px;
    height: auto;
  }

  .top-nav nav {
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav:hover {
    font-weight: bolder;
  }

  body {
    padding-top: 120px;
  }

  .line {
    width: 112px;
    height: 47px;
    border-bottom: 1px solid #2a48ab;
    position: absolute;
  }
}

.quiz-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  width: 100%;
  overflow: hidden;
  animation: fadeIn 0.6s ease-out;
  justify-content: center;
  align-items: center;
}

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

.quiz-header {
  background: linear-gradient(135deg, #012169, #0087dc, #00bed6);
  color: white;
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quiz-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.quiz-header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.quiz-header p {
  font-size: 1.1em;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.quiz-content {
  padding: 40px;
}

.question-container {
  margin-bottom: 30px;
  opacity: 0;
  transform: translateX(20px);
  animation: slideIn 0.5s ease-out forwards;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.question-number {
  font-size: 0.9em;
  color: #667eea;
  font-weight: bold;
  margin-bottom: 10px;
}

.question-text {
  font-size: 1.3em;
  color: #333;
  margin-bottom: 25px;
  line-height: 1;
}

.answer-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.answer-btn {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.answer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.answer-btn.true {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.answer-btn.false {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.answer-btn:active {
  transform: translateY(0);
}

.feedback {
  margin-top: 20px;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.3s ease;
}

.feedback.show {
  opacity: 1;
  transform: scale(1);
}

.feedback.correct {
  background: linear-gradient(135deg, #a8e6cf, #02a95b);
  color: #006548;
}

.feedback.incorrect {
  background: linear-gradient(135deg, #ffb3ba, #e4003b);
  color: #8f0028;
}

.score-display {
  text-align: center;
  font-size: 1.2em;
  color: #00bed6;
  margin-bottom: 20px;
  font-weight: bold;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  margin: 20px 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #e4003b, #eb7a43, #faa61a, #02a95b);
  transition: width 0.3s ease;
  border-radius: 4px;
}

.next-btn,
.restart-btn {
  background: linear-gradient(135deg, #0087dc, #6d3177);
  color: white;
  border: none;
  text-align: center;
  align-items: center;
  display: inline-flex;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1em;
  cursor: pointer;
  margin: 10px 5px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
}

.next-btn.show,
.restart-btn.show {
  opacity: 1;
  transform: translateY(0);
}

.next-btn:hover,
.restart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.final-results {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, #faa61a 0%, #e4003b 100%);
  color: white;
  border-radius: 15px;
  margin: 20px 0;
}

.final-results h2 {
  font-size: 2em;
  margin-bottom: 15px;
}

.final-score {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.percentage {
  font-size: 2.5em;
  font-weight: bold;
  margin: 10px 0;
}
