/* General Styles */
body {
  font-family: Arial, sans-serif;
  background-color: #1a1a1a;
  color: #ffffff;
  margin: 0;
  padding: 0;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbars for all elements */
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 80px;
  text-align: center;
  margin-top: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

h1 {
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(to right, #f9ed1e, #ff8533);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 10px 0;
  padding: 0;
  text-align: center;
  letter-spacing: 2px;
  animation: textGlow 2s ease-in-out infinite;
  font-family: "Arial Black", "Helvetica Bold", sans-serif;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .container {
    margin-top: 10px;
  }

  h1 {
    font-size: 24px;
    letter-spacing: 1px;
    margin: 8px 0;
  }
}

.date {
  font-size: 16px;
  color: #9ca3af;
  margin-bottom: 20px;
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #111827;
  border-radius: 5px;
  padding: 10px 15px;
  max-width: 400px;
  margin: 0 auto 20px auto;
  position: relative;
}

.search-input {
  border: none;
  outline: none;
  background: none;
  color: #9ca3af;
  font-size: 14px;
  width: 100%;
  padding-left: 35px;
}

.search-icon {
  position: absolute;
  left: 10px;
  color: #9ca3af;
  font-size: 20px;
}

/* Games Grid */
.games {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  padding: 10px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
  justify-content: center; /* 🔥 Add this */
  box-sizing: border-box;
  padding-bottom: calc(200px + 16px);
}


/* Single media query for all mobile devices */
@media screen and (max-width: 768px) {
  .container {
    padding: 10px 0;
    padding-bottom: 60px;
    width: 100%;
  }

  .games {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: 33.333%;
    grid-auto-flow: row;
    width: 100%;
    max-width: 400px;
    gap: 0;
    padding: 0;
    margin: 0 auto;
    justify-content: center;
    justify-items: center;
    box-sizing: border-box;
    padding-bottom: calc(150px + 6px);
  }

  .game {
    padding: 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
  }

  .card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 0;
    border: none;
  }

  .card-info {
    padding: 0.3rem;
  }

  .game-title {
    font-size: 0.7rem;
  }

  .provider {
    font-size: 0.6rem;
  }

  .play-button {
    padding: 6px;
    font-size: 11px;
  }
}

.game {
  position: relative;
  width: 100%;
  min-width: 0;
}

.card {
  background-color: #1f2937;
  border: 1px solid #374151;
  border-radius: 0.5rem;
  overflow: hidden;
  height: 100%;
}

.image-wrapper {
  position: relative;
  aspect-ratio: 1;
}

.game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.card:hover .game-image {
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover .overlay {
  opacity: 1;
}

.play-button {
  width: 100%;
  padding: 0.5rem 1rem;
  background-color: #eab308;
  color: #000000;
  text-align: center;
  border-radius: 0.25rem;
  font-weight: 500;
  transition: background-color 0.2s;
  text-decoration: none;
  display: inline-block;
}

.play-button:hover {
  background-color: #ca8a04;
  text-decoration: none;
}

.card-info {
  padding: 0.75rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Title and Provider text */
.game-title,
.provider {
  display: block;
  position: relative;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.game-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  margin: 0;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.provider {
  color: #9ca3af;
  font-size: 0.75rem;
  margin: 0;
  margin-top: 0.1rem;
  margin-bottom: 0.1rem;
  line-height: 1.2;
}

/* Text sliding animation */
.game-title:hover,
.provider:hover {
  overflow: visible;
  white-space: nowrap;
}

.game-title:hover span,
.provider:hover span {
  display: inline-block;
  animation: slide 5s linear infinite;
}

@keyframes slide {
  0%,
  25% {
    transform: translateX(0);
  }
  75%,
  100% {
    transform: translateX(calc(-100% + 100%));
  }
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
  .card-info {
    padding: 0.5rem;
  }

  .game-title {
    font-size: 0.75rem;
  }

  .provider {
    font-size: 0.65rem;
    margin-top: 0.08rem;
    margin-bottom: 0.08rem;
  }

  .progress-wrapper {
    margin-top: 0.12rem;
  }
}

.progress-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.15rem;
  line-height: 1.2;
}

.progress-container {
  flex-grow: 1;
  height: 4px;
  background-color: #374151;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: #eab308;
  transition: width 0.3s ease;
}

.progress-text {
  color: #eab308;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 45px;
  text-align: right;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
  .game {
    padding: 2px;
  }

  .play-button {
    padding: 8px;
    font-size: 12px;
  }

  .progress-wrapper {
    align-items: center;
    gap: 0.25rem;
  }

  .progress-container {
    height: 4px;
    margin: 0;
  }

  .progress-text {
    font-size: 0.7rem;
    min-width: 35px;
    margin: 0;
  }
}

/* Extra small devices */
@media (max-width: 375px) {
  .games {
    gap: 8px;
  }

  .game {
    padding: 4px;
  }
}

.no-games-message {
  font-size: 16px;
  color: #ff0000;
  text-align: center;
  margin-top: 20px;
}

.date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  color: #9ca3af;
  margin-bottom: 20px;
}

.date i {
  font-size: 20px;
  color: #f9ed1e;
}

.title {
  display: none;
}

iframe {
  overflow: hidden; /* Removes scrollbars */
  border: none; /* Optional: Removes border */
  width: 100%; /* Adjust width */
  height: 100%; /* Adjust height */
}

@keyframes textGlow {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(249, 237, 30, 0.5),
      0 0 20px rgba(249, 237, 30, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(249, 237, 30, 0.8),
      0 0 30px rgba(249, 237, 30, 0.5), 0 0 40px rgba(249, 237, 30, 0.3);
  }
}
/* Mobile adjustments */
@media screen and (max-width: 768px) {
  .progress-wrapper {
    margin-top: 0.12rem;
  }
}

/* Provider tab styling */
.provider-tabs {
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.provider-tabs button {
  background: linear-gradient(to right, #444, #111);
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: background 0.3s;
}
.provider-tabs button:hover {
  background: linear-gradient(to right, #ff6a00, #ee0979);
  color: white;
}
.provider-tabs button {
  background: linear-gradient(to right, #444, #111);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
.provider-tabs button:hover {
  background: linear-gradient(to right, #ff6a00, #ee0979);
  color: white;
}
/* Game Card Styling */
.game {
  display: inline-block;
  margin: 10px;
  width: 160px;
  vertical-align: top;
}

.card {
  background: #222;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.image-wrapper {
  width: 100%;
  height: 120px;
  overflow: hidden;
  position: relative;
}

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

.play-button {
  background: #ff9800;
  color: white;
  text-align: center;
  display: block;
  padding: 8px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
}
.logo-text {
  font-size: 28px;
  font-weight: bold;
  color: white;
  text-align: center;
  padding: 16px;
  background: linear-gradient(45deg, #00f0ff, #ff00c8);
  border-radius: 0 0 12px 12px;
  margin-bottom: 10px;
}
.container {
  text-align: center;
  margin: 20px auto;
  color: white;
}

.site-logo {
  max-width: 90%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.search-bar {
  margin-top: 10px;
  display: inline-block;
  position: relative;
}

.search-input {
  padding: 8px 12px 8px 36px;
  border-radius: 6px;
  border: none;
  background: #111;
  color: #fff;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: #888;
}

.games-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 20px;
}
.game-card {
  width: 150px;
  text-align: center;
}

.provider-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: #222; /* or your theme */
  border: none;
  border-radius: 8px;
  padding: 10px;
  margin: 5px;
  color: white;
  width: 100px;
  cursor: pointer;
}

.provider-button img {
  width: 40px; /* or whatever fits */
  height: auto;
  margin-bottom: 6px;
}



.provider-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100px;
  height: 100px;
  padding: 10px;
  margin: 5px;

  background: #222;
  border: none;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  text-align: center;
}

.provider-button img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 6px;
}

.provider-button span {
  font-size: 0.75rem;
  display: block;
  text-align: center;
  line-height: 1.2;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* Fully reset action buttons */
.action-btn {
  all: unset; /* optional: resets all browser styles */
  padding: 16px 36px;
  font-size: 24px;
  font-weight: bold;
  color: white;
  background: linear-gradient(145deg, #ffd700, #ffb300, #ff8c00);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  text-align: center;
  cursor: pointer;
  display: inline-block;
  text-decoration: none !important;
  position: relative;
  transition: transform 0.2s ease, background 0.3s ease;
}

.action-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(145deg, #ffdf00, #ffc400, #ffa500);
  text-decoration: none !important;
}

.action-btn:visited {
  color: white;
  text-decoration: none;
}
