/**
* Site wide screen CSS
* 
* @package css
* @author Tim Carr
* @version 1
* @copyright n7 Studios
*/

/* Tag Declarations */
body { font: 0.75em/160% Helvetica, Arial, Verdana, sans-serif; background: url(../images/background-header.jpg) repeat-x #fff; color: #000; }
h1 { font-size: 1.6em; padding: 0 0 10px 0; }
h2 { font-size: 1.4em; }
p { line-height: 1.6em; }
a { color: #1f3586; text-decoration: none; }
a:hover { color: #000; }

/* Forms */
form p label, form p input.text, form p textarea { width: 100%; }
textarea { font: inherit; height: 150px; }
form p input.send { margin: 10px 0 0 0; border: none; background: url(../images/buttons/send.gif) top center no-repeat; width: 120px; height: 36px; cursor: pointer; text-indent: -9999px; overflow: hidden; font-size: 0px; display:block; line-height: 0px; }
form p input.signup { margin: 10px 0 0 0; border: none; background: url(../images/buttons/signup.gif) top center no-repeat; width: 102px; height: 31px; cursor: pointer; text-indent: -9999px; overflow: hidden; font-size: 0px; display:block; line-height: 0px; }

/* Helper Classes */
.bold { font-weight: bold; }
.underline { text-decoration: underline; }
.left { float: left; }
.right { float: right; }
.clear { clear: both; }
.clearLeft { clear: left; }
.clearRight { clear: right; }
.hidden { display: none; }
.centre { text-align: center; margin: 0 auto; }
.container { width: 960px; margin: 0 auto; }
.description { color: #a09d9d; }
.even { background: #f5f5f1; }
.odd { background: #eeede2; }
.successStatic { color: #70952a; }
.errorStatic { color: #e42e2e; }

/* Header */
#header { float: left; width: 960px; height: 119px; }
#header #logo { float: left; width: 292px; height: 60px; margin: 30px 0 0 0; background: url(../images/logo.png) no-repeat; text-indent: -9999px; }
#header #headerButtons { float: right; width: 216px; height: 48px; margin: 30px 25px 0 0; }
#header #headerButtons #tellafriend { float: left; width: 103px; height: 24px; margin: 0 10px 0 0; }
#header #headerButtons #newsletterButton { float: left; width: 103px; height: 24px; }

/* Main Menu */ 
#menu { float: right; width: 650px; height: 41px; }
#menu ul { float: right; width: 441px; }
#menu ul li { float: left; }
#menu ul li a { display: block; text-indent: -9999px; text-decoration: none; height: 29px; }
#menu ul li.search a { width: 76px; height: 29px; margin: 12px 0 0 0; background: url(../images/menu/search-off.gif) top center no-repeat; }
#menu ul li.about a { width: 70px; height: 29px; margin: 12px 0 0 0; background: url(../images/menu/about-off.gif) top center no-repeat; }
#menu ul li.contact a { width: 77px; height: 29px; margin: 12px 0 0 0; background: url(../images/menu/contact-off.gif) top center no-repeat; }
#menu ul li.search a.selected { background: url(../images/menu/search-on.gif) top center no-repeat; }
#menu ul li.about a.selected { background: url(../images/menu/about-on.gif) top center no-repeat; }
#menu ul li.contact a.selected { background: url(../images/menu/contact-on.gif) top center no-repeat; }

/* Facebook and Twitter */
#menu ul li.facebook a { width: 99px; height: 41px; margin: 0 0 0 10px; background: url(../images/menu/facebook.png) top center no-repeat; }
#menu ul li.twitter a { width: 99px; height: 41px; margin: 0 0 0 -3px; background: url(../images/menu/twitter.png) top center no-repeat; }
#menu ul li.facebook a:hover, #menu ul li.twitter a:hover { background-position: 0 -41px; }

/* Search Bar */
#search {
    clear: both;
    float: left;
    width: 960px;
    height: 47px;
}
#search form {
    width: 960px;
    height: 47px;
    background: url(../images/search-bar.gif) top center no-repeat;
}
#search form p {
    float: left;
    width: 590px;
    line-height: 42px;
    padding: 0 185px;
}
#search form p label {
    float: left;
    width: 220px;
    line-height: 42px;
    font-size: 1.6em;   
}
#search form p input.text {
    float: left;
    width: 250px;
    height: 25px;
    margin: 7px 5px 0 0;
    font-size: 1.6em; 
}
#search form p input.searchButton {
    float: left;
    text-indent: -9999px;
    width: 102px;
    height: 31px;
    margin: 7px 0 0 0;
    border: none;
    background: url(../images/buttons/search.gif) top center no-repeat;
    cursor: pointer;
}

/* Main */
#main {
    float: left;
    width: 100%;
    background: #ebe7c9;
    padding: 20px 0 0 0;
}

/* Popular Searches */
#popularSearches {
    float: left;
    width: 100%;
    padding: 0 0 20px 0;
}
#popularSearches .icon {
    float: left;
    width: 45px;
    height: 45px;
    background: url(../images/icons/magnifying-glass.jpg) top center no-repeat;    
}
#popularSearches #popularSearchResults {
    float: left;
    width: 860px;
    padding: 5px 0 0 10px; /* Width + padding must = 870px */
}
#popularSearches #popularSearchResults h1 {
    color: #f16c13;
}
#popularSearches #popularSearchResults h2 {
    color: #434343;
    font-size: 1.2em;
}

/* Popular Search Filters + Tag Cloud Lists */
#popularSearches #popularSearchResults ul {
    float: left;
    width: 860px;
    margin: 0 0 10px 0;
}
#popularSearches #popularSearchResults ul li {
    float: left;
}

/* Popular Search Filters */
#popularSearches #popularSearchResults ul.popularSearchFilters li a {
    padding: 0 10px 0 0;
    font-size: 1.2em;
    color: #434343;  
}
#popularSearches #popularSearchResults ul.popularSearchFilters li a.selected {
    font-weight: bold;
}

/* Popular Search Tag Cloud Font Sizes - change tag sizes here.  Levels are set in SearchModel */
#popularSearches #popularSearchResults ul.popularSearchTags {
    width: 860px;
    overflow: hidden;
    height: 2.6em;
    line-height: 2.6em;
}
#popularSearches #popularSearchResults ul.popularSearchTags li {
    line-height: 2.4em;
}
#popularSearches #popularSearchResults ul.popularSearchTags li a {
    padding: 0 40px 0 0;  
}
#popularSearches #popularSearchResults ul.popularSearchTags li a.level1 {
    font-size: 1.6em;  
}
#popularSearches #popularSearchResults ul.popularSearchTags li a.level2 {
    font-size: 1.8em;  
}
#popularSearches #popularSearchResults ul.popularSearchTags li a.level3 {
    font-size: 2em;  
}
#popularSearches #popularSearchResults ul.popularSearchTags li a.level4 {
    font-size: 2.2em;  
}
#popularSearches #popularSearchResults ul.popularSearchTags li a.level5 {
    font-size: 2.4em;  
}

/* About */
div.about h1 {
    color: #f16c13; 
    padding: 0 0 10px 0;
}
div.about h2 {
    color: #434343;
    padding: 10px 0 0 0;
}

/* Results Table */
div.result {
    clear: both;
    float: left;    
    width: 100%;
    padding: 10px 0;
}
div.result div.image {
    float: left;
    width: 170px;
    text-align: center;
}
div.result div.details {
    float: left;
    width: 620px;
}
div.result div.details h1 {
    color: #000000;
}
div.result div.details h2 {
    color: #434343;
}
div.result div.priceAndButton {
    float: left;
    width: 170px;
    text-align: center;
    vertical-align: middle;
}
div.result div.priceAndButton h1 {
    font-size: 2em;
    color: #70952a;
}
div.result div.priceAndButton a {
    vertical-align: middle;
}
div.result div.priceAndButton a img {
    vertical-align: middle;
    margin: 0 0 5px 0;
}

/* Tooltip */
#tooltip { display: none; z-index: 3; width: 170px; min-height: 60px; position: absolute; }
#tooltip #tooltipArrow { float: left; width: 170px; height: 10px; background: url(../images/icons/tooltip-arrow.png) top center no-repeat; }
#tooltip #tooltipMain { float: left; width: 170px; min-height: 50px; background: #4f4138; color: #fff; -moz-border-radius: 5px; -webkit-border-radius: 5px; -moz-box-shadow: 3px 3px 3px #888; }
#tooltip #tooltipMain p { width: 150px; padding: 5px 10px; }

/* Popup */
#overlay {
    display: none;
    width: 100%;
    height: 100%;
    z-index: 2;
    position: absolute;
    top: 0;
    left: 0;
    background: url(../images/modal-background.png) top left repeat;
}
#popup {
    display: none;
    z-index: 3;
    width: 470px;
    margin: 0 0 20px 0; /* So we have a gap between the popup and bottom of the page */
    position: absolute; /* Position set by Javascript when popup loaded */
}
#popup a.close {
    float: right;
    width: 30px;
    height: 30px;
    position: relative;
    top: 18px;
}
#popup #popupMain {
    float: left;
    width: 460px;
}
#popup #popupMain #popupHeader {
    float: left;
    width: 420px;
    height: 40px;
    padding: 20px;
    background: #f4f1de;
    -moz-border-radius-topleft: 8px;
    -moz-border-radius-topright: 8px;
    -webkit-border-top-left-radius: 8px;
    -webkit-border-top-right-radius: 8px;
}
#popup #popupMain #popupHeader h2 { 
    font-size: 1.2em;
    color: #434343;
}

/* Inline Popup Body */
#popup #popupMain #popupBody {
    float: left;
    width: 420px;
    min-height: 210px;
    padding: 20px 20px 0 20px;
    background: #fff;
}
#popup #popupMain #popupBody p img.loading {
    float: left;
    margin: 100px 202px 0 202px;    
}
#popup #popupMain #popupBody .popupReview {
    float: left;
    margin: 0 0 10px 0;
}
#popup #popupMain #popupBody .popupReview h2 {
    float: left;
    font-size: 1.1em;
}
#popup #popupMain #popupBody .popupReview img {
    float: right;
}
#popup #popupMain #popupBody .popupReview p {
    clear: both;
}

/* Inline Popup Form */
#popupBody form p {
    float: left;
    width: 420px;
    margin: 0 0 20px 0;
}
#popupBody form p label { 
    float: left; 
    width: 100px; 
    margin: 0 5px 0 0; 
    font-size: 1.3em;
}
#popupBody form p input.text { 
    float: left; 
    width: 310px;
    font-size: 1.3em; 
}

/* Inline Popup Footer */
#popup #popupMain #popupFooter {
    float: left;
    width: 420px;
    height: 50px;
    padding: 7px 20px;
    -moz-border-radius-bottomleft: 8px;
    -moz-border-radius-bottomright: 8px;
    -webkit-border-bottom-left-radius: 8px;
    -webkit-border-bottom-right-radius: 8px;
    background: #fff;
}
#popup #popupMain #popupFooter .notice {
    float: right;
}
#popup #popupMain #popupFooter .notice p {
    color: #999;
    line-height: 36px;
}
#popup #popupArrow {
    float: left;
    width: 10px;
    height: 16px;
    margin: 71px 0 0 0;
    background: url(../images/icons/popup-arrow.png) top left no-repeat;
}

/* Footer */
#footer {
    float: left;
    width: 100%;
    height: 230px; /* Extra height here allows bottomost Review button's inline popup to display without cutting off the browser window */
    background: url(../images/background-footer.jpg) repeat-x #fff;
    padding-top: 20px;       
}
#footer h1 { color: #f16c13; }
#footer div.container div.faq { width: 480px; }
