/**
 * @file
 * Honeycomb hexagon grid styles for CLARIN:EL network members.
 */
.hexagon {
  position: relative;
  display: inline-block;
  margin: 1px 18px;
  background-color: #e6ebf1;
  text-align: center;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.hexagon.single-color {
  background-color: #b30315 !important;
  opacity: 0.92;
}

.hexagon.no-hover:hover {
  background-color: #e6ebf1;
  opacity: 1;
}

.hexagon,
.hexagon::before,
.hexagon::after {
  width: 67px;
  height: 116px;
  border-radius: 10% / 5%;
}

.hexagon::before {
  background-color: inherit;
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  transform: rotate(-60deg);
}

.hexagon::after {
  background-color: inherit;
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  transform: rotate(60deg);
}

.hexagon:nth-child(even) {
  top: 59px;
}

.hexagon:hover {
  background-color: #0073bc;
  cursor: pointer;
  z-index: 105;
  opacity: 0.95;
}

.hexagon:active {
  background-color: #004b7c;
  z-index: 110;
}

.hexanone {
  position: relative;
  display: inline-block;
  width: 67px;
  height: 116px;
  margin: 1px 18px;
}

.hexanone:nth-child(even) {
  top: 59px;
}

.hexagontent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  line-height: 1.2;
  z-index: 100;
}

.hexagon.single-color h6 a {
  color: #ffffff !important;
}

.hexagontent h6 {
  margin: 0;
}

.hexagontent h6 a {
  display: block;
  margin: 24px 0 6px 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b !important;
  text-decoration: none;
}

.hexagon:hover .hexagontent h6 a {
  color: #ffffff !important;
}

.hexagontent p a {
  color: #ffffff !important;
  text-decoration: none;
}

.ibws-fix {
  font-size: 0;
}

.honeycomb {
  margin: 1rem auto 4.5rem;
  text-align: center;
  padding: 1rem 0;
}

.hexagontent p {
  color: #ffffff;
  transition: top 0.2s ease-out, bottom 0.2s ease-out, padding 0.2s ease-out;
  visibility: hidden;
  font-size: 0.72rem;
  line-height: 1.25;
  margin: 0;
}

.hexagontent p:after {
  content: "";
  display: block;
  position: absolute;
  bottom: -2px;
  left: 40%;
  width: 20%;
  text-align: center;
  z-index: 1;
  border-bottom: 1px solid #ffffff;
}

.hexagon:hover .hexagontent p,
.hexagontent:hover p {
  top: 50%;
  padding-top: 8%;
  visibility: visible;
}

