body {
  position: relative;
  font-family: 'Roboto', sans-serif;
  padding-bottom: 80px;
  box-sizing: border-box;
  min-height: 100vh;
}

footer {
  position: absolute;
  bottom: 0;
  width: 100%;
}

footer a:link {
  color: rgb(131, 131, 173);
}

.table-primary {
  font-weight: bold;
}

.table-warning {
  background-color: #fff3cd !important;
}

.table-secondary {
  background-color: #e2e3e5 !important;
}

.table-danger {
  background-color: #f8d7da !important;
}

.option-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.option-btn.selected:disabled {
  border-width: 3px;
}

#timer {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin: 20px 0;
}

.option-btn {
  transition: all 0.3s;
}

.option-btn.selected {
  background-color: #0d6efd;
  color: white;
}

.option-btn.correct {
  background-color: #198754;
  color: white;
}

.option-btn.incorrect {
  background-color: #dc3545;
  color: white;
}

#quizContainer,
#waitingContainer,
#resultsContainer {
  max-width: 800px;
  margin: 0 auto;
}

.question-block {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  background-color: #f9f9f9;
}

.option-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.option-text {
  flex: 1;
  margin-left: 10px;
}

.question-image-preview {
  max-width: 200px;
  max-height: 150px;
  margin-top: 10px;
}

.table-primary {
  font-weight: bold;
}

.table-warning {
  background-color: #fff3cd !important;
}

.table-secondary {
  background-color: #e2e3e5 !important;
}

.table-danger {
  background-color: #f8d7da !important;
}

#studentsList {
  max-height: 300px;
  overflow-y: auto;
}

.student-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
}

.student-item:last-child {
  border-bottom: none;
}

.hero-section {
  position: relative;
  background-image: linear-gradient(135deg, #29074d50 0%, #11387c50 100%),
    url('../img/hero.webp');
  background-size: cover;
  background-position: center center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero-section .hero-container {
  padding: 100px 0;
  backdrop-filter: blur(1px);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.question-mark {
  position: absolute;
  font-size: 70px;
  /* 70% от высоты блока */
  color: rgba(255, 255, 255, 0.557);
  /* полупрозрачный белый */
  font-family: Arial, sans-serif;
  font-weight: bold;
  pointer-events: none;
  z-index: 1;
  bottom: -20%;
  /* начальная позиция снизу */
  opacity: 0;
  /* animation: floatUp 15s linear infinite; */
}

.nav-bar {
  z-index: 5;
}

/* Анимация движения снизу вверх */
@keyframes floatUp1 {
  0% {
    transform: translateY(100%) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.4;
  }

  90% {
    opacity: 0.4;
  }

  100% {
    transform: translateY(-120vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes floatUp2 {
  0% {
    transform: translateY(100%) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.4;
  }

  90% {
    opacity: 0.4;
  }

  100% {
    transform: translateY(-120vh) rotate(-360deg);
    opacity: 0;
  }
}

@keyframes floatUp3 {
  0% {
    transform: translateY(100%) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.4;
  }

  90% {
    opacity: 0.4;
  }

  100% {
    transform: translateY(-180vh) rotate(240deg);
    opacity: 0;
  }
}


/* Вариации анимации для разных знаков вопроса */
.question-mark:nth-child(odd) {
  animation-duration: 20s;
  animation-delay: -5s;
}

.question-mark:nth-child(even) {
  animation-duration: 25s;
  animation-delay: -10s;
}

.hero-section h1 {
  font-family: "Preahvihear", "Montserrat", "Arial Narrow", "Arial", sans-serif;
  ;
  font-size: 64px;
}

.btn,
h2,
h3,
h4,
h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

@media (min-width: 900px) {
  .hero-section .hero-container {
    padding: 200px 0;
    width: 100% !important;
  }

  .hero-section h1 {
    font-size: 100px !important;
  }
}

.feature-card {
  transition: transform 0.3s;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
}

#quizTitle {
  font-size: 30px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  transition: .5s;
}

@media (max-width: 600px) {
  #quizTitle {
  font-size: 20px;
  }
}

.bg-dark {
  background-color: royalblue !important;
}

#quizTitle:hover {
  transform: scale(1.1);
}

#questionText {
  position: relative;
  text-align: center;
  font-size: 28px;
  font-family: 'Rubik', 'Montserrat', sans-serif;
  font-weight: 500;
}

#questionText::before {
  font-size: 18px;
  font-family: 'Montserrat', sans-serif;
  content: 'вопрос';
  position: absolute;
  display: inline-block;
  padding: 6px 12px;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #198754;
  color: white;
  border-radius: 10px;
}

.mt-6 {
  margin-top: 30px;
}