body {
  background: url('/assets/img/bitreaver2.png') no-repeat center center/cover;
  font-family: 'Orbitron', sans-serif;
  color: #fff;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.container {
  display: flex;
  gap: 120px; /* Increased gap between cards */
  justify-content: center;
  width: 90%;
  max-width: 1400px; /* Increased max width for wider cards */
}
.card {
  background: rgba(0, 0, 0, 0.95);
  border: 2px solid #b9221b;
  padding: 15px; /* Reduced padding */
  border-radius: 10px;
  text-align: center;
  width: 250px; /* Reduced card width */
  box-shadow: 0 0 10px #b9221b; /* Slightly smaller shadow */
  transition: transform 0.3s ease;
  height: auto; /* Allow height to adjust based on content */
  max-height: 400px; /* Limit max height */
  overflow: hidden; /* Prevent overflow */
}

.card:hover {
  transform: scale(1.05);
}
.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #b9221b;
}
.tags {
  margin: 10px 0;
  font-size: 14px;
  color: #ffeb3b;
}
.bio {
  font-size: 14px;
  margin-bottom: 10px;
}
.links {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.links a {
  color: #b9221b;
  text-decoration: none;
  margin: 5px 0; /* Ensure each link is on a new line */
  font-size: 16px;
  transition: color 0.3s;
}
.links a:hover {
  color: #ffeb3b;
}


.container {
  display: flex;
  flex-wrap: wrap; /* Allows wrapping of cards */
  justify-content: center; /* Centers the cards */
  gap: 20px; /* Adds spacing between cards */
}

/* Default card styles */
.card {
  flex: 1 1 calc(33.333% - 20px); /* Default: 3 cards per row */
  max-width: calc(33.333% - 20px);
  box-sizing: border-box;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
  .card {
    flex: 1 1 100%; /* Stack cards vertically */
    max-width: 100%;
    width: auto; /* Allow full width */
  }
}

/* Mobile Fixes */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  nav, .navbar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 10px;
  }

  .navbar-logo img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .navbar-logo {
    padding: 0;
    margin: 0 auto;
  }

  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .members {
    max-height: 100vh;
    overflow-y: auto;
    background: rgba(15, 14, 14, 0.85);
  }

  .main-background {
    background: rgba(15, 14, 14, 0.85);
  }
}


@media (max-width: 768px) {
  .main-background {
    width: 100vw;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .members {
    overflow-y: auto;
    padding-bottom: 2rem;
  }

  .member-card {
    max-height: 200px;
    overflow: hidden;
    margin-bottom: 1rem;
  }
}
