.community-card {
  position: relative;
  display: inline-block;
}

#detailsBox {
  position: fixed;
  z-index: 1000; /* Ensure it's above other elements */
  display: none; /* Hidden by default */
  background-color: white;
  border: 1px solid #ccc;
  padding: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 100010;
  max-width: 25rem;
  border-radius: 16px;
  width: 480px; 
}

.community-title:hover + .details-box {
  display: block;
}

.view-community {
  background-color: #0044cc;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}

.view-community:hover {
  background-color: #0033a0;
}


.cc-profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.cc-profile-pic {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 10px;
}

.cc-profile-info {
  flex: 1;
}

.cc-profile-name {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}

.cc-profile-username {
  margin: 0;
  font-size: 12px;
  color: gray;
}

.cc-profile-date {
  margin-top: 10px;
  font-size: 12px;
  color: gray;
}

.cc-profile-details {
  display: flex;
  justify-content: space-between;
}

.cc-members-info, .cc-points-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-direction: column;
}

.cc-members-value, .cc-points-value {
  font-size: 18px;
  font-weight: bold;
}

.cc-members-label, .cc-points-label {
  font-size: 12px;
  color: gray;
}

.cc-action-buttons {
  display: flex;
  justify-content: space-between;
}

.cc-follow-floor-btn {
  background-color: #0044cc;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.cc-view-floor-btn {
  background-color: #0044cc;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.cc-follow-floor-btn:hover {
  background-color: #0033a0;
}

.cc-view-floor-btn:hover {
  background-color: #0033a0;
}

/* CSS for the mobile view of the left panel */
@media (max-width: 767px) {
  
  #detailsBox {
    width: 80%;
  }
}