body{
  background-color: #4F6783;
  overflow: hidden;
}

#main-div{
  background-color: #ffffff;
  width: 85%;
  min-width: 800px;
  max-width: 900px;
  margin: auto;
}

#main-header a:link, #main-header a:visited{
  padding: 2em;
  padding-left: 0;
  display: block;
  background-color: #FFFFFF;
  text-indent: 1em;
  text-decoration: none;
  /*sailboats on Allatoona 4.png*/
  background-image: url('images/components/IMGP0127(2).JPG');
  background-position: 40% 100%;
  background-repeat: no-repeat;
  color: #EEDDAA;
}

#main-header a:hover, #main-header a:active{
  text-decoration: underline;
}

#shopping-cart-button{
  background-color: none;
  background-image: url('images/components/cart.png');
  background-position: 0 0;
  background-repeat: no-repeat;
  width: 62px;
  height: 42px;
  float: right;
  position: relative;
  
}

#shopping-cart-button:hover{
  background-position: 54% 0;
}

#shopping-cart-button:active{
  background-position: 108% 0;
}

#pages{
  float: left;
  list-style-type: none;
  padding: 0px;
  background-color: #EEDDAA;
  color: #0A0369;
  margin-right: 5px;
  padding-right: 16px;
  border: black solid 1px;
  position: relative;
  top: -16px;
  left: 1px;
  z-index: 1;
}

#pages a:link, #pages a:visited{
  background-color: #EEDDAA;
  width: 100%;
  margin: 0;
  display: block;
  padding: 8px;
  
}

#pages a:hover, #pages a:active{
  background-color: #0A0369;
  color: white;
}

#categories{
  float: left;
  list-style-type: none;
  padding: 0px;
  background-color: #aaa;
  color: #0A0369;
  margin-right: 5px;
  padding-right: 16px;
  border-top: 1px white dashed;
}

#main-div p#category-location-link{
  font-family: cursive;
  text-indent: 0px;
  font-weight: bold;
  color: #0A0369;
}

#main-div p{
  padding-right: 25px;
  padding-left: 200px;
  padding-bottom: 15px;
  text-indent: 30px;
}

.sale-table{
  display: inline-block; /* This allows the items to sit on one line */
}

table.sale-table tr td{
  width: 100px;
  text-indent: 0em;
  text-align: center;
}

table.sale-table tr td a:link, table.sale-table tr td a:visited{
  color: #040369;
  text-indent: -5em;
}


table.sale-table tr td a:hover, table.sale-table tr td a:active{
  height: 100px;
  width: 500px;
  color: red;
  text-decoration: none;
}

.middle-ul {
  border: 1px solid black;
}

.outer-ul, .outer-ul .inner-ul{
  list-style-type: none;
}

.outer-ul .middle-ul li{
  display: inline-block;
}

.outer-ul .middle-ul .inner-ul li{
  padding-bottom: 10px;
  display: block;
  text-align: auto;
}

p#main-body-p{
  margin-top: -40px;
}

table.sale-table td.photo img{
  width: 100px;
  height: 100px;
}

table.sale-table tr td.desc{
  height: 5em; /* This keeps the product images in a line with each other no matter how many lines the title takes up. (Some use 3; some use 4.)*/
}

#bottom-table{
  width: 10%;
  min-width: 700px;
  margin: auto;
  text-align: center;
  font-size: .8em;
  font-family: Verdana, Times New Roman;
}

#bottom-table a:link, #bottom-table a:visited{
  color: #AAAAAA;
  text-transform: lowercase;
}

#bottom-table a:hover, #bottom-table a:active{
  text-decoration: none;
  border-bottom: 2px solid #AAAAAA;
  text-transform: capitalize;
}

#categories{
  float: left;
  list-style-type: none;
  padding: 0px;
  color: #0A0369;
  width: 100%;
  background-color: #EEDDAA;
  z-index: 5;
}

p#main-body-p span.item-casing{ /* Without this, the item pages hide the for sale items when there are too many categories to fit on 1 line. */
  padding: 1px;
  top: -25px !important;
}




.c_details .c_image{width: 120px !important;}
.c_details .c_mainimage{width: 120px !important;}
.c_details .c_image img{width: 120px !important;}
.c_details .c_info{margin-left: 125px !important; padding-left: 0px !important; text-align: left !important;}
.c_checkoutButton, .c_last{color: black !important; text-decoration: underline !important;}

#menuwrapper{
  margin-top: -25px;
  z-index: 5;
}

/* This brings the link bar up flush with the top-link-bar */
#menuwrapper > ul{
  margin-top: -2px !important;
}

/* We remove the margin, padding, and list style of UL and LI components */
#menuwrapper ul, #menuwrapper ul li{
    padding: 0;
    margin: 0;
    list-style-type: none;
    display: inline-block;
}
 
/* We apply background color and border bottom white and width to 150px */
#menuwrapper ul li{
    width: 155px;
    height: 30px;
    background-color: #EEDDAA;
    border-right: 1px dashed white;
	border-bottom: 1px dashed white;
    cursor: pointer;
    text-align: center;
}
 
/* We apply the background hover color when user hover the mouse over of the li component */
#menuwrapper ul li:hover{
    position: relative;
    background-color: #0A0369;
    color: white;
	z-index: 5; /* 'aftermarket' to make the top links show above the left table */
}
 
/* We apply the link style */
#menuwrapper ul li a{
    text-decoration: none;
    padding-top: 5px;
    padding-bottom: 5px;
    display: inline-block;
    width: 155px;
    color: black;
}

#menuwrapper ul li:hover a{
    color: white;   
}
 
/**** SECOND LEVEL MENU ****/
/* We make the position to absolute for flyout menu and hidden the ul until the user hover the parent li item */
#menuwrapper ul li ul{
    position: absolute;
    display: none;
}
 
/* When user has hovered the li item, we show the ul list by applying display:block, note: 150px is the individual menu width.  */
#menuwrapper ul li:hover ul{
    display: block;
    left: 0;
    top: 30px;
}
 
/* we apply different background color to 2nd level menu items*/
#menuwrapper ul li ul li{
    background-color: #AAAAAA;
    border-bottom: solid 1px white;
}
 
/* We change the background color for the level 2 submenu when hovering the menu */
#menuwrapper ul li:hover ul li:hover{
    background-color: #0A0369;
}
 
/* We style the color of level 2 links */
#menuwrapper ul li ul li a{
    text-decoration: none;
    display: inline-block;
}
 
/**** THIRD LEVEL MENU ****/
/* We need to hide the 3rd menu, when hovering the first level menu */
#menuwrapper ul li:hover ul li ul{
    display: none;
}
 
/* We show the third level menu only when they hover the second level menu parent */
#menuwrapper ul li:hover ul li:hover ul{
    display: block;
    left: 155px;
    top: 0;
}
 
/* We change the background color for the level 3 submenu*/
#menuwrapper ul li:hover ul li:hover ul li{
    background-color: #AAAAAA;
}
 
/* We change the background color for the level 3 submenu when hovering the menu */
#menuwrapper ul li:hover ul li:hover ul li:hover{
    background-color: #0A0369;
}
 
/* We change the level 3 link color */
#menuwrapper ul li:hover ul li:hover ul li a{
    
}
 
/* Clear float */
.clear{
    clear: both;
}

#bg-shade{/* This puts the error message up on the homepage, and puts a dark shade over everything. */
  width: 100%;
  height: 500%;
  background-color: #000;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 6;
  opacity: 0.5;
}

#bg-shade-p{/* This puts the error message up on the homepage, and puts a dark shade over everything. */
  color: #000;
  margin: auto;
  z-index: 7;
  background-color: #fff;
  padding: 30px;
  position: absolute;
  top: 40%;
  left: 0;
  display: none;
}