/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-image: url('/images/background_01.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  /* ✅ keeps image fixed when you scroll */
}


.app-banner {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 10px 15px;
  position: relative;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-right: 10px;
}

.app-logo {
  width: 40px;
  /* adjust size as needed */
  height: 40px;
  border-radius: 10px;
  margin-right: 10px;
}

.app-text {
  flex: 1;
  /* expands to fill space */
  color: #000;
  font-size: 0.9rem;
  line-height: 1.2;
}

.download-btn {
  background: linear-gradient(to right, #fcd34d, #fbbf24);
  color: #000;
  text-decoration: none;
  padding: 2px 15px;
  border-radius: 20px;
  font-weight: bold;
}

.header {
  background-color: #111;
  padding: 0 15px;
  /* horizontal padding only */
  height: 60px;
  /* ✅ Fixed height for desktop */
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* ✅ centers logo vertically */
}

.flag {
  width: 24px;
}

.menu-toggle {
  font-size: 1.5rem;
  cursor: pointer;
}

/* === Banner Slideshow === */
.app-banner-slideshow {
  position: relative;
  width: 100%;
  max-width: 1200px;
  /* Or your layout max */
  margin: 0 auto;
  aspect-ratio: 16 / 5;
  /* ✅ Match your banner’s shape */
  overflow: hidden;
  border-radius: 15px;
}

/* Adjust slideshow banner height for desktop */

@media (min-width: 769px) {
  .app-banner-slideshow {
    max-width: 100%;
    /* Or keep container width */
    aspect-ratio: 16 / 5;
    /* Or use fixed height instead */
    height: auto;
  }
}

.app-banner-slideshow .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.app-banner-slideshow .slide.active {
  opacity: 1;
}

.app-banner-slideshow img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  /* ✅ No stretch, fills container */
  display: block;
}

.app-banner-slideshow .download-btn {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: #ffc107;
  border: none;
  padding: 5px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
}

.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.auth-buttons .btn {
  width: 100%;
  padding: 10px;
  background-color: #ffc107;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.btn {
  padding: 10px 20px;
  background-color: #ffc107;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
}

html,
body {
  height: 100%;
}

.main-layout {
  display: flex;
  flex-direction: row;
  padding: 20px;
}

.main-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100%;
  overflow: hidden;
}

.games-scroll-wrapper {
  flex-grow: 1;
  overflow-y: auto;
  /* ✅ vertical scroll */
  overflow-x: hidden;
  /* ✅ no horizontal scroll for desktop */
  padding: 20px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  padding: 10px;
  width: 110px;
  min-width: 50px;
  gap: 5px;
  flex-shrink: 0;
  margin-left: -30px;
}

.sidebar .tab {
  background: #222;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}

.sidebar .tab.active {
  background: #ffc107;
  color: #000;
}

.games-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  justify-content: start;
}

.game-card {
  overflow: hidden;
  border-radius: 10px;
}

.game-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}


/* === Mobile Grid === */
@media (max-width: 768px) {
  .games-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .games-scroll-wrapper::-webkit-scrollbar {
    display: none;
  }

  .games-page {
    display: grid;
    grid-auto-flow: column;
    /* 👈 columns flow horizontally */
    grid-template-rows: repeat(3, 1fr);
    /* 👈 3 rows always */
    grid-auto-columns: 100px;
    /* 👈 each “card” column is 100px wide */
    gap: 10px;
  }

  .game-card {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
  }

  .game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

/* Show sidebar buttons only on desktop */
.sidebar .auth-buttons {
  display: flex;
}

@media (max-width: 768px) {
  .sidebar .auth-buttons {
    display: none;
  }

  /* Keep your original buttons for mobile view */
  .auth-buttons-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
  }
}

@media (min-width: 769px) {
  .auth-buttons-mobile {
    display: none;
  }
}

/* By default, show both (safe fallback) */
.sidebar-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Desktop: hide mobile version */
@media (min-width: 769px) {
  .mobile-auth-buttons {
    display: none;
  }
}

/* Mobile: hide sidebar version */
@media (max-width: 768px) {
  .sidebar-auth-buttons {
    display: none;
  }
}

/* Desktop: keep game cards square & consistent size */
@media (min-width: 769px) {
  .game-card {
    aspect-ratio: 1 / 1;
    max-width: 200px;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
  }

  .game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (min-width: 769px) {
  .games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, max-content));
    gap: 20px;
    justify-content: start;
  }

  .game-card {
    aspect-ratio: 1 / 1;
    max-width: 200px;
    width: 100%;
  }
}

/* === Desktop vertical scroll === */
@media (min-width: 769px) {
  .games-scroll-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
  }
}

/* === Mobile horizontal swipe === */
@media (max-width: 768px) {
  .games-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .games-scroll-wrapper::-webkit-scrollbar {
    display: none;
  }

  .games-page {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(3, 1fr);
    grid-auto-columns: 100px;
    gap: 10px;
  }
}

/* DESKTOP ONLY: shrink layout like mobile */
@media (min-width: 769px) {
  .container {
    max-width: 1200px;
    /* or 600px if you want it a bit wider */
    margin: 0 auto;
    padding: 0 15px;
  }
}

.scrolling-text {
  background: #ffc107;
  color: #000;
  padding: 2px 0;
  overflow: hidden;
  position: relative;
  margin-bottom: 15px;
  font-size: 0.8rem;
  line-height: 1;
}

.scrolling-text p {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 15s linear infinite;
  font-weight: bold;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  /* desktop */
  width: auto;
  display: block;
}

/* Mobile view adjustments */
@media (max-width: 768px) {
  .header {
    height: 50px;
    /* ✅ fixed height for mobile */
  }

  .logo img {
    height: 50px;
    /* ✅ smaller logo for mobile */
  }
}

.register-btn {
  background-color: #ffc107;
  /* yellow background */
  color: #000;
  /* black text */
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  /* pill shape */
  cursor: pointer;
  font-weight: bold;
}

.register-btn:hover {
  background-color: #e6ac00;
  /* darker yellow on hover */
}

@media (max-width: 768px) {
  .header {
    height: 50px;
    /* fixed height for mobile */
  }

  .logo img {
    height: 30px;
    /* smaller logo on mobile */
  }

  .register-btn {
    padding: 6px 15px;
    font-size: 0.9rem;
  }
}

.register-btn {
  background-color: #ffc107;
  color: #000;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.3s ease;
  animation: pulse 2s infinite;
}

.register-btn:hover {
  animation-play-state: paused;
  /* pause the pulse on hover */
  transform: scale(1.15);
  /* grow bigger on hover */
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  /* grow bigger */
  100% {
    transform: scale(1);
  }
}

.promo-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.promotions-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 20px;
}

.promotions-carousel::-webkit-scrollbar {
  display: none;
}

.promo-card {
  flex: 0 0 calc(50% - 10px);
  /* 2 cards per view */
  scroll-snap-align: start;
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  color: #fff;
}

.promo-card img {
  width: 100%;
  height: auto;
}

.promo-content {
  padding: 15px;
  text-align: center;
}

.promo-content h4 {
  margin: 10px 0;
  font-size: 1rem;
  /* back to normal size */
  font-weight: bold;
  color: #fff;
  white-space: normal;
  /* wrap text nicely */
}

.info-btn,
.proceed-btn {
  display: inline-block;
  background: #eee;
  border: none;
  margin: 5px;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.8rem;
  /* back to normal size */
}

.proceed-btn {
  background: #ffc107;
  color: #000;
}


@media (max-width: 768px) {
  .promo-card {
    flex: 0 0 calc(50% - 10px);
    /* ✅ 2 cards side-by-side */
  }
}

.video-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  /* centers it & adds vertical spacing */
  padding: 0 15px;
  /* optional side padding */
  margin-bottom: 50px;
  /* 👈 adds space below */
  box-sizing: border-box;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  /* optional: rounded corners */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.image-container {
  width: 100%;
  max-width: 600px;
  /* adjust as needed */
  margin: 0 auto 50px;
  /* center it and add space below */
  overflow: hidden;
  /* ensures border-radius works */
  border-radius: 15px;
  /* 👈 rounded corners */
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #000000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  box-shadow: 0 -2px 5px rgba(255, 255, 255, 0.2);
}

.footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: bold;
  cursor: pointer;
}

.footer-item img {
  width: 24px;
  height: 24px;
  margin-bottom: 5px;
}

.footer-item span {
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  padding-bottom: 80px;
  /* ✅ Add this! */
  box-sizing: border-box;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  height: 60px;
  background-color: #111;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.language-selector {
  position: relative;
  cursor: pointer;
}

.language-selector .current-flag {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.flag-dropdown {
  position: absolute;
  top: 40px;
  right: 0;
  background: #fff;
  color: #000;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  min-width: 120px;
  z-index: 999;
}

.flag-option {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  cursor: pointer;
}

.flag-option img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 8px;
}

.flag-option:hover {
  background: #f5f5f5;
}

@media (max-width: 768px) {
  .header {
    flex-direction: row;
    justify-content: space-between;
    height: auto;
    padding: 10px 15px;
  }

  .header-right {
    gap: 10px;
  }

  .language-selector .current-flag {
    width: 24px;
    height: 24px;
  }

  .register-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}

.about-section {
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.section-small-title {
  color: #ffc107;
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #ffc107;
}

.section-title span {
  color: #ffc107;
}

.section-text {
  max-width: 900px;
  margin: 0 auto 35px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #ffffff;
}

.section-text .highlight {
  color: #ffc107;
  font-weight: 600;
}

.divider {
  width: 70%;
  max-width: 500px;
  height: 2px;
  background: #ffc107;
  margin: 40px auto;
}

/* Mobile spacing */
@media (max-width: 768px) {
  .about-section {
    padding: 45px 16px;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-text {
    font-size: 1.3rem;
  }
}