/* Imports */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap");

/* Global Styles */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Source Sans Pro", sans-serif;
}

/* ---------------- Main Page Styles ---------------- */

/* General Navigation */
nav {
  background-color: #0000007e;
  width: 100%;
  max-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 10%;
  position: fixed;
  top: 0;
  z-index: 1000;
}

/* Logo Styles */
.nav_home {
  height: 80px;
  width: 80px;
}

.nav_home a img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

/* Navigation Items */
.nav_items {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

nav ul li {
  list-style-type: none;
  padding: 15px 40px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  transition: color 0.3s, transform 0.3s;
}

nav ul li a:hover {
  color: orange;
  transform: scale(1.05);
}

/* Button Styles */
nav .nav_items button {
  background-color: transparent;
  color: white;
  font-size: 20px;
  font-weight: 700;
  border: 2px solid #f7a522;
  padding: 15px 40px;
  cursor: pointer;
  border-radius: 30px;
  transition: background-color 0.3s, transform 0.3s;
}

nav .nav_items button a {
  color: white;
  text-decoration: none;
}

nav .nav_items button:hover {
  background-color: #f7a522;
  border-color: #f7a522;
  transform: scale(1.05);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 30px;
  background-color: transparent;
  color: white;
  border: none;
  cursor: pointer;
  z-index: 2000;
}

/* ---------------- Landing Page Styles ---------------- */

.landing_page {
  width: 100%;
  height: 100vh;
  background-image: url("Background.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing_container {
  padding: 30px 150px;
  width: 80%;
  height: 80%;
  margin-top: 140px;
  background-color: #0000007e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
}

.landing_header {
  color: white;
  font-size: 53px;
  text-align: center;
}

.landing_button a {
  padding: 30px 150px;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 40px;
  background-color: #f7a522;
  color: white;
  text-decoration: none;
  border-radius: 100px;
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  transition: background-color 0.3s, transform 0.3s;
}

.landing_button a:hover {
  background-color: #f7a522;
  transform: translateX(-50%) scale(1.05);
}

/* Scrollbar Styles */
.scrollbar {
  width: 100%;
  height: 700px;
  padding: 100px;
}

.best_sellers_heading {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 25px;
}

.slider-container {
  overflow-x: auto;
  display: flex;
  flex-wrap: nowrap;
  box-sizing: border-box;
}

.section_box,
.section_box_closed {
  width: 300px;
  height: 400px;
  background-color: #ffffff;
  margin: 10px;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
}

.section_box:hover,
.section_box_closed:hover {
  border: 3px solid rgb(0, 0, 0);
}

/* Section Box Image Styles */
.items_image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.items_image img {
  width: 105%;
  height: 105%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.section_box:hover .items_image::before,
.section_box_closed:hover .items_image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0000007e;
  z-index: 1;
}

/* Hover Button Styles */
.hover-button1,
.hover-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  padding: 10px 20px;
  background-color: #686868;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  z-index: 2;
  transition: background-color 0.3s ease;
}

.section_box:hover .hover-button1,
.section_box_closed:hover .hover-button {
  display: block;
}

.hover-button1:hover,
.hover-button:hover {
  background-color: #4c4c4c;
}

/* Gallery Styles */
.gallery_container {
  width: 100%;
  height: 50vh;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10vh;
}

.photos {
  flex: 1;
  position: relative;
}

.photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

/* Text Overlay */
.overlay-text {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: black;
  font-size: 3rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  z-index: 2;
}

/* Hover Button for Gallery */
.hover-button {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 15px 30px;
  background-color: rgba(104, 104, 104, 0.8);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  font-family: "Poppins", sans-serif;
  z-index: 3;
  display: block;
  transition: background-color 0.3s ease;
}

.hover-button:hover {
  background-color: rgba(76, 76, 76, 0.8);
}

/* Footer Styles */
footer {
  width: 100%;
  background-color: rgba(83, 72, 105, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Footer Content */
.main_container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  position: relative;
  flex-wrap: wrap;
}

.main_container::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: black;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
}

/* Footer Logo */
.footer-logo {
  padding: 30px 0 15px;
  text-align: center;
}

.footer-logo img {
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
  flex-wrap: wrap;
}

/* Footer Links */
.footer-links {
  display: flex;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1 1 200px;
}

.footer-section h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: #b3b3b3;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-section a:hover {
  color: white;
}

/* Footer Media and Copyright */
.container1 {
  display: flex;
  width: 100%;
  margin-top: 20px;
}

.copyright1 {
  color: black;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 50%;
  padding-left: 10px;
  font-size: 0.8rem;
}

.media1 {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  width: 50%;
}

.media1 img {
  width: 32px;
  height: 32px;
}

.media1 img[alt="Discord Logo"] {
  filter: invert(39%) sepia(25%) saturate(749%) hue-rotate(201deg)
    brightness(99%) contrast(98%);
}

.media1 img[alt="X Logo"] {
  filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%)
    contrast(100%);
}

.media1 img[alt="Youtube Logo"] {
  filter: invert(22%) sepia(100%) saturate(7483%) hue-rotate(357deg)
    brightness(91%) contrast(101%);
}

/* ---------------- Grid Clash ---------------- */
/* Apply Source Sans Pro to the entire page */
body {
  font-family: "Source Sans Pro", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333; /* Ensure readability with a darker text color */
}

/* Adjust the container */
.grid_clash_container {
  /* border: solid 5px red; */
  width: 100%;
  padding: 50px;
  padding-top: 150px;
  display: flex;
  flex-direction: column;
  gap: 50px;
  background-color: #f7f7f7;
  align-items: center;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  min-height: 100vh; /* Ensure the container spans the full height of the viewport */
}

/* Ensure consistent box-sizing across elements */
.grid_clash_container,
.grid_clash_about_content,
.grid_clash_footer {
  box-sizing: border-box;
}

.grid_background {
  /* border: solid 5px rgb(21, 255, 0); */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.35;
  object-fit: cover;
}

/* Adjusting the main content section */
.grid_clash_about_content {
  /* border: solid 5px rgb(217, 255, 0); */
  display: flex;
  gap: 50px;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 80%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Enhanced text box */
.grid_clash_text_box {
  /* border: solid 5px rgb(0, 4, 255); */
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px; /* Made the box wider */
  padding: 30px; /* Increased padding inside the box */
  border-radius: 10px; /* Rounded corners */
  background: linear-gradient(
    135deg,
    rgba(255, 192, 203, 0.8),
    rgba(173, 216, 230, 0.8)
  );
  /* Subtle pink-to-blue gradient */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Stronger shadow for better depth */
  color: #333; /* Darker text for readability */
  font-family: "Source Sans Pro", sans-serif; /* Apply font to this box */
}

.grid_clash_header {
  /* border: solid 5px rgb(0, 255, 38); */
  padding: 10px;
  text-align: center;
  font-size: 2rem; /* Slightly larger font size */
  font-weight: bold;
}

.grid_clash_body {
  /* border: solid 5px rgb(255, 153, 0); */
  padding: 10px;
  text-align: center;
  font-size: 1.1rem; /* Slightly larger font size for readability */
  font-family: "Source Sans Pro", sans-serif; /* Ensure consistent font */
}

/* Image with responsive fix */
.grid_clash_image {
  /* border: solid 5px rgb(0, 132, 255); */
  width: 100%;
  max-width: 400px; /* Maintain a reasonable maximum size */
  height: auto;
  min-width: 400px; /* Prevent the image from shrinking too much */
  transition: transform 0.3s ease;
  margin-left: 30px;
}

.grid_clash_image img {
  max-width: 100%;
  height: auto;
}

.grid_clash_image:hover {
  transform: scale(1.2);
}

.grid_download_buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  /* border: 5px solid #f72222; */
}

.grid_download_buttons a img {
  width: 150px;
  height: auto;
  /* border: 5px solid #4d22f7; */
}

/* Enhanced footer styles */
.grid_clash_footer {
  padding: 40px; /* Increased padding for better spacing */
  text-align: center;
  width: 100%;
  max-width: 80%;
  margin: 0 auto;
  background: linear-gradient(
    135deg,
    rgba(255, 192, 203, 0.8),
    rgba(173, 216, 230, 0.8)
  ); /* Subtle pink-to-blue gradient */
  color: #333; /* Darker text for better readability */
  border-radius: 10px; /* Optional: Rounded corners */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Stronger shadow for depth */
  box-sizing: border-box;
  font-family: "Source Sans Pro", sans-serif; /* Apply font to the footer */
}

/* Media queries for screens up to 500px */
@media (max-width: 500px) {
  .grid_clash_container {
    padding: 20px;
    padding-top: 120px;
  }

  .grid_clash_about_content {
    flex-direction: column; /* Stack elements vertically */
    gap: 40px; /* Reduce gap */
    max-width: 100%; /* Use full width of the container */
  }

  .grid_clash_text_box {
    max-width: 100%; /* Allow text box to span full width */
    padding: 20px; /* Adjust padding for smaller screens */
  }

  .grid_clash_image {
    width: 100%; /* Make the image responsive */
    max-width: 300px; /* Limit maximum size of the image */
    min-width: 150px; /* Prevent the image from shrinking too much */
    margin-left: 0; /* Remove margin to center the image */
  }

  .grid_clash_footer {
    padding: 20px; /* Adjust padding for smaller screens */
    max-width: 100%; /* Make the footer span the full width */
    font-size: 1rem; /* Adjust text size for better readability */
    margin-bottom: 0; /* Remove any margin below the footer */
  }

  .grid_clash_header {
    font-size: 1.5rem; /* Reduce header font size */
  }

  .grid_clash_body {
    font-size: 1rem; /* Adjust text size for better readability */
  }

  .grid_download_buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    /* border: 5px solid #f72222; */
  }
}

/* ---------------- Our Story Page ---------------- */

/* About Page */
.about_container {
  width: 100%;
  height: auto;
  padding: 150px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: #f7f7f7;
}

.about_content {
  flex: 1;
  padding: 20px;
  width: 100%;
  max-width: 600px;
}

.about_header {
  text-align: left;
  margin-bottom: 30px;
  margin-top: 20px;
  font-size: 2.5rem;
  color: #333;
}

.about_p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
}

.about_img {
  flex: 1;
  width: 100%;
  max-width: 500px;
  margin: 0 0 20px 50px;
  position: relative;
}

.about_img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about_img img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Mission Section */
.mission_section {
  width: 100%;
  padding: 100px 50px;
  background-color: #ececec;
  text-align: center;
}

.mission_header h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #333;
}

.mission_p {
  font-size: 1.2rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ---------------- Help Page ---------------- */

.help_section {
  background-image: url("Content/Images/image.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 100px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.help_container {
  max-width: 900px;
  background-color: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 40px;
  border-radius: 10px;
}

.help_header {
  text-align: center;
  margin-bottom: 30px;
}

.help_header h2 {
  font-size: 2.5rem;
  color: #333;
}

.help_header p {
  color: #777;
  font-size: 1rem;
  margin-top: 10px;
}

.help_form {
  width: 100%;
}

.form_group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form_group label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.form_group input,
.form_group select,
.form_group textarea {
  padding: 15px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.form_group button {
  padding: 15px;
  font-size: 1rem;
  background-color: #ef447e;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.form_group textarea {
  resize: vertical;
  min-height: 150px;
}

.form_group input:focus,
.form_group select:focus,
.form_group textarea:focus {
  border-color: #ef447e;
}

.form_group button:hover {
  background-color: #d83b70;
}

/* ---------------- Games Page ---------------- */

.games_banner {
  position: relative;
  width: 100%;
  height: 40vh;
  overflow: hidden;
  border: none;
}

.banner_image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  /* border: 5px solid #f72222; */
}

.banner_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  color: black;
  /* border: 5px solid #f7f722; */
}

.banner_overlay h1 {
  font-size: 48px;
  font-weight: bold;
  text-align: center;
  /* border: 5px solid #7022f7; */
}

/* Adjusting the game showcase sections with borders */
.games_showcase {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  /* border: 5px solid #f722bb; */
}

.game_row {
  display: flex;
  align-items: center;
  padding: 100px;
  margin: 0;
  gap: 100px;
  /* border: 5px solid #22def7; */
}

.game_icon {
  /* border: 5px solid #3422f7; */
  display: flex;
  justify-content: center;
  align-items: center;
}

.game_icon img {
  width: 350px;
  height: 350px;
  object-fit: contain;
}

.game_details {
  flex: 1;
  /* border: 5px solid #22f74d; */
}

.game_details h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  /* border: 5px solid #f7a922; */
  align-items: center;
}

.game_details p {
  font-size: 18px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 25px;
  /* border: 5px solid #22f78d; */
}

.download_buttons {
  display: flex;
  gap: 15px;
  align-items: center;
  /* border: 5px solid #f72222; */
}

.download_buttons a img {
  width: 150px;
  height: auto;
  /* border: 5px solid #4d22f7; */
}

.gray_bg {
  background-color: #ececec;
}

.reverse_row {
  flex-direction: row-reverse;
}

/* ---------------- Media Queries ---------------- */

/* Hamburger Menu for Small Screens */
@media (max-width: 500px) {
  .hamburger {
    display: block;
  }

  #navItems {
    display: none;
    position: fixed;
    top: 100px;
    right: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1999;
  }

  #navItems.show {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    width: 100%;
    list-style: none;
  }

  nav ul li {
    padding: 10px 0;
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    font-size: 15px;
    display: block;
    padding: 10px 0;
    transition: color 0.3s ease, background-color 0.3s ease;
  }

  nav ul li a:hover {
    color: orange;
    background-color: rgba(255, 255, 255, 0.1);
  }
}

/* Styles for Larger Screens */
@media (min-width: 500px) {
  .hamburger {
    display: none;
  }

  #navItems {
    display: flex;
    flex-direction: row;
    background-color: transparent;
    position: static;
  }

  nav ul {
    flex-direction: row;
  }

  nav ul li {
    padding: 0 20px;
  }
}

/* Responsive Styles for Help Page */
@media (max-width: 768px) {
  .help_container {
    padding: 20px;
  }

  .help_header h2 {
    font-size: 2rem;
  }

  .form_group input,
  .form_group select,
  .form_group textarea {
    font-size: 0.9rem;
  }

  .form_group button {
    font-size: 0.9rem;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-logo {
    margin-bottom: 20px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
  }

  .footer-section {
    margin-right: 0;
    margin-bottom: 20px;
    text-align: center;
  }
}

/* Games Showcase */
@media screen and (max-width: 500px) {
  nav {
    flex-direction: column;
    padding: 10px;
  }

  .nav_home {
    margin-bottom: 20px;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
    cursor: pointer;
  }

  .landing_container {
    margin-top: 0;
    padding: 20px;
    width: 90%;
    height: 60%;
  }

  .landing_header h1 {
    font-size: 50px;
  }

  .landing_button a {
    padding: 25px;
    font-size: 20px;
  }

  .copyright h2 {
    font-size: 15px;
  }

  .about_container {
    margin-top: 220px;
    padding: 10px;
    flex-direction: column;
  }

  .about_img {
    width: 80%;
  }

  .scrollbar {
    width: 100%;
    padding: 30px;
  }

  nav ul li a {
    font-size: 15px;
  }

  nav .nav_items button {
    padding: 10px 30px;
  }

  .game_row {
    flex-direction: column;
    align-items: center;
    padding: 40px;
  }

  .download_buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
  }

  /* Overlay Text */
  .overlay-text {
    font-size: 1.8rem !important; /* Make text smaller */
    transform: translate(-50%, -50%);
  }

  /* Hover Button */
  .hover-button {
    padding: 10px 20px !important;
    font-size: 1rem !important;
  }
}

@media screen and (max-width: 400px) {
  /* Overlay Text */
  .overlay-text {
    font-size: 1.2rem !important; /* Smaller text for very small screens */
    transform: translate(-50%, -50%); /* Maintain centering */
  }

  /* Hover Button */
  .hover-button {
    display: flex; /* Enable flexbox */
    align-items: center; /* Vertically center text */
    justify-content: center; /* Horizontally center text */
    padding: 5px 10px !important; /* Reduce padding for smaller screens */
    font-size: 0.9rem !important; /* Slightly smaller font size */
    height: 40px !important; /* Set fixed height */
    line-height: normal; /* Reset line-height since flexbox centers text */
    width: auto; /* Allow button width to adjust based on content */
  }
}
