.space-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  padding: 20px;
}

.space-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none; /* This removes the underline from links */
  color: inherit; /* This ensures the text color remains consistent */
}

.space-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.space-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

.teal {
  background-color: #00c7b7;
}

.space-header {
  background-color: #f4f5f7;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.space-header img {
  width: 50px;
  /* Adjust as needed */
  height: 50px;
  /* Adjust as needed */
  border-radius: 25%;
}

/* Define other colors as needed */

.space-icon img {
  max-width: 70%;
}

.space-name {
  text-align: center;
  font-weight: bold;
}

.auth-container {
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.auth-container a {
    text-decoration: none;
    color: #0066cc;
}

.auth-container a:hover {
    text-decoration: underline;
}