/* Reset some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Basic styling */
body {
  font-family: "Arial", sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

/* Header */
header {
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(205, 205, 205, 0.2);
  padding: 20px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000; /* Đảm bảo header luôn ở trên cùng */
}
/* Để thêm hiệu ứng shadow khi cuộn trang */
header.sticky {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.header-content {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #2dacf6;
  gap: 10px;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: #000000;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
}

nav ul li a:hover {
  color: #2dacf6;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  color: rgb(0, 0, 0);
  font-size: 2em;
  cursor: pointer;
}
/* featured game */
.featured-section {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.featured-section h2 {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #2dacf6;
}

.game-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.stat-box {
  padding: 20px 30px;
  border-radius: 12px;

  text-align: center;
  flex: 1 1 200px;
}

.stat-box i {
  font-size: 30px;
  color: #02c308;
  margin-bottom: 10px;
}

.stat-box h3 {
  font-size: 24px;
  margin: 0;
}

.stat-box p {
  font-size: 14px;
  color: #555;
}

.game-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px 20px;
}

.game-card {
  text-align: center;
}

.mobile-device {
  width: 312px;
  height: 598px;
  background-color: #000000;
  border-radius: 40px;
  border: 6px solid #333;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.mobile-device .notch {
  width: 80px;
  height: 20px;
  background-color: #000;
  border-radius: 10px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.mobile-device .screen {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mobile-device .screen .background_game {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.store-buttons img {
  height: 50px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
  padding: 0px 20px;
}

.store-buttons img:hover {
  transform: scale(1.05);
}

/* Contact Section */
#contact {
  background-color: #f9f9f9;
  padding: 60px 20px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.contact-flex {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  gap: 40px;
}

.contact-left h2 {
  font-size: 2.5rem;
  color: #2dacf6;
  margin-bottom: 10px;
}

.contact-left p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 20px;
}
.contact-info {
  font-weight: bold;
}
.contact-info p {
  font-size: 1.1rem;
  margin: 12px 0;
  display: flex;
  align-items: center;
  color: #444;
}

.contact-info i {
  margin-right: 10px;
  color: #2dacf6;
  font-size: 1.2rem;
}

.contact-info a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: #2dacf6;
  text-decoration: underline;
}

/* Right section: Social icons */
.contact-right h3 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-icons a {
  font-size: 1.8rem;
  transition: transform 0.3s, color 0.3s;
}
/* Màu riêng cho từng mạng xã hội */
.social-icons .fa-facebook-f {
  color: #1877f2; /* Facebook Blue */
}

.social-icons .fa-youtube {
  color: #ff0000; /* YouTube Red */
}

.social-icons .fa-instagram {
  color: #e1306c; /* Instagram Pink */
}

.social-icons .fa-tiktok {
  color: #000000; /* TikTok Black */
}
.social-icons a:hover {
  transform: scale(1.2);
}
/* Partners Section */
.partners-section {
  background-color: #fff;
  padding: 50px 20px;
  text-align: center;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.partners-section h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #2dacf6;
}

.partners-logos {
  display: flex;
  justify-content: space-around;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
}

.partners-logos img {
  width: auto;
  height: 50px;
  filter: grayscale(0%);
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: default;
}
.partners-logos img:hover {
  transform: scale(1.1);
  filter: grayscale(0);
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 30px 40px;
} /* Footer layout update */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 auto;
}

.footer-content .left {
  color: white;
  font-size: 1em;
}

.footer-content .right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-content .icon-link i {
  color: white;
  font-size: 1.5em;
  transition: color 0.3s ease;
}

.footer-content .icon-link i:hover {
  color: #2dacf6;
}

.footer-content .privacy-link {
  color: white;
  text-decoration: none;
  font-size: 1em;
}

.footer-content .privacy-link:hover {
  text-decoration: underline;
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav.nav {
    display: none;
    position: absolute;
    top: 80px;
    right: 20px;
    background-color: #dadada;
    padding: 20px;
    border-radius: 10px;
  }

  nav.nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .mobile-device {
    width: 192px;
    height: 368px;
  }
  footer {
    padding: 30px 10px;
  }
}
