@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
/* Убрать скрол */
:root::-webkit-scrollbar{
  display: none;
}
:root {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
/* ------------ */
input.no-select:focus {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input.no-select::selection {
  background: transparent;
}
input.no-select::-moz-selection {
  background: transparent;
}
* {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: -moz-none;
  -o-user-select: none;
  user-select: none;
  font-family: Georgia, sans-serif;
}
.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none; /* Safari */
       -khtml-user-select: none; /* Konqueror HTML */
         -moz-user-select: none; /* Old versions of Firefox */
          -ms-user-select: none; /* Internet Explorer/Edge */
              user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}
::selection { background: transparent; }
::-moz-selection { background: transparent; }

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background: linear-gradient(217deg, rgba(12, 12, 249, 0.9), rgba(255, 0, 0, 0.121) 73.71%),
            linear-gradient(127deg, rgba(245, 170, 32, 0.8), rgba(0, 255, 0, 0.152) 80.71%),
            linear-gradient(336deg, rgba(39, 244, 39, 0.9), rgba(0, 0, 255, 0.392) 73.71%);
  background-attachment: fixed;
  background-size: 100% 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

body.dark-theme {
  background: linear-gradient(217deg, rgba(214, 151, 15, 0.829), rgba(255,0,0,0) 70.71%),
  linear-gradient(127deg, rgba(155, 141, 17, 0.767), rgba(0,255,0,0) 80.71%),
  linear-gradient(336deg, rgba(31, 113, 6, 0.87), rgba(0, 0, 255, 0.137) 70.71%);
  background-size: auto;
  color: #000000;
  filter: opacity(95%) drop-shadow(0px 1px 2px rgb(98, 98, 180));
}


#menu {
  margin-top: 20px;
  flex-direction: column;
  text-align: center;
  align-items: center;
  display: inline-flex;
  flex-direction: column;
  margin: auto;
}

#menu h1 {
  /* font-size: 4rem; Размер текста зависит от ширины экрана */
  font-weight: bold;
  margin: 3px;
  color: #ffffff;
  text-transform: uppercase;
  /* margin-bottom: 2vh; /* Отступ зависит от высоты экрана
  margin-top: 25vh; */
  letter-spacing: 2px;
  animation: lights 5s 750ms linear infinite;
  /* white-space: nowrap; Запрещаем перенос текста */
}

@keyframes lights {
  0% {
    color: hsl(230, 40%, 80%);
    text-shadow:
      0 0 1em hsla(320, 100%, 50%, 0.2),
      0 0 0.125em hsla(320, 100%, 60%, 0.3),
      -1em -0.125em 0.5em hsla(40, 100%, 60%, 0),
      1em 0.125em 0.5em hsla(200, 100%, 60%, 0);
  }
  
  30% { 
    color: hsl(230, 80%, 90%);
    text-shadow:
      0 0 1em hsla(320, 100%, 50%, 0.5),
      0 0 0.125em hsla(320, 100%, 60%, 0.5),
      -0.5em -0.125em 0.25em hsla(40, 100%, 60%, 0.2),
      0.5em 0.125em 0.25em hsla(200, 100%, 60%, 0.4);
  }
  
  40% { 
    color: hsl(230, 100%, 95%);
    text-shadow:
      0 0 1em hsla(320, 100%, 50%, 0.5),
      0 0 0.125em hsla(320, 100%, 90%, 0.5),
      -0.25em -0.125em 0.125em hsla(40, 100%, 60%, 0.2),
      0.25em 0.125em 0.125em hsla(200, 100%, 60%, 0.4);
  }
  
  70% {
    color: hsl(230, 80%, 90%);
    text-shadow:
      0 0 1em hsla(320, 100%, 50%, 0.5),
      0 0 0.125em hsla(320, 100%, 60%, 0.5),
      0.5em -0.125em 0.25em hsla(40, 100%, 60%, 0.2),
      -0.5em 0.125em 0.25em hsla(200, 100%, 60%, 0.4);
  }
  
  100% {
    color: hsl(230, 40%, 80%);
    text-shadow:
      0 0 1em hsla(320, 100%, 50%, 0.2),
      0 0 0.125em hsla(320, 100%, 60%, 0.3),
      1em -0.125em 0.5em hsla(40, 100%, 60%, 0),
      -1em 0.125em 0.5em hsla(200, 100%, 60%, 0);
  }
  
}

#menu h1:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 0;
  height: 0;
  margin: auto;
  border-radius: 100%;
  background: transparent;
  display: block;
  /* box-shadow: 0 0 1px 5px rgba(255, 255, 255, 0.6),
    2px 0 2px 5px rgba(255, 255, 255, 0.6),
    -2px 0 3px 5px rgba(255, 255, 255, 0.6),
    2px 0 3px 2px rgba(255, 255, 255, 0.6),
    -2px 0 3px 2px rgba(255, 255, 255, 0.6); */
}

h1 span {
  position: relative;
  top: 20px;
  display: inline-block;
  -webkit-animation: bounce 0.4s ease infinite alternate;
  font-size: 1.2rem;
  color: #fff;
  text-shadow: 0 1px 0 #ccc, 0 2px 0 #ccc, 0 3px 0 #ccc, 0 4px 0 #ccc,
    0 5px 0 #ccc, 0 6px 0 transparent, 0 7px 0 transparent, 0 8px 0 transparent,
    0 9px 0 transparent, 0 10px 10px rgba(0, 0, 0, 0.4);
}

h1 span:nth-child(2) {
  -webkit-animation-delay: 0.1s;
}

h1 span:nth-child(3) {
  -webkit-animation-delay: 0.2s;
}

h1 span:nth-child(4) {
  -webkit-animation-delay: 0.3s;
}

h1 span:nth-child(5) {
  -webkit-animation-delay: 0.4s;
}

h1 span:nth-child(6) {
  -webkit-animation-delay: 0.5s;
}

h1 span:nth-child(7) {
  -webkit-animation-delay: 0.6s;
}

h1 span:nth-child(8) {
  -webkit-animation-delay: 0.2s;
}

h1 span:nth-child(9) {
  -webkit-animation-delay: 0.3s;
}

h1 span:nth-child(10) {
  -webkit-animation-delay: 0.4s;
}

h1 span:nth-child(11) {
  -webkit-animation-delay: 0.5s;
}

h1 span:nth-child(12) {
  -webkit-animation-delay: 0.6s;
}

h1 span:nth-child(13) {
  -webkit-animation-delay: 0.7s;
}

h1 span:nth-child(14) {
  -webkit-animation-delay: 0.8s;
}

/* ANIMATION */
@-webkit-keyframes bounce {
  100% {
    top: -20px;
    text-shadow: 0 1px 0 #ccc, 0 2px 0 #ccc, 0 3px 0 #ccc, 0 4px 0 #ccc,
      0 5px 0 #ccc, 0 6px 0 #ccc, 0 7px 0 #ccc, 0 8px 0 #ccc, 0 9px 0 #ccc,
      0 50px 25px rgba(0, 0, 0, 0.2);
  }
}

button#theme-toggle {
  background: #8e9297;
  border: none;
  color: #ffffff;
  padding: 3px 5px;
  font-size: 1rem;
  cursor: pointer;
  margin: 5px;
  border-radius: 5px;
}
button#theme-toggle:hover {
  /* background-color: var(--color-h_buttons); */
  box-shadow: 0px 0px 9px rgba(0, 0, 0, 0.863);
}

.container {
  margin-top: 20px;
  flex-direction: column;
  font-weight: 600;
  text-align: center;
  align-items: center;
  margin: auto;
  display: inline-flex;
  margin-left: auto;
  margin-right: auto;
}

.hamster {
  cursor: pointer;
  transition: transform 0.2s;
  position: relative;
}

h1 {
  font-size: 1.5rem;
}

.hamster img {
  width: 50wh;
  height: 50vh;
  border-radius: 10px;
  pointer-events: none;
}

.hamster:active {
  transform: scale(0.95);
}

.hamster #tap {
  margin-left: -20vw;
  margin-top: 32vh;
  position: absolute;
  width: 50px;
  height: 50px;
  user-select: none;
  z-index: 10;
}

.counter {
  margin-top: 20px;
  font-size: 24px;
  font-weight: bold;
}

@keyframes coin-pop {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-100px) scale(0.5); opacity: 0.1; }
}

.coin-animation {
  position: absolute;
  width: 150px;
  height: 150px;
  background-image: url('dnk.gif');
  background-size: cover;
  animation: coin-pop 0.9s ease-out;
  user-select: none;
  z-index: 17;
}

#shop-toggle, #back-button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 1.1rem;
  cursor: pointer;
  /* border: none;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  transition: background-color 0.3s; */
}

#sound-toggle {
  margin-top: 1px;
  padding: 3px 5px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  background-color: #8e9297;
  color: white;
  border-radius: 5px;
  transition: background-color 0.3s;
} 

#sound-toggle:hover {
  box-shadow: 0px 0px 9px rgba(0, 0, 0, 0.863);
}

/* #sound-toggle:hover, #shop-toggle:hover, #back-button:hover {
  background-color: rgb(0, 86, 179);
  box-shadow: 2px 5px 7px rgba(0, 86, 179, 0.445);
} */

.shop-container { 
  display: none;
  text-align: center;
  overflow: hidden;
  border: none;
}

/* Стили для карусели */
.carousel-item:hover {
  transform: scale(1.05);
}

.carousel-item img {
  /* width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: cover; */
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  pointer-events: none;
}

.carousel-item p {
  margin: 5px 0;
  font-size: 14px;
  font-weight: 600;
}

/* .carousel-button {
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  border-radius: 40%;
  transition: background-color 0.3s;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 11;
}

.carousel-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.carousel-button.prev {
  left: 0;
}

.carousel-button.next {
  right: 0;
} */

/* Стили для карусели */
.carousel {
  display: flex;
  align-items: center;
  position: relative;
  width: 100vh;
  height: auto;
  /* max-width: 100%; */
  margin: 20px auto;
  padding: 0 30px; /* Отступы для кнопок */
}

.carousel-items {
  display: flex;
  overflow-x: auto; /* Горизонтальная прокрутка */
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
  width: 100%;
  gap: 15px;
  padding: 10px 0;
}

/* Скрыть scrollbar */
.carousel-items::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 80%; /* Ширина карточки 80% экрана на мобильных */
  scroll-snap-align: center;
  min-width: auto;
  max-width: 200px;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 15px;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.carousel-item img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 10px;
}

/* Кнопки для десктопов */
@media (hover: hover) {
  .carousel-button {
      display: block;
  }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .carousel {
      padding: 0 15px;
      /* width: 100%; */
  }

  .popup-content p {
    padding: 15px;
    font-size: 14px;
  }

  h1 {
    font-size: 1.3rem;
    padding: 0 10px;
  }

  #menu h1 {
    font-size: 1.3rem; 
  }

  #sound-toggle {
    font-size: 1rem;
  }

  .hamster img {
    width: 40wh;
    height: 40vh;
  }
  
  .carousel-item {
      flex: 0 0 85%;
      min-width: auto;
  }

  .carousel-button {
      display: none; /* Скрыть кнопки на мобильных */
  }
}

/* Стили для popup-окна */
.popup1 {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.984);
  -webkit-box-shadow: 0px 0px 100px 2000px rgba(24, 24, 26, 0.637);
  -moz-box-shadow: 0px 0px 100px 2000px rgba(24, 24, 26, 0.637);
  box-shadow: 0px 0px 100px 2000px rgba(24, 24, 26, 0.637);
  border-radius: 10px;
  text-align: center;
  z-index:16;
}

.popup1 h2 {
  margin: 0 0 20px;
  text-shadow: #5dc8e5 0.5px 0.5px 2px;
}

.popup1 p {
  font-size: 16px;
  color: #0c0a02;
  margin-bottom: 20px;
  font-weight:700;
}

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 16;
}

.popup-content {
  background-color: rgba(255, 255, 255, 0.984);
  text-shadow: #5dc8e5 0.5px 0.5px 2px;
  padding: 20px;
  margin: 0 15px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.445);
}

.popup-content p {
  margin: 0 0 15px;
  padding: 18px;
  font-size: 20px;
  font-weight: 600;
}

.popup-content button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  /* background-color: #007bff;
  color: white;
  border-radius: 5px;
  transition: background-color 0.3s; */
}
/* 
.popup-content button:hover {
  background-color: #0056b3;
} */

/* Стили для фона с дождем из биткоинов */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.coin-rain {
  position: absolute;
  top: -50px;
  width: 30px;
  height: 30px;
  background-image: url('dnk.gif');
  background-size: cover;
  animation: fall linear infinite;
}

@keyframes fall {
  to {
      transform: translateY(100vh);
  }
}

/* Стили для лидерборда */
.scrollable-container {
  text-align: left;
  width: 90hw; 
  height: 70vh; 
  border: 1px solid #ccc;
  overflow-y: auto; /* Или overflow: scroll; */
  /* overflow-x: auto;  overflow-y: hidden;  */
}

.leaderboard-container {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.99);
  padding: 5px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 17;
  max-width: 1000px;
  width: 100%;
  text-align: center;
}
/* Общий стиль для всего документа (можно применить к конкретному элементу) */
::-webkit-scrollbar {
  width: 12px; /* Ширина скроллбара */
  height: 12px; /* Высота (для горизонтального скроллбара)*/
}

/* "Бегунок" (thumb) */
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00c6fb, #005bea); /* Цвет бегунка */
  border-radius: 6px; /* Скругление углов */
  border: 3px solid transparent; /* Прозрачная рамка, нужна для background-clip */
  background-clip: padding-box;  /* Чтобы рамка не перекрывала цвет фона */
}

/* "Бегунок" при наведении */
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #005bea, #00c6fb); /* Цвет бегунка при наведении */
}

/* "Дорожка" (track) */
::-webkit-scrollbar-track {
  background-color: #f0f0f0; /* Цвет дорожки */
  border-radius: 6px; /*Скругление углов дорожки*/
}

/* Углы (между горизонтальной и вертикальной полосами) */
::-webkit-scrollbar-corner {
  background-color: #f0f0f0; /*Цвет углов*/
}

/*Пример применения к конкретному элементу*/
.my-scrollable-element::-webkit-scrollbar {
    /* ... стили ... */
}
/* .leaderboard-list {
  margin-top: 10px;
  max-height: 200px;
  overflow-y: auto;
} */

/* .leaderboard-item {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  border-bottom: 1px solid #ddd;
} */

/* .leaderboard-item:last-child {
  border-bottom: none;
} */

#leaderboard-close, #study-close {
  margin-top: 15px;
  margin-bottom: 15px;
  padding: 10px 20px;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  /* background-color: #007bffd3;
  color: white;
  border-radius: 5px;
  transition: background-color 0.3s; */
}

/* #leaderboard-close:hover {
  background-color: #0056b3;
} */

#settings {
  margin-top: 20px;
  flex-direction: column;
  font-weight: 600;
  text-align: center;
  align-items: center;
  margin: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}


#study-toggle, #difficultyBtn, #settingsBtn, #backBtn, #backDifficultyBtn, #studyBtn {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 1.1rem;
  cursor: pointer;
  /* border: none;
  background-color: #28a745;
  color: white;
  border-radius: 5px;
  transition: background-color 0.3s; */
}

/* #study-toggle:hover, #difficultyBtn:hover, #settingsBtn:hover, #backBtn:hover, #backDifficultyBtn:hover {
  background-color: #218838;
  box-shadow: 2px 5px 7px rgba(0, 179, 15, 0.445);
} */

.global-badge {
  background: #fc3f1d;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8em;
  margin-left: 10px;
}

.global-entry {
  background-color: #fff9e6;
}

/* Стили для popup-окна с задачей */
.task-popup {
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  display: none;
  font-size: 1.5rem;
  position: fixed;
  top: 47%;
  left: 50%;
  /* width: 85%; */
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.99);
  padding: 30px;
  border-radius: 10px;
  -webkit-box-shadow: 0px 0px 100px 2000px rgba(24, 24, 26, 0.637);
  -moz-box-shadow: 0px 0px 100px 2000px rgba(24, 24, 26, 0.637);
  box-shadow: 0px 0px 100px 2000px rgba(24, 24, 26, 0.637);
  z-index: 14;
  text-align: center;
}

.task-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

#task-question {
  text-shadow: #5dc8e5 0.5px 0.5px 2px;
  white-space: nowrap;
  width: 100%;
}

#task-answer {
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
  padding: 0.475rem 0.75rem;
  margin-bottom: 15px;
  line-height: 2;
  background-clip: padding-box;
  border: 1px solid #bdbdbd;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#task-submit {
  font-size: 1rem;
  padding: 10px 20px;
  background: #007bff;
  color: white;
  border: none;
  /* border-radius: 5px; */
  cursor: pointer;
  z-index: 15;
}

.liquid-button {
  position: relative;
  padding: 10px 25px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  outline: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Эффект растягивания */
.liquid-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease;
  border-radius: 50%;
  opacity: 0;
}

.liquid-button:hover::before {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Эффект пузырьков */
.liquid-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: bubble 1s ease-in-out infinite;
}

@keyframes bubble {
  0% {
      transform: translate(-50%, -50%) scale(0);
      opacity: 1;
  }
  50% {
      transform: translate(-50%, -150%) scale(1);
      opacity: 0.5;
  }
  100% {
      transform: translate(-50%, -250%) scale(1.5);
      opacity: 0;
  }
}

/* Анимация растягивания */
.liquid-button:hover {
  animation: stretch 0.5s ease-in-out forwards;
}

@keyframes stretch {
  0% {
      transform: scale(1);
  }
  50% {
      transform: scale(1.1, 0.9);
  }
  100% {
      transform: scale(1);
  }
}

/* Изменение цвета при наведении */
.liquid-button:hover {
  background-color: #0056b3;
}

/* Эффект нажатия */
.liquid-button:active {
  transform: scale(0.95);
}

/* Шрифты */
ul {
  list-style-type: disc;
  margin-left: 0.5em;
}
.example {
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  padding: 1em;
  margin-bottom: 1em;
}
h3 {
  text-align: center;
  color: #333;
}
.scrollable-container h2 {
  text-align: center;
  font-size: 1.3rem;
  color: #333;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.5em;
  margin-top: 1.5em;
}
h1 {
  text-align: center;
}

/* Карточки */
#study-container {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* background-color: rgb(255, 255, 255); */
  /* padding: 5px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
  z-index: 17;
  max-width: 1000px;
  width: 100%;
  text-align: center;
}
.card-container {
  font-family: Arial, sans-serif;
  /* background-color: #f4f4f4; */
  display: flex;
  width: 100%; /* Ширина одной карточки */
  /* overflow: hidden; */
  position: relative;
  margin-bottom: 20px;
  text-align: center;
}
.card {
  background-color: #fff;
  border-radius: 10px;
  border: 2px solid #4a4a4a;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.5s ease;
  flex: 0 0 100%; /* Каждая карточка занимает 100% ширины контейнера */
  display: none; /* По умолчанию карточки скрыты */
}
.card.active {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 93%;
  text-align: center;
  display: block; /* Активная карточка видна */
}
.card:hover {
  border-color: #d9534f;
}
.card::after {
  content: attr(data-number);
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #f8f1e9;
  padding: 0 10px;
  font-size: 1.5em;
  color: #d9534f;  
}

.card h2 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #333;
}

.card p {
  font-size: 1em;
  color: #666;
  line-height: 1.6;
}

/* .navigation {
  display: flex;
  gap: 10px;
} */

.navigation button {
  margin-top: 60vh;
  /* padding: 10px 20px; */
  font-size: 1em;
  border: none;
  /* border-radius: 5px; */
  background-color: #007bff;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.example2 {
  margin-top: 15px;
  padding: 10px;
  background: #e8f0fe;
  border-radius: 8px;
  font-weight: 500;
  /* font-style: italic; */
}

#ad-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    z-index: 1000;
}
#ad-overlay.hidden {
    display: none;
}

/* .navigation button:hover {
  background-color: #0056b3;
} */

/* Адаптация для мобильных устройств */
@media (max-width: 600px) {
  .card-container {
      width: 90%;
  }

  .navigation button {
      /* padding: 8px 16px; */
      font-size: 0.9em;
  }
}