@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Inconsolata:wght@200..900&display=swap");

body,
html {
  font-family: "Inconsolata", monospace;
  font-size: 18px;
  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;
}
.button img {
  width: 30px;
}
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;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 30;
}
.footer {
  background-color: #067f38;
  color: #fff;
}
.container-footer {
  color: #fff;
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
}

.logo img {
  width: 70px;
}

.menu nav {
  display: flex;
  gap: 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: #4caf50;
  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: #067f38; /* Колір самого скролбару */
  border-radius: 6px; /* Заокруглені кути */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #067f39; /* Темніше індиго при наведенні */
}

::-webkit-scrollbar-track {
  background-color: #f1f1f1; /* Колір фону скролбару */
  border-radius: 6px; /* Заокруглені кути */
}

::-webkit-scrollbar-track-piece {
  background-color: #f1f1f1; /* Колір внутрішньої частини треку */
}

@media (max-width: 768px) {
  .menu {
    display: none;
  }
  .container {
    min-width: 300px;
    width: 90%;
  }
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* Висота на весь екран */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}
.hero-text h1 {
  font-size: 50px;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover; /* Масштабування відео по всій секції */
  z-index: 1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Затемнення */
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero-button {
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  padding: 12px 25px;
  margin: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.button img {
  width: 20px;
  margin-right: 10px;
}

.button:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* about */

/* Стилі для секції "About" */
#about {
  background-color: #067f38;
  padding: 40px 0;
  color: white;
  text-align: center;
}

/* Заголовок */
.title {
  font-size: 36px;
  margin-bottom: 20px;
}

/* Опис */
.description {
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* Заголовок для списку особливостей */
.features-title {
  font-size: 28px;
  margin-top: 30px;
}

/* Стилі для блоків з особливостями */
.features {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 30px;
}

.feature-item {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  margin: 15px;
  max-width: 200px;
}

.feature-icon {
  font-size: 32px;
  margin-right: 15px;
  color: #067f38;
}

.feature-text {
  font-size: 16px;
  color: #000;
  flex: 1;
}

/* Мобільні пристрої */
@media (max-width: 768px) {
  .title {
    font-size: 28px;
  }

  .description {
    font-size: 16px;
  }

  .features-title {
    font-size: 24px;
  }

  .feature-item {
    max-width: 100%;
    margin: 10px 0;
  }

  .feature-icon {
    font-size: 24px;
  }

  .feature-text {
    font-size: 14px;
  }

  .button {
    padding: 12px 25px;
  }
}

/* Стилі для секції "Про Гру" */
#about-game {
  padding: 60px 0;
  color: #000;
  text-align: center;
}

/* Заголовок */
.section-title {
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: bold;
}

/* Опис */
.description {
  font-size: 20px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: 40px;
}

/* Заголовок для режимів */
.modes-title {
  font-size: 28px;
  margin-top: 30px;
  font-weight: bold;
}

/* Стилі для блоків режимів */
.game-modes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.mode-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px;
  max-width: 320px;
  background-color: #1d623d;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.mode-item:hover {
  transform: scale(1.05);
}

.mode-icon {
  font-size: 40px;
  margin-right: 20px;
  color: #ffce00;
}

.mode-text {
  font-size: 18px;
  color: white;
  flex: 1;
}

/* Мобільні пристрої */
@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
  }

  .description {
    font-size: 18px;
  }

  .modes-title {
    font-size: 24px;
  }

  .mode-item {
    max-width: 90%;
    margin: 15px 0;
    padding: 15px;
  }

  .mode-icon {
    font-size: 32px;
  }

  .mode-text {
    font-size: 16px;
  }
}

/* gallery-carousel */

/* Стилі для секції "Галерея" */
#gallery {
  background-color: #067f38;
  padding: 60px 0;
  color: white;
  text-align: center;
}

/* Заголовок секції */
.section-title {
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: bold;
}

/* Опис */
.description {
  font-size: 20px;
  margin-bottom: 40px;
}

/* Стилі для галереї (Сітка) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 колонки */
  gap: 20px;
  margin-top: 30px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* Стилі для трейлера */
.trailer-section {
  margin-top: 50px;
}

.trailer-section iframe {
  width: 80%;
  height: 400px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Мобільні пристрої */
@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
  }

  .description {
    font-size: 18px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 колонки для мобільних */
  }

  .gallery-item img {
    max-width: 100%;
  }

  .trailer-section iframe {
    width: 90%;
    height: 300px;
  }
}

/* Ще для менших екранів */
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr; /* 1 колонка для дуже маленьких екранів */
  }
}

/* Стилі для секції "Завантажити" */
#download {
  padding: 60px 0;
  color: #000;
  text-align: center;
}

/* Заголовок секції */
.section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Опис секції */
.description {
  font-size: 20px;
  margin-bottom: 40px;
  font-weight: 300;
}

/* Стилі для кнопок */
.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 15px 40px;
  font-size: 18px;
  border-radius: 30px;
  font-weight: bold;
  transition: transform 0.3s ease-in-out;
}

.download-btn img {
  width: 30px;
  margin-right: 10px;
}

/* Google Play */
.download-btn.google-play {
  background-color: #34a853;
  color: white;
  border: 2px solid #34a853;
}

.download-btn.google-play:hover {
  transform: scale(1.05);
  background-color: #2c8b43;
  border-color: #2c8b43;
}

/* App Store */
.download-btn.app-store {
  background-color: #007aff;
  color: white;
  border: 2px solid #007aff;
}

.download-btn.app-store:hover {
  transform: scale(1.05);
  background-color: #005bb5;
  border-color: #005bb5;
}

/* Мобільна адаптивність */
@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
  }

  .description {
    font-size: 18px;
  }

  .download-btn {
    font-size: 16px;
    padding: 12px 30px;
  }

  .download-btn img {
    width: 25px;
  }
}

@media (max-width: 480px) {
  .download-btn {
    font-size: 14px;
    padding: 10px 25px;
  }

  .download-btn img {
    width: 20px;
  }
}
