/* Top links */
.top-links-container {
  overflow: hidden;
  padding: 4px 5px;
}
.top-links-container img {
  height: 85%;
}
.top-links-container a {
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3),
    inset 0px 2px 1px rgba(255, 255, 255, 0.3),
    inset 0px -2px 1px rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  justify-content: flex-start;
  width: 100%;
  height: 75px;
  font-size: 1.4em;
  padding: 0px 10px;
  margin: 5px 4px;
  z-index: 1;
}

/* Separators */
.top-links-separators {
  height: 75px;
  padding: 1px;
  z-index: 2;
}

/* Community Section */
#communitySection {
  display: grid;
  grid-column-gap: 15px;
  grid-row-gap: 15px;
  grid-template-columns: repeat(3, 1fr);
}
#communitySection header {
  z-index: 1;
}

/* Cards */
.community-cards {
  flex-direction: column;
  position: relative;
}
.community-cards a {
  z-index: 2;
}
.community-cards div {
  transition: all 0.2s ease-in;
}

/* Hover effect for inactive */
.community-cards div::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(127, 140, 124, 0) 30%,
    rgba(160, 160, 160, 0.5) 100%
  );
  opacity: 0;
  transition: opacity 0.2s ease-in;
  z-index: 1;
  height: 100%;
}
.community-cards div:hover::before {
  opacity: 1;
}
.community-cards h2 {
  font-size: 1.5em;
}

/* Card content */
.community-cards div {
  background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0) 16.67%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.63) 0%,
      rgba(111, 118, 122, 0.7) 90.5%
    );
  box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.3),
    inset 0px 2px 1px rgba(255, 255, 255, 0.3),
    inset 0px -2px 1px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  padding: 30px 16px;
}
.community-cards img {
  width: 100%;
  max-width: 250px;
  transition-duration: 0.4s;
}
.community-cards img:hover {
  transform: scale(105%);
  transition-duration: 0.4s;
}

/* Responsiveness */
@media (max-width: 750px) {
  .top-links-container {
    background: none;
    flex-direction: column;
  }
  .top-links-container a {
    background: linear-gradient(
      180deg,
      rgba(111, 118, 122, 0.7) 0%,
      rgba(0, 0, 0, 0.7) 50%,
      rgba(62, 65, 67, 0.7) 100%
    );
  }
  .top-links-separators {
    display: none;
  }
  #communitySection {
    grid-template-columns: repeat(1, 1fr);
  }
}
