/* header */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: var(--black);
  z-index: 9;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 16px;
  line-height: 150%;
  color: var(--white);
  text-transform: uppercase;
}

.navigation {
  display: none;
}

.svg {
  stroke: #f3f2f2;
}

.navigation-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.navigation-item {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: var(--white);
  transition: border-color 0.3s ease;
}

.navigation-item:hover {
  text-decoration: underline;
}

.modal {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 8;
  padding: 92px 32px;
  transform: translateY(-150%) translateX(-50%);
  transition: transform 1s ease;
  z-index: 8;
  background: var(--black);
}

.modal-navigation-list {
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.modal-click {
  transform: translateY(0) translateX(-50%);
}

@media screen and (min-width: 1439px) {
  .header {
    padding: 22px 0;
  }

  .navigation {
    display: block;
  }

  .open-modal {
    display: none;
  }
}

/* home */

#home {
  padding-top: 110px;
}

.home-logo {
  margin: 0 auto;
  margin-bottom: 40px;
}

.home-title {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 36px;
  line-height: 120%;
  color: var(--white);
  margin-bottom: 24px;
}

.home-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: var(--white);
}

@media screen and (min-width: 1439px) {
  #home {
    padding-top: 104px;
  }

  .home-title {
    font-size: 50px;
    margin-bottom: 48px;
  }
  .home-text {
    font-size: 18px;
  }
}

/* about */

/* game */

/* features */

.features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;

  li {
    border: 1px solid var(--gray);
    padding: 24px 32px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 20px;
    line-height: 150%;
    color: var(--white);
    margin-bottom: 8px;
  }

  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    color: var(--l-gray);
  }
}

@media screen and (min-width: 768px) {
  .features-list {
    gap: 32px;
    flex-direction: row;
    flex-wrap: wrap;

    li {
      width: calc((100% - 32px) / 2);
    }
  }
}

@media screen and (min-width: 1439px) {
  .features-list {
    li {
      width: calc((100% - 64px) / 3);
    }
  }
}

/* visuals */

/* riddles */

/* mechanics */

.mechanics-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 150%;
  color: var(--white);
  margin-bottom: 32px;
}

@media screen and (min-width: 1439px) {
  .mechanics-text {
    margin-bottom: 48px;
  }
}

/* philosophy */

/* experiences */

.experiences-item {
  border: 1px solid var(--gray);
  padding: 24px 32px;
  width: 340px;
  max-width: 100%;

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    color: var(--l-gray);
  }

  h4 {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 20px;
    line-height: 150%;
    text-align: right;
    color: var(--l-gray);
  }

  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    text-align: right;
    color: var(--l-gray);
  }
}

.experiences-btn-wrap {
  display: flex;
  justify-content: center;
  gap: 23px;
}

.experiences-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 19px;
  width: 100%;
  border: 1px dashed var(--gray);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.experiences-btn:hover {
  opacity: 1;
}

.experiences-right {
  transform: scaleX(-1);
}

@media screen and (min-width: 1439px) {
  .experiences-item {
    width: 548px;
  }
  .experiences-btn-wrap {
    justify-content: flex-end;
  }
  .experiences-btn {
    width: 160px;
  }
}

/* community */

.community-list {
  li {
    p {
      font-family: var(--font-family);
      font-weight: 500;
      font-size: 20px;
      line-height: 150%;
      color: var(--white);
      text-align: start;
    }

    span {
      font-family: var(--font-family);
      font-weight: 400;
      font-size: 18px;
      line-height: 150%;
      color: var(--l-gray);
      text-align: start;
    }
  }
}

/* contact */

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: 1px dotted var(--gray);

  li {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--l-gray);
  }

  span {
    font-weight: 500;
    font-size: 18px;
    color: var(--white);
  }

  a:hover {
    text-decoration: underline;
  }
}

.contact-img {
  width: 100%;
}

@media screen and (min-width: 1439px) {
  .contact-container {
    display: flex;
    justify-content: center;
    gap: 32px;
  }

  .contact-list {
    li {
      font-size: 18px;
    }

    span {
      font-size: 20px;
    }
  }
}

/* footer */

.footer {
  padding-bottom: 16px;
}

.footer-title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 24px;
  line-height: 130%;
  text-align: right;
  color: var(--white);
  margin-bottom: 40px;
}

.footer-list {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.footer-link {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  text-align: right;
  color: var(--white);
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-description {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 11px;
  line-height: 150%;
  text-align: right;
  color: var(--white);
}

@media screen and (min-width: 1439px) {
  .footer-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: row-reverse;
  }

  .footer-title {
    font-size: 28px;
    max-width: 500px;
    margin: 0;
  }

  .footer-list {
    margin: 0;
    align-items: flex-start;
  }

  .footer-link {
    font-size: 18px;
  }

  .footer-description {
    font-size: 12px;
    text-align: start;
    margin-top: 40px;
  }
}

/* cookie popup */

.popup {
  position: fixed;
  z-index: 10;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 32px;
  background: var(--black);
  transition: transform 0.5s ease;
}

.popup-text {
  font-family: var(--third-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  text-align: center;
  color: var(--white);
  margin-bottom: 40px;
}

.popup-btn {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 150%;
  color: var(--white);
  display: block;
  text-align: center;
  border: 1px solid var(--white);
  padding: 16px 32px;
  text-transform: capitalize;
  transition: color 0.3s ease, background-color 0.2s ease;
}

.popup-btn:hover {
  background: var(--white);
  color: var(--black);
}

.popup-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.popup-click {
  transform: translateY(120%) translateX(-50%);
}

@media screen and (min-width: 1439px) {
  .popup {
    display: flex;
    align-items: flex-start;
    gap: 32px;
  }

  .popup-text {
    font-size: 20px;
    text-align: start;
  }

  .popup-wrap {
    gap: 32px;
    flex-shrink: 0;
    flex-direction: row;
  }
}
