* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", "Roboto", "Arial", "Arvo", "Fredoka", sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  background-color: #a2f398;
}

* {
  font-family: "Segoe UI", "Roboto", "Arial", "Arvo", "Fredoka", sans-serif;
}

.hide {
  display: none;
}

.text-white {
  color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.arvo-regular {
  font-family: "Arvo", serif;
  font-weight: 400;
  font-style: normal;
}

.fredoka-bold {
  font-family: "Fredoka", sans-serif !important;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

/* Language Switcher */
.language-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  display: flex;
  gap: 5px;
  background: rgba(255, 255, 255, 0.9);
  padding: 5px;
  border-radius: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.charactor-more p {
  font-size: 2rem;
}

.charactor-more span {
  font-size: 1.5rem;
}

.lang-btn {
  padding: 8px 15px;
  border: none;
  border-radius: 20px;
  background: transparent;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.lang-btn.active {
  background: #4ecdc4;
  color: white;
}

.lang-btn:hover {
  background: #4ecdc4;
  color: white;
}

/* Header */
.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ffd700;
}

/* Hero Section */
.hero {
  background: url("../images/header_background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  height: 100vh;
}

.hero::before {
  content: "";
  position: absolute;
  width: 100%;
  /* max-height: 124px; */
  left: 0;
  bottom: 0;
  padding-bottom: 10%;
  margin-bottom: -1px;
  background: url("../images/top-cloud.png") center bottom / cover no-repeat !important;
  /* background-size: 100% 100% !important;
  background-position: bottom !important;
  background-repeat: no-repeat !important; */
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.btn {
  padding: 16px 80px;
  border: none;
  border-radius: 50px;
  font-size: 1.75rem;
  /* font-weight: 600; */
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #f1aa12;
  justify-content: center;
  color: white;
}

/* .btn-primary {
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.btn-secondary {
  background: linear-gradient(45deg, #4ecdc4, #44a08d);
  color: white;
  box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 205, 196, 0.6);
} */

/* Game Preview */
.game-preview {
  padding: 20px 0 80px 0;
  /* background: #fff; */
  position: relative;
}
.game-preview::before {
  content: "";
  position: absolute;
  width: 100%;
  /* max-height: 124px; */
  left: 0;
  top: 0;
  padding-bottom: 30%;
  margin-bottom: -1px;
  background: url("../images/bottom-cloud.png") center bottom / cover no-repeat !important;
  z-index: -1;
}

.other {
  padding: 80px 0;
}
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.moc-description {
  font-size: 1.75rem;
}

.preview-content h2 {
  font-family: "Segoe UI", "Roboto", "Arial", sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.preview-content p {
  font-size: 1.25rem;
}

.features {
  list-style: none;
}

.features li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.features i {
  color: #4ecdc4;
  font-size: 1.2rem;
}

.preview-badges {
  display: flex;
  flex-wrap: wrap;
}

.phone-mockup {
  position: relative;
  text-align: center;
}

.phone-frame {
  width: 320px;
  height: 600px;
  background: #333;
  border-radius: 30px;
  padding: 10px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

/* Game Demo */
.game-demo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* Features Section */
.features-section {
  padding: 80px 0;
  background: white;
}

.other-heading {
  font-size: 2.5rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  border-radius: 15px;
  background: #f8f9fa;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  color: #4ecdc4;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

/* Download Section */
.download-section {
  padding: 80px 0;
  /* background: url("../images/banner_footer.png"); */
  /* background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
  position: relative; */
}

/* .download-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
} */

.download-section .container {
  position: relative;
  z-index: 2;
}

.qr {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.qr-section {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.qr-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  color: #333;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.qr-card h3 {
  margin-bottom: 1rem;
  color: #333;
}

.qr-code {
  width: 200px;
  height: 200px;
  background: #f0f0f0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.2rem;
  color: #666;
}

.qr-card p {
  font-size: 0.9rem;
  color: #666;
}

/* Footer */
.footer {
  color: white;
  padding: 2rem 0;
  text-align: center;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0);
  z-index: 1;
}

.footer .container {
  position: relative;
  z-index: 2;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    height: auto;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .preview-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .phone-frame {
    width: 260px;
    height: 500px;
  }

  .qr-section {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

.cta-buttons-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.moc {
  color: #fff;
  text-align: center;
  padding: 80px 0;
}

.moc-heading {
  font-size: 5.75rem;
  line-height: 1;
}
.moc-descripton {
  font-size: 1.75rem;
}

.other-header {
  text-align: center;
}

.preview-badges {
  display: flex;
  gap: 3rem;
}

.qr-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.qr img {
  width: 200px;
  height: 100%;
  object-fit: contain; /* Cắt ảnh thừa, giữ tỷ lệ, lấp đầy */
  display: block;
}

.download-heading {
  font-size: 7rem;
  text-align: center;
}

.download-content {
  display: flex;
  gap: 2rem;
}

.download-right {
  width: 25%;
  margin-left: auto;
}

.qr-text {
  font-size: 2rem;
  text-align: center;
  width: 75%;
}

.other-content {
  display: flex;
  gap: 1rem;

  flex-wrap: wrap;
}

.other-card {
  flex: 1;
  height: 565px;
  overflow: hidden;
  border: 4px solid black;
}

.other-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cắt ảnh thừa, giữ tỷ lệ, lấp đầy */
  display: block;
}

.moc-content {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.charactor-card {
  display: flex;
  justify-content: center;
  cursor: pointer;
}

.charactor-card {
  position: relative;
}

.text-hide {
  content: "";
  display: flex;
  width: 200px;
  height: 1.25rem;
  background-color: #fff;
  bottom: 17px;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
}

.charactor-card img {
  width: 240px;
  max-height: 336px;
  object-fit: contain; /* Cắt ảnh thừa, giữ tỷ lệ */
  display: block;
}

.cta-buttons-container {
  position: relative;
}

.logo {
  width: 715px;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cắt ảnh thừa, giữ tỷ lệ, lấp đầy */
  display: block;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.4s both;
  position: absolute;
  bottom: 0;
}

.badge {
  display: flex;
  justify-content: center;
}

.badge img {
  object-fit: contain;
}

.moc-header {
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .moc {
    padding: 20px 0;
  }

  .qr {
    width: 100%;
    height: 100%;
  }

  .moc-content {
    grid-template-columns: repeat(1, 1fr) !important;
  }

  .moc-heading {
    font-size: 2rem;
  }

  .download-content {
    flex-wrap: wrap;
  }

  .other-card {
    width: 100% !important;
    flex: unset;
    height: unset;
  }

  .download-right {
    width: unset !important;
  }

  .moc-description {
    font-size: 1.25rem;
  }

  .preview-badges {
    flex-direction: column;
  }

  .qr-text {
    font-size: 1.25rem;
  }

  .charactor-more p {
    font-size: 1.25rem;
  }
  .charactor-more span {
    font-size: 1rem;
  }
  .download-heading {
    font-size: 2rem;
  }
  .download-section {
    padding: 20px 0;
  }

  .other-heading {
    font-size: 1.35 rem;
  }

  .other {
    padding: 20px 0;
  }
  .hero {
    padding: 60px 0 120px;
  }

  .btn {
    font-size: 1.25rem;
    padding: 8px 40px;
  }

  .hero::before {
    content: unset;
  }

  .game-preview {
    padding: 20px 0;
    background-color: #fff;
  }

  .game-preview::before {
    content: unset;
  }
}

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
}

.close-btn:hover {
  color: #000;
}

.popup-content h2 {
  text-align: center;
}

#x {
  font-weight: bold;
  font-size: 1.25rem;
}
