@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap");

body,
html {
  background-color: #d5fff2;
  font-family: "Josefin Sans", sans-serif;
  font-size: 20px;
  line-height: 1.8;
  margin: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  scroll-behavior: smooth;
  position: relative;
}

a {
  text-decoration: none;
  font-style: normal;
  color: inherit;
  transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
  transform: scale(1.05); /* Легке збільшення кнопки */
  color: var(--color-prime);
}
h2 {
  font-size: 40px;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  padding: 0;
  margin: 0;
}
img {
  width: 100%; /* Встановлює ширину зображення на 100% */
  height: auto; /* Пропорційно змінює висоту */
  background-color: transparent; /* Задає прозорий фон, якщо зображення вбудоване */
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo a {
  display: flex;
  gap: 20px;
  text-transform: uppercase;
  align-items: center;
  font-weight: 600;
  font-size: 30px;
  color: #4caf50;
}
.logo img {
  width: 70px;
  height: 70px;
  border-radius: 100%; /* Робить зображення круглим */
  object-fit: cover; /* Запобігає спотворенню, обрізає зайве */
  object-position: center; /* Центрує зображення */
}

.menu nav {
  display: flex;
  gap: 20px;
}
.button img {
  width: 20px;
}
.container {
  margin: 0 auto;
  max-width: 1400px;
  width: 100%;
  padding: 20px;
}

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #333;
  color: white;
  padding: 15px;
  text-align: center;
  z-index: 9999;
  display: none;
}

#cookie-banner p {
  margin: 0;
  font-size: 16px;
}

#cookie-banner button {
  background-color: #0655ff;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 10px;
  cursor: pointer;
  font-size: 16px;
}

#cookie-banner button.decline {
  background-color: #f44336;
}

#cookie-banner button:hover {
  opacity: 0.8;
}

/* scroll */
/* Стилізація скролбару на всьому сайті */
::-webkit-scrollbar {
  width: 12px; /* Ширина вертикального скролбару */
  height: 12px; /* Висота горизонтального скролбару */
}

::-webkit-scrollbar-thumb {
  background-color: #0655ff; /* Колір самого скролбару */
  border-radius: 6px; /* Заокруглені кути */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #2969fd; /* Темніше індиго при наведенні */
}

::-webkit-scrollbar-track {
  background-color: #f1f1f1; /* Колір фону скролбару */
  border-radius: 6px; /* Заокруглені кути */
}

::-webkit-scrollbar-track-piece {
  background-color: #f1f1f1; /* Колір внутрішньої частини треку */
}

@media (max-width: 768px) {
  .container {
    min-width: 300px;
    width: 90%;
  }
}

/* Загальні стилі для бургер-меню */
.burger-menu {
  display: none; /* Ховати бургер-меню на десктопах */
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 999; /* Вищий z-index, щоб бургер-меню було зверху */
}

.burger-line {
  width: 30px;
  height: 4px;
  background-color: #333;
  border-radius: 5px;
}

/* Стилі для меню на мобільних пристроях */
@media (max-width: 768px) {
  #nav-menu {
    /* Тепер звертаємось до id */
    display: none;
    flex-direction: column;
    gap: 20px;
    position: absolute;
    top: 80px;
    right: 10px;
    background-color: #fff;
    color: #333;
    width: 200px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 998; /* Зробити menu менше, щоб воно не перекривало бургер */
  }

  /* Стилі для мобільного меню при відкритті */
  #nav-menu.active {
    display: flex; /* Переключаємо на відображення */
    flex-direction: column; /* Розташовуємо елементи вертикально */
  }

  /* Показати бургер-меню на мобільних пристроях */
  .burger-menu {
    display: flex;
  }
}

.container-footer {
  display: flex;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .policy-menu nav {
    display: flex;
    gap: 20px;
  }
  .container-footer {
    flex-direction: column;
    align-items: center;
  }
  .container-footer p {
    font-size: 14px;
  }

  .policy-menu nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .footer .header {
    justify-content: center;
  }
}

body {
  position: relative;
  overflow: hidden; /* щоб кульки не виходили за межі */
}

.ball {
  position: fixed;
  border-radius: 50%;
  pointer-events: none; /* щоб кульки не взаємодіяли з користувачем */
  z-index: 9999; /* щоб кульки були поверх іншого контенту */
  animation: bubbleAnimation 10s infinite; /* анімація для руху кульок */
  opacity: 0.1;
}

.ball.red {
  background-color: red;
  width: 100px;
  height: 100px;
  top: 10%;
  left: 30%;
}

.ball.green {
  background-color: green;
  width: 70px;
  height: 70px;
  top: 70%;
  left: 20%;
}

.ball.blue {
  background-color: blue;
  width: 140px;
  height: 140px;
  top: 70%;
  left: 80%;
}

.ball.yellow {
  background-color: yellow;
  width: 60px;
  height: 60px;
  top: 20%;
  left: 50%;
}

@keyframes bubbleAnimation {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-30px); /* кульки піднімаються */
  }
  100% {
    transform: translateY(0);
  }
}

/* hero */

.hero-container {
  padding: 70px 0;
  display: flex;
  gap: 30px;
  justify-content: space-between;
}
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-around;
  flex: 1;
}
.hero-text h1 {
  font-size: 52px;
  line-height: 1.3;
}
.hero-text p {
  font-size: 22px;
  line-height: 1.5;
}
.hero-img {
  flex: 1;
  display: flex;
  justify-content: end;
  position: relative; /* Додаємо для позиціонування псевдоелемента */
  max-width: 600px;
  width: 100%;
  padding: 40px 0;
}

.hero-img img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 15px; /* Заокруглені кути */
  position: relative; /* Для коректного позиціонування тіні */
  z-index: 2; /* Забезпечує, щоб основна картинка була поверх тіні */
}

.hero-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("./img/hero.webp");
  background-size: contain;
  filter: blur(10px); /* Розмиття */
  opacity: 0.5; /* Напівпрозорість тіні */
  border-radius: 15px; /* Заокруглені кути тіні */
  z-index: 1; /* Тінь повинна бути під основним зображенням */
  animation: float 6s ease-in-out infinite; /* Анімація для плавання */
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px); /* Піднімання */
  }
  100% {
    transform: translateY(0);
  }
}

.hero-button {
  display: flex;
  gap: 20px;
}
.button {
  font-size: 20px;
  font-weight: 400;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border-radius: 50px;
  background-color: #4caf50;
  max-width: 150px;
  width: 100%;
  color: #f1f1f1;
  border: solid 2px #4caf50;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease; /* Перехід для плавного ефекту */
}

.button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background-color: white;
  border-radius: 50%;
  transition: all 0.5s ease-in-out; /* Перехід для ефекту пробігання */
  transform: translate(-50%, -50%) rotate(45deg); /* Початкова позиція тіні по діагоналі */
  opacity: 0;
}

.button:hover::before {
  width: 0;
  height: 0;
  opacity: 1;
  transform: translate(-50%, -50%) rotate(45deg) scale(1); /* Тінь розширюється та розмита */
}

.btn {
  background-color: transparent;
  color: #4caf50;
  border: solid 2px #4caf50;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background-color: white;
  border-radius: 50%;
  transition: all 0.5s ease-in-out;
  transform: translate(-50%, -50%) rotate(45deg); /* Початкова позиція тіні */
  opacity: 0;
}

.btn:hover::before {
  width: 0;
  height: 0;
  opacity: 1;
  transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

.color {
  color: #ff9800;
}
/* about */
.about {
  padding: 70px 0;
}
.about-img {
  flex: 1;
  display: flex;
  justify-content: start;
  position: relative; /* Додаємо для позиціонування псевдоелемента */
  max-width: 600px;
  width: 100%;
  padding: 40px 0;
}

.about-img img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 15px; /* Заокруглені кути */
  position: relative; /* Для коректного позиціонування тіні */
  z-index: 2; /* Забезпечує, щоб основна картинка була поверх тіні */
}

.about-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("./img/about.webp");
  background-size: contain;
  filter: blur(10px); /* Розмиття */
  opacity: 0.5; /* Напівпрозорість тіні */
  border-radius: 15px; /* Заокруглені кути тіні */
  z-index: 1; /* Тінь повинна бути під основним зображенням */
  animation: float 6s ease-in-out infinite; /* Анімація для плавання */
}

.about-container {
  display: flex;
  gap: 30px;
  justify-content: space-between;
}

.about-img,
.about-text {
  flex: 1;
}
.about-text h2 {
  font-size: 40px;
}
.about-text {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

/* features */

.features {
  padding: 60px 0;
  background-color: #f4f4f4;
  text-align: center;
}

.features h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 30px;
  animation: fadeIn 1s ease-out;
}

/* Стилі для блоку з елементами */
.features-items {
  display: flex;
  flex-direction: column;
  gap: 30px;
  animation: fadeInUp 1s ease-out;
}

.features-items-block {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.features-item {
  flex: 1;
  background-color: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features-item i {
  font-size: 2.5rem;
  color: #4caf50;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

/* Ховер ефект */
.features-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.features-item:hover i {
  color: #ff9800;
}

/* Анімації */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Респонсивність */
@media (max-width: 768px) {
  .features-items {
    flex-direction: column;
    align-items: center;
  }

  .features-items-block {
    width: 80%;
  }
}

/* how to play */
/* Загальний стиль секції */
.how-play {
  padding: 60px 0;
  background-color: #f9f9f9;
  text-align: center;
}

.how-play h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 30px;
  animation: fadeIn 1s ease-out;
}

/* Стилі для елементів в секції */
.play-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 30px;
  animation: fadeInUp 1s ease-out;
}

.play-item {
  background-color: #fff;
  padding: 25px;
  border-radius: 15px;
  width: 45%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.play-item h3 {
  color: #4caf50;
  font-size: 1.8rem;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

/* Ховер ефект */
.play-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

.play-item:hover h3 {
  color: #ff9800;
}

/* Додавання кольорів фону для кожного елемента */
.play-item:nth-child(1) {
  background-color: #e3f2fd; /* Блакитний */
}

.play-item:nth-child(2) {
  background-color: #c8e6c9; /* Зеленуватий */
}

.play-item:nth-child(3) {
  background-color: #fff9c4; /* Жовтий */
}

.play-item:nth-child(4) {
  background-color: #ffe0b2; /* Оранжевий */
}

/* Анімація появи */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Респонсивність */
@media (max-width: 768px) {
  .play-items {
    flex-direction: column;
    align-items: center;
  }

  .play-item {
    width: 80%;
  }
}

/* reviews */

/* Загальний стиль секції відгуків */
.reviews {
  background-color: #f0f8ff;
  padding: 60px 0;
  text-align: center;
}

.reviews h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 40px;
}

/* Стилі для елементів відгуків */
.reviews-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.review-item {
  background-color: #fff;
  padding: 30px;
  border-radius: 15px;
  width: 80%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: left;
  position: relative;
}

.review-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

/* Стилі для фото та інформації користувачів */
.review-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.review-user h3 {
  font-size: 1.2rem;
  color: #333;
  margin: 0;
}

.stars {
  color: #f39c12;
  font-size: 1rem;
  margin-top: 5px;
}

.stars i {
  margin-right: 3px;
}

.review-item p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

/* Респонсивність */
@media (max-width: 768px) {
  h2 {
    font-size: 28px;
    text-align: center !important;
  }
}
/* pay */
.pay {
  padding: 70px 0;
}
.pay-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.text {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: left;
  position: relative;
}

.text:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}
.pay-container {
  display: flex;
  gap: 30px;
  padding-bottom: 50px;
}
.pay-text,
.pay-down {
  flex: 1;
}

.pay-down {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.pay-down {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: end;
  position: relative; /* Додаємо для позиціонування псевдоелемента */
  max-width: 600px;
  width: 100%;
  padding: 40px 0;
}

.pay-down img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 15px; /* Заокруглені кути */
  position: relative; /* Для коректного позиціонування тіні */
  z-index: 2; /* Забезпечує, щоб основна картинка була поверх тіні */
}

.pay-down::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("./img/hero.webp");
  background-size: contain;
  filter: blur(10px); /* Розмиття */
  opacity: 0.5; /* Напівпрозорість тіні */
  border-radius: 15px; /* Заокруглені кути тіні */
  z-index: 1; /* Тінь повинна бути під основним зображенням */
  animation: float 6s ease-in-out infinite; /* Анімація для плавання */
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px); /* Піднімання */
  }
  100% {
    transform: translateY(0);
  }
}

.download-block {
  padding-top: 50px;
  text-align: center;
}

.download-block .hero-button {
  justify-content: center;
}

@media (max-width: 768px) {
  .logo a {
    font-size: 30px;
    line-height: 1.3;
  }
  .hero-text h1 {
    font-size: 30px;
  }
  body {
    font-size: 18px;
  }
  .hero-container {
    flex-direction: column;
  }
  .hero-img {
    justify-content: center;
  }
  .button {
    padding: 10px;
  }

  .about-container {
    flex-direction: column;
  }
  .about-img {
    justify-content: center;
  }
  .about {
    padding: 0;
  }
  .about-text {
    align-items: center;
    gap: 20px;
  }

  .features-items-block {
    flex-direction: column;
  }
  .about-text h2,
  .features h2,
  .how-play h2,
  .reviews h2 {
    font-size: 28px;
  }
  .pay-container {
    flex-direction: column;
  }
  .pay-down {
    justify-content: center;
  }
}
