  
#wrapper{
text-align:left;
min-height:100%;
height:auto !important;
height:100%;
margin:0 0 -20px;
overflow:hidden;
}
#headerwrapper{
position:fixed;
z-index: 2;
width:100%;
background:hsla(0,0%,0%,0.8);
height:40px;
}  
#header{
clear:both; 
width:100%;
position:relative;
padding:0;
margin: 0 auto 0;
-webkit-box-shadow:0 0 7px #000;
   -moz-box-shadow:0 0 7px #000;
        box-shadow:0 0 7px #000;
}
#header a:hover{
text-decoration: none;
}
#headerpush{
width:100%;
height:40px;
}
#logo{
height: 40px;
width:100px;
float:right;
background:url(logo.png);
}

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

#menu .button.active{
background: #222;
color:#88CC00;
padding-bottom: 10px;
border-bottom: 2px solid #88CC00;
}

#menu .button:hover{
background: #88CC00;
padding:12px 20px 12px;
border: 0;
color:#fff;
}


#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:#3333FF;
}
#menu .switch{
float: right;
}

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

#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: #00AAFF;
color:#fff;
}
#sidebar .button:hover{
background: #0088CC;
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;
}

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

#contentwrapper{
margin-left: 0;
margin-top: 10px;
margin-right: 0;
margin-bottom: 30px;
}

#logo,h1,h2,h3{
font-family:RobotoLight,arial,sans-serif;
}

#menu .button.active{
box-shadow: inset 0 0 10px #000;
}
#menu .button.active:hover{
box-shadow: none;
}
#menu .switch .switchitem.active{
box-shadow: none;
color:#000;
background: #eee;
}

#menu .switch .switchitem{
font-size: 10px;
display: inline-block;
margin: 5px 0 0;
padding: 7px 15px;
background:#444;
color: #fff;
}

#menu .switch .switchitem:hover{
background:#ccc;
color: #000;
}

#menu .switch .switchitem:hover{
box-shadow: none;
}

#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;
}
}

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

#sidebar {
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;
}

#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: 10%;
  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;
}

}