@import url("https://fonts.googleapis.com/css?family=Lato:100");
html,
body {
  width: 100%;
  height: 100%;
}
.flex-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
body {
  background-color: #262e6f;
}
.unit {
  text-align: center;
  display: contents; /**/
}
.unit p {
  margin-top: 100px;
  font-family: 'Lato', sans-serif;
  font-weight: 100;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
}
.heart {
  /* position: relative; */
  position: absolute; /**/
  font-size: 0;
  /* width: 138px; */
  height: 150px; /**/
  display: inline-block; /**/
  margin: auto;
}
[class*="heart-piece-"] {
  /* position: absolute; */
  position: relative; /**/
  float: left; /**/
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  margin: 0px 2px 0px 2px; 
}
[class*="heart-piece-"]:hover::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -5px;
  width: 255px;
  height: 150px;
}
[class*="heart-piece-"]::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10px;
  height: 150px;
  top: -70px;
}
.heart-content{
  height: 150px;
  font-size: medium;
  display: none;
  font-family: 'Lato', sans-serif;
}  
.heart-content > a > span{
  display: block;
  margin: 10px;
  color: #fff;
  font-size: large;
  font-weight: 900; 
}  
.heart-content > a{
  display: block;
  position: relative;
  z-index: 10; 
  text-decoration: none;
}
  
[class*="heart-piece-"]:hover .heart-content {
  display: block;
}
.hov:hover [class*="heart-piece-"] {
  -webkit-animation: none;
  animation: none;
}
[class*="heart-piece-"]:hover {
  width: 230px;
  height: 150px;
  top: -75px;
}
.heart-piece-4 {
  -webkit-animation: piece-4 3.2s infinite;
          animation: piece-4 3.2s infinite;
}
.heart-piece-3,
.heart-piece-5 {
  -webkit-animation: piece-3 3.2s infinite;
          animation: piece-3 3.2s infinite;
}
.heart-piece-2,
.heart-piece-6 {
  -webkit-animation: piece-2 3.2s infinite;
          animation: piece-2 3.2s infinite;
}
.heart-piece-1,
.heart-piece-7 {
  -webkit-animation: piece-1 3.2s infinite;
          animation: piece-1 3.2s infinite;
}
.heart-piece-0,
.heart-piece-8 {
  -webkit-animation: piece-0 3.2s infinite;
          animation: piece-0 3.2s infinite;
}
.heart-piece-0 {
  /*left: 0px; */
  -webkit-animation-delay: 0s;
          animation-delay: 0s;
  background-color: #ec2d73;
}
.heart-piece-1 {
 /* left: 16px; */
  -webkit-animation-delay: 0.15s;
          animation-delay: 0.15s;
  background-color: #eb5324;
}
.heart-piece-2 {
 /* left: 32px; */
  -webkit-animation-delay: 0.3s;
          animation-delay: 0.3s;
  background-color: #fdc800;
}
.heart-piece-3 {
 /* left: 48px; */
  -webkit-animation-delay: 0.45s;
          animation-delay: 0.45s;
  background-color: #47b264;
}
.heart-piece-4 {
 /* left: 64px; */
  -webkit-animation-delay: 0.6s;
          animation-delay: 0.6s;
  background-color: #1470bd;
}
.heart-piece-5 {
 /* left: 80px; */
  -webkit-animation-delay: 0.75s;
          animation-delay: 0.75s;
  background-color: #76469a;
}
.heart-piece-6 {
 /* left: 96px; */
  -webkit-animation-delay: 0.9s;
          animation-delay: 0.9s;
  background-color: #ec2d73;
}
.heart-piece-7 {
 /* left: 112px; */
  -webkit-animation-delay: 1.05s;
          animation-delay: 1.05s;
  background-color: #eb5324;
}
.heart-piece-8 {
 /* left: 128px; */
  -webkit-animation-delay: 1.2s;
          animation-delay: 1.2s;
  background-color: #fdc800;
}
@-webkit-keyframes piece-4 {
  0%, 10%, 90%, 100% {
    height: 10px;
    top: -5px;
  }
  45%, 55% {
    height: 94px;
    top: -23px;
  }
}
@keyframes piece-4 {
  0%, 10%, 90%, 100% {
    height: 10px;
    top: -5px;
  }
  45%, 55% {
    height: 94px;
    top: -23px;
  }
}
@-webkit-keyframes piece-3 {
  0%, 10%, 90%, 100% {
    height: 10px;
    top: -5px;
  }
  45%, 55% {
    height: 90px;
    top: -31px;
  }
}
@keyframes piece-3 {
  0%, 10%, 90%, 100% {
    height: 10px;
    top: -5px;
  }
  45%, 55% {
    height: 90px;
    top: -31px;
  }
}
@-webkit-keyframes piece-2 {
  0%, 10%, 90%, 100% {
    height: 10px;
    top: -5px;
  }
  45%, 55% {
    height: 80px;
    top: -37px;
  }
}
@keyframes piece-2 {
  0%, 10%, 90%, 100% {
    height: 10px;
    top: -5px;
  }
  45%, 55% {
    height: 80px;
    top: -37px;
  }
}
@-webkit-keyframes piece-1 {
  0%, 10%, 90%, 100% {
    height: 10px;
    top: -5px;
  }
  45%, 55% {
    height: 60px;
    top: -31px;
  }
}
@keyframes piece-1 {
  0%, 10%, 90%, 100% {
    height: 10px;
    top: -5px;
  }
  45%, 55% {
    height: 60px;
    top: -31px;
  }
}
@-webkit-keyframes piece-0 {
  0%, 10%, 90%, 100% {
    height: 10px;
    top: -5px;
  }
  45%, 55% {
    height: 30px;
    top: -15px;
  }
}
@keyframes piece-0 {
  0%, 10%, 90%, 100% {
    height: 10px;
    top: -5px;
  }
  45%, 55% {
    height: 30px;
    top: -15px;
  }
}

/*---*/
/*NAV*/
/*---*/

*, *:before, *:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html, body {
    height: 100%;
  }
  

  
  /* MAIN VARIABLES FOR CUSTOMIZATION */
  /* -------------------------------- */
  .nav_wrapper{
    width: 100%;
    height: 100px;
    display: block;
    position: absolute;
    background: #548096;
    top: 60%;
  }
  .nav {
    overflow: hidden;
    position: absolute;
    left: 50%;
    top: 70%;
    width: auto;
    height: 90px;
    margin-top: -45px;
    background: #fff;
    border-radius: 5px;
    -webkit-transform: translate3d(-50%, 0, 0);
            transform: translate3d(-50%, 0, 0);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
  }
  .nav__cb {
    z-index: -1000;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    pointer-events: none;
  }
  .nav__content {
    position: relative;
    width: 90px;
    height: 100%;
    transition: width 1s cubic-bezier(0.49, -0.3, 0.68, 1.23);
  }
  .nav__cb:checked ~ .nav__content {
    transition: width 1s cubic-bezier(0.48, 0.43, 0.29, 1.3);
    width: 410px;
  }
  .nav__items {
    position: relative;
    width: 410px;
    height: 100%;
    padding-left: 20px;
    padding-right: 110px;
    list-style-type: none;
    font-size: 0;
  }
  .nav__item {
    display: inline-block;
    vertical-align: top;
    /*width: 70px;*/
    text-align: center;
    color: #6C7784;
    font-size: 14px;
    line-height: 90px;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
    -webkit-perspective: 1000px;
            perspective: 1000px;
    transition: color 0.3s;
    cursor: pointer;
  }
  .nav__item:hover {
    color: #262e6f;
  }
  .nav__item-text {
    display: block;
    height: 100%;
    -webkit-transform: rotateY(-70deg);
            transform: rotateY(-70deg);
    opacity: 0;
    transition: opacity 0.7s, -webkit-transform 0.7s cubic-bezier(0.48, 0.43, 0.7, 2.5);
    transition: transform 0.7s cubic-bezier(0.48, 0.43, 0.7, 2.5), opacity 0.7s;
    transition: transform 0.7s cubic-bezier(0.48, 0.43, 0.7, 2.5), opacity 0.7s, -webkit-transform 0.7s cubic-bezier(0.48, 0.43, 0.7, 2.5);
  }
  .nav__cb:checked ~ .nav__content .nav__item-text {
    -webkit-transform: rotateY(0);
            transform: rotateY(0);
    opacity: 1;
    transition: opacity 0.2s, -webkit-transform 0.7s cubic-bezier(0.48, 0.43, 0.7, 2.5);
    transition: transform 0.7s cubic-bezier(0.48, 0.43, 0.7, 2.5), opacity 0.2s;
    transition: transform 0.7s cubic-bezier(0.48, 0.43, 0.7, 2.5), opacity 0.2s, -webkit-transform 0.7s cubic-bezier(0.48, 0.43, 0.7, 2.5);
  }
  .nav__item:nth-child(1) .nav__item-text {
    transition-delay: 0.3s;
  }
  .nav__cb:checked ~ .nav__content .nav__item:nth-child(1) .nav__item-text {
    transition-delay: 0s;
  }
  .nav__item:nth-child(2) .nav__item-text {
    transition-delay: 0.2s;
  }
  .nav__cb:checked ~ .nav__content .nav__item:nth-child(2) .nav__item-text {
    transition-delay: 0.1s;
  }
  .nav__item:nth-child(3) .nav__item-text {
    transition-delay: 0.1s;
  }
  .nav__cb:checked ~ .nav__content .nav__item:nth-child(3) .nav__item-text {
    transition-delay: 0.2s;
  }
  .nav__item:nth-child(4) .nav__item-text {
    transition-delay: 0s;
  }
  .nav__cb:checked ~ .nav__content .nav__item:nth-child(4) .nav__item-text {
    transition-delay: 0.3s;
  }
  .nav__btn {
    position: absolute;
    right: 0;
    top: 0;
    width: 90px;
    height: 90px;
    padding: 36px 31px;
    cursor: pointer;
  }
  .nav__btn:before, .nav__btn:after {
    content: "";
    display: block;
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background: #548096;
    -webkit-transform-origin: 50% 50%;
            transform-origin: 50% 50%;
    transition: background-color 0.3s, -webkit-transform 1s cubic-bezier(0.48, 0.43, 0.29, 1.3);
    transition: transform 1s cubic-bezier(0.48, 0.43, 0.29, 1.3), background-color 0.3s;
    transition: transform 1s cubic-bezier(0.48, 0.43, 0.29, 1.3), background-color 0.3s, -webkit-transform 1s cubic-bezier(0.48, 0.43, 0.29, 1.3);
  }
  .nav__btn:before {
    margin-bottom: 10px;
  }
  .nav__btn:hover:before, .nav__btn:hover:after {
    background: #262e6f;
  }
  .nav__cb:checked ~ .nav__btn:before {
    -webkit-transform: translateY(7px) rotate(-225deg);
            transform: translateY(7px) rotate(-225deg);
  }
  .nav__cb:checked ~ .nav__btn:after {
    -webkit-transform: translateY(-7px) rotate(225deg);
            transform: translateY(-7px) rotate(225deg);
  }

  @-webkit-keyframes shake {
    0% { -webkit-transform: translate(2px, 1px) rotate(0deg); } 
    10% { -webkit-transform: translate(-1px, -2px) rotate(-1deg); }
    20% { -webkit-transform: translate(-3px, 0px) rotate(1deg); }
    30% { -webkit-transform: translate(0px, 2px) rotate(0deg); }
    40% { -webkit-transform: translate(1px, -1px) rotate(1deg); }
    50% { -webkit-transform: translate(-1px, 2px) rotate(-1deg); }
    60% { -webkit-transform: translate(-3px, 1px) rotate(0deg); }
    70% { -webkit-transform: translate(2px, 1px) rotate(-1deg); }
    80% { -webkit-transform: translate(-1px, -1px) rotate(1deg); }
    90% { -webkit-transform: translate(2px, 2px) rotate(0deg); }
    100% { -webkit-transform: translate(1px, -2px) rotate(-1deg); }
  }
  @keyframes shake {
    0% { -webkit-transform: translate(2px, 1px) rotate(0deg); } 
    10% { -webkit-transform: translate(-1px, -2px) rotate(-1deg); }
    20% { -webkit-transform: translate(-3px, 0px) rotate(1deg); }
    30% { -webkit-transform: translate(0px, 2px) rotate(0deg); }
    40% { -webkit-transform: translate(1px, -1px) rotate(1deg); }
    50% { -webkit-transform: translate(-1px, 2px) rotate(-1deg); }
    60% { -webkit-transform: translate(-3px, 1px) rotate(0deg); }
    70% { -webkit-transform: translate(2px, 1px) rotate(-1deg); }
    80% { -webkit-transform: translate(-1px, -1px) rotate(1deg); }
    90% { -webkit-transform: translate(2px, 2px) rotate(0deg); }
    100% { -webkit-transform: translate(1px, -2px) rotate(-1deg); }
  }


.shake {
    -webkit-animation-name: shake;
    -webkit-animation-duration: 0.5s;
    -webkit-transform-origin:50% 50%;
    -webkit-animation-iteration-count: infinite;
}
  
