.nav {
  display: none;
}

.header {
  position: fixed;
  z-index: 9;
  width: 100%;
  background: #1c3215;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  width: 50px;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  color: #f2f2f2;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover {
  color: #ff6f0b;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-svg {
  stroke: #f2f2f2;
  fill: #f2f2f2;
}

#nav-select {
  border: none;
  padding: 0;
  background: #1c3215;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  color: #f2f2f2;
  transition: color 0.3s ease, background-color 0.3s ease;
}

#nav-select:hover {
  option:hover {
    color: #ff6f0b;
  }
}

@media screen and (min-width: 1438px) {
  .header {
    padding: 20px 72px;
  }

  .nav {
    display: block;
  }

  .menu-open {
    display: none;
  }
}

/* modal  */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 8;
  width: 100%;
  padding: 15px;
  padding-top: 90px;
  background: #1c3215;
}

.menu-nav-list {
  flex-direction: column;
  align-items: flex-start;
}

/* popup */

.popup {
  position: fixed;
  z-index: 10;
  bottom: 10px;
  left: 50%;
  width: 95%;
  transform: translateX(-50%);
  padding: 20px 15px;
  background: #dadada;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 42px;
  transition: transform 0.4s ease;
}

.popup-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  text-align: center;
  color: #1c3215;
}

.popup-btn {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  text-align: center;
  color: #1c3215;

  border: 1px solid #1c3215;
  border-radius: 36px;
  padding: 16px;
  width: 196px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.popup-btn:hover {
  color: #fff;
  background: #1c3215;
}

.popup-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 20px;
}

@media screen and (min-width: 1438px) {
  .popup {
    display: flex;
    padding: 51px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .popup-text {
    font-size: 24px;
    max-width: 65%;
    text-align: start;
  }

  .popup-btn {
    font-size: 24px;
  }

  .popup-wrap {
    width: auto;
    flex-direction: row;
  }
}

/* home  */

.hero {
  background-image: url(./images/home.jpg);
  background-position: center;
  background-size: cover;
  padding-top: 80px;
}

.hero-logo {
  width: 214px;
  margin: 0 auto;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 22px;
  text-transform: uppercase;
  text-align: center;
  color: #f2f2f2;
  margin-bottom: 20px;
}

.hero-link {
  display: block;
  padding: 16px 24px;
  width: 345px;
  margin: 0 auto;
  max-width: 100%;
  background-color: #ff6f0b;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  color: #030507;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.hero-link:hover {
  box-shadow: 0 0 20px 0 #ff6f0b;
}

@media screen and (min-width: 1438px) {
  .hero {
    padding-top: 70px;
    padding-bottom: 156px;
  }

  .hero-logo {
    width: auto;
  }

  .hero-title {
    font-size: 40px;
    text-align: center;
    max-width: 867px;
    margin: 0 auto;
    margin-bottom: 40px;
  }
  .hero-link {
    width: 416px;
  }
}

/* about */

.about-wrap {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  color: #f2f2f2;

  p {
    text-align: start;
  }

  ul {
    list-style: disc;
    padding-left: 20px;
  }
}

.about-img {
  width: 345px;
  margin: 0 auto;
  margin-top: 20px;
}

@media screen and (min-width: 1438px) {
  .about-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-size: 24px;
  }

  .about-img {
    width: auto;
    margin: 0;
    flex-shrink: 0;
  }
}

/* legend */

@media screen and (min-width: 1438px) {
  .legend-wrap {
    flex-direction: row-reverse;
  }
}

/* how */

#how {
  padding-left: 0;
  padding-right: 0;
}

.how-text {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 18px;
  color: #f2f2f2;
  padding-left: 15px;
  margin-bottom: 25px;
}

.how-item {
  width: 255px;
  max-width: 100%;

  span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    background-color: #ff6f0b;
    box-shadow: 0 0 15px 0 #ff6f0b;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 50px;
    color: #030507;
    margin-bottom: 15px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    text-align: center;
    color: #f2f2f2;
  }
}

.swiper-svg {
  stroke: #ff6f0b;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  transition: box-shadow 0.3s ease;
  display: none;
}

.btn:hover {
  box-shadow: 0 0 10px 0 #ff6f0b;
}

.btn-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 25px;
}

.how-left {
  transform: rotate(-90deg);
}
.how-right {
  transform: rotate(90deg);
}

.how-pagination {
  text-align: center;
}

.swiper-pagination-bullet {
  background-color: #f2f2f2;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background-color: #ff6f0b;
}

@media screen and (min-width: 1438px) {
  #how {
    position: relative;
  }

  .how-text {
    padding-left: 72px;
    margin-bottom: 48px;
    font-size: 24px;
  }

  .how-swiper {
    margin-bottom: 48px;
  }

  .how-item {
    width: 326px;
  }

  .btn {
    display: flex;
  }

  .how-pagination {
    display: none;
  }

  .btn-wrap {
    position: absolute;
    top: 92px;
    right: 72px;
    margin: 0;
  }
}

/* features */

.features-wrap {
  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    color: #f2f2f2;
    text-align: start;
  }
}

.features-img {
  width: 345px;
  margin: 0 auto;
  margin-top: 20px;
}

.features-list {
  list-style: disc;
  padding-left: 20px;
  margin: 20px 0;
}

@media screen and (min-width: 1438px) {
  .features-wrap {
    p {
      font-size: 24px;
    }
  }

  .features-img {
    width: auto;
    margin: 0;
    flex-shrink: 0;
  }
}

/* controls */

#controls {
  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    color: #f2f2f2;
    text-align: start;
  }

  ul {
    padding-left: 20px;
    list-style: disc;
    margin: 20px 0;
  }
}

@media screen and (min-width: 1438px) {
  #controls {
    p {
      font-size: 24px;
    }
  }
}

/* strategy */

.strategy-img {
  width: 345px;
  margin: 0 auto;
  margin-top: 20px;
}

@media screen and (min-width: 1438px) {
  .strategy-wrap {
    flex-direction: row-reverse;
    gap: 77px;
  }

  .strategy-img {
    width: auto;
    margin: 0;
    flex-shrink: 0;
  }
}

/* design */

#design {
  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    color: #f2f2f2;
  }
}

.design-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 20px 0;

  ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 20px;
  }
}

.design-wrap {
  display: flex;
  align-items: flex-start;
  gap: 15px;

  img {
    width: 100px;
    flex-shrink: 0;
  }

  ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}

@media screen and (min-width: 1438px) {
  #design {
    p {
      font-size: 24px;
    }
  }

  .design-list {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    margin: 48px 0;
  }

  .design-wrap {
    img {
      width: auto;
    }
  }
}

/* who */

.who-img {
  width: 345px;
  margin: 0 auto;
  margin-top: 20px;
}

@media screen and (min-width: 1438px) {
  .who-img {
    width: auto;
    margin: 0;
    flex-shrink: 0;
  }
}

/* why */

.why-img {
  width: 345px;
  margin: 0 auto;
  margin-top: 20px;
}

@media screen and (min-width: 1438px) {
  .why-img {
    width: auto;
    margin: 0;
    flex-shrink: 0;
  }

  .why-wrap {
    flex-direction: row-reverse;
    gap: 138px;
  }
}

/* play */

.play-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  color: #f2f2f2;
}

@media screen and (min-width: 1438px) {
  p {
    font-size: 24px;
    text-align: center;
  }
}

/* start */

#start {
  padding-bottom: 55px;
  border-bottom: 2px solid #ff6f0b;
}

.start-img {
  width: 345px;
  margin: 0 auto;
  margin-top: 25px;
}

.start-wrapper {
  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    color: #f2f2f2;
    margin-bottom: 10px;
  }
}

.iframe-wrap {
  position: relative;
  width: 335px;
  max-width: 100%;
  height: 203px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin: 0 auto;
  margin-top: 60px;
}

.demo-open {
  margin-top: 25px;
}

@media screen and (min-width: 768px) {
  .iframe-wrap {
    width: 500px;
    height: 290px;
  }
}

@media screen and (min-width: 1200px) {
  .iframe-wrap {
    min-width: 837px;
    height: 490px;
  }
}

.close-button-frame {
  position: absolute;
  top: 0;
  right: 0;
  transform: translateY(-40px) translateX(10px);
  border: none;
  width: 30px;
  height: 30px;
  cursor: pointer;
  padding: 0;
  background-color: transparent;
  z-index: 20;
  .menu-svg {
    fill: #f2f2f2;
    stroke: #f2f2f2;
  }
}

.close-button-frame:hover {
  .menu-svg {
    fill: #ff6f0b;
    stroke: #ff6f0b;
  }
}

#gameIframe {
  width: 100%;
  height: 100%;
  border: none;
}

.disclaimer {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  color: #f2f2f2;
  text-transform: uppercase;
  margin-top: 50px;

  span {
    font-weight: 800;
    text-transform: capitalize;
  }
}

@media screen and (min-width: 1382px) {
  #start {
    padding-bottom: 110px;
  }

  .start-wrapper {
    gap: 132px;

    p {
      text-align: start;
      font-size: 24px;
    }
  }

  .start-img {
    width: 482px;
    margin: 0;
    flex-shrink: 0;
  }

  .demo-open {
    margin-top: 48px;
  }

  .disclaimer {
    font-size: 24px;
    padding-top: 110px;
  }
}

/* footer */

.footer {
  padding: 26px 15px;
}

.footer-wrapper {
  display: flex;
  flex-direction: column-reverse;
  gap: 25px;
  margin-bottom: 18px;

  h4 {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 18px;
    color: #f2f2f2;
    margin-bottom: 15px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    color: #f2f2f2;
  }

  div {
    padding-bottom: 25px;
    border-bottom: 1px solid #ff6f0b;
  }
}

.social-list {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 24px;

  svg {
    fill: #fafafa;
    transition: fill 0.3s ease;
  }

  svg:hover {
    fill: #ff6f0b;
  }
}

.mail-link {
  font-weight: 800;
  transition: color 0.3s ease;
}

.mail-link:hover,
.footer-link:hover {
  color: #ff6f0b;
}

.footer-logo {
  display: block;
  width: 98px;
  margin: 0 auto;
}

.footer-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  text-align: center;
  color: #f2f2f2;
}

.policy-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

@media screen and (min-width: 1438px) {
  .footer {
    padding: 48px 72px;
  }

  .footer-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 72px;

    h4,
    p {
      font-size: 14px;
      text-align: start;
    }

    div {
      padding: 0;
      border: none;
    }
  }

  .footer-logo {
    width: 196px;
    flex-shrink: 0;
  }

  .footer-text {
    font-size: 14px;
    margin: 0;
  }
}

/* ********************* */

.hidden {
  display: none;
}

.popup-click {
  transform: translateY(120%) translateX(-50%);
}
