header {
  background: #1a237ee6;
  padding: 12px 0;
}
.back-to-top {
    border: none;
    position: fixed;
    bottom: 160px;
    right: 65px;
    z-index: 99;
    cursor: pointer;
    display: none;
    border-radius: 50%;
    background-color: transparent;
}
.back-to-top i {
    font-size: 30px;
    color: #ff6600;
}
.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}
img{
width: 100%;
height: 100%;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

.logo a {
  color: #fff;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.search-box {
  display: flex;
}

.search-box input {
  padding: 5px;
  border: none;
  border-radius: 3px 0 0 3px;
}

.search-box button {
  padding: 5px 10px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 0 3px 3px 0;
}

/* Responsive header */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 10px;
    padding: 10px 20px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }

  nav ul li {
    margin: 0 5px;
  }

  .search-box {
    width: 100%;
    max-width: 300px;
  }

  .search-box input {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 20px;
  }

  nav ul li a {
    font-size: 12px;
  }

  .search-box {
    max-width: 250px;
  }
}

main {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  border-bottom: 4px solid #1a237ee6;
  border-left: 4px solid #1a237ee6;
  padding-bottom: 4px;
  padding-left: 10px;
}

/* Responsive main */
@media (max-width: 768px) {
  main {
    margin: 15px auto;
    padding: 0 15px;
  }

  .section {
    margin-bottom: 25px;
  }

  .section-title {
    font-size: 16px;
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  main {
    margin: 10px auto;
    padding: 0 10px;
  }

  .section {
    margin-bottom: 20px;
  }

  .section-title {
    font-size: 14px;
    margin-bottom: 10px;
  }
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}



/* Base game card styles */
.game-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.4s ease;
  position: relative;
  height: 280px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.game-card:active {
  transform: translateY(-5px) scale(0.98);
  transition: all 0.2s ease;
}

.game-image {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  position: relative;
  overflow: hidden;
}

.game-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-category {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  display: inline-block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.game-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  line-height: 1.3;
}

.game-rating {
  font-size: 14px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 16px;
  display: inline-block;
  align-self: flex-start;
}

/* Badge styles */
.game-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.badge-new {
  background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
  color: white;
}

.badge-hot {
  background: linear-gradient(135deg, #ff9800, #ff5722);
  color: white;
}

.badge-popular {
  background: linear-gradient(135deg, #4caf50, #43a047);
  color: white;
}

/* Button styles */
.game-button {
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.button-play {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.button-play:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Popular Games - Blue theme */
.games-grid-popular .game-card {
  background: linear-gradient(135deg, #1a237e, #0d47a1);
  border: 1px solid rgba(33, 150, 243, 0.3);
}

.games-grid-popular .game-card:hover {
  transform: translateY(-10px) scale(1.02) rotate(1deg);
  box-shadow: 0 12px 30px rgba(26, 35, 126, 0.4);
  border-color: rgba(33, 150, 243, 0.6);
}

.games-grid-popular .game-image {
  background: linear-gradient(45deg, #1976d2, #2196f3);
  color: white;
}

.games-grid-popular .game-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.games-grid-popular .game-card:hover .game-image::before {
  left: 100%;
}

.games-grid-popular .game-info {
  background: rgba(26, 35, 126, 0.9);
}

.games-grid-popular .game-title {
  color: #e3f2fd;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.games-grid-popular .game-rating {
  color: #2196f3;
  background: rgba(33, 150, 243, 0.1);
  border: 1px solid rgba(33, 150, 243, 0.3);
}

.games-grid-popular .game-rating::before {
  content: '🔥 ';
  font-size: 10px;
}

/* New Games - Green theme */
.games-grid-new .game-card {
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.games-grid-new .game-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 30px rgba(46, 125, 50, 0.4);
  border-color: rgba(76, 175, 80, 0.6);
}

.games-grid-new .game-image {
  background: linear-gradient(45deg, #388e3c, #4caf50);
  color: white;
}

.games-grid-new .game-image::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.games-grid-new .game-card:hover .game-image::after {
  width: 100%;
  height: 100%;
}

.games-grid-new .game-info {
  background: rgba(27, 94, 32, 0.9);
}

.games-grid-new .game-title {
  color: #e8f5e8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.games-grid-new .game-rating {
  color: #4caf50;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.games-grid-new .game-rating::before {
  content: '✨ ';
  font-size: 10px;
}

/* Most Played Games - Purple theme */
.games-grid-most-played .game-card {
  background: linear-gradient(135deg, #4a148c, #311b92);
  border: 1px solid rgba(156, 39, 176, 0.3);
}

.games-grid-most-played .game-card:hover {
  transform: translateY(-10px) scale(1.02) rotate(-1deg);
  box-shadow: 0 12px 30px rgba(74, 20, 140, 0.4);
  border-color: rgba(156, 39, 176, 0.6);
}

.games-grid-most-played .game-image {
  background: linear-gradient(45deg, #7b1fa2, #9c27b0);
  color: white;
}

.games-grid-most-played .game-image {
  position: relative;
}

.games-grid-most-played .game-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1), transparent);
  transition: all 0.3s ease;
}

.games-grid-most-played .game-card:hover .game-image::before {
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2), transparent);
}

.games-grid-most-played .game-info {
  background: rgba(49, 27, 146, 0.9);
}

.games-grid-most-played .game-title {
  color: #f3e5f5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.games-grid-most-played .game-rating {
  color: #9c27b0;
  background: rgba(156, 39, 176, 0.1);
  border: 1px solid rgba(156, 39, 176, 0.3);
}

.games-grid-most-played .game-rating::before {
  content: '👑 ';
  font-size: 10px;
}

footer {
  background-color: #ff6600;
  color: white;
  padding: 20px 0;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding:  20px;
}

.social-icons {
  margin-bottom: 10px;
}

.social-icons a {
  color: white;
  margin: 0 5px;
  text-decoration: none;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
  font-size: 14px;
}

.copyright {
  font-size: 12px;
}

/* Responsive footer */
@media (max-width: 768px) {
  footer {
    padding: 15px 0;
  }

  .footer-content {
    padding: 0 15px;
  }

  .footer-links a {
    margin: 0 5px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 10px 0;
  }

  .footer-content {
    padding:  10px;
  }

  .social-icons a {
    margin: 0 3px;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }

  .footer-links a {
    font-size: 12px;
  }

  .copyright {
    font-size: 12px;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
  }

  .game-card {
    height: 240px;
  }

  .game-image {
    height: 130px;
  }

  .game-info {
    padding: 15px;
  }

  .game-title {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }

  .game-card {
    height: 220px;
  }

  .game-image {
    height: 120px;
  }

  .game-info {
    padding: 12px;
  }

  .game-title {
    font-size: 13px;
  }

  .game-category {
    font-size: 10px;
  }
}

/* New module styles */
.new-modules {
  background-color: #fff9e6;
  padding: 20px;
  margin: 30px auto;
  max-width: 1200px;
  border-radius: 8px;
}

.modules-container {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.module {
  flex: 1;
  border: 2px solid #ffc107;
  border-radius: 8px;
  padding: 20px;
  background-color: white;
  position: relative;
}

.module-title {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: bold;
  color: white;
  margin-bottom: 20px;
}

.title-popular {
  background-color: #28a745;
}

.title-latest {
  background-color: #007bff;
}

/* Carousel styles */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-row {
  display: flex;
  gap: 15px;
  min-width: 100%;
}

.carousel-item {
  flex: 1;
  aspect-ratio: 1;
  background-color: #e9ecef;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.carousel-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.carousel-item-image {
     width: 100%;
    height: 100%;
  background-color: #dee2e6;
  border-radius: 4px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.carousel-item:hover .carousel-item-image {
  transform: scale(1.05);
}

.carousel-item-title {
  font-size: 12px;
  font-weight: bold;
  transition: all 0.3s ease;
  overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.carousel-item:hover .carousel-item-title {
  color: #007bff;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 5px;
}

.carousel-control {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.carousel-control:hover {
  background-color: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

/* Latest release list styles */
.latest-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.latest-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  border-bottom: 1px solid #e9ecef;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.latest-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.latest-item:hover::before {
  left: 100%;
}

.latest-item:hover {
  background-color: #f8f9fa;
  padding-left: 20px;
}

.latest-item:last-child {
  border-bottom: none;
}

.latest-item-image {
  width: 50px;
  height: 50px;
  background-color: #dee2e6;
  border-radius: 4px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.latest-item:hover .latest-item-image {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.latest-item-title {
  font-size: 14px;
  font-weight: bold;
  flex: 1;
  transition: all 0.3s ease;
}

.latest-item:hover .latest-item-title {
  color: #007bff;
}

/* Classic games grid styles */
.title-classic {
  background-color: #6c757d;
}

.classic-module {
  flex: 1;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.classic-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);

  gap: 10px;
  flex: 1;
  align-content: stretch;
}

.classic-item {
  background-color: #dee2e6;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.classic-item:hover {
  background-color: #ced4da;
  transform: scale(1.02);
}

.classic-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.classic-item.small {
  grid-column: span 1;
  grid-row: span 1;
      height: 130px;
}


/* Responsive design for modules */
@media (max-width: 768px) {
  .modules-container {
    flex-direction: column;
  }
.classic-item.small {
 
      height: 110px;
}


  .module {
    margin-bottom: 20px;
    min-height: 300px;
  }

  .module:last-child {
    margin-bottom: 0;
  }

  .carousel-row {
    gap: 10px;
  }

  .carousel-item {
    padding: 10px;
  }

  .carousel-item-image {
    width: 80%;
    height: 60%;
  }

  .latest-item {
    padding: 10px 12px;
    gap: 10px;
  }

  .latest-item-image {
    width: 40px;
    height: 40px;
  }

  .classic-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 8px;
  }

  .classic-item.large {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (max-width: 480px) {
  .new-modules {
    padding: 15px;
    margin: 20px auto;
  }

  .module {
    padding: 15px;
    min-height: 250px;
  }

  .module-title {
    font-size: 12px;
    padding: 4px 12px;
  }

  .carousel-row {
    gap: 8px;
  }

  .carousel-item {
    padding: 8px;
  }

  .carousel-item-image {
    width: 75%;
    height: 55%;
  }

  .carousel-item-title {
    font-size: 10px;
  }

  .latest-item {
    padding: 8px 10px;
  }

  .latest-item-image {
    width: 35px;
    height: 35px;
  }

  .latest-item-title {
    font-size: 12px;
  }

  .classic-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(7, 1fr);
    gap: 6px;
  }

  .classic-item.large {
    grid-column: span 2;
    grid-row: span 2;
  }
}