* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f5f6fa;
  display: flex;
  justify-content: center;
  padding: 20px;
}

.app-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 550px;
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/*   Header-styling   */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
}

.header img {
  width: 130px;
}

.header-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-btn {
  color: grey;
  border: none;
  padding: 10px 12px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  background: #01d946;
  color: #fff;
}

.subscribe-btn {
  background: linear-gradient(to bottom, #e6462a, #7b1e16);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
}

.subscribe-btn:hover {
  color: #e6462a;
  font-weight: bold;
  border: 1px solid #7b1e16;
  background: transparent;
}

/*   Top-Game Slider-styling   */

.section-title {
  font-weight: bold;
  font-size: 20px;
  padding-left: 20px;
}

.hero-slider {
  padding: 20px 35px;
}

.slider-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.slider {
  display: flex;
  border-radius: 12px;
  transition: transform 0.5s ease-in-out;
}

.slide {
  position: relative;
  min-width: 100%;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-info {
  width: fit-content;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  color: white;
}

.game-info h3 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
}

.game-info p {
  margin: 5px 0;
  font-size: 14px;
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 5px;
  text-align: center;
}

/* Dots-styling */
.slider-dots {
  text-align: center;
  margin-top: 10px;
}

.slider-dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 4px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.slider-dots .active {
  background-color: #000;
}

/*   categories-styling   */

.categories-header,
.more-game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 10px;
}

.scroll-buttons {
  display: flex;
  gap: 5px;
  margin-right: 30px;
}

.scroll-buttons button {
  background: #eee;
  border: none;
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 16px;
}

.categories {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 10px 20px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 15px;
}

.categories::-webkit-scrollbar {
  display: none;
}

.category {
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
  background: #f1f1f1;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.category:hover {
  background-color: #e0e0e0;
}

/*   Popular Games-styling   */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.see-more-btn {
  text-decoration: none;
  background: #eee;
  border: none;
  border-radius: 5px;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 7px;
  margin-right: 30px;
}

.see-more-btn:hover {
  background: #e2dcdc;
}

.popular-games {
  padding: 15px 20px 30px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.game-card {
  position: relative;
  overflow: hidden;
  height: 150px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-info h4 {
  margin: 0;
  font-weight: 500;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  padding: 7px;
}

/*   Free Game-styling   */

.free-game {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  padding: 20px 25px;
  margin-bottom: 50px;
}

.free-game img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.game-details {
  position: absolute;
  bottom: 16px;
  left: 25px;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.game-details h3 {
  margin: 0;
  font-size: 18px;
}

.game-details p {
  margin: 0;
  font-size: 14px;
  opacity: 0.8;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  padding: 7px;
}

/* Bottom Nav- styling */

.bottom-nav {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 300px;
  background: #ffffff;
  border-radius: 9999px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 5px;
  z-index: 10;
  margin: auto;
}

.bottom-nav a i {
  font-size: 22px;
  color: #fff;
}

/* Active nav item */
.bottom-nav a.active {
  background: linear-gradient(to bottom, #e6462a, #7b1e16);
  color: white;
  padding: 12px 18px;
  border-radius: 9999px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.bottom-nav .clr-blck {
  color: rgb(255, 255, 255);
  background: linear-gradient(to bottom, #e6462a, #7b1e16);
  border-radius: 50%;
  padding: 12px;
}

/* Subscribe Modal */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background-color: white;
  padding: 40px;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  margin-bottom: 15px;
  color: #2c3e50;
}

.modal-content p {
  margin-bottom: 25px;
  color: #7f8c8d;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.subscribe-form input {
  padding: 15px;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.subscribe-form input:focus {
  outline: none;
  border-color: #e74c3c;
}

.subscribe-form button {
  padding: 15px;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.subscribe-form button:hover {
  background-color: #c0392b;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #333;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
  border: 1px solid #f5c6cb;
}

/* Search-Modal base */

.search-modal {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  background: rgba(66, 65, 65, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  padding: 20px;
  border-radius: 20px;
  z-index: 10;
  animation: fadeIn 0.3s ease-in-out;
}

.search-content {
  width: 100%;
  max-width: 500px;
  color: white;
  position: relative;
  text-align: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.close-search {
  position: absolute;
  top: 30px;
  right: 10px;
  background: none;
  font-size: 30px;
  color: white;
  border: none;
  cursor: pointer;
}

.search-inner {
  margin-top: 80px;
}

.search-box {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ccc;
  padding: 10px;
  margin-top: 10px;
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  color: white;
  font-size: 18px;
  padding: 5px;
  outline: none;
}

.search-box input::placeholder {
  color: white;
}

.search-box button i {
  color: white;
  font-size: 20px;
}

.popular-searches {
  margin-top: 30px;
}

.popular-searches span {
  display: inline-block;
  background: #ffffff10;
  color: white;
  padding: 6px 10px;
  margin: 5px;
  border-radius: 5px;
  font-size: 13px;
  border: 1px solid #fff2;
}

.search-results {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 10px;
}

.search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding: 10px;
}

.search-result-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
}

.search-result-item .game-title {
  font-size: 16px;
  color: #fff;
  /* flex: 1; */
}

a.search-link {
  text-decoration: none;
  color: inherit;
}

.no-result {
  text-align: center;
  color: red;
  font-weight: bold;
}

/* Single - Game Styling */

.game-detail-section {
  padding: 0 50px;
  overflow: hidden;
  margin: 20px 0;
}

.game-hero img {
  width: 100%;
  border-radius: 15px;
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 15px 30px;
  margin-top: -30px;
  backdrop-filter: blur(5px);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15), #ffffff);
  position: relative;
  z-index: 1;
}

.game-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  object-fit: cover;
  margin-right: 15px;
}

.game-info-text {
  flex-grow: 1;
}

.game-info-text h2 {
  font-size: 18px;
  margin: 0 0 5px;
}

.game-info-text p {
  font-size: 12px;
  color: #666;
}

.play-btn {
  background: #6c63ff;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.game-preview {
  display: flex;
  gap: 10px;
  margin: 15px 0;
  padding: 0 30px;
}

.game-preview img {
  width: 48%;
  border-radius: 10px;
  object-fit: cover;
}

.game-about {
  padding: 0 30px;
}

.game-about h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.game-about p {
  font-size: 14px;
  color: #444;
}

.more-game-header {
  padding: 0 15px;
}

.popular-games-section {
  margin: 20px 32px;
}

.game-scroll-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 50px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.game-scroll-container::-webkit-scrollbar {
  display: none;
}

.game-scroll-container .game-card {
  flex: 0 0 auto;
  width: 150px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
}

.game-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
}

/*  All- Game Styling */

.game-cat-title {
  color: #083970;
  font-size: 40px;
  font-weight: bold;
  margin: 20px 10px;
  text-transform: capitalize;
}

.all-game {
  padding: 30px;
}

.all-game-card {
  margin-bottom: 30px;
}

.game-title {
  font-size: 16px;
  font-weight: 700;
  margin-top: 2px;
  color: rgb(8, 57, 112);
}

.game-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border: 2px solid #fffb28;
  border-radius: 50%;
  margin-bottom: 10px;
  transition: transform 0.3s;
}

.game-img:hover {
  transform: scale(1.1);
}

/* Support-Style */
.support-head {
  padding: 20px;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
}

.support-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.support-container h2 {
  padding: 20px 20px 5px 20px;
  font-size: 18px;
  text-align: center;
  margin-bottom: 10px;
}

.support-box {
  width: 90%;
  background: #f5f5f5;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.call-text {
  font-size: 16px;
  color: #662d91;
  font-weight: bold;
}

.call-number {
  font-size: 16px;
  color: #000;
  font-weight: bold;
}

.faq-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.faq-section h2 {
  padding: 20px 20px 5px 20px;
  font-size: 20px;
  text-align: center;
  margin-bottom: 10px;
}

.faq-section .faq-item {
  width: 90%;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #7b1e16;
}

.faq-question {
  width: 100%;
  padding: 12px;
  background: linear-gradient(to bottom, #e6462a, #7b1e16);
  color: #fff;
  border: none;
  text-align: left;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
}

.faq-question::after {
  content: "▾";
  position: absolute;
  right: 15px;
  font-size: 16px;
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
  padding: 0 12px;
  background: #fff;
}

.faq-item.open .faq-answer {
  padding: 12px;
  max-height: 300px;
}

@media (max-width: 768px) {
  body {
    justify-content: center;
    padding: 0;
  }

  .hero-slider {
    padding: 20px 20px;
  }

  .slide {
    height: 200px;
  }

  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-detail-section {
    padding: 0 20px;
  }

  .game-header {
    padding: 15px;
  }

  .bottom-nav {
    bottom: 0px;
  }
}

/* User Dropdown */
.user-dropdown {
  position: relative;
  display: inline-block;
}

.user-icon {
  background: none;
  border: none;
  font-size: 30px;
  color: #e54225;
  cursor: pointer;
}

.user-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 35px;
  background: #fff;
  width: 240px;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 999;
}

.user-menu p {
  margin: 0;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid #f1f1f1;
}

.unsubscribe-btn {
  display: block;
  text-align: center;
  margin-top: 10px;
  padding: 8px;
  background: #e74c3c;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
}

.unsubscribe-btn:hover {
  background: #c0392b;
}

.show {
  display: block;
}

.subscription-info {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #ddd;
  font-size: 14px;
  color: #000;
  text-align: center;
}
