.nav {
  display: none;
}

.header {
  position: fixed;
  z-index: 9;
  width: 100%;
  padding: 16px 20px;
  background-color: #517700;
  background-image: url(./images/Vector.png);
  background-position: bottom left;
  background-repeat: no-repeat;
  background-size: contain;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.nav-link {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 20px;
  line-height: 140%;
  color: #fffcfc;
  position: relative;
}

.nav-link::before {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  content: "";
  background-color: #ff8609;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-link:hover::before {
  opacity: 1;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.menu-svg {
  stroke: #fff;
  fill: #fff;
}

@media screen and (min-width: 1429px) {
  .header {
    padding: 32px;
    background-position: bottom left -100px;
  }

  .nav {
    display: block;
  }

  .menu-open {
    display: none;
  }
}

/* modal  */

.modal {
  position: fixed;
  top: 76px;
  left: 0;
  z-index: 8;
  width: 100%;
  padding: 40px 20px;
  background: #517700;
  background-image: url(./images/Vector.png);
  background-position: bottom right -200px;
  background-repeat: no-repeat;
  background-size: contain;
}

.menu-nav-list {
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

/* popup */

.popup {
  position: fixed;
  z-index: 10;
  bottom: 10px;
  left: 50%;
  width: 95%;
  transform: translateX(-50%);
  padding: 30px 20px;
  box-shadow: 10px 10px 10px 0 rgba(0, 0, 0, 0.18);
  background: #5b982a;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.4s ease;
}

.popup-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 143%;
  color: #fff;
}

.popup-btn {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  line-height: 143%;
  color: #e3e1eb;

  border: 2px solid #e3e1eb;
  border-radius: 6px;
  padding: 12px 36px;

  transition: color 0.3s ease, background-color 0.3s ease;
}

.popup-btn:hover {
  color: #5b982a;
  background: #e3e1eb;
}

.popup-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

@media screen and (min-width: 1429px) {
  .popup {
    display: flex;
    padding: 22px 42px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .popup-text {
    max-width: 65%;
  }
  .popup-wrap {
    gap: 20px;
  }
}

/* home  */

.hero {
  background-image: linear-gradient(
      180deg,
      rgba(9, 102, 1, 0.5) 0%,
      rgba(9, 102, 1, 0.5) 100%
    ),
    url(./images/bg.png);
  background-size: cover;
  background-position: center;
  padding-top: 78px;
  padding-bottom: 97px;
}

.hero-logo {
  width: 172px;
  margin: 0 auto;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 44px;
  line-height: 127%;
  text-align: center;
  color: #fff;
  margin-bottom: 20px;
}

.hero-sub-title {
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 28px;
  line-height: 143%;
  text-align: center;
  color: #fffcfc;
  margin-bottom: 28px;
}

.hero-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 20px;
  line-height: 140%;
  text-align: center;
  color: #fffcfc;
  margin-bottom: 40px;
}

.hero-link {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 332px;
  max-width: 100%;
  border: 0.5px solid #fff;
  border-radius: 14px;
  background: linear-gradient(180deg, #ff5e21 7.5%, #f91 100%);
  font-family: var(--font4);
  font-weight: 600;
  font-size: 20px;
  line-height: 140%;
  color: #fff;
  padding: 22px;
  transition: background-image 0.3s ease, color 0.3s ease;
}

.hero-link:hover {
  background: linear-gradient(0deg, #ff5e21 7.5%, #f91 100%);
  color: #517700;
}

@media screen and (min-width: 1429px) {
  .hero {
    padding-top: 138px;
    padding-bottom: 111px;
    position: relative;
  }

  .hero-logo {
    width: auto;
    margin: 0;
    position: absolute;
    top: 138px;
    left: 50%;
    transform: translateX(-631px);
  }

  .hero-title {
    font-size: 76px;
    margin-bottom: 32px;
  }

  .hero-sub-title {
    font-size: 28px;
    margin-bottom: 48px;
  }

  .hero-text {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 60px;
  }
}

/* about */

#about {
  background-image: url(./images/Vector.png);
  background-position: bottom right;
  background-repeat: no-repeat;
  background-size: cover;
}

.about-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 20px;
  line-height: 140%;
  color: #243500;
}

.about-img {
  width: 335px;
  margin: 0 auto;
  margin-top: 32px;
}

@media screen and (min-width: 1429px) {
  #about {
    background-size: contain;
  }
  .about-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 52px;
  }

  .about-img {
    width: auto;
    margin: 0;
    flex-shrink: 0;
  }
}

/* features */

#features {
  background-image: url(./images/Vector.png);
  background-position: bottom left -200px;
  background-repeat: no-repeat;
}

.features-text {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 20px;
  line-height: 140%;
  color: #243500;
  text-align: center;
  margin-bottom: 68px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 56px;

  li {
    border: 1px solid #fff;
    border-radius: 20px;
    padding: 24px 28px;
    padding-top: 0;
    background: #37700a;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    color: #fff;
  }
  img {
    transform: translateY(-30px);
  }
}

.features-desc {
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 24px;
  line-height: 133%;
  text-align: center;
  color: #adff3b;
  margin-top: 36px;
}

@media screen and (min-width: 1429px) {
  .features-text {
    font-size: 24px;
    margin-bottom: 72px;
  }

  .features-list {
    flex-direction: row;

    li {
      width: calc((100% - 168px) / 4);
    }
  }

  .features-desc {
    font-size: 36px;
    margin-top: 48px;
  }
}

/* opponent */

.opponent-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 20px;
  line-height: 140%;
  color: #243500;
  margin-bottom: 42px;
}

.opponent-img {
  margin: 0 auto;
}

/* demo */

.demo-img {
  width: 328px;
  margin: 0 auto;
  margin-bottom: 32px;
}

.demo-text {
  font-family: var(--font-family);
  font-size: 20px;
  line-height: 140%;
  font-weight: 600;
  color: #243500;
  margin-bottom: 40px;

  span {
    color: #80d608;
    font-weight: 800;
  }
}

.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;
}

@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: #fff;
    stroke: #fff;
  }
}

.close-button-frame:hover {
  .menu-svg {
    fill: #ff5e21;
    stroke: #ff5e21;
  }
}

#gameIframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media screen and (min-width: 1382px) {
  .demo-weapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 76px;
  }

  .demo-img {
    width: auto;
    margin: 0;
    flex-shrink: 0;
  }

  .demo-open {
    margin: 0;
    flex-shrink: 0;
  }

  .demo-text {
    font-size: 24px;
  }
}

/* curse */

.curse-text {
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 20px;
  line-height: 140%;
  color: #243500;
}

.curse-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 28px 0;

  li {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 18px;
    line-height: 156%;
    color: #243500;
  }
}

@media screen and (min-width: 1382px) {
  .curse-text {
    font-size: 28px;
    text-align: center;
  }

  .curse-list {
    width: 1040px;
    margin: 40px auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px 112px;

    li {
      width: calc((100% - 112px) / 2);
    }
  }
}

/* ritual */

.ritual-img {
  width: 305px;
  margin: 0 auto;
  margin-bottom: 28px;
}

.ritual-title {
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 20px;
  line-height: 140%;
  color: #80d608;
}

.ritual-list {
  list-style: disc;
  padding-left: 20px;
  color: #243500;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 20px;
  line-height: 140%;
}

@media screen and (min-width: 1382px) {
  .ritual-img {
    width: 449px;
    margin: 0;
    flex-shrink: 0;
  }

  .ritual-weapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 72px;

    .section-title,
    .section-sub-title {
      text-align: start;
    }
  }

  .ritual-title,
  .ritual-list {
    font-size: 24px;
  }
}

/* join */

#join {
  background-image: url(./images/grass.png);
  background-position: bottom;
  background-repeat: no-repeat;
}

.join-text {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 20px;
  line-height: 140%;
  color: #243500;
}

.join-img {
  width: 335px;
  margin: 0 auto;
  margin-top: 32px;
}

@media screen and (min-width: 1382px) {
  .join-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }

  .join-img {
    width: auto;
    margin: 0;
    flex-shrink: 0;
  }

  .join-text {
    font-size: 24px;
  }
}

/* desclimer */

.desclimer-title {
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 32px;
  line-height: 125%;
  text-align: center;
  color: #fff;
  margin-bottom: 28px;
}

.desclimer-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 156%;
  text-align: center;
  color: #fff;
}

@media screen and (min-width: 1429px) {
  .desclimer-title {
    font-size: 36px;
  }

  .desclimer-text {
    font-size: 24px;
  }
}

/* footer */

.footer {
  padding: 40px 20px;
  background: #032500;
}

.footer-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 12px;
  line-height: 133%;
  color: #fff;
  text-align: center;
  margin-top: 32px;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.footer-link {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 143%;
  color: #fff;
}

.link:hover {
  text-decoration: underline;
}

@media screen and (min-width: 1429px) {
  .footer {
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 216px;
  }

  .footer-link {
    font-size: 16px;
  }

  .footer-text {
    font-size: 14px;
    margin: 0;
  }
}

/* ********************* */

.hidden {
  display: none;
}

.popup-click {
  transform: translateY(120%) translateX(-50%);
}
