@font-face {
  font-family: "Barlow";
  src: url("/gameworldtop-fonts/gameworldtop-barlow.woff2") format("woff2");
}

@font-face {
  font-family: "Bungee";
  src: url("/gameworldtop-fonts/gameworldtop-bungee.woff2") format("woff2");
}

:root {
  --BG: #080a1d;
  --stroke-2: linear-gradient(180deg, #5ae8fc 0%, #d77ff1 100%);
  --coloe_card: linear-gradient(180deg, #15173f 0%, #1d216b 100%);
  --button: linear-gradient(180deg, #00a6ff 0%, #00d4ff 53.37%, #65fbd1 100%);
  --black: #1f1f1f;
  --text-white: #fff;
  --text-gray: #c1c1c1;
  --grey_light: #e4e4e4;
}

html {
  scroll-behavior: smooth;
}

body,
p,
ul {
  margin: 0;
}

ul {
  padding-inline-start: 0;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  height: 100svh;
}

main {
  flex-grow: 1;
}

.gameworldtop-desktop-display-none {
  display: none;
}

.gameworldtop-container {
  margin: 0 auto;
  padding: 0 100px;
  width: 100%;
  height: 100%;
  max-width: 1440px;
}

.gameworldtop-header {
  border-bottom: 0.5px solid #d77ff1;
  background: var(
    --coloe_card,
    linear-gradient(180deg, #15173f 0%, #1d216b 100%)
  );
}

.gameworldtop-header_content {
  padding: 25px 0;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gameworldtop-logo {
  width: 95px;
  height: 62.344px;
  aspect-ratio: 95/62.34;
}

.gameworldtop-logo-footer {
  width: 94.618px;
  height: 59.783px;
  aspect-ratio: 94.62/59.78;
}

.gameworldtop-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gameworldtop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  color: var(--button);
}

.gameworldtop-burger,
.gameworldtop-burger-nav-menu {
  display: none;
}

.barlow-600 {
  font-family: "Barlow";
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0%;
}

.bungee-400 {
  font-family: "Bungee";
  font-weight: 400;
  font-style: normal;
  color: var(--text-white);
}

.gameworldtop-nav-link {
  text-decoration: none;
  background: var(
    --button,
    linear-gradient(180deg, #00a6ff 0%, #00d4ff 53.37%, #65fbd1 100%)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gameworldtop-main {
  background-color: var(--BG);
}

.gameworldtop-main_content {
  display: flex;
  flex-direction: column;
  gap: 70px;
}

.gameworldtop-about {
  margin-top: 20px;
}

section {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.gameworldtop-gradient_wrapper {
  position: relative;
  z-index: 0;
}

.gameworldtop-about_top {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  background-image: url("/gameworldtop-img/gameworldtop-about_top_img.webp");
  background-size: cover;
  background-position: center;
}

.gameworldtop-about_top_content {
  width: 100%;
  max-width: 577px;
  margin-left: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  text-align: justify;
}

.header-1 {
  margin: 0;
  font-style: normal;
  font-size: 44px;
  line-height: 49px;
  text-transform: uppercase;
  letter-spacing: 0%;
}

.text-white {
  color: var(--text-white);
}

.gameworldtop-button {
  padding: 12px 16px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--black);
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
  background-image: var(--button);
  cursor: pointer;
}

.gameworldtop-button::before {
  margin: -1px;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  border-radius: inherit;
  background-image: var(--button);
}

.gameworldtop-button:hover {
  color: #ffffff;
}

.header-2 {
  margin: 0;
  text-align: center;
  font-size: 34px;
  font-weight: 400;
  line-height: 31px;
}

.gameworldtop-about_bottom {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
}

.gameworldtop-about_bottom_img {
  min-width: 606px;
  min-height: 436px;
  background: url("/gameworldtop-img/gameworldtop-about_bottom_img.webp")
    transparent center / contain no-repeat;
}

.gameworldtop-about_bottom_content {
  width: 100%;
  max-width: 610px;
  display: flex;
  flex-direction: column;

  gap: 24px;
}

.text-gray {
  color: var(--text-gray);
}

.gameworldtop-about_bottom_list {
  width: 100%;
  max-width: 610px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.gameworldtop-about_bottom_list_item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gameworldtop-about_bottom_list_item_img {
  width: 50px;
  height: 34px;
  background: url("/gameworldtop-img/gameworldtop-treasure_chest.webp")
    transparent center / contain no-repeat;
}

.gameworldtop-games-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  row-gap: 40px;
  column-gap: 10px;
  justify-items: center;
}

.gameworldtop-games_card {
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 0;
}

.gameworldtop-games_card_img_container {
  width: 398px;
  height: 334px;
}

.gameworldtop-games_card_img_container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.header-3 {
  margin: 0;
  text-align: center;
  font-size: 24px;
  line-height: 28px;
}

.gameworldtop-games_card_button_container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(
    --coloe_card,
    linear-gradient(180deg, #15173f 0%, #1d216b 100%)
  );
}

.box-with-gradient-border {
  border-radius: 12px;
  border: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.box-with-gradient-border::before {
  margin: -1px;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--stroke-2);
}

.gameworldtop-games_card_button_container_second_line {
  min-height: 164px;
  justify-content: start;
}

.gameworldtop-contacts {
  margin: 40px 0;
  padding: 40px 16px;
  height: 446px;
  background-image: url("/gameworldtop-img/gameworldtop-contacts__bg.webp");
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.gameworldtop-contacts_form {
  max-width: 840px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gameworldtop-contacts_form_fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 0;
  color: var(--black);
}

.gameworldtop-contacts_form_input {
  padding: 15.5px 24px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.gameworldtop-contacts_form_textarea {
  padding: 13.5px 24px;
  resize: none;
  width: 100%;
  box-sizing: border-box;
  height: 100%;
}

.bg-grey_light {
  background-color: var(--grey_light);
}

.gameworldtop-faq_content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 0;
}

.gameworldtop-faq-btn {
  border: none;
  background: none;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  text-align: start;
}

.gameworldtop-faq-btn::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
}

.gameworldtop-faq_item {
  position: relative;
  padding: 16px;
  display: flex;
  flex-direction: column;
  background-image: var(
    --coloe_card,
    linear-gradient(180deg, #15173f 0%, #1d216b 100%)
  );
  row-gap: 0;
  transition: row-gap 0.3s linear;
}

.gameworldtop-faq_item.active {
  row-gap: 8px;
}

.accordeon-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.accordeon-text {
  overflow: hidden;
}

.accordeon-content.active {
  grid-template-rows: 1fr;
}

.gameworldtop-faq_item_img {
  display: inline-block;
  width: 41px;
  height: 41px;
  border: none;
  background: url("/gameworldtop-img/gameworldtop-arrow.webp");
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.gameworldtop-faq_item_img.rotated {
  transform: rotate(180deg);
}

.gameworldtop-disclaimer_wrapper {
  margin-bottom: 70px;
  position: relative;
  z-index: 0;
}

.gameworldtop-disclaimer {
  padding: 24px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background-image: var(
    --coloe_card,
    linear-gradient(180deg, #15173f 0%, #1d216b 100%)
  );
}

.gameworldtop-disclaimer_over18 {
  width: 90px;
  height: 40px;
}

.gameworldtop-disclaimer_content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.gameworldtop-footer {
  background: var(
    --coloe_card,
    linear-gradient(180deg, #15173f 0%, #1d216b 100%)
  );
}

.gameworldtop-footer_content {
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.gameworldtop-footer_content_text {
  display: flex;
  gap: 76px;
}

.gameworldtop-footer_content_text_box {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gameworldtop-footer_list {
  padding-inline-start: 20px;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  gap: 8px;
  list-style: disc;
}

.gameworldtop-footer_badge {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gameworldtop-nav_footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 51px;
  list-style: none;
  color: var(--button);
}

/* Form validation styles */
.field-warning {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
  padding: 5px;
  border-radius: 4px;
  background-color: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.2);
}

.field-success {
  color: #27ae60;
  font-size: 12px;
  margin-top: 5px;
  padding: 5px;
  border-radius: 4px;
  background-color: rgba(39, 174, 96, 0.1);
  border: 1px solid rgba(39, 174, 96, 0.2);
}

.form-success-message {
  margin-top: 15px;
  animation: fadeIn 0.3s ease-in-out;
}

.form-success-message p {
  margin: 0;
  padding: 12px;
  text-align: center;
  font-size: 14px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form input validation states */
.gameworldtop-contacts_form_input.invalid,
.gameworldtop-contacts_form_textarea.invalid {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 1px rgba(231, 76, 60, 0.2) !important;
}

.gameworldtop-contacts_form_input.valid,
.gameworldtop-contacts_form_textarea.valid {
  border-color: #27ae60 !important;
  box-shadow: 0 0 0 1px rgba(39, 174, 96, 0.2) !important;
}

/* Disabled submit button styling */
.gameworldtop-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.gameworldtop-button:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

@media screen and (max-width: 1024px) {
  .gameworldtop-about_top_content {
    max-width: 400px;
  }

  .gameworldtop-about_bottom {
    flex-direction: column;
  }
}

@media screen and (max-width: 768px) {
  .gameworldtop-container {
    padding: 0 24px;
  }

  .gameworldtop-header {
    border-bottom: none;
  }

  .gameworldtop-header_content {
    padding: 10px 0;
    min-height: 38px;
  }

  .gameworldtop-logo {
    width: 75.05px;
    height: 49.252px;
    aspect-ratio: 75.05/49.25;
  }

  .gameworldtop-burger {
    display: block;
    width: 22px;
    height: 15px;
    cursor: pointer;
    z-index: 1001;
  }
  .gameworldtop-burger_bar {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 0.4s;
  }
  .gameworldtop-burger_bar.rotated {
    transform: rotate(90deg);
  }

  .gameworldtop-burger-nav-menu {
    position: fixed;
    top: 38px;
    right: -350px;
    width: 350px;
    height: 100%;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    gap: 24px;
    background-image: var(--coloe_card);
    transition: 0.4s;
    z-index: 1000;
  }

  .gameworldtop-burger-nav-menu.active {
    right: 0;
  }

  .gameworldtop-burger-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  .gameworldtop-burger-menu-overlay.active {
    display: block;
  }

  .gameworldtop-about {
    margin-top: 70px;
  }

  section {
    gap: 24px;
  }

  .gameworldtop-about_top {
    width: 100%;
    min-height: 410px;
    background-image: url("/gameworldtop-img/gameworldtop-about_top_bg_mobile.webp");
    background-size: cover;
    background-position: center;
  }

  .gameworldtop-about_top_content {
    max-width: fit-content;
    margin: 24px;
  }

  .header-1 {
    margin: 0;
    text-align: center;
    font-size: 24px;
    line-height: 28px;
  }

  .gameworldtop-about_bottom {
    gap: 24px;
  }

  .gameworldtop-about_bottom_img {
    min-width: 312px;
    min-height: 193px;
  }

  .gameworldtop-about_bottom_content {
    width: 100%;
    max-width: 610px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .gameworldtop-games-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
  }
  .swiper {
    width: 100%;
  }
  .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
  }

  .gameworldtop-games_card {
    max-width: 312px;
    width: 100%;
    transition: transform 0.6s ease;
  }

  .gameworldtop-games_card_img_container {
    max-width: 312px;
    width: 100%;
  }

  .gameworldtop-games_card_button_container_second_line {
    min-height: 162px;
  }

  .swiper-coverflow {
    perspective: 1200px;
  }
  .swiper-slide .gameworldtop-games_card {
    transform-style: preserve-3d;
  }

  .gameworldtop-footer_content {
    padding: 30px 0;
    flex-direction: column;
    gap: 24px;
  }

  .gameworldtop-footer_content_text {
    flex-direction: column;
    gap: 24xpx;
  }

  .gameworldtop-footer_badge {
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    gap: 24px;
  }

  .gameworldtop-nav_footer {
    display: flex;
    flex-wrap: wrap;
    row-gap: 16px;
  }

  .gameworldtop-mobile-display-none {
    display: none;
  }

  .gameworldtop-desktop-display-none {
    display: block;
  }
}

@media screen and (max-width: 360px) {
  .gameworldtop-faq-btn {
    font-size: 20px;
  }
}
