@font-face {
  font-family: 'DroidSerifRegular';
  src: url("../fonts/DroidSerif-Regular-webfont.eot");
  src: url("../fonts/DroidSerif-Regular-webfont.eot?#iefix") format("embedded-opentype"), url("../fonts/DroidSerif-Regular-webfont.woff") format("woff"), url("../fonts/DroidSerif-Regular-webfont.ttf") format("truetype"), url("../fonts/DroidSerif-Regular-webfont.svg#DroidSerifRegular") format("svg");
  font-weight: normal;
  font-style: normal; }

@font-face {
  font-family: 'DroidSerifItalic';
  src: url("../fonts/DroidSerif-Italic-webfont.eot");
  src: url("../fonts/DroidSerif-Italic-webfont.eot?#iefix") format("embedded-opentype"), url("../fonts/DroidSerif-Italic-webfont.woff") format("woff"), url("../fonts/DroidSerif-Italic-webfont.ttf") format("truetype"), url("../fonts/DroidSerif-Italic-webfont.svg#DroidSerifItalic") format("svg");
  font-weight: normal;
  font-style: normal; }

* {
  text-decoration: none;
  padding: 0;
  margin: 0;
  list-style-type: none; }

a:hover {
  color: #5F5981; }

body {
  background: #e7e7e8;
  font-family: 'DroidSerifItalic'; }

header {
  background: #505050 url(../images/skewed_print.png) 0 0 repeat;
  position: fixed;
  width: 100%;
  height: 400px;
  top: -400px;
  left: 0;
  color: #eaeaea;
  -webkit-transition: all 1s ease-in-out;
  -moz-transition: all 1s ease-in-out;
  -o-transition: all 1s ease-in-out;
  -ms-transition: all 1s ease-in-out;
  transition: all 1s ease-in-out;
  z-index: 999; }
  header nav {
    position: relative;
    margin: 100px auto;
    width: 600px; }
    header nav p {
      font-size: 23px;
      color     : #cacaca }
  header ul {
    position: relative;
    margin: 50px 0 0 0; }
    header ul li {
      display: inline-block;
      margin: 0 70px 0 0;
      background: transparent url(../images/sprite.png) 0 0 no-repeat; }
      header ul li a {
        display: block;
        cursor: pointer;
        width: 60px;
        height: 60px; }
      header ul li#facebook-link {
        background-position-x: -150px; }
      header ul li#vimeo-link {
        background-position-x: -450px; }
      header ul li#behance-link {
        background-position-x: -300px; }
      header ul li#mail-link {
        margin: 0;
        background-position-x: -590px; }
      header ul li:hover {
        background-position-y: -56px; }

#face {
  width: 560px;
  height: 530px;
  position: absolute;
  margin: -265px auto 0 -280px;
  cursor: pointer;
  top: 100%;
  left : 50%;
  -webkit-transition: all 2s ease-in-out;
  -moz-transition: all 2s ease-in-out;
  -o-transition: all 2s ease-in-out;
  -ms-transition: all 2s ease-in-out;
  transition: all 2s ease-in-out; }
  #face .corner {
    position: absolute;
    top: 90px;
    color: #eaeaea;
    width: 0;
    height: 0;
    border: #FFF solid 20px;
    border-color: #e7e7e8 transparent transparent #e7e7e8;
    z-index: 20; }

.eye {
  width: 210px;
  height: 210px; 
  
}
/*  .eye:hover .lid {
    background: #9A97AA; }*/

.lid {
  display: block;
  position: absolute;
  background: #a7a9ac;
  height: 40px;
  width: 200px;
  margin: 90px 0;
  
  -webkit-transition: all 2s cubic-bezier(0.55, 0.05, 0.55, 1.05);
  -moz-transition: all 2s cubic-bezier(0.55, 0.05, 0.55, 1.05);
  -o-transition: all 2s cubic-bezier(0.55, 0.05, 0.55, 1.05);
  -ms-transition: all 2s cubic-bezier(0.55, 0.05, 0.55, 1.05);
  transition: all 2s cubic-bezier(0.55, 0.05, 0.55, 1.05); }

.eyeball {
  z-index: 99; }

.eye.opened .eyeball {
  -webkit-transition: all 0.5s cubic-bezier(0.55, 0.05, 0.55, 1.05);
  -moz-transition: all 0.5s cubic-bezier(0.55, 0.05, 0.55, 1.05);
  -o-transition: all 0.5s cubic-bezier(0.55, 0.05, 0.55, 1.05);
  -ms-transition: all 0.5s cubic-bezier(0.55, 0.05, 0.55, 1.05);
  transition: all 0.5s cubic-bezier(0.55, 0.05, 0.55, 1.05);
  -webkit-transform: rotate(1090deg) scale(1);
  -moz-transform: rotate(1090deg) scale(1);
  -o-transform: rotate(1090deg) scale(1);
  -ms-transform: rotate(1090deg) scale(1);
  transform: rotate(1090deg) scale(1); }

#right_eye {
  position: absolute;
  right: 0;
  top: 0; 
}

#right_eye.wink .eyeball {
  display     : none;
  top         : -2px;
}

#mouth {
  position: relative;
  width: 400px;
  margin: auto;
  margin: 100px 0;
  height: 10px;
  overflow: hidden;
  -webkit-transition: all 2s cubic-bezier(0.165, 0, 0.44, 1);
  -moz-transition: all 2s cubic-bezier(0.165, 0, 0.44, 1);
  -o-transition: all 2s cubic-bezier(0.165, 0, 0.44, 1);
  -ms-transition: all 2s cubic-bezier(0.165, 0, 0.44, 1);
  transition: all 2s cubic-bezier(0.165, 0, 0.44, 1); }
  #mouth .corner {
    top: 0;
    left: -40px; }

.lip {
  display: block;
  position: relative;
  background: #a7a9ac;
  height: 42px; }

#tongue {
  position: absolute;
  width: 182px;
  height: 0;
  right: 0;
  background: transparent url(../images/tongue3.png) 0 bottom no-repeat;
  -webkit-transition: all 0.6s ease-out;
  -moz-transition: all 0.6s ease-out;
  -o-transition: all 0.6s ease-out;
  -ms-transition: all 0.6s ease-out;
  transition: all 0.6s ease-out; }

#header_toggle {
  position: absolute;
  bottom: -100px;
  width: 100px;
  height: 100px;
  bottom: 0px;
  left: 0;
  background: #505050 url(../images/skewed_print.png) 0 0 repeat;
  animation-delay: 2s;
  -moz-animation-delay: 2s;
  /* Firefox */
  -webkit-animation-delay: 2s;
  /* Safari and Chrome */
  -o-animation-delay: 2s;
  /* Opera */
  -webkit-transition: all 0.6s cubic-bezier(0.165, 0, 0.44, 1);
  -moz-transition: all 0.6s cubic-bezier(0.165, 0, 0.44, 1);
  -o-transition: all 0.6s cubic-bezier(0.165, 0, 0.44, 1);
  -ms-transition: all 0.6s cubic-bezier(0.165, 0, 0.44, 1);
  transition: all 0.6s cubic-bezier(0.165, 0, 0.44, 1); }
  #header_toggle .wrap {
    position: relative;
    display: block; }
  #header_toggle .triangle {
    position: absolute;
    top: 0;
    color: #eaeaea;
    width: 0;
    height: 0;
    border: #FFF solid 50px;
    border-color: transparent #e7e7e8 #e7e7e8 transparent;
    z-index: 20; }
  #header_toggle label {
    position: relative;
    display: block;
    color: #eaeaea;
    z-index: 200;
    top: 20px;
    cursor: pointer;
    -webkit-transform: rotate(-45deg) scale(1);
    -moz-transform: rotate(-45deg) scale(1);
    -o-transform: rotate(-45deg) scale(1);
    -ms-transform: rotate(-45deg) scale(1);
    transform: rotate(-45deg) scale(1); }
  #header_toggle:hover label {
    color: #9A97AA; }

body.loaded #header_toggle {
  bottom: -100px; }
body.loaded header {
  top: -400px; }
body.loaded #face {
  top: 50%; }
body.loaded #mouth {
  margin: 200px auto;
  height: 160px; }
body.loaded .eyeball {
  -webkit-transform: rotate(1170deg) scale(1);
  -moz-transform: rotate(1170deg) scale(1);
  -o-transform: rotate(1170deg) scale(1);
  -ms-transform: rotate(1170deg) scale(1);
  transform: rotate(1170deg) scale(1); }

body.ready #tongue {
  height: 111px; }
body.ready #mouth .corner {
  left: 0; }

body.expanded header {
  top: 0; }
body.expanded #face {
  top: 90%; }
