.nav {
  display: none;
}

.header {
  position: fixed;
  z-index: 9;
  width: 100%;
  padding: 16px;
  background: #fff;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
}

.nav-link {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  color: #002d68;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::before {
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  content: "";
  width: 6px;
  height: 6px;
  background-color: #002d68;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-link:hover::before {
  opacity: 1;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin-left: auto;
}

.menu-svg {
  stroke: #002d68;
  fill: #002d68;
}

@media screen and (min-width: 1428px) {
  .header {
    padding: 22px;
  }

  .nav {
    display: block;
  }

  .menu-open {
    display: none;
  }
}

/* modal  */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 8;
  width: 100%;
  padding: 60px;
  padding-top: 120px;
  box-shadow: 0 2px 12px 0 rgba(30, 45, 0, 0.35), inset 0 0 22px 0 #078aff;
  background: linear-gradient(90deg, #26c8f1 0%, #d6fcff 100%);
}

.menu-nav-list {
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

/* popup */

.popup {
  position: fixed;
  z-index: 10;
  bottom: 10px;
  left: 50%;
  width: 95%;
  transform: translateX(-50%);
  padding: 20px;
  border: 1px solid #fff;
  border-radius: 20px;
  box-shadow: 0 14px 42px 0 rgba(8, 15, 52, 0.06);
  background: #1247c5;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  transition: transform 0.4s ease;
}

.popup-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 187%;
  color: #fff;
  margin-bottom: 36px;
}

.popup-btn {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 112%;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 56px;
  padding: 18px 26px;
  box-shadow: 0 4px 8px 0 rgba(74, 58, 255, 0.08);
  transition: color 0.3s ease, background-color 0.3s ease;
}

.popup-btn:hover {
  color: #1247c5;
  background: #fff;
}

.popup-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

@media screen and (min-width: 1428px) {
  .popup {
    display: flex;
    padding: 50px 130px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .popup-text {
    font-size: 16px;
    max-width: 648px;
    margin: 0;
  }
  .popup-wrap {
    gap: 20px;
  }
}

/* home  */

.hero {
  background-image: url(./images/hero.png);
  background-size: cover;
  background-position: center;
  padding-top: 83px;
  position: relative;
}

.hero-logo {
  width: 200px;
  margin: 0 auto;
  margin-bottom: 22px;
}

.hero-title {
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 32px;
  text-transform: uppercase;
  text-align: center;
  color: #001437;
  text-shadow: 0 0 0px #fff, 0 0 0px #fff, 0 0 1px #fff, 0 0 3px #fff,
    0 0 4px #fff, 0 0 8px #fff;
  margin-bottom: 13px;
}

.hero-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  margin-bottom: 32px;
}

.hero-link {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 270px;
  max-width: 100%;
  transition: transform 0.3s ease;
}

.hero-link:hover {
  transform: scale(1.04);
}

@media screen and (min-width: 1428px) {
  .hero {
    padding-top: 107px;
    padding-bottom: 108px;
  }

  .hero-logo {
    width: auto;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-text {
    font-size: 20px;
    max-width: 896px;
    margin: 0 auto;
    margin-bottom: 32px;
  }
}

/* story */

.story-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 162%;
  color: #001437;
  margin-bottom: 20px;
}

@media screen and (min-width: 1428px) {
  .story-text {
    font-size: 18px;
  }
}

/* features */

.features-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 133%;
  text-align: center;
  color: #fff;
  margin-bottom: 28px;
}

.features-sub-title {
  font-family: var(--second-family);
  font-weight: 900;
  font-size: 22px;
  line-height: 109%;
  text-align: center;
  color: #fff;
  margin-bottom: 22px;
}

.features-wrapper {
  padding: 22px 0;
}

.features-item {
  padding: 18px;
  width: 335px;
  min-height: 333px;

  max-width: 100%;
  box-shadow: 0 0 22px 0 #fff;
  background: linear-gradient(180deg, #08019c 0%, #0d42c3 100%);

  p {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 20px;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    margin-bottom: 6px;
  }
  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 18px;
    line-height: 144%;
    text-align: center;
    color: #fff;
    margin-bottom: 10px;
  }

  img {
    width: 142px;
    margin: 0 auto;
  }
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  transform: scale(1.1);
}

.btn-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 22px;
}

@media screen and (min-width: 1428px) {
  .features-text {
    max-width: 700px;
    margin: 0 auto;
    margin-bottom: 28px;
  }

  .features-item {
    width: 440px;
    min-height: 297px;
  }
}

/* about */

.about-img {
  width: 335px;
  margin: 0 auto;
  margin-bottom: 22px;
}

.about-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 144%;
  color: #001437;
}

@media screen and (min-width: 1428px) {
  .about-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
  }

  .about-img {
    width: auto;
    margin: 0;
    flex-shrink: 0;
  }
}

/* demo */

#demo {
  padding-bottom: 151px;
}

.demo-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 144%;
  text-align: center;
  color: #fff;
  margin-bottom: 40px;
}

.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) {
  #demo {
    padding-bottom: 102px;
  }

  .demo-text {
    max-width: 1201px;
    margin: 0 auto;
    margin-bottom: 40px;
  }

  .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: blue;
    stroke: blue;
  }
}

#gameIframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media screen and (min-width: 1428px) {
  #demo {
    background-position: center;
  }

  .demo-text {
    max-width: 641px;
    font-size: 24px;
    margin: 0 auto;
    margin-bottom: 31px;
  }
}

/* tips */

#tips {
  padding-left: 0;
  padding-right: 0;
}

.tips-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 144%;
  text-align: center;
  color: #001437;
  padding: 0 20px;
  margin-bottom: 28px;
}

.tips-item {
  padding: 18px;
  width: 335px;
  min-height: 177px;
  max-width: 100%;
  box-shadow: 0 0 22px 0 #fff;
  background: linear-gradient(180deg, #08019c 0%, #0d42c3 100%);

  p {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 20px;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    margin-bottom: 10px;
  }

  span {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 18px;
    line-height: 144%;
    text-align: center;
    color: #fff;
  }
}

@media screen and (min-width: 1428px) {
  .tips-text {
    max-width: 837px;
    margin: 0 auto;
    margin-bottom: 40px;
  }

  .tips-item {
    width: 393px;
  }
}

/* mobile */

.mobile-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 144%;
  color: #fff;
  margin-bottom: 24px;
}

.mobile-sub-title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 22px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}

.mobile-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 144%;
  color: #fff;
}

.phone {
  width: 335px;
  margin: 0 auto;
}

@media screen and (min-width: 1428px) {
  #mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    padding-left: 120px;
  }

  .phone {
    width: auto;
    margin: 0;
    flex-shrink: 0;
  }
}

/* championship */

#championship {
  padding-bottom: 122px;
}

.championship-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 144%;
  color: #001437;
}

@media screen and (min-width: 1428px) {
}

/* desclimer */

.desc-text {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 22px;
  text-transform: uppercase;
  color: #fff;
}

/* footer */

.footer {
  padding: 33px 20px;
  background-image: url(./images/footer.png);
  background-size: cover;
  background-position: center;
}

.footer-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  text-transform: lowercase;
  color: #001437;
  margin-bottom: 22px;
  text-align: center;
}

.footer-wrap {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  text-transform: capitalize;
  color: #001437;
}

.link:hover {
  text-decoration: underline;
}

@media screen and (min-width: 1428px) {
  .footer {
    padding: 43px;
  }
  .footer-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }
}

/* ********************* */

.hidden {
  display: none;
}

.popup-click {
  transform: translateY(120%) translateX(-50%);
}
