#wrapper{
text-align:left;
min-height:100%;
height:auto !important;
height:100%;
margin:0 0 -20px;
overflow:hidden;
}
#headerwrapper{
position:fixed;
z-index: 1;
width:100%;
background: hsla(0,0%,100%,0.8);
height:40px;
-webkit-transition-property: all;
   -moz-transition-property: all;
        transition-property: all;
-webkit-transition-duration: .6s;
   -moz-transition-duration: .6s;
        transition-duration: .6s;
        box-shadow: 0 -5px 10px 3px hsla(0,0%,0%,0.4);

}
#headerwrapper:hover{
height:40px;
box-shadow: 0 -5px 10px 3px hsla(0,0%,0%,0.8);
}
body #header{
clear:both; 
position:relative;
padding:0;
box-shadow: none;
}
#header a:hover{
text-decoration: none;
}
#headerpush{
width:100%;
height:40px;
}
#logo{
color:#0cf;
background: url(favicon.png) no-repeat center left;
font-size:26px;
line-height: 34px;
padding: 3px 20px 3px 20px;
margin: 0 0 0 10px;
float:right;
}

#menu{
display:block;
height:40px;
overflow: hidden;
}
#menu .button{
display:block;
float: left;
font: 14px/20px open_sanslight,arial, sans-serif;
text-transform: uppercase;
padding:10px 20px;
margin:0 1px 0 0;
text-decoration:none;
background: transparent;
color: #333;
}

body #menu .button.active{
border-bottom: 3px solid #f0c;
padding:10px 20px 7px;
box-shadow: none;
color:#333;
}

body #menu .button:hover{
background: #f6f6f6;
color:#000;
-webkit-transition-property: background;
   -moz-transition-property: background;
        transition-property: background;
-webkit-transition-duration: 500ms;
   -moz-transition-duration: 500ms;
        transition-duration: 500ms;
}


#menu .button.small{
padding: 5px 10px;
margin:8px 0;
border:0;
color:#ccc;
}
#menu .button.small:hover{
background: #ccc;
color:#fff;
}
#menu .button.small.active{
background: #fff;
color:#353535;
}
#menu .switch{
float: right;
}

#menuswitch{
float:right;
padding:12px;
height:40px;
color:#ddd;
display: none;
}
#menuswitch.hasactiveitem{
color:#33b5e5;
}
#menuswitch.active{
color:#fff;
}

#moremenu{
display: none;
position: absolute;
width:240px;
right: 0;
margin-top: 40px;
z-index: 3;
background:hsla(0,0%,0%,0.7);
}
#moremenu .button{
display: block;
padding: 10px;
font: 14px arial, sans-serif;
background: transparent;
color:#ddd;
}
#moremenu .button.active{
background: #222;
color:#0099cc;
}
#moremenu .button:hover{
background:#33b5e5;
color:#fff;
}

#layer{
background: hsla(0,0%,0%,0.65);
position: fixed;
z-index: 3;
top: 0;
left: 0;
right: 0;
bottom: 0;
text-align: center;
padding: 50px 20px;
display: none;
}
#layercontent{
text-align:left;
margin:0 auto;
position:relative;
background: url(img/trans.png);
box-shadow: 0 0 16px #000;
-webkit-transition: -webkit-transform 300ms ease-in-out;
   -moz-transition: -moz-transform 300ms ease-in-out;
        transition: transform 300ms ease-in-out;
-webkit-transform: scale(1.0) translateY(0px);
   -moz-transform: scale(1.0) translateY(0px);
        transform: scale(1.0) translateY(0px);
}
#layercontent.zoomin{
-webkit-transform: scale(1.1) translateY(-20px);
   -moz-transform: scale(1.1) translateY(-20px);
        transform: scale(1.1) translateY(-20px);
}
#layercontent.zoomout{
-webkit-transform: scale(0.8) translateY(20px);
   -moz-transform: scale(0.8) translateY(20px);
        transform: scale(0.8) translateY(20px);
}
#layercontent .panel{
background: #fff;
}

#main{
margin:10px 10px 0;
}

#contentwrapper{
margin-left:240px;
margin-top: 10px;
margin-right: 0;
margin-bottom: 30px;
}
 
#header{
  -webkit-box-shadow:0 0 7px #000;
     -moz-box-shadow:0 0 7px #000;
          box-shadow:0 0 7px #000;
}
#logo,h1,h2,h3{
font-family:open_sanslight,arial,sans-serif;
}
#menu .button.active{
box-shadow: inset 0 0 10px #000;
}
#menu .button:hover{
box-shadow: none;
}

#wrapper{
margin: 0;
}
h1,h2,h3{
font-family:open_sanslight,arial,sans-serif;
}
#contentwrapper{
margin: 10px auto;
}


#sidebar {
display:block;
position: fixed;
top:40px;
width: 240px;
left:0px;
z-index: 1;
background:#efefef;
}

#sidebar .button{
width: 100%;
display: block;
background: transparent;
margin:0;  
padding: 12px 20px;
text-decoration: none;
font: 14px arial, sans-serif;
color:#333;
}
#sidebar fieldset{
padding: 10px;
}
#sidebar .button.active{
background: #5990E9;
color:#fff;
}
#sidebar .button:hover{
background: #639eff;
color:#fff;
}
#sidebar .switch{
display: inline-block;
width: 50%;
margin: 5px 25%;
background: #ccc;
}
#sidebar .switch .button{
display: inline-block;
width: 50%;
text-align: center;
padding: 5px 10px;
}


#sidebar {
position: fixed;
top: 40px;
width: 240px;
left: 0;
z-index: 1;
background:hsla(0,0%,100%,0.9);
box-shadow: 0 0 7px #333;
-webkit-transition: margin 0.2s ease-in-out;
        transition: margin 0.2s ease-in-out;
}

#moremenu .button{
  background: #222;
  color:#fff;
}

@media only screen and (max-width: 750px){
#sidebar{
  width: 100%;
  bottom: inherit;
  margin-top: -200%;
}
#sidebar.active{
margin-top: 0;
bottom: 0;
}
#logo{
width:0px;
padding: 3px 0 3px 30px;
}
#menu .button{
display: none;
}
#menu #sidebarswitch.button{
display: inherit;
}
}

@media only screen and (min-width: 751px){
#sidebar {
margin-top: -5px;
display: none;
position: fixed;
top: 52px;
width: 240px;
left: 5px;
z-index: 1;
border-radius: 1px;
background:#fff;
box-shadow: 0 2px 8px -2px hsla(0,0%,0%,0.5);
border:1px solid #ccc;
-webkit-transition: none;
        transition: none;
}

#sidebar.active{
display: block;
opacity: 0;
margin-top: -5px;
-webkit-transition: none;
        transition: none;
}

#sidebar.fadein{
margin-top: 0;
opacity: 1;
-webkit-transition: margin 0.2s ease-in-out,opacity 0.1s ease-in-out;
        transition: margin 0.2s ease-in-out,opacity 0.1s ease-in-out;
}

#sidebar:after, #sidebar:before {
  bottom: 100%;
  left: 20px;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}

#sidebar:after {
  border-color: hsla(0,0%,0%,0);
  border-bottom-color: #fff;
  border-width: 7px;
  margin-left: -7px;
}
#sidebar:before {
  border-color: hsla(0,0%,0%,0);
  border-bottom-color: #ccc;
  border-width: 9px;
  margin-left: -9px;
}

}
