@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;
  padding-top: 300px;
}

nav {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 14px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  padding: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 80px;
  transition: transform 0.3s ease;
}

nav.hidden {
  transform: translateY(-100%);
}

nav img {
  display: inline-block;
}

nav .logo {
  height: 100%;
  width: auto;
  margin: 0 30px 0 0;
  position: absolute;
  left: 10%;
}

nav a:hover {
  color: #e4003b;
  cursor: url(img/background/cursors/Pointer.svg), pointer;
}

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

.nav-link {
  padding: 28px 20px;
  text-decoration: none;
  color: #000000;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 13px;
  border-bottom: 3px solid transparent;
  display: inline-block;
  height: 80px;
  line-height: 80px;
  padding-top: 0;
  padding-bottom: 0;
}

.nav-link:hover {
  border-bottom: 3px solid #e4003b;
  color: #e4003b;
}

.line {
  display: none;
}

.container {
  max-width: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: 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 rgba(0, 135, 220, 0.1);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s ease;
}

.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;
  outline: 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:focus {
  outline: none;
}

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;
}

::-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;
}

@media (max-width: 768px) {
  nav {
    height: 60px;
    justify-content: space-between;
    padding: 0 10px;
  }

  nav .logo {
    height: 40px;
    left: 10px;
    margin: 0;
  }

  .nav-link {
    padding: 20px 8px;
    font-size: 11px;
    height: 60px;
    line-height: 60px;
  }

  body {
    padding-top: 280px;
  }

  .author-section {
    top: 60px;
    padding: 30px 15px;
  }

  .author-section.hidden {
    transform: translateY(-200px);
  }
}

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

  h1 {
    font-size: 2em;
  }

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

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

  .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;
}

@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-block;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1em;
  cursor: pointer;
  margin: 10px auto;
  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;
}

.author-section {
  background: linear-gradient(135deg, #012169, #0087dc);
  color: white;
  padding: 40px 20px;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 40px;
  gap: 30px;
  flex-wrap: wrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, top 0.3s ease;
}

.author-section.hidden {
  transform: translateY(-220px);
}

.author-portrait {
  width: 150px;
  height: 150px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-portrait img {
  display: block;
}

.author-info {
  max-width: 600px;
  text-align: left;
}

.author-info h3 {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: white;
}

.author-info .author-title {
  font-size: 1.1em;
  color: #00bed6;
  margin-bottom: 15px;
  font-weight: 600;
}

.author-info p {
  font-size: 1em;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.listen-btn {
  background: white;
  color: #012169;
  border: none;
  padding: 15px 45px;
  border-radius: 50px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-top: 15px;
}

.listen-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: #f0f0f0;
}

.listen-btn:active {
  transform: translateY(-3px);
}

@media (max-width: 600px) {
  .author-section {
    flex-direction: column;
    text-align: center;
  }

  .author-info {
    text-align: center;
  }

  .author-portrait {
    width: 100px;
    height: 100px;
  }

  .author-info h3 {
    font-size: 1.4em;
  }

  .author-info p {
    font-size: 0.9em;
  }
}
