/* Скрытие элементов */
.hidden {
  display: none;
}
body {
 background-image: url('./images/London3.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
 
}

/* Шапка сайта */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #6acde0;
  padding: 10px 20px;
  position: relative;
}

/* Навигация */
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.burger-menu {
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 30px;
  cursor: pointer;
  padding: 3px 9px;
  background: transparent;
  border: none;
  display: none;
  transition: transform 0.3s ease;
  color: #fff;
  border-radius: 40px;
}
.burger-menu:hover {
  background-color: #e0e0e0;

}

.burger-menu.active {
  font-size: 34px;
  padding: 5px 13px;

}

.nav-list {
  list-style: none;
  display: none;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
  background-color: none;
}

.nav-list li {
  margin-left: 20px;
}

.nav-list a {
  font-family: Arial, sans-serif;
  text-decoration: none;
  color: #000;
  font-size: 16px;
}

.nav-list a:hover {
  color: #0fb30f;
  text-decoration: underline;
}

/* ... (предыдущие стили остаются без изменений) ... */

/* Стили для подсветки ответов */
.option-btn {
    display: block;
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    cursor: pointer;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.option-btn.correct {
    background-color: #90ee90; /* Зеленый для правильного ответа */
    border-color: #32cd32;
    color: #000;
}

.option-btn.incorrect {
    background-color: #ff6347; /* Красный для неправильного ответа */
    border-color: #dc143c;
    color: #fff;
}

/* ... (остальные стили остаются без изменений) ... */

/* Мобильная версия */
@media (max-width: 768px) {
  .burger-menu {
    display: block;
    justify-self: start;
  }

  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 15px;
    width: 200px;
    flex-direction: column;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    border-radius: 5px;
    background-color: #fff;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-list li {
    margin: 15px 0;
    text-align: left;
  }
}

/* Десктопная версия */
@media (min-width: 769px) {
  .nav-list {
    display: flex !important;
  }

  .burger-menu {
    display: none !important;
  }
}

/* Логотип */
.logo img {
  max-width: 45px;
  height: auto;
}

.logo img:hover {
  transform: scale(1.5);
  transition: transform 0.3s ease;
  position: relative;
  left: 20px;
}

/* Кастомный выпадающий список */
.language-selector {
  position: relative;
}

.custom-select {
  position: relative;
  width: 100px;
  font-family: Arial, sans-serif;
}

.custom-select .select-selected {
  padding: 8px 12px;
  cursor: pointer;
  
  position: relative;
  background-color: none;
  border-radius: 4px;
}

.custom-select .select-selected:after {
  content: '\25BC';
  color: #3970d7;
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
}

.custom-select .select-items {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  border-top: none;
  display: none;
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 4px 4px;
}

.custom-select .select-items.select-hide {
  display: none;
}

.custom-select .select-items:not(.select-hide) {
  display: block;
}

.flag-option {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.flag-option img {
  margin-right: 8px;
  border: 1px solid #ddd;
  border-radius: 2px;
}

.flag-option span {
  font-size: 14px;
  color: #333;
}

.flag-option:hover {
  background-color: #f0f0f0;
}

.flag-option.selected {
  background-color: #e0e0e0;
  font-weight: bold;
}

/* Секции и остальные стили */
.headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.headline h1 {
  font-family: 'Arial', sans-serif;
  text-align: center;
  color: #d75c2c;
  font-size: 24px;
  margin-bottom: 20px;
}

.headline p {
  font-family: 'Arial', sans-serif;
  text-align: center;
  color: #7862d8;
  font-size: 18px;
  margin-bottom: 20px;
}

.headline p span {
  font-family: 'Arial', sans-serif;
  text-align: center;
  color: #cc1e98;
  font-size: 18px;
  margin-bottom: 20px;
}


input[type="text"], select {
  padding: 10px;
  margin: 10px 20px;
  font-size: 16px;
  width: 200px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  padding: 10px 20px;
  margin: 5px;
  font-size: 16px;
  cursor: pointer;
  color: #333;
  background-color: white;
  border: none;
  border-radius: 5px;
  border: solid 1px rgb(86, 224, 18);
}

button:hover {
  color: #333;
}

a.result_link, a.top_link {
  display: inline-block;
  margin: 10px 0;
  color: #007BFF;
  text-decoration: none;
}

.result_link:hover, .top_link:hover {
  text-decoration: none;
  color: #32cd32;
}

div#two {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

div#two p {
  font-family: 'Arial', sans-serif;
  text-align: center;
 color: #a414dc;
  font-size: 18px;
  margin-bottom: 20px;
}

div#two button {
  padding: 10px 20px;
  margin: 5px;
  font-size: 16px;
  cursor: pointer;
  color: #333;
  border: none;
  border-radius: 5px;
  border: solid 1px rgb(86, 224, 18);
}

div#two button:hover {
  color: rgb(86, 224, 18);
  
  transition: background-color 0.3s ease;
}

div#three {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

div#three p {
  font-family: 'Arial', sans-serif;
  text-align: center;
 color: #a414dc;
  font-size: 18px;
}

div#leaderboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

div#resultsList div {
  margin: 5px 0;
  padding: 10px;
  width: 400px;
  text-align: center;
  color: #a414dc;
  font-family: 'Arial', sans-serif;
}

h2#leaderboardTitle {
  font-family: 'Arial', sans-serif;
  text-align: center;
  color: #d75c2c;
  font-size: 24px;
  margin-bottom: 20px;
}

div#top10-list.top-container div {
  font-family: 'Arial', sans-serif;
  text-align: center;
  font-size: 18px;
  margin-bottom: 20px;
  color: #a414dc;
}

div#top10-list.top-container p {
  font-family: 'Arial', sans-serif;
  text-align: center;
  color: #a414dc;
  font-size: 18px;
  margin-bottom: 20px;
}

/* Новый стиль для контейнера с прокруткой */
.scroll-container {
  max-height: 300px; /* Фиксированная высота, можно изменить */
  overflow-y: auto; /* Прокрутка по вертикали */
  width: 400px; /* Ширина соответствует div#resultsList div */
  border: 1px solid #ccc; /* Граница для визуального разделения */
  border-radius: 5px;
  margin: 10px 0;
  background-color: #fff; /* Фон для читаемости */
}