/* Game Details Card Styling for action.html */
.game-details-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
  font-family: Arial, sans-serif;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.game-image-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.play-button-overlay {
  position: absolute;
  bottom: 30px !important;
  /* Position at bottom with more space */
  left: 0 !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  transform: none !important;
  z-index: 2;
  padding-bottom: 20px;
  /* Add more space at the bottom */
}

.custom-game-btn {
  background: #ffd600;
  color: #000 !important;
  font-weight: 700;
  border: none;
  border-radius: 25px;
  padding: 10px 30px;
  margin: 0 auto;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.custom-game-btn:hover {
  background: #ffea00;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.big-custom-img {
  width: 100%;
  height: 300px;
  /* Increased fixed height */
  display: block;
  object-fit: cover;
  /* Ensures image covers the area without distortion */
  object-position: center;
  /* Centers the image */
}

.play-now-container {
  text-align: center;
  margin: -25px 0 20px 0;
  position: relative;
  z-index: 2;
}

.play-now-btn {
  background: #ffd000;
  color: #000;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 40px;
  border-radius: 30px;
  display: inline-block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.play-now-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  background: #ffda33;
}

.game-title {
  color: #333;
  font-size: 24px;
  font-weight: 700;
  text-align: left;
  margin: 20px 20px 15px 20px;
  padding: 0;
}

.game-title-main {
  color: #1a237e;
  font-size: 26px;
  font-weight: 700;
  text-align: left;
  margin: 20px 20px 15px 20px;
  padding: 0;
}

.game-description-container {
  padding: 0 20px;
  margin-bottom: 20px;
}

#game-description {
  color: #555;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  padding: 15px;
  white-space: pre-wrap;
  text-align: left;
}

.how-to-play-section {
  padding: 0 20px 20px 20px;
}

.how-to-play-title {
  color: #333;
  font-size: 20px;
  font-weight: 700;
  margin: 25px 0 15px 0;
}

.how-to-play-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.how-to-play-list li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  color: #555;
  font-size: 15px;
}

.instruction-icon {
  margin-right: 10px;
  font-size: 18px;
}

/* Header and navigation styling */
.game-header {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 10px 15px;
  position: relative;
}

.back-button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #333;
  position: absolute;
  left: 15px;
  z-index: 10;
}

.back-arrow {
  font-size: 24px;
  font-weight: bold;
}

.logo-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.logo-image {
  height: 35px;
  width: auto;
}

/* Container styling */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
}

.game-details {
  padding: 0;
}

.back {
  flex-wrap: nowrap !important;
  width: 100% !important;
  padding: 0;
}

/* Similar Games Section */
.similar-games-section {
  margin-top: 30px;
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
}

.similar-games-title {
  color: #333;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 20px 0;
  text-align: center;
  position: relative;
}

.similar-games-title:after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: #ffd600;
  margin: 10px auto 0;
  border-radius: 2px;
}

.similar-games-container {
  width: 100%;
  overflow: hidden;
}

.similar-games-container .row {
  margin-left: -10px;
  margin-right: -10px;
}

/* Game Card Styling */
.game-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 15px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.game-title {
  font-weight: 700;
  color: #1a237e;
  font-size: 16px;
  text-align: center;
  padding: 15px 10px 5px;
  margin: 0;
}

.game-thumbnail {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  margin: 0 auto;
  max-width: 90%;
}

.game-reward {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 10px 0;
  font-size: 14px;
  color: #333;
  flex-grow: 1;
}

.coin-icon {
  width: 20px;
  height: 20px;
}

.start-button {
  background: #ffd600;
  color: #000;
  font-weight: 700;
  border: none;
  border-radius: 25px;
  padding: 8px 0;
  width: 80%;
  margin: 8px auto;
  display: block;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.start-button:before {
  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: width 0.6s ease, height 0.6s ease;
}

.start-button:hover:before {
  width: 80%;
  height: 300%;
}

.start-button:hover {
  background: #ffea00;
}

.user-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

.user-dot {
  width: 8px;
  height: 8px;
  background: #4caf50;
  border-radius: 50%;
  display: inline-block;
}

/* Responsive styles for game details */
@media screen and (max-width: 768px) {
  .game-title {
    font-size: 22px;
  }

  .game-title-main {
    font-size: 24px;
  }

  .play-now-btn {
    padding: 10px 30px;
    font-size: 14px;
  }

  .custom-game-btn {
    padding: 8px 25px;
    font-size: 14px;
  }

  .similar-games-title {
    font-size: 20px;
  }

  .game-card .game-title {
    font-size: 14px;
    padding: 10px 5px 5px;
  }

  .game-thumbnail {
    height: 150px;
  }

  .game-reward {
    font-size: 12px;
    margin: 5px 0;
  }

  .start-button {
    font-size: 12px;
    padding: 6px 0;
  }

  .user-count {
    font-size: 10px;
  }
}

@media screen and (max-width: 480px) {
  .game-title {
    font-size: 20px;
    margin: 15px 15px 10px 15px;
  }

  .game-title-main {
    font-size: 22px;
    margin: 15px 15px 10px 15px;
  }

  .play-now-btn {
    padding: 8px 25px;
    font-size: 13px;
  }

  .custom-game-btn {
    padding: 6px 20px;
    font-size: 12px;
  }

  .play-button-overlay {
    bottom: 25px !important;
    padding-bottom: 15px;
  }

  #game-description {
    font-size: 14px;
  }

  .game-description-container,
  .how-to-play-section,
  .similar-games-section {
    padding: 0 10px 10px 10px;
  }

  .how-to-play-title,
  .similar-games-title {
    font-size: 18px;
    margin: 20px 0 10px 0;
  }

  .how-to-play-list li {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .col-6 {
    padding-left: 5px;
    padding-right: 5px;
  }

  .row {
    margin-left: -5px;
    margin-right: -5px;
  }

  .game-card .game-title {
    font-size: 12px;
  }

  .game-thumbnail {
    height: 120px;
  }

  .start-button {
    width: 90%;
    font-size: 10px;
    padding: 5px 0;
  }
}