:root {
  --color-primary: #8b4513;
  --color-secondary: #ff4500;
  --color-background-dark: #2c0e00;
  --color-background-light: #f5deb3;
  --color-text-light: #ffffff;
  --color-text-dark: #333333;
  --font-heading: "Impact", "Arial Black", sans-serif;
  --font-body: "Georgia", serif;
  --spacing-lg: 80px;
  --spacing-md: 40px;
  --shadow-neon: 0 0 10px var(--color-secondary),
    0 0 20px var(--color-secondary);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-light);
  background-color: var(--color-background-dark);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: var(--color-secondary);
  transition: color 0.3s;
}

a:hover {
  color: #ff8c00;
}

.section__title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
  text-shadow: 3px 3px 0 #000, 5px 5px 0 var(--color-secondary);
}

h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
}

.header {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 4px solid var(--color-secondary);
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo-link {
  display: flex;
  align-items: center;
  color: var(--color-text-light);
  font-size: 1.5rem;
  font-family: var(--font-heading);
}

.header__logo {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.header__nav {
  display: block;
}

.header__menu {
  list-style: none;
  display: flex;
}

.header__menu-item {
  margin-left: 25px;
}

.header__menu-link {
  color: var(--color-text-light);
  text-transform: uppercase;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.header__menu-link:hover {
  background-color: var(--color-primary);
  box-shadow: 0 0 5px var(--color-secondary);
}

.section {
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero {
  background-image: url("img/main_screenshot.webp");
  background-size: cover;
  background-position: center top;
  position: relative;
  padding: 150px 0;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
}

.hero__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

.hero__content {
  max-width: 50%;
}

.hero__title {
  font-size: 5rem;
  margin-bottom: 10px;
  color: var(--color-text-light);
  text-shadow: 5px 5px 0 var(--color-primary), 7px 7px 0 var(--color-secondary);
  line-height: 1;
}

.hero__subtitle {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--color-secondary);
  text-shadow: 2px 2px 0 #000;
}

.hero__text {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.hero__cta-group {
  margin-bottom: 15px;
}

.hero__cta-image {
  width: 200px;
  transition: transform 0.3s;
}

.hero__cta-image:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 5px var(--color-secondary));
}

.hero__note {
  font-size: 0.9rem;
  opacity: 0.8;
}

.hero__image-wrapper {
  max-width: 40%;
  text-align: right;
}

.hero__main-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border: 5px solid var(--color-primary);
  box-shadow: 10px 10px 0 var(--color-secondary);
}

.description {
  background-color: var(--color-background-light);
  color: var(--color-text-dark);
  padding: var(--spacing-lg) 0;
}

.description__title {
  color: var(--color-secondary);
  text-shadow: 3px 3px 0 var(--color-primary), 5px 5px 0 #000;
}

.description__content p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  text-align: justify;
}

.features {
  background-color: var(--color-background-dark);
}

.features__title {
  color: var(--color-text-light);
  text-shadow: 3px 3px 0 var(--color-primary), 5px 5px 0 var(--color-secondary);
}

.features__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
}

.features__item {
  background-color: rgba(139, 69, 19, 0.2);
  padding: 25px;
  border: 2px solid var(--color-primary);
  border-radius: 10px;
  transition: background-color 0.3s, transform 0.3s;
}

.features__item:hover {
  background-color: rgba(139, 69, 19, 0.4);
  transform: translateY(-5px);
}

.features__item-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--color-secondary);
  text-shadow: 1px 1px 0 #000;
}

.features__item-text {
  font-size: 1rem;
  color: #cccccc;
}

.gallery {
  background-color: var(--color-background-light);
  color: var(--color-text-dark);
}

.gallery__title {
  color: var(--color-secondary);
  text-shadow: 3px 3px 0 var(--color-primary), 5px 5px 0 #000;
}

.gallery__subtitle {
  text-align: center;
  margin-bottom: var(--spacing-md);
  font-style: italic;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery__item {
  overflow: hidden;
  border: 4px solid var(--color-primary);
  box-shadow: 5px 5px 0 var(--color-secondary);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery__item:hover {
  transform: scale(1.03);
  box-shadow: 8px 8px 0 var(--color-secondary);
}

.gallery__image {
  width: 100%;
  height: auto;
  display: block;
}

.how-to-play {
  background-color: var(--color-background-dark);
}

.how-to-play__title {
  color: var(--color-text-light);
  text-shadow: 3px 3px 0 var(--color-primary), 5px 5px 0 var(--color-secondary);
}

.how-to-play__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-top: 20px;
}

.how-to-play__step {
  text-align: center;
  padding: 20px;
  border: 1px dashed var(--color-primary);
  border-radius: 8px;
  background-color: rgba(255, 69, 0, 0.1);
}

.how-to-play__step-number {
  display: inline-block;
  font-size: 2.5rem;
  font-family: var(--font-heading);
  color: var(--color-secondary);
  background-color: var(--color-primary);
  padding: 5px 15px;
  border-radius: 50%;
  margin-bottom: 10px;
  box-shadow: var(--shadow-neon);
}

.how-to-play__step-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--color-text-light);
  text-shadow: 1px 1px 0 var(--color-primary);
}

.how-to-play__step-text {
  color: #cccccc;
}

.cta {
  background-color: var(--color-primary);
  text-align: center;
  padding: var(--spacing-lg) 0;
  border-top: 5px double var(--color-secondary);
}

.cta__title {
  color: var(--color-text-light);
  text-shadow: 3px 3px 0 var(--color-secondary), 5px 5px 0 #000;
}

.cta__text {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.cta__download-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.cta__download-image {
  width: 180px;
  height: auto;
  transition: transform 0.3s;
}

.cta__download-image:hover {
  transform: translateY(-5px);
}

.cta__note {
  margin-top: 15px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.footer {
  background-color: #1a0800;
  padding: 40px 0 20px;
  color: #999999;
  font-size: 0.9rem;
  border-top: 2px solid var(--color-primary);
}

.footer__container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.footer__column {
  width: 200px;
  margin-right: 30px;
}

.footer__heading {
  color: var(--color-text-light);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.footer__nav-list {
  list-style: none;
}

.footer__nav-list li {
  margin-bottom: 8px;
}

.footer__link {
  color: #999999;
}

.footer__link:hover {
  color: var(--color-secondary);
}

.footer__contact-info,
.footer__address {
  margin-bottom: 10px;
  font-style: normal;
}

.footer__contact-text {
  color: var(--color-secondary);
}

.footer__bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333333;
}

.footer__copyright {
  color: #666666;
}

@media (max-width: 992px) {
  .hero__container {
    flex-direction: column;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
    margin-bottom: 40px;
  }

  .hero__image-wrapper {
    max-width: 80%;
  }

  .how-to-play__steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header__menu {
    display: none;
  }

  .header__container {
    justify-content: center;
  }

  .hero__title {
    font-size: 3.5rem;
  }

  .hero__subtitle {
    font-size: 1.8rem;
  }

  .section__title {
    font-size: 2.5rem;
  }

  .how-to-play__steps {
    grid-template-columns: 1fr;
  }

  .footer__container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__column {
    width: 100%;
    margin: 0 0 30px 0;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 0 50px;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__subtitle {
    font-size: 1.5rem;
  }

  .cta__download-links {
    flex-direction: column;
    align-items: center;
  }
}
