*{margin:0;padding:0;box-sizing:border-box}

      html { background-color: #FFF; padding: 0 5%; font-family: Roboto, sans-serif; font-weight: 300; color: rgba(0,0,0,.87); }
      body { background-color: #FFF; border: 3px solid #000; border-top: 0; border-bottom: 0; padding: 80px 15%; }

      html::before { content: ""; height: 60px; width: 0; border-style: solid; border-width: 0 0 30px 51.9615242271px; top: 0;
                   border-color: #000 transparent transparent #000; position: fixed; left: 5%; margin-left: 3px; }
      html::after { content: ""; height: 58px; width: 0; border-style: solid; border-width: 0 0 30px 51.9615242271px; top: 0;
                   border-color: #FFF transparent transparent #FFF; position: fixed; left: 5%; }
      body::before { content: ""; height: 60px; width: 0; border-style: solid; border-width: 30px 51.9615242271px 0 0; bottom: 0;
                   border-color: transparent #000 #000 transparent; position: fixed; right: 5%; margin-right: 3px; }
      body::after { content: ""; height: 58px; width: 0; border-style: solid; border-width: 30px 51.9615242271px 0 0; bottom: 0;
                   border-color: transparent #FFF #FFF transparent; position: fixed; right: 5%; }
      h1 { font: 100 56px "Roboto", sans-serif; margin: 0    auto;      border-bottom: 2px solid #000; }
      h2 { font: 100 34px "Roboto", sans-serif; margin: 4px  auto 40px; text-align: right; }
      h3 { font: 100 34px "Roboto", sans-serif; margin: 40px auto 0;    border-bottom: 1px solid #444; clear: both; }
      h4 { font: 300 13px "Roboto", sans-serif; margin: 4px  auto 30px; text-align: right; letter-spacing: .1px; }

      h1 span, h2 span, h3 span, h4 span { position: relative; }
      h1 span::after, h3 span::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        height: 4px;
        width: 100%;
        background-image:
          linear-gradient(
            to right, 
            #c66,
            #c66 33%,
            #b5bd68 33%,
            #b5bd68 67%,
            #63a5dc 67%);
      }
      h2 span::after, h4 span::after {
        content: "";
        position: absolute;
        top: -4px;
        left: 0;
        height: 4px;
        width: 100%;
        background-image:
          linear-gradient(
            to right, 
            #94d2db,
            #94d2db 33%,
            #c582cb 33%,
            #c582cb 67%,
            #f0c674 67%);
      }
      h3 span::after, h4 span::after { height: 2px; }

      img.figure { display: block; max-width: 12%; float: left; border-radius: 2px; }

      p { max-width: 6in; margin: 1em auto; line-height: 1.4em; letter-spacing: .1px; }
      p a, h4 a { color: #63a5dc; text-decoration: none; }
      p a:hover, h4 a:hover { text-decoration: underline; }
      p strong { font-weight: 500; }
      code { font-family: "Roboto Mono", monospace; font-weight: 300; letter-spacing: -.6px; color: rgba(0,0,0,.7); background-color: rgba(0,0,0,.05); padding: 2px 4px; border-radius: 4px; }

      #contact-container {
        margin-bottom: 80px;
        text-align: center;
      }
      #contact {
        display: inline-block;
        position: relative;
      }
      #contact a {
        padding-bottom: 1px;
        outline: none;
      }
      #contact a:hover {
      }
      #contact a .address {
        display: none;
        position: absolute;
        bottom: -65px;
        height: 64px;
        padding: 21px 0;
        width: 100%;
        font-size: 20px;
        line-height: 20px;
        color: #fff;
        background-color: #000;
      }
      #contact::before {
        content: "";
        position: absolute;
        bottom: -65px;
        left: 0;
        height: 0;
        width: 0;
        border-style: solid;
        border-width: 0 27.725px 16px 0;
        border-color: transparent transparent #fff transparent;
        z-index: 1;
      }
      #contact::after {
        content: "";
        position: absolute;
        bottom: -65px;
        right: 0;
        height: 0;
        width: 0;
        border-style: solid;
        border-width: 0 0 16px 27.725px;
        border-color: transparent transparent #fff transparent;
        z-index: 1;
      }
      #contact a:hover::before {
        content: "";
        position: absolute;
        margin: 0 0 0 -31px;
        bottom: -1px;
        height: 0;
        width: 0;
        border-style: solid;
        border-width: 0 0 20px 34.6410161514px;
        border-color: transparent transparent #f00 transparent;
        z-index: 1;
      }
      #contact a:hover::after {
        content: "";
        position: absolute;
        bottom: -1px;
        height: 0;
        width: 0;
        border-style: solid;
        border-width: 0 34.6410161514px 20px 0;
        border-color: transparent transparent #f00 transparent;
        z-index: 1;
      }
      #contact a .address::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        height: 0;
        width: 0;
        border-style: solid;
        border-width: 16px 27.725px 0 0;
        border-color: #fff transparent transparent transparent;
        z-index: 1;
      }
      #contact a .address::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        height: 0;
        width: 0;
        border-style: solid;
        border-width: 16px 0 0 27.725px;
        border-color: #fff transparent transparent transparent;
        z-index: 1;
      }
      #contact a:hover .address {
        display: block;
      }
      #contact a#email:hover, #contact a#email:hover .address { background-color: #5aa02c } #contact a#email:hover::after { border-bottom-color: #5aa02c } #contact a#email:hover::before, #contact a#email .address::before { display: none }
      #contact a#gplus:hover, #contact a#gplus:hover .address { background-color: #dc4e41 } #contact a#gplus:hover::before, #contact a#gplus:hover::after { border-bottom-color: #dc4e41 }
      #contact a#twitter:hover, #contact a#twitter:hover .address { background-color: #1da1f2 } #contact a#twitter:hover::before, #contact a#twitter:hover::after { border-bottom-color: #1da1f2 }
      #contact a#github:hover, #contact a#github:hover .address { background-color: #181616 } #contact a#github:hover::before, #contact a#github:hover::after { border-bottom-color: #181616 }
      #contact a#linkedin:hover, #contact a#linkedin:hover .address { background-color: #1d8cb5 } #contact a#linkedin:hover::before, #contact a#linkedin:hover::after { border-bottom-color: #1d8cb5 }
      #contact a#keybase:hover, #contact a#keybase:hover .address { background-color: #fe874a } #contact a#keybase:hover::before, #contact a#keybase:hover::after { border-bottom-color: #fe874a }
      #contact a#coinbase:hover, #contact a#coinbase:hover .address { background-color: #005c96 } #contact a#coinbase:hover::before { border-bottom-color: #005c96 } #contact a#coinbase:hover::after, #contact a#coinbase .address::after { display: none }

#hexGrid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  overflow: hidden;
  font-size: 15px;
  list-style-type: none;
}

.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 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);
}
.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: #ddd;
  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);
}
.hexLink:hover {
  opacity: .8;
}

/*** HEX CONTENT **********************************************************************/
.hex img, .hex svg {
  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);
}

/*** HEXAGON SIZING AND EVEN ROW INDENTATION *****************************************************************/
@media (min-width:1001px) { /* <- 5-4  hexagons per row */
  #hexGrid{
    padding-bottom: 5%
  }
  .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: 1000px) and (min-width:701px) { /* <- 4-3  hexagons per row */
  #hexGrid{
    padding-bottom: 6%
  }
  .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: 700px) and (min-width:401px) { /* <- 3-2  hexagons per row */
  #hexGrid{
    padding-bottom: 8%
  }
  .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) {
        html { padding: 20px 0 0 0; border: 0; }
        body { border-left: 0; border-right: 0; border-top: 3px solid #000; padding: 10px 15% 40px; }
        html::before { height: 0; width: 60px; border-style: solid; border-width: 30px 0 0 51.9615242271px; top: 20px; position: absolute;
                     border-color: #000 #000 transparent transparent; left: auto; right: 0; margin: 3px 0 0 0; }
        html::after { height: 0; width: 58px; border-style: solid; border-width: 30px 0 0 51.9615242271px; top: 20px; position: absolute;
                     border-color: #FFF #FFF transparent transparent; left: auto; right: 0; }
        body::before { display: none; } body::after { display: none; }
        h1 { margin-top: 40px; }
        #projects .left, #projects .right { width: auto; }
        #projects .left { float: none; margin: 0; } #projects .right { margin: 0; }
        p.content { margin: 1em 0; }
}

@media (max-width: 400px) { /* 2-1 hexagons per row */
  #hexGrid{
    padding-bottom: 12%
  }
  .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 */
  }
}
