/* ------------------------------------------
  DEMO PAGE'S STYLES
--------------------------------------------- */

@-webkit-viewport { width: device-width; }
@-moz-viewport { width: device-width; }
@-ms-viewport { width: device-width; }
@-o-viewport { width: device-width; }
@viewport { width: device-width; }



#nav,
#nav * {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

#nav,
#nav ul {
  list-style: none;
  width: 100%;
  float: left;
}

#nav li {
  float: left;
  width: 100%;
}

@media screen and (min-width: 40em) {
  #nav li {
    width: 25%;
    *width: 24.9%; /* IE7 Hack */
    _width: 19%; /* IE6 Hack */
  }
}

#nav a {
  color: #fff;
  text-decoration: none;
  width: 100%;
  background: #023846;
  border-bottom: 1px solid white;
  padding: 0.7em 1em;
  float: left;
  font-family: 'Roboto Slab', Arial, Helvetica, serif;
  text-transform:uppercase;
  font-size:14px;
  text-align:center;
}
#nav li.current_page_item a {
    color: #fff000;
}

@media screen and (min-width: 40em) {
  #nav a {
    margin: 0;
    padding: 1em;
    float: left;
    text-align: center;
    border-bottom: 0;
    //border-right: 1px solid white;
  }
}

#nav ul ul a {
    display:none;
  background: #ca3716;
  padding-left: 2em;
}
#nav.opened {
    margin-bottom:10px;
}

@media screen and (min-width: 40em) {
  #nav ul ul a {
    display: none;
  }
}

#nav-toggle {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  width: 100%;
  height: 55px;
  float: right;
  overflow: hidden;
  background: url("hamburger.png") no-repeat right center;
  font-family: 'Roboto Slab', Arial, Helvetica, serif;
  text-transform:uppercase;
  font-size:18px;
  line-height:55px;
  text-align:center;
  color:white;
  border-bottom:4px solid white;
  margin-bottom:10px;
}
a#nav-toggle:link {color:white; text-decoration:none;}

@media screen and (-webkit-min-device-pixel-ratio: 1.3), screen and (min--moz-device-pixel-ratio: 1.3), screen and (-o-min-device-pixel-ratio: 2 / 1), screen and (min-device-pixel-ratio: 1.3), screen and (min-resolution: 192dpi), screen and (min-resolution: 2dppx) {
  #nav-toggle {
    background-image: url("hamburger-retina.png");
    -webkit-background-size: 100px 100px;
    -moz-background-size: 100px 100px;
    -o-background-size: 100px 100px;
    background-size: 100px 100px;
  }
}
@media (min-width: 801px) {
    .js #nav {display:none}}
