@import url("https://fonts.googleapis.com/css2?family=Tektur:wght@400..900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");

body,
html {
  background: linear-gradient(90deg, #1e293b, #334155);
  color: #eaf0ff;
  font-family: "Ubuntu", 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);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Tektur", sans-serif;
}
h2 {
  font-size: 32px;
}
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 img {
  width: 70px;
  height: 70px;
}
.download-buttons.btn-hero {
  justify-content: start;
}
.menu nav {
  display: flex;
  gap: 20px;
}
.button img {
  width: 20px;
}
.container {
  margin: 40px auto;
  max-width: 1400px;
  width: 100%;

  border: solid 2px #eaf0ff;
  padding: 20px;
  border-radius: 30px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  background-color: #303650;
}

#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #ffffff;
  padding: 20px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: none;
}

#cookie-banner p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

#cookie-banner .buttons {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

#cookie-banner button {
  background: #34d399;
  color: #1e293b;
  border: none;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.3);
}

#cookie-banner button.decline {
  background: #f87171;
  color: #ffffff;
}

#cookie-banner button:hover {
  transform: translateY(-2px);
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.4);
}

/* scroll */
/* Стилізація скролбару на всьому сайті */
::-webkit-scrollbar {
  width: 12px; /* Ширина вертикального скролбару */
  height: 12px; /* Висота горизонтального скролбару */
}

::-webkit-scrollbar-thumb {
  background-color: #2a3d66; /* Колір самого скролбару */
  border-radius: 6px; /* Заокруглені кути */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #4b0082; /* Темніше індиго при наведенні */
}

::-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: #eaf0ff;
    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 {
  border-top: solid 1px #4e545f;
  padding: 20px;
  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;
  }
}

/* hero */

.hero-container {
  display: flex;
  gap: 30px;
}
.hero-text,
.hero-img {
  flex: 1;
}
.hero-img {
  display: flex;
  justify-content: end;
}
.hero-img img {
  max-width: 600px;
  height: auto;
  border-radius: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.hero-img img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
}
.hero-text h1 {
  font-size: 45px;
  line-height: 1.3;
}
.hero-text p {
  font-size: 22px;
  line-height: 1.8;
}
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-around;
}

.hero-button {
  display: flex;
  gap: 30px;
}
.button {
  max-width: 200px;
  width: 100%;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 10px;
  border: solid 2px #ff9800;
  background-color: #ff9800;
}

.btn {
  background-color: transparent;
}

/* about-container */
.about-container {
  display: flex;
  gap: 30px;
}
.about-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-text,
.about-img {
  flex: 1;
}
.about-img {
  display: flex;
  justify-content: end;
}

.about-img img {
  max-width: 600px;
  height: auto;
  border-radius: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.about-img img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
}

/* features-items */
.features-items {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  margin-top: 30px;
}
.features-item {
  flex: 1;
  padding: 20px;
  background-color: #292943;
  color: #eaf0ff;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.features-item:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
}
.features h2 {
  text-align: center;
}
h3 {
  color: #ff9800;
}
.features-item i {
  font-size: 24px;
  color: #ff9800;
  margin-bottom: 10px;
}
/* how-to-play */
.how-to-play {
  color: #eaf0ff;
  text-align: center;
}

.how-to-play h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.play-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.play-step {
  background: #292943;
  padding: 20px;
  border-radius: 15px;
  max-width: 500px;
  text-align: left;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.3s ease-in-out;
}

.play-step:hover {
  transform: scale(1.05);
}

.play-step i {
  font-size: 30px;
  color: #facc15;
}

.play-step h3 {
  font-size: 20px;
  margin: 0;
}

.play-step p {
  font-size: 16px;
  margin: 5px 0 0;
}

.play-container {
  display: flex;
}
.play-steps,
.play-images {
  flex: 1;
}
.play-images {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.play-images img {
  max-width: 600px;
  height: auto;
  border-radius: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.play-images img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
}
/* tips */
.tips {
  text-align: center;
}

.tips h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.tips-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.tip {
  background: linear-gradient(135deg, #3a3a5e, #4a4a7d);
  padding: 15px 25px;
  border-radius: 10px;
  max-width: 450px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease-in-out;
}

.tip:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.4);
}

.tip i {
  font-size: 26px;
  color: #facc15;
}

.tip p {
  font-size: 16px;
  margin: 0;
}

.download {
  text-align: center;
  padding: 60px 20px;
}

.download h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.download p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 25px;
  line-height: 1.6;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-android {
  background: #34d399;
  color: #1e293b;
}

.btn-ios {
  background: #60a5fa;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.4);
}

.btn i {
  font-size: 22px;
}

.logo a {
  display: flex;
  gap: 20px;
  align-items: center;
  text-transform: uppercase;
  font-family: "Tektur", sans-serif;
  font-weight: 700;
}

@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
  }
  .container {
    width: 80%;
  }

  .features-items {
    flex-direction: column;
  }

  .about-container {
    flex-direction: column;
  }
  .download {
    padding: 0;
  }
    .hero-text p {
    font-size: 16px;
  }
  .btn {
    max-width: 300px;
    width: 100%;
  }
}
