body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, #1e3a8a, #3b82f6);
  color: #ffffff;
  overflow-x: hidden;
}

.visitor-counter {
  background: #1e40af;
  color: #ffd700;
  text-align: center;
  padding: 10px 20px;
  font-size: 1.2em;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.visitor-counter a {
  color: #ffd700;
  text-decoration: none;
}

.visitor-counter a:hover {
  color: #ffffff;
}

header {
  background: #1e40af;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

header h1 {
  margin: 0;
  font-size: 3em;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.games-button {
  padding: 8px 16px;
  background: #1e40af;
  color: #ffd700;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  border: 2px solid #ffd700;
  border-radius: 5px;
  transition: background 0.3s, color 0.3s;
}

.games-button:hover {
  background: #3b82f6;
  color: #ffffff;
}

.hero {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.2em;
  line-height: 1.6;
  margin: 0;
}

.hero a {
  color: #ffd700;
  text-decoration: none;
  font-weight: bold;
}

.hero a:hover {
  color: #ffffff;
}

.showcase {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  width: 250px;
  height: 250px;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.card a {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.card-young { background: linear-gradient(135deg, #10b981, #34d399); }
.card-gigcredit { background: linear-gradient(135deg, #1e90ff, #00ced1); }
.card-cajun { background: #ffffff; border: 4px solid #ffd700; }
.card-bayou { background: #1f2937; border: 4px solid #ffd700; }
.card-code { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.card-recycling { background: linear-gradient(135deg, #f97316, #fdba74); }
.card-labs { background: linear-gradient(135deg, #14b8a6, #5eead4); }
.card-coffee { background: linear-gradient(135deg, #dc2626, #f87171); }
.card-space { background: linear-gradient(135deg, #6b7280, #9ca3af); }

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
.card:nth-child(7) { animation-delay: 0.7s; }
.card:nth-child(8) { animation-delay: 0.8s; }
.card:nth-child(9) { animation-delay: 0.9s; }

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card h3 {
  margin: 0 0 5px;
  font-size: 1.4em;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.card-young h3, .card-young p,
.card-gigcredit h3, .card-gigcredit p,
.card-cajun h3, .card-cajun p,
.card-bayou h3, .card-bayou p,
.card-code h3, .card-code p,
.card-recycling h3, .card-recycling p,
.card-labs h3, .card-labs p,
.card-coffee h3, .card-coffee p,
.card-space h3, .card-space p {
  color: #ffffff;
}

/* Explicitly set text color for Cajun Cannabis to ensure visibility */
.card-cajun h3, .card-cajun p {
  color: #1f2937; /* Dark gray for contrast against white background */
}

.card p {
  font-size: 0.9em;
  margin: 0;
  padding: 0 10px;
}

footer {
  background: #1e40af;
  color: #ffffff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
}

footer p {
  margin: 0;
  font-size: 1em;
}

footer a {
  color: #ffd700;
  text-decoration: none;
}

footer a:hover {
  color: #ffffff;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2.2em;
  }
  .header-container {
    flex-direction: column;
    gap: 10px;
  }
  .games-button {
    font-size: 0.9em;
    padding: 6px 12px;
  }
  .hero p {
    font-size: 1em;
  }
  .visitor-counter {
    font-size: 1em;
    padding: 8px 15px;
  }
  .showcase {
    grid-template-columns: 1fr;
    justify-content: center; /* Center the single column on mobile */
    width: 100%; /* Ensure full width */
    margin-left: auto;
    margin-right: auto; /* Center the container */
  }
  .card {
    width: 200px;
    height: 200px;
    margin: 0 auto; /* Center each card individually */
  }
  .card img {
    width: 60px;
    height: 60px;
  }
  .card h3 {
    font-size: 1.2em;
  }
  .card p {
    font-size: 0.8em;
  }
}
.header-buttons {
  display: flex;
  gap: 10px;
}
.header-button {
  background-color: #4CAF50; /* Match original games-button color */
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}
.header-button:hover {
  background-color: #45a049; /* Match original hover effect */
}