
* {
    margin: 0;
    padding: 0;
}

.modlst { padding-left:25px;}

/*.modal .modal-dialog {
  width: 700px;
  margin-left: auto;
  margin-right: auto;
}*/

#hexGrid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  list-style-type: none;
  max-width:900px;
}

.hex {
  position: relative;
  visibility:hidden;
  outline:1px solid transparent; /* fix for jagged edges in FF on hover transition */
}
.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:0%;
  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);
    


}
.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: #fff;
	background-color: rgba(0, 49, 148, 1);
	box-shadow:3px 3px 5px rgba(4, 4, 4, 0.3);
    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);

}

/*** HEX CONTENT **********************************************************************/
.hex img {
  left: -100%;
  right: -100%;
  width: auto;
  height: 100%;
  margin: 0 auto;
  -webkit-transform: rotate3d(0,0,0,0deg);
      -ms-transform: rotate3d(0,0,0,0deg);
          transform: rotate3d(0,0,0,0deg);

}

.hex h1, .hex p {
  width: 100%;
  padding: 10%;
  box-sizing:border-box;
  font-weight: 300;
  font-family: 'Open Sans', sans-serif;
  
  /*-webkit-transition:  -webkit-transform .2s ease-out, opacity .3s ease-out;
          transition:          transform .2s ease-out, opacity .3s ease-out;
*/
  }
.hex h1 {
  bottom: 50%;
  padding-top:50%;
  font-size: 1.5em;
  z-index: 1;
  
 /* -webkit-transform:translate3d(0,-100%,0);
      -ms-transform:translate3d(0,-100%,0);
          transform:translate3d(0,-100%,0);
		  */
}
.hex h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 45%;
  width: 10%;
  text-align: center;
  border-bottom: 1px solid #fff;
}
.hex p {
  top: 40%;
  padding-bottom:50%;
  /*-webkit-transform:translate3d(0,100%,0);
      -ms-transform:translate3d(0,100%,0);
          transform:translate3d(0,100%,0)*/
}

@media (max-width: 781px) {
    .hex p {display:none;}
	.hex h1::after {border-bottom: 0px solid #fff;}
	.hex h1{bottom: 30%;font-size:1.5em;}	
}

@media (max-width: 691px) {
	.hex h1{bottom: 30%;font-size:1.4em;}
}

@media (max-width: 535px) {
	.hex h1{bottom: 30%;font-size:1em;}
}

/*** HOVER EFFECT  **********************************************************************/
.hexLink:hover , .hexLink:focus ,
.hexLink:hover , .hexLink:focus {
	background-color:rgba(122, 193, 67, 1);
}


/*@media (max-width: 1200px) and (min-width:901px) {  <- 4-3  hexagons per row */
  #hexGrid{
    padding-bottom: 5.5%
  }
  .hex {
    width: 25%; /* = 100 / 4 */
  }
  
  .hex:nth-child(5n+1){ /* first hexagon of even rows */
    margin-left:25%;  /* = width of .hex / 2  to indent even rows */
  }
  .hex:nth-child(5n+2){ /* first hexagon of even rows */
    margin-right:25%;  /* = width of .hex / 2  to indent even rows */
  }
  .hex:nth-child(6n+3){ /* first hexagon of even rows */
    margin-left:12.5%; 
  }	/* = width of .hex / 2  to indent even rows */
  .hex:nth-child(8){ /* first hexagon of even rows */
    margin-left:37.5%;  /* = width of .hex / 2  to indent even rows */
  }
}


