/*
 * Hexagon tiles for ProfileComponent. Converted by hand from the old honeycomb.sass (#4), with the
 * tile width at 100px and the height at width * 1.732.
 */

.honeycomb *,
.honeycomb *::before,
.honeycomb *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hexagon {
  position: relative;
  display: inline-block;
  /* left/right margin approx. 25% of .hexagon width + spacing */
  margin: 5px 110px;
  background-color: var(--seebee-yellow);
  text-align: center;
  transition: all 0.5s;
}

.hexagon a {
  outline: 0;
  text-decoration: none;
  color: var(--seebee-yellow);
}

.hexagon img {
  width: 90%;
  height: auto;
}

@media (min-width: 576px) {
  .hexagon {
    transform: rotate(30deg);
    margin: 0 50px;
  }

  .hexagon img {
    transform: rotate(-30deg);
  }
}

/* easy way: height is width * 1.732
   actual formula is 2*(width/(2*Math.tan(Math.PI/6)))
   remove border-radius for sharp corners on hexagons */
.hexagon,
.hexagon::before,
.hexagon::after {
  width: 100px;
  height: 173.2px;
  border-radius: 10%/2.5%;
}

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

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

.hexagon:hover,
.hexagon:active {
  transform: scale(0.8);
}

.hexanone {
  position: relative;
  display: inline-block;
  width: 100px;
  height: 173.2px;
  margin: 1px 26px;
}

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

.ibws-fix {
  /* inline-block whitespace fix */
  font-size: 0;
}
