  html, body {
    margin: 0;
    padding: 0;
  }

  #bg-exit {
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  #container, .overlay {
    text-align: center;
    width: 300px;
    height: 600px;
    overflow: hidden;
    position: relative;
    background-color: #f2f0ee;
    background-repeat: repeat-x;
    cursor: pointer;
  }

  .overlay {
    z-index: 99;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .hide1 {
    opacity: 0;
    transform:rotateX(60deg);
  }

  .hide2 {
    opacity: 0;
    transform:rotateY(90deg);

  }

  .hide3 {opacity: 0;
          -webkit-transition: all 1s ease-out;
        -moz-transition: all 1s ease-out;
      transition: all 1s ease-out;
  }

  .show1 {opacity: 1; position: absolute;
    top: 0;
    left: 0px;
    z-index: 10000;
    -webkit-transition: all 1s ease-out;
    -moz-transition: all 1s ease-out;
    transition: all 1s ease-out;
    transform:rotateX(0deg);}

    .show2 {opacity: 1; position: absolute;
    top: 0;
    left: 0px;
    z-index: 10000;
    -webkit-transition: all 1s ease-out;
    -moz-transition: all 1s ease-out;
    transition: all 1s ease-out;
    transform:rotateY(0deg);}

    .show3 {opacity: 1;}


  .slide {position: absolute;
    top: 0;
    left: 0px;
    z-index: 10000;
    -webkit-transition: all 1s ease-out;
    -moz-transition: all 1s ease-out;
    transition: all 1s ease-out;}



