body {
  -webkit-animation: bugfix infinite 1s;
  /* needed for checkbox hack */
}
@-webkit-keyframes bugfix {
   from {
	padding: 0px;
	}
   to {
	padding: 0px;
	}
}
/* needed for checkbox hack */

#nav_main h1, #nav_main p {
	color: white;
	}
#nav {
	position: relative;
	}
#nav ul {
	display: none;
	width: 100%;
	list-style: none;
	margin: 0px;
	padding: 0px;
	}

/******** BEGIN NAV GENERAL **********/
#nav {
	height: 34px;
	}
#nav li {
	float: left;
	display: inline;
	white-space: nowrap;
	background-position: right top;
	background-repeat: no-repeat;
	margin: 0px;
	}

/** compact nav - top level **/ 
#nav ul li a {
	display: block;
	padding: 10px;
	background: none;
	text-decoration: none;
	border-left: none;
	width: 380px;
	background-color: #ddd;
	z-index: 10; 
	}
#nav > ul > li > a {
  text-transform: uppercase;
  	font-size: 14px;
  }
#nav ul li a {
  	font-size: 14px;
  }
#nav > ul > li:first-of-type a {
	border-left: none;
	}
#nav li.nav-auctions a {
	border-left: none;
	}

/** compact nav - hover **/ 
#nav ul li a:hover {
	background: #aaa;
	font-weight: bold;
	color: #fff !important;
	max-width: 350px;
	}

/** compact nav - second level dropdown **/
#nav ul li ul li a {
	padding-left: 16px;
	padding-right: 16px;
	background-color: #f6f6f6;
	}

/** compact nav - third level dropdown **/
  #nav ul li ul li ul {
	z-index: 300;
	top: 0px;
    left: 198px;
    width: 74px;	
	background-color: #fff;
	}
#nav ul li ul li ul li a {
	padding-left: 50px;
	}
#nav input.trigger {
	position: absolute;
	top: -9999px;
	left: -9999px;
	}
#nav input.trigger:checked ~ ul, #nav input.trigger:checked ~ ul li ul {
	display: block !important;
	}
/******** END NAV GENERAL **********/


/******** BEGIN NAV COMPACT **********/
@media (min-width: 768px) {
#nav input.trigger:checked ~ ul, #nav input.trigger:checked ~ ul li ul {
    /* older flexbox */
    display: -webkit-box;
    display: -moz-box;
    display: box;
    -webkit-box-orient: horizontal;
    -moz-box-orient: horizontal;
    box-orient: horizontal;
    /* newer flexbox */
    display: flex;
    flex-direction: row;
	}
}

/** compact nav top **/
#nav label {
	position: relative;
	display: block;
	min-height: 32px;
	padding: 2px;
	font-size: 17px;
	margin: 0px;
	cursor: pointer;
	background: #000;
	line-height: 32px;
	color: #fff;
	}
#nav label:after {
	position: absolute;
	left: 16px;
	top: 3px;
	content: "\2261";
	font-size: 28px;
	color: #fff;
	}
/******** END NAV COMPACT **********/


/******** BEGIN NAV EXPANDED **********/
@media (min-width: 512px) {
#nav ul {
    /* older flexbox */
    display: -ms-flexbox;
    flex-direction: -ms-row;
    display: -webkit-box;
    display: -moz-box;
    display: box;
    -webkit-box-orient: horizontal;
    -moz-box-orient: horizontal;
    box-orient: horizontal;
    /* newer flexbox */
    display: flex;
    flex-direction: row;
	}
#nav ul li {
    position: relative;
    text-align: center;
    /* older flexbox */
    -ms-flex: 1;
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    box-flex: 1;
    /* newer flexbox */
    flex: 1;
	}
#nav ul li ul {
    display: none !important;
    position: absolute;
    top: 34px;
    left: 0px;
    display: block;
    width: 110%;
    z-index: 200;
	}
#nav ul li ul li {
    text-align: left;
	}
  
/** expanded nav - top level **/
#nav > ul > li:first-of-type {
	border-left: 0px;
	}
	
#nav > ul > li > a {
	display: block;
	text-decoration: none;
	width: auto;
	height: 14px;
	border-left: 1px solid #999;
	background-color: #ddd;
	background: url('../images/bkg-nav_buttona.gif');
	background-position: left top;
	}
#nav li.nav-compacta, #nav li.nav-compactb, #nav li.nav-compactc {
	width: 50px;
	max-width: 50px;
	background: #000;
	}
#nav li.nav-compacta img, #nav li.nav-compactb img, #nav li.nav-compactc img {
	padding: 0px 22px 0px 0px;
	}
#nav li.nav-compacta > a, #nav li.nav-compactb > a, #nav li.nav-compactc > a {
	width: 50px;
	max-width: 50px;
	background: #000;
	border-left: 1px solid #000;
	}
#nav_main .active > a {
    display: block;
	background-color: #3F3F3F;
	height: 15px;
	background: url('../images/bkg-nav_button_selected.gif');
	background-position: left top;
	z-index: 600;
	}  
#nav ul li a:hover {
	background: url('../images/bkg-nav_button_selected.gif');
	color: #000;
	z-index: 500;
}
  
/** expanded nav - first level dropdown **/
#nav li.nav-compacta > ul > li > a:hover, #nav li.nav-compactb > ul > li > a:hover, #nav li.nav-compactc > ul > li > a:hover {
	background: url('../images/bkg-nav_button_selected.gif'); 
	color: #000;
	z-index: 550;
}
#nav li.nav-compacta > ul > li > a, #nav li.nav-compactb > ul > li > a, #nav li.nav-compactc > ul > li > a {
	background-color: #fff;
	background-image: url('../images/btn-expand-down.gif');
	background-repeat: no-repeat;
	background-position: right;	
}
#nav ul li ul li a {
	padding-left: 10px;
	padding-right: 100px;
	background: #fff;
	width: 70px;
	border: 1px solid #ddd;
}
#nav li.navchild > a {
	background-color: #fff;
	background-image: url('../images/btn-expand-down.gif'); 
	background-repeat: no-repeat;
	background-position: right;
} 

/** expanded nav - second level dropdown **/
#nav ul li ul li ul {
    z-index: 300;
    top: 0px;
    left: 168px;
	}
#nav ul li ul li ul li a {
    padding-left: 15px !important;
	}
#nav ul li:hover > ul {
    display: block !important;
	}
#nav label {
    display: none;
	}
}