* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #4e54c8;
  --secondary-color: #8f94fb;
  --light-bg: #f9fafc;
  --text-color: #212529;
  --card-bg: #ffffff;
  --footer-bg: #f1f1f1;
  --badge-bg: #f5f5f5;
  --badge-border: #ccc;
  --ad-bg: #e4e4e4;
}

@font-face {
  font-family: "Poppins";
  src: local("Poppins Bold"), local("Poppins-Bold"),
    url("../fonts/Poppins-Bold.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: local("Poppins SemiBold"), local("Poppins-SemiBold"),
    url("../fonts/Poppins-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: local("Poppins Medium"), local("Poppins-Medium"),
    url("../fonts/Poppins-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: local("Poppins Regular"), local("Poppins-Regular"),
    url("../fonts/Poppins-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  background-color: var(--light-bg);
  font-family: Poppins, sans-serif;
  font-weight: normal;
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navbar */
.navbar {
  background-color: var(--card-bg);
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--text-color);
  transition: color 0.3s ease;
  font-size: 16px;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

.navbar .navbar-brand img {
  width: 225px;
}

/* Hero Section */
.hero {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6)),
    url("../img/heroimg.webp") no-repeat left 26%;
  background-size: cover;
  padding: 60px 0;
  text-align: center;
  color: #fff;
}

.main-heading {
  font-size: 55px;
  width: 60%;
  margin: auto;
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 900;
}

.lead {
  font-weight: 400;
}

.input-group input {
  max-width: 500px;
  height: 45px;
}

.input-group .form-control {
  border-right: none;
  padding-left: 1.2rem;
  -webkit-border-top-left-radius: 9999px;
  -moz-border-radius-topleft: 9999px;
  border-top-left-radius: 9999px;
  -webkit-border-bottom-left-radius: 9999px;
  -moz-border-radius-bottomleft: 9999px;
  border-bottom-left-radius: 9999px;
}

.input-group .btn {
  border-left: none;
  -webkit-border-top-right-radius: 9999px;
  -moz-border-radius-topright: 9999px;
  border-top-right-radius: 9999px;
  -webkit-border-bottom-right-radius: 9999px;
  -moz-border-radius-bottomright: 9999px;
  border-bottom-right-radius: 9999px;
}

/* Gradient Button */
.gradient-btn {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border: none;
  color: #fff !important;
  font-weight: medium;
  font-size: 16px;
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease, transform 0.2s;
  -webkit-transition: background 0.3s ease, transform 0.2s;
  -moz-transition: background 0.3s ease, transform 0.2s;
}

.gradient-btn:active,
.gradient-btn:hover {
  background: linear-gradient(
    315deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: scale(1.05);
}

/* OUTLINE VARIANT */
.gradient-btn-outline {
  background: transparent;
  color: var(--primary-color);
  font-weight: bold;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 16px;
  border: 2px solid transparent;
  background-image: linear-gradient(#fff, #fff),
    linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
}

.gradient-btn-outline:hover {
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  background-clip: padding-box;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* Section Titles */
.section-title {
  font-size: 28px;
  font-weight: 600;
}

/* Game Cards */
.game-card {
  background: var(--card-bg);
  border: none;
  border-radius: 12px;
  overflow: hidden;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: -webkit-transform 0.2s;
  transition: transform 0.2s;
  transition: transform 0.2s, -webkit-transform 0.2s;
}

.special-deals h3 {
  font-weight: 600;
  font-size: 18px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.special-deals .card-body .text-success {
  font-weight: 600;
  color: var(--primary-color) !important;
}

.special-deals .card-body p {
  font-size: 18px;
  font-weight: 400;
}

.game-card:hover {
  -webkit-transform: translateY(-5px);
  -ms-transform: translateY(-5px);
  transform: translateY(-5px);
}

.image-container {
  height: 130px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  overflow: hidden;
}

.bg-coverimg {
  width: 110%;
  height: 110%;
  object-fit: cover;
  filter: blur(3px);
  position: absolute;
  z-index: 1;
}

.game-card .image-container img:not(.bg-coverimg) {
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  border-radius: 0;
}

.card.game-card small {
  font-weight: 500;
  font-size: 18px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

/* Platform Badge */
.badge-platform {
  width: 20px;
  display: inline-block;
}

.badge-platform img {
  height: 100%;
  width: 100%;
}

/* Ad Banner */
.ad-banner {
  height: 100px;
  background: var(--ad-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-weight: bold;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: #555;
  padding: 10px 0;
}

footer a {
  color: #555;
  margin-right: 15px;
  text-decoration: none;
}

/***** search page ****/

.search-query {
  font-size: 16px;
}

/***** search page end ****/

/***** category page ****/

.hero-gradient {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

/***** category page end ****/

/**** game section *****/

.play-button {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #1e90ff, #007bff);
  border: none;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.play-button i {
  line-height: 1.1;
}

.play-button:hover {
  background: linear-gradient(135deg, #007bff, #1e90ff);
  transform: scale(1.05);
  color: #fff;
}

.game-section #homeBtn {
  position: absolute;
  top: 10px;
  padding: 0.4rem 0.9rem;
  font-size: 16px;
  border-radius: 50px;
  z-index: 6;
  border: none;
  transition: all 0.3s ease;
  color: #000;
  display: flex !important;
  gap: 5px;
  right: 10px;
  background-color: #fff;
}

.game-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  overflow: hidden;
}

.game-section canvas {
  display: block;
  background: transparent;
  margin: 0 auto;
  touch-action: manipulation;
}

.game-section .start-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  z-index: 3;
  text-align: center;
}

.game-section #restartBtn {
  position: absolute;
  top: 54%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  padding: 0.8rem 2.2rem;
  font-size: 1.4rem;
  font-weight: bold;
  border-radius: 50px;
  background: linear-gradient(to right, #ff6b6b, #ee5253);
  border: none;
  color: #fff;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-section #restartBtn:hover {
  transform: translate(-50%, -50%) scale(1.05);
  background: linear-gradient(to right, #ff3f3f, #c0392b);
}

.game-section #startBtn {
  padding: 0.8rem 2.2rem;
  font-size: 1.4rem;
  font-weight: bold;
  border-radius: 50px;
  background: linear-gradient(to right, #1dd1a1, #10ac84);
  border: none;
  color: #fff;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-section #startBtn:hover {
  transform: scale(1.05);
  background: linear-gradient(to right, #10ac84, #079992);
}

.game-section .pipe {
  box-shadow: 0 0 15px rgba(0, 128, 0, 0.8);
}

/**** game section ****/

button.navbar-toggler {
  border-color: var(--primary-color);
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Responsive Adjustments */

@media (max-width: 991px) {
  .navbar .navbar-collapse {
    position: absolute;
    left: 0;
    top: 89%;
    width: 100%;
    background: var(--card-bg);
  }
}

@media (max-width: 768px) {
  .main-heading {
    font-size: 2.2rem;
    width: 100%;
  }

  .section-title {
    font-size: 21px;
  }

  .badge-platform {
    width: 24px;
  }

  .gradient-btn {
    font-size: 14px;
  }

  .card.game-card small {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 45px 0;
    margin-bottom: 0 !important;
  }

  .main-heading {
    font-size: 33px;
  }

  .navbar .navbar-brand img {
    width: 205px;
  }
}
