/* Mobile Layout: 640px and below. */

body, div,
h1, h2, h3, h4, h5, h6,
p, blockquote, pre, dl, dt, dd, ol, ul, li, hr,
fieldset, form, label, legend, th, td,
article, aside, figure, footer, header, hgroup, menu, nav, section,
summary, hgroup {
}

a:active,
a:hover {
outline: 0;
}

#nav a:link {
	color: #000;
	text-decoration: none;
}

#nav a:visited {
	color: #000;
	text-decoration: none;
}

#nav a:hover {
	color: #F00;
	text-decoration: none;
}

#nav a:active {
	color: #000;
	text-decoration: none;
}


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

body {
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
text-size-adjust: 100%;
}

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

/* MOBILE NAV UL */
#nav,
#nav ul {
list-style: none;
width: 100%;
float: left;
}

/* MOBILE NAV LI */
#nav li {
float: left;
width: 100%;
}

/* MOBILE MENU*/
#nav a {
color: #FFF;
text-decoration: none;
width: 100%;
border-bottom: 1px solid white;
float: left;
}

/* MOBILE TOGGLE*/
#nav-toggle {
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
width: 50px;
height: 50px;
float: left;
text-indent: -9999px;
overflow: hidden;
background-color: #000;
background-image: url(../images/hamburger.gif);
background-repeat: no-repeat;
background-position: 50% 50%;
}

/* Tablet Layout: 641px to 768px. Inherits styles from: Mobile Layout. */
@media screen and (min-width: 641px) {

/* DESKTOP UL*/

/* DESKTOP LI*/
#nav li {
display:inline-block;
width:auto;
margin-left:10px;
}

/* ORIGINAL VERSION FIT FULL WIDTH
#nav li {
width: 25%;
*width: 24.9%;
_width: 19%;
}
*/

/* DESKTOP LINK*/
#nav a {
margin: 0;
padding: 0.5em;
float: left;
text-align: center;
border-bottom: 0px;
}

#nav ul ul a {
display: none;
}
}

/* DESKTOP LAYOUT: 769px to a max of 1232px.  Inherits styles from: Mobile Layout and Tablet Layout. */
@media only screen and (min-width: 769px) {

#nav a {
padding: 0.7em;
}
}

@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("../images/hamburger-retina.gif");
-webkit-background-size: 100px 100px;
-moz-background-size: 100px 100px;
-o-background-size: 100px 100px;
background-size: 100px 100px;
}
}