.overlay{ 
    margin:0;
    padding:0;
    background:#000;
    font-family:'nexabold', Helvetica, sans-serif;
    line-height:1;

    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999;

    text-align: center;

    overflow: scroll;
  }

/******
* section main-nav*
*********/
.overlay section#main-nav {
    width:100%;
    height: 100%;
    background: #e82329;
    color: white;
    padding-top: 70px;

  }


  .overlay section#main-nav ul.nav-link li {
    margin-bottom: 30px;
  } 

  .overlay section#main-nav h2 {
    margin: 0;
    padding: 0;
    font-family: 'nexaheavy',Helvetica,sans-serif;
    font-size: 1.5em;
    color: #f7931e

    }

  .overlay section#main-nav h2 a{
    text-decoration: none;
    color: white;
    letter-spacing:0.1em;
  }

  .overlay section#main-nav p {
    margin-top: 0;
    margin-left: 2px;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.6);
    font-size: 1em;
    font-family: "nexabold","HiraginoSansGB-W6","Microsoft YaHei","WenQuanYi Micro Hei",sans-serif;
  }

/********* section main-nav end ***********/

/*********
* section contact-info *
************/

  .overlay section#contact-info {
    width: 100%;
    height: auto;
    background: #58595b;
    overflow: hidden;
  }

  .overlay section#contact-info div.address{
    margin-top: 270px;
    padding-bottom: 50px; 
  }
  .overlay section#contact-info div.address ul {
    overflow: hidden;
    width: 100%;
  }
  .overlay section#contact-info div.address li {
    margin-bottom: 30px;
    
  }
  .overlay section#contact-info h3 {
    font-family: 'nexaheavy',Helvetica,sans-serif;
    font-size: 1em;
    margin:0 auto;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #f5d31a;
  }
 .overlay section#contact-info ul p:nth-child(3) {
  margin-top: 30px;
 }
  .overlay section#contact-info ul p:nth-child(3):before {
 
    height: 3px;
 
    width:80px;
    content: '';

    position: absolute;
    left: 50%;
    margin-left: -40px;
    margin-top: -10px;
  }

  .overlay section#contact-info .address p {
    width: 90%;
    margin: 0 auto;
    font-family: "nexabold","HiraginoSansGB-W6","Microsoft YaHei","WenQuanYi Micro Hei",sans-serif;
    font-size: 1em;
    letter-spacing: 0.04em;
    position: relative;
    line-height: 1.5;
  }

  .overlay section#contact-info .contact-link {
      margin-top: 0;
      position: absolute;
      right: 0;
      left: 0;
      top: 0;

  }

  .overlay section#contact-info .contact-link #email {
    height:150px; 
    padding: 30px;
    font-family: "playfairitalic",Helvetica,sans-serif;
    font-size: 1.2em;
    letter-spacing: 0.1em;
    color: white;
    width: 100%;
    display: block;
    text-decoration: none;
    margin-top: 20px;
  }

  .overlay section#contact-info .contact-link #email:before {
    background: url("../img/email.png"/*tpa=http://www.creativeworks.com.hk/img/email.png*/) no-repeat;
    display: block;
    width: 50px;
    height: 50px;
    content: "";
    margin: 0 auto;
    -webkit-transform:translateY(-50%);
    transform:translateY(-50%);
  }
  .overlay section#contact-info .contact-link ul.social-link {
    width: 100%;
  }
  .overlay section#contact-info .contact-link li {
    display: inline-block;
    overflow: hidden;
    width: 20%;
  }

  .overlay section#contact-info .contact-link li a {
    display: inline-block;
    font-size: 0;
    text-decoration: none;
  }

  .overlay section#contact-info .contact-link li a:before {
    font-size: 42px;
    color: white;
    opacity: 0.7;
    margin-bottom: 0;
    padding-bottom: 0;
    -webkit-transition: 0.05s ease-in;
            transition: 0.05s ease-in;

  }



 /*  social icon hover change color */

  .overlay section#contact-info .contact-link li:hover a:before {
    -webkit-transition: 0.05s ease-in;
            transition: 0.05s ease-in;
    opacity:1;
  }

.overlay section#contact-info p#copyright {
  font-family: "nexabold";
  font-size: 0.875em;
  color: #9d9b97;
  width: 100%;
  padding: 0 5%;
  text-align: center;
  letter-spacing: 0!important;
}
.overlay section#contact-info p#copyright:before {
  content: "";
  display: block;
  position: relative;
  height: 1px;
  width: 100%;
  background: #9d9b97;
  margin-bottom: 10px;

}

/********* section contact-info end ***********/


@media (min-width: 601px)  and (max-width: 770px) {
        .overlay {
          overflow: hidden;
        }
        /******
        * section main-nav *
        *********/
        .overlay section#main-nav {
            height: 60%;
        }
        .overlay section#main-nav h2 {
          font-size: 2.5em;
          }
        /****** section main-nav end *******/

        /*********
        * section contact-info *
        ************/

          .overlay section#contact-info {
            height: 40%;
            padding-top: 35px;
          }
           .overlay section#contact-info div.address{
            margin-top: 0px;
            padding-bottom: 0px;
          }

          .overlay section#contact-info div.address li {
            width: 33.3333%;
            float: left;
            margin-bottom: 0;
          }
          .overlay section#contact-info h3 {
            margin-bottom: 10px;
          }
          .overlay section#contact-info .address p:nth-child(2) {
            line-height: 1.5em;
            height: 100px;
            display: table-cell;
            vertical-align: middle;
          }
          .overlay section#contact-info ul p:nth-child(3) {
            margin-top: 50px;
          }
          .overlay section#contact-info ul p:nth-child(3):before {
              display: block;
              height: 3px;
              background: white;
              width:80px;
              content: '';
              opacity: 0.7;

              position: relative;
              left: 50%;
              margin-left: -40px;
              margin-bottom: 15px;
            }

    .overlay section#contact-info #menu-footer {
    position: absolute;
    width: 100%;
                bottom: 20px;
    overflow: hidden;              
    padding-left:50px;
    padding-right:50px;
    }
          .overlay section#contact-info .contact-link {
              position: relative;
              overflow: hidden;
              top: 0;
          }

          .overlay section#contact-info .contact-link #email {
            width: calc(100% - 180px);
            height: 100%;
            margin: 0;
            padding: 0;
            position: absolute;
            text-align: left;
            padding-left: 10px;
          }
          .overlay section#contact-info .contact-link #email:before {
            background-size: 100%;
            width: 24px;
            height: 24px;
            display: inline-block;
             -webkit-transform:translateY(20%);
              transform:translateY(20%);
              margin-right: 10px;
          }
          .overlay section#contact-info .contact-link ul.social-link {
            width: 180px;
            float: right;
          }

          .overlay section#contact-info .contact-link  li {
            margin-bottom: 0;
            display: inline-block;
            overflow: hidden;

          }
          .overlay section#contact-info .contact-link li a:before {
            font-size: 40px;
          }
    .overlay section#contact-info p#copyright {
      position: relative;
      width: 100%;
      padding: 0;
      bottom: 0;
        }


}

@media screen and (min-width: 771px) {


        .overlay{ 
          width: 100%;
          height: 100%;
          position: fixed;

          top: 0;
          left: 0;
          z-index: 999;

          text-align: left;
          overflow: hidden;
        }


        .overlay section#main-nav {
          width:50%;
          height: 100%;
          float: right;
          text-align: right;
          padding-right: 50px;
          padding-top: 110px;
        }

        .overlay section#contact-info {
          width: 50%;
          height: 100%;
          float: left;
          padding-left: 40px;
          padding-right: 40px;
          padding-top: 140px;
        }


        .overlay section ul,
        .overlay section#contact-info div.address{
          margin-top: 0;
          width: 100%;
        }


        .overlay section#main-nav ul.nav-link li {
          margin-bottom: 50px;

        } 

        .overlay section#main-nav h2 a{
          font-family: 'nexaheavy',Helvetica,sans-serif;
          font-size: 1.75em;
          }
        .overlay section#main-nav p {
          color: rgba(255,255,255,0.6);

        }

        .overlay section#main-nav li a:hover {
          color: white;
          cursor: pointer;
        }
        .overlay section#main-nav li a {
          color: rgba(255,255,255,1);
          transition: all 0.3s linear;
          cursor: pointer;
        }
        .overlay section#main-nav li a:after {
         
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          /*display: none;*/
          background-size: cover;
          background-position: center center;
          opacity: 0;
          -webkit-transition: all 0.3s linear;
          transition: all 0.3s linear;
          z-index: -10;
        }
  
    
        .overlay section#main-nav li#about a:hover:after {
          background-image: url("../img/cover-about.jpg"/*tpa=http://www.creativeworks.com.hk/img/cover-about.jpg*/);
          /*display: block;*/
          visibility: visible;
   	   opacity: 0.2;
        }
        .overlay section#main-nav li#works a:hover:after {
          background-image: url("../img/cover-works.jpg"/*tpa=http://www.creativeworks.com.hk/img/cover-works.jpg*/);
           /*display: block;*/
           visibility: visible;
   	   opacity: 0.2;
        }
        .overlay section#main-nav li#play a:hover:after {
          background-image: url("../img/cover-play.jpg"/*tpa=http://www.creativeworks.com.hk/img/cover-play.jpg*/);
           /*display: block;*/
           visibility: visible;
   	   opacity: 0.2;
        }
        .overlay section#main-nav li#news a:hover:after {
          background-image: url("../img/cover-news.jpg"/*tpa=http://www.creativeworks.com.hk/img/cover-news.jpg*/);
           /*display: block;*/
           visibility: visible;
   	   opacity: 0.2;
        }
        .overlay section#main-nav li#contact a:hover:after {
          background-image: url("../img/cover-contact.jpg"/*tpa=http://www.creativeworks.com.hk/img/cover-contact.jpg*/);
           /*display: block;*/
           visibility: visible;
   	   opacity: 0.2;
        }



        .overlay section#contact-info h3 {

            font-size: 0.875em;
            letter-spacing: 0.26em;
            margin-bottom: 20px;
        }

        .overlay section#contact-info .info li {
          margin-bottom: 30px;
        }

        .overlay section#contact-info .address p {
          margin-left: 0;
          margin-bottom: 0;
          line-height:1.3;
        }
  .overlay section#contact-info ul p:nth-child(3) {
    margin-top: 15px;
  }
         .overlay section#contact-info ul p:nth-child(3):before {
  
          position: relative;
           left: 0;
           margin: 0px;
           margin-top: 5px;
           margin-bottom: 15px;
           height: 1px;
          }

        .overlay section#contact-info #menu-footer {
        width: 90%;
        width:calc(100% - 80px);
        height: auto;
              position: absolute; 
              overflow: hidden;
              top: auto;
              bottom: 35px;
          }
    .overlay section#contact-info .contact-link {
    position: relative;
    width: 100%;
    overflow: hidden;
   } 
          .overlay section#contact-info .contact-link #email {
            width: 60%; 
            height: auto;
      display: block;
            margin: 0;
            padding: 0;
            position: absolute;
            text-align: left;
            padding-left: 0;
            letter-spacing: 0;
          }
          .overlay section#contact-info .contact-link #email:before {
            background-size: 100%;
            width: 24px;
            height: 24px;
            display: inline-block;
             -webkit-transform:translateY(20%);
              transform:translateY(20%);
              margin-right: 10px;
          }
          .overlay section#contact-info .contact-link ul.social-link {
            width: 40%;
            float: right;
            text-align: right;
          }

          .overlay section#contact-info .contact-link  li {
            margin-bottom: 0;
            min-width: 40px;
            display: inline-block;
            overflow: hidden;

          }
          .overlay section#contact-info .contact-link li a:before {
            font-size: 40px;
          }


        .overlay section#contact-info p#copyright {
          position: initial;
          text-align: left;
          width: 100%;
          padding: 0;
        }


}

/**** 1200px end ****/
@media (min-width: 771px) and (max-width: 1060px){
    .overlay section#contact-info .contact-link #email {
      font-size: 0;
      width: 30%;
    }
     .overlay section#contact-info .contact-link ul.social-link {
            width: 70%;
            float: right;
            text-align: right;
         }
} 



/* Effects */
.overlay-hugeinc {
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.5s, visibility 0s 0.5s;
  transition: opacity 0.5s, visibility 0s 0.5s;
}

.overlay-hugeinc.open {
  opacity: 1;
  visibility: visible;
  -webkit-transition: opacity 0.5s;
  transition: opacity 0.5s;
}

.overlay-hugeinc section {
  -webkit-perspective: 1200px;
  perspective: 1200px;
}

.overlay-hugeinc section  {
  opacity: 0.4;
  -webkit-transform: translateX(-25%) rotateY(35deg);
  transform: translateX(-25%) rotateY(35deg);
  -webkit-transition: -webkit-transform 0.5s, opacity 0.5s;
  transition: transform 0.5s, opacity 0.5s;
}

.overlay-hugeinc.open section {
  opacity: 1;
  -webkit-transform: rotateY(0deg);
  transform: rotateY(0deg);
}

.overlay-hugeinc.close section  {
  -webkit-transform: translateX(25%) rotateY(-35deg);
  transform: translateX(25%) rotateY(-35deg);
}
