/* Container Styles */
.link-container {
  display: flex;
  flex-direction: row;  /* Set to row for horizontal alignment */
  justify-content: center; /* Distribute links evenly */
  gap: 20px; /* Reduced gap to bring the items closer */
  padding: 20px;
  background-color: #f7f7f7;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  margin: 0 auto;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Each Link Row */
.name-row {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

/* Link Styles */
.name-link {
  font-size: 18px;
  font-weight: 600;
  color: #4A90E2;
  text-decoration: none;
  padding: 10px;
  border-radius: 6px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: block;
  width: auto;
  text-align: center;
}

/* Hover Effects */
.name-link:hover {
  background-color: #4A90E2;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Hover effect on the name row to scale up */
.name-row:hover {
  transform: translateY(-5px);
}

/* Responsive design */
@media screen and (max-width: 600px) {
  .link-container {
    max-width: 100%;
    padding: 15px;
    flex-direction: column;  /* Stack vertically on smaller screens */
  }

  .name-link {
    font-size: 16px;
    padding: 8px;
    width: auto;
  }
}
