#hexGrid {
  display: flex;
  flex-wrap: wrap;
  width: 90%;
  margin: 0 auto;
  overflow: hidden;
  list-style-type: none;
  font-size: 1.6rem;
}

.hex {
  position: relative;
  visibility: hidden;
  outline: 1px solid transparent;
  /* fix for jagged edges in FF on hover transition */
  transition: all 0.5s;
  backface-visibility: hidden;
  will-change: transform;
  transition: all 0.5s;
}

.hex::after {
  content: "";
  display: block;
  padding-bottom: 86.602%;
  /* =  100 / tan(60) * 1.5 */
}

.hexIn {
  position: absolute;
  width: 96%;
  padding-bottom: 110.851%;
  /* =  width / sin(60) */
  margin: 2%;
  overflow: hidden;
  visibility: hidden;
  outline: 1px solid transparent;
  /* fix for jagged edges in FF on hover transition */
  -webkit-transform: rotate3d(0, 0, 1, -60deg) skewY(30deg);
  -ms-transform: rotate3d(0, 0, 1, -60deg) skewY(30deg);
  transform: rotate3d(0, 0, 1, -60deg) skewY(30deg);
  transition: all 0.5s;
}

.hexIn * {
  position: absolute;
  visibility: visible;
  outline: 1px solid transparent;
  /* fix for jagged edges in FF on hover transition */
}

.hexLink {
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
  color: #111;
  overflow: hidden;
  -webkit-transform: skewY(-30deg) rotate3d(0, 0, 1, 60deg);
  -ms-transform: skewY(-30deg) rotate3d(0, 0, 1, 60deg);
  transform: skewY(-30deg) rotate3d(0, 0, 1, 60deg);
  background: #fff;
  opacity: 0.5;
}

.hex-active {
  cursor: pointer;
}

.final-hex .hexLink {
  background: transparent !important;
  opacity: 1;
}
.final-hex .hexLink #more-products {
  background: url("../images/producten-bij.png");
  background-size: cover;
  width: 132px;
  height: 110px;
  position: absolute;
  left: 2px;
  top: 20px;
}
.final-hex .hexLink #hex-title {
  position: absolute;
  display: block;
  width: 98%;
  top: 122px;
  right: 15px;
  color: #111 !important;
  text-align: right;
  line-height: 1.2;
  font-size: 1.4rem;
}
.final-hex .hexLink #more-info-products {
  background: url("../images/contact-bij.png");
  background-size: cover;
  width: 120px;
  height: 107px;
  position: absolute;
  left: 24px;
  top: 30px;
}
.final-hex .hexLink #hex-title-more-info {
  position: absolute;
  display: block;
  width: 98%;
  top: 145px;
  color: #111 !important;
  text-align: center;
  line-height: 1.2;
  font-size: 1.4rem;
}

@media (max-width: 675px) and (min-width: 601px) {
  .hexLink #hex-title {
    font-size: 1.5rem;
  }

  .final-hex .hexLink #more-products {
    background-size: cover;
    width: 102px;
    height: 86px;
    position: absolute;
    left: 2px;
    top: 15px;
  }
  .final-hex .hexLink #hex-title {
    position: absolute;
    top: 92px;
    right: 15px;
    font-size: 1.4rem;
  }
}
@media (max-width: 991px) and (min-width: 901px) {
  .final-hex .hexLink #more-products {
    background-size: cover;
    width: 102px;
    height: 86px;
    position: absolute;
    left: 2px;
    top: 15px;
  }
  .final-hex .hexLink #hex-title {
    position: absolute;
    top: 92px;
    right: 15px;
    font-size: 1.4rem;
  }
}
.hex-active {
  opacity: 1;
}

.hex-active:hover {
  font-weight: bold;
}

/*** HEX CONTENT **********************************************************************/
#hex-title {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #444;
  height: 100%;
  width: 100%;
  padding: 10px;
}

/*** HEXAGON SIZING AND EVEN ROW INDENTATION *****************************************************************/
@media (min-width: 1201px) {
  /* <- 5-4  hexagons per row */
  #hexGrid {
    padding-bottom: 4.4%;
  }

  .hex {
    width: 20%;
    /* = 100 / 5 */
  }

  .hex:nth-child(9n+6) {
    /* first hexagon of even rows */
    margin-left: 10%;
    /* = width of .hex / 2  to indent even rows */
  }
}
@media (max-width: 1200px) and (min-width: 901px) {
  /* <- 4-3  hexagons per row */
  #hexGrid {
    padding-bottom: 5.5%;
    font-size: 1.4rem;
  }

  .hex {
    width: 25%;
    /* = 100 / 4 */
  }

  .hex:nth-child(7n+5) {
    /* first hexagon of even rows */
    margin-left: 12.5%;
    /* = width of .hex / 2  to indent even rows */
  }
}
@media (max-width: 900px) and (min-width: 601px) {
  /* <- 3-2  hexagons per row */
  #hexGrid {
    padding-bottom: 7.4%;
    font-size: 1.7rem;
  }

  .hex {
    width: 33.333%;
    /* = 100 / 3 */
  }

  .hex:nth-child(5n+4) {
    /* first hexagon of even rows */
    margin-left: 16.666%;
    /* = width of .hex / 2  to indent even rows */
  }
}
@media (max-width: 600px) {
  /* <- 2-1  hexagons per row */
  #hexGrid {
    padding-bottom: 11.2%;
    font-size: 1.7rem;
  }

  .hex {
    width: 50%;
    /* = 100 / 3 */
  }

  .hex:nth-child(3n+3) {
    /* first hexagon of even rows */
    margin-left: 25%;
    /* = width of .hex / 2  to indent even rows */
  }
}
@media (max-width: 400px) {
  #hexGrid {
    font-size: 8px;
  }
}

/*# sourceMappingURL=hexagon.css.map */
