/*******************************************
  Main stylesheet for:
    MACHINERY SUPPLY
    
  Initial CSS and markup by Cale Woodley
  Created on: 2007-11-07
*******************************************/

@import url(../css/reset.css);

.clearfix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}

.clearfix {display: inline-table;}

/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
.clearfix {display: block;}
/* End hide from IE-mac */
* html .clearfix {
height: 1%;
}

body {background: #16162e url(../images/core/body-background.png) repeat-x; font-family: "Arial," Tahoma; }

#container {
  width: 971px;
  margin: 0 auto;
  font-size: 62.5%;
}

#container strong {
  font-weight: bold;
}

#header {height: 124px; text-align: center;}

#header img.logo {margin: 26px 0 0 2px;}


/* NAVIGATION
*******************************************/
#navcontainer {height: 44px;}

#navcontainer ul#nav li {
  float: left;
  display: inline;
  /*height: 37px;*/
  margin: 10px 0 0 15px;
}

#navcontainer ul#nav li a {
  padding: 8px 8px 10px 8px;
  display: block;
  color: #dfe1af;
  font: 14px Arial, Verdana, sans-serif;
  text-decoration: none;
}

#navcontainer ul#nav li a:hover {
  color: #fff;
}

#nav li ul {
	position: absolute;
	width: 200px;
	left: -999em;
/*	padding: 0 0 5px 0;*/
	background: #060818;
}

#nav li ul li {
  /*height: 24px !important;*/
  clear: both !important;
  margin: 0 !important;
  /*padding: 2px 0;*/
  width: 200px;
}

#navcontainer ul#nav li ul li a {
  padding: 6px;
}

#nav li ul li a:hover {
  background: #2e2e43;
}

#nav li:hover ul {
	left: auto;
}

#nav li:hover ul, #nav li.sfhover ul {
	left: auto;
}

body.index li#nav-home,
body.profile li#nav-profile,
body.new li#nav-new,
body.used li#nav-used,
body.piling li#nav-piling,
body.handling li#nav-handling,
body.contact li#nav-contact {
  background: url(../images/nav/nav-li-background.png);
}

body.index li#nav-home a,
body.profile li#nav-profile a,
body.new li#nav-new a,
body.used li#nav-used a,
body.piling li#nav-piling a,
body.handling li#nav-handling a,
body.contact li#nav-contact a {
  color: #fff !important;
  background: url(../images/nav/nav-li-a-background.png) top left no-repeat;
}


/* CONTENT
*******************************************/
#content-container {
  color: #fff;
  width: 969px;
  margin: 14px auto;
  padding-bottom: 17px;
  background: #080a1d;
  font: 1.2em/2.4em Arial, Verdana, sans-serif;
}

#content-container a {color: #FAFECB; text-decoration: underline;}
#content-container a:hover {text-decoration: none;}

/* main */
#content-main {
  margin: 31px 31px 0 31px;
	padding-top:20px;}


body.index #content-main {
  margin: 31px 31px 0 0;
  width: 592px;
  float: right;
  display: inline;
}

#content-main h2 {
  font-weight: bold;
  font-size: 1.4em;
}

#content-main p {
  margin: 0 0 10px 0;
}

#content-main ul {
  list-style: square;
  line-height: 1.8em;
  margin: 0 0 10px 20px;
}

#content-main img.float-left {
  float: left;
  margin: 6px 10px 0 0;
  border: 2px solid #3d4080;
}

#content-main img.float-right {
  float: right;
  margin: 6px 0 0 10px;
  border: 2px solid #3d4080;
}


/* secondary */
#content-secondary {
  font-size: 83.4%;
  margin: 17px 0 0 10px;
  width: 308px;
  float: left;
  display: inline;
  background: #101127 url(../images/core/sidebar-background.jpg) repeat-y;
}

#content-secondary h2 {
  padding: 22px 0 0 40px;
}

#content-secondary h3 {
  color: #FAFECB;
  font-weight: bold;
  padding: 0;
  font-size: 1.4em;
}

#content-secondary p {
  font-size: 1.2em;
  line-height: 1.3em;
  padding: 0 20px 10px;
}


/* news items */
#content-secondary div.news-item {
  border-bottom: 1px solid #4F4C63;
  width: 280px;
  margin: 5px auto;
}

#content-secondary div.news-item img.item-image {
  float: left;
  margin: 4px 6px 2px 0;
}

#content-secondary div.news-item p {
  font-size: 11px;
  line-height: 1.2em;
  text-align: justify;
  padding: 0 5px 10px 0;
  color: #DAD4EB;
}

/* category listing */
.subcategory-box {
  float: left;
  margin: 15px 0 0 15px;
  border: 1px solid #4F4C63;
}

.subcategory-box-hover {background: #4F4C63; text-decoration: underline;}

.subcategory-label {
  display: block;
  width: 100px;
}

.subcategory-label p {
  line-height: 1.2em;
  padding-top: 8px;
  text-align: center; 
  width: 100px;
}

.subcategory-box a {color: #fff !important; text-decoration: none !important;}

.subcategory-image {
  display: block;
  width: 100px;
  height: 100px;
}

/* subcategory listing */
table#product-listing, 
table#product-listing td {
	font:100% Arial, Helvetica, sans-serif; 
}

table#product-listing {
  width:100%;
  border-collapse:collapse;
  margin:1em 0;
}

table#product-listing th, 
table#product-listing td {
  text-align:left;padding:.5em;
  border-bottom: 1px solid #4F4C63;
  vertical-align: top;
}

table#product-listing th {background:#000; color:#fff; font-weight: bold;}
table#product-listing td {background:#e5f1f4;}

table#product-listing tr.even td{background:#0a0c22;}
table#product-listing tr.odd td{background:#0c0e26;}

table#product-listing tr.over{background:#1b1d45 !important;}

td.product-image {
  text-align: center;
}




/* FOOTER
*******************************************/
#footer {
  width: 971px;
  height: 124px;
  clear: both;
  margin: 14px 0;
  background: #080a1d;
  font-size: 10px;
}

#footer p {
  padding: 46px 0 0 26px;
  float: left;
  display: inline;
  font-size: 1.1em;
  line-height: 2.4em;
  color: #29293F;
}

#footer a {font-size: 11px; color: #29293f; text-decoration: none; margin-right: 20px;}
#footer a:hover {color: #c5c5e2;}

#footer img.webfirm {
  float: right;
  display: inline;
  margin: 46px 26px 0 0;
}

/* POPUP PAGE
*******************************************/
body#popup {
  background: #1B1B32;
  font: 1.2em/2.4em Arial, Verdana, sans-serif;
  color: #fff;
  padding: 0 0 0 20px;
}

body#popup #container,
body#popup form {
  width: 500px !important;
}


/* extras by Oscar */
#flash { width: 971px; height: 370px; display: block; }


