*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box; }

.space
{
	height:140px;}

header {
  width: 100%;
  height: 150px;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  vertical-align:middle;
  background-color: #FFF;
  box-shadow:0px 0px 10px rgba(0,0,0,0.4);
  -webkit-transition: height 0.5s;
  -moz-transition: height 0.5s;
  -ms-transition: height 0.5s;
  -o-transition: height 0.5s;
  transition: height 0.5s; }
  header h1#logo {
	padding-top:0px;
    display: inline-block;
    float: left;
	border:0px;
	vertical-align:middle;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s; }
  header nav {
    display: inline-block;
    float: right; }
    header nav a {
      line-height:150px;
      margin-left: 40px;
      color:#707070;
      font-weight:300;
      font-size: 18px;
      -webkit-transition: all 0.5s;
      -moz-transition: all 0.5s;
      -ms-transition: all 0.5s;
      -o-transition: all 0.5s;
      transition: all 0.5s; }
      header nav a:hover {
        color:#17BED2;
		-webkit-transition: all 0.5s;
      -moz-transition: all 0.5s;
      -ms-transition: all 0.5s;
      -o-transition: all 0.5s;
      transition: all 0.5s; }
  header.smaller {
    height: 100px; }
    header.smaller h1#logo {
		padding-top:5px;
	vertical-align:middle;
    font-size:4px; }
    header.smaller nav a {
      line-height: 80px; }
	  header.smaller img
  {
	  width:100px;
	  -webkit-transition: height 0.5s;
  -moz-transition: height 0.5s;
  -ms-transition: height 0.5s;
  -o-transition: height 0.5s;
  transition: height 0.5s;}
	   header.smaller h1
  {
	  width:140px;
	  -webkit-transition: height 0.5s;
  -moz-transition: height 0.5s;
  -ms-transition: height 0.5s;
  -o-transition: height 0.5s;
  transition: height 0.5s;}

.clearfix:after {
  visibility: hidden;
  display: block;
  content: "";
  clear: both;
  height: 0; }

@media all and (max-width: 660px) {

header {
  width: 100%;
  height: 200px;
  line-height:30px;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  vertical-align:middle;
  background-color: #FFF;
  box-shadow:0px 0px 10px rgba(0,0,0,0.4);
  -webkit-transition: height 0.5s;
  -moz-transition: height 0.5s;
  -ms-transition: height 0.5s;
  -o-transition: height 0.5s;
  transition: height 0.5s; }
  
  header h1#logo {
    display: block;
    float: none;
    margin: 0 auto;
    text-align: center;
	padding-top:10px;
	width:180px;
	 }
  header img
  {
	  width:200px;}
  header nav {
    display: block;
    float: none;
    height: 350px;
    text-align: center;
    margin:10px 0px; }
    header nav a {
      line-height: 10px;
      margin:10px; }
  header.smaller {
    height: 145px; }
    header.smaller h1#logo { width:100px;}
    header.smaller nav {
      height: 20px; }
      header.smaller nav a {
        line-height: 30px; }

.space
{
	height:200px;}
}