
/* - - - - - - - - - - - - - - - - - - - - - - -

Title :    Mattress Firm MOBI
URL :      N/A

Created :  07.12.2011
Modified : 07.14.2011

- - - - - - - - - - - - - - - - - - - - - - - */

/* Position Everything
-------------------------------------------------------------- */
* { position: relative; }

/* HTML5 Tags
-------------------------------------------------------------- */
article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section {display:block;}

/* General Typography
-------------------------------------------------------------- */
body {font-size:62.5%; line-height:1;} /* 62.5% sets 1em=10px */

q:before{content:'\201C';}
q:after{content:'\201D';}
q q:before{content:"\2018";}
q q:after{content:"\2019";}

ul, li {margin:0; padding:0;}
li {margin-left:30px;}

ul {list-style-type:disc;}
ul ul {list-style-type:circle;}
ul ul ul {list-style-type:square;}
ul ul ul ul {list-style-type:disc;}
ul ul ul ul ul {list-style-type:circle;}

ol {list-style-type:decimal;}
ol ol {list-style-type:upper-roman;}
ol ol ol {list-style-type:lower-roman;}
ol ol ol ol {list-style-type:upper-alpha;}
ol ol ol ol ol {list-style-type:lower-alpha;}

pre,code,samp,kbd,var{font-family:'Courier New',monospace,serif;font-size:1em;}

pre {
    white-space: pre-wrap; /* css-3 */
    white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
    white-space: -pre-wrap; /* Opera 4-6 */
    white-space: -o-pre-wrap; /* Opera 7 */
    word-wrap: break-word; /* Internet Explorer 5.5+ */
}

del { text-decoration: line-through; }
ins { border: 0; text-decoration: none; color: #333; background-color: #ffc; }

sup, sub {position:relative; font-size:.8em; line-height:1; vertical-align:baseline;}
sup {top: -.5em;}
sub {bottom: -.5em;}

abbr {border: 0;}
abbr[title] {border-bottom:1px dotted; cursor:help;}

/* Tables Reset
-------------------------------------------------------------- */
table { display: block; border-collapse: collapse; border-spacing: 0; }
caption { position:absolute; left:-999em; text-align:left; }
th, td { margin:0; padding:0; vertical-align:top; }
td, tbody th { text-align:left; }
tfoot { font-size: .9em; font-style:italic; }

/* Forms Reset
-------------------------------------------------------------- */
form, fieldset, legend, input, textarea { margin:0; padding:0; }
input[type=hidden] { display: none !important; }
label, input[type=button], input[type=submit], button { cursor: pointer; }
.ie6 legend, .ie7 legend { margin-left: -7px; }
/* www.sitepoint.com/blogs/2010/08/20/ie-remove-textarea-scrollbars/ */
textarea { overflow: auto; }
/* viget.com/inspire/styling-the-button-element-in-internet-explorer/  */
button { width: auto; overflow:visible; }
/* Align checkboxes, radios, text inputs with their label by: Thierry Koblentz tjkdesign.com/ez-css/css/base.css  */
form{ line-height:1; }
input[type=radio] { vertical-align: bottom; }
input[type=checkbox] { vertical-align: text-bottom; }
.ie7 input[type=checkbox] { vertical-align: baseline; }
.ie7 button,
.ie7 input[type=submit],
.ie7 input[type=reset],
.ie7 input[type=button] { overflow: visible; padding: .2em .4em; }

/* Basic Form Styles */
fieldset {margin: 1.5em 0; padding: .5em; border: 1px solid #ccc; }
legend { padding: .25em; font-size: 1.6em; color: #999; }
form div { margin: 1em 0; }
label { display: block; margin: 0 0 .5em; font-size: 1.2em; font-weight: bold; }
input[type=text] { width: 240px; height: 18px; }
textarea { width: 390px; height: 250px; padding: 5px; }

/* Headings
-------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
	font-weight: bold;
	line-height: 1.3;
}

h1 { margin: .75em 0; font-size: 2em; }
h2 {
	margin: 0;
	padding: 6px;
	font-size: 1.6em;
	font-style: italic;
	color: #fff;
	background: #DB171E url(../img/red_gradient.png) repeat-x left bottom;
}
h3 { margin: 1em 0; font-size: 1.6em; }
h4 { margin: 1em 0; font-size: 1.4em; }
h5 { margin: 1.5em 0; font-size: 1.2em; }
h6 { margin: 1.5em 0 0; font-size: 1.2em; }

/* Specific Typography
-------------------------------------------------------------- */
p, ul, ol, dl, table, pre, code, samp, address, blockquote {
    margin: 0 0 1em;
    padding: 0;
    font-size: 1.2em;
    line-height: 1.4;
}

blockquote {
    padding: 0 1.5em;
    border-left : 3px solid #ccc;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.6em;
    line-height: 1.5;
    font-style: italic;
}

cite {font-size: .9em; font-style: italic;}

pre {
    display: block;
    padding: 1em;
    border: 1px solid #ccc;
    background-color: #eee;
}

code { color: #06f; }

/*http://support.microsoft.com/kb/883631 */
hr, .hr {
	display:block;
    height:1px;
    margin:1.5em 0;
    padding:0;
    border:0;
 	border-top: 1px solid #ccc;
}

.hr hr {display:none;}

/* maxdesign.com.au/articles/definition/ */
dt { margin: 0; font-weight: bold; }
dd { margin: 0 0 1em 1em; }
dd p, dd ul, dd ol { margin-top: 0; }

/* Addressing Font-Size / Margin Cascade Issues */
li p, li ul, li ol, li code, li samp, li pre, li blockquote, li table,
dd p, dd ul, dd ol, dd code, dd samp, dd pre, dd blockquote, dd table,
table p, table ul, table ol, table code, table samp, table pre, table blockquote, table table,
blockquote p, address p, pre code, p code, pre samp, p samp {font-size:1em;}

li ul, li ol {margin:0;}

li h1, li h2, li h3, li h4, li h5, li h6,
dd h1, dd h2, dd h3, dd h4, dd h5, dd h6,
table h1, table h2, table h3, table h4, table h5, table h6 {font-size: 1em;margin: 1em 0;}

/* Navigation Reset
-------------------------------------------------------------- */
.nav,.nav li,nav ul,nav li{margin:0;padding:0;list-style:none;list-style-image:none;font-size:1em;}

/* Anchor Links
-------------------------------------------------------------- */
a:link{color:#6B2400;text-decoration:none;}
a:visited{color:#6B2400;text-decoration:none;}
a:hover{color:#6B2400;text-decoration:underline;}
a:active{color:#6B2400;text-decoration:underline;}
a:focus,:focus{color:#6B2400;text-decoration:underline;outline:0;}
input:focus{text-decoration:none;}
a:hover,a:active{outline:0;} /* http://24ways.org/2009/dont-lose-your-focus */

/* Google Voice Link Style (Chrome Extension) */
span.gc-cs-link{ color:#6B2400; text-decoration:underline; }
span.gc-cs-link:hover{ text-decoration:none; }

/* Images
-------------------------------------------------------------- */
img{vertical-align:top;border:0;} /* https://developer.mozilla.org/en/Images,_Tables,_and_Mysterious_Gaps */
img.right{float:right;margin:0 0 .25em 2em;}
img.left{float:left;margin:0 2em .25em 0;}


/* MAIN-LAYOUT
============================================================== */
html { overflow-y:scroll; padding:0; background:#FFF; }

body {
	margin: 0;
	padding: 0;
	font-family: sans-serif;
	text-align: left;
	color: #555;
	background: #FFF url(../img/body_bg.png) repeat-x 0 42px;
}

.wrapper { width: 320px; margin: 0 auto; }

#content,
#footer { width: 100%; min-width: 320px; margin: 0 auto; }

/* Global Classes */
.hide{display:none;}
.show{display:block;}
.center{text-align:center;}

/* Header
-------------------------------------------------------------- */
#header {
	height: 34px;
	border-bottom: 8px solid #955C34;
	background: #ED1C24;
}

#header h1,
#header p { margin: 0; position: static; }

#header a {
	position: absolute;
	top: 0;
	display: block;
	width: 160px;
	height: 42px;
	text-indent: -999em;
	overflow: hidden;
	background-image: url(../img/mattress_firm.png);
	background-repeat: no-repeat;
}

#header h1 a { left: 0; background-position: 0 0; }

#header p a { right: 0; background-position: -160px 0; }

/* Banner
-------------------------------------------------------------- */
#banner {
	text-align: center;
	background: #000 url(../img/body_bg.png) repeat-x 0 0;
}

/* Content
-------------------------------------------------------------- */
#main-content { padding: 0 10px; }
#main-content h2 { margin: 0 -10px 10px; }
#main-content img { margin: 10px 0; }
#main-content .center img { text-align: center; }

/* Footer
-------------------------------------------------------------- */
#footer { padding: 0; text-align:center; }

#footer p { margin: 10px 0; }

/* SECONDARY-LAYOUT
============================================================== */

/* HOME PAGE
-------------------------------------------------------------- */
#global-nav { text-align: left; }

#global-nav li a:before {
	display: block;
	position: absolute;
	top: 4px;
	left: 8px;
	content: "\0020";
	width: 30px;
	height: 30px;
	background-image: url(../img/menu_items.png);
	background-repeat: no-repeat;
}

#global-nav li#gn-call a:before { background-position: 0 0; }
#global-nav li#gn-locations a:before { background-position: 0 -30px; }
#global-nav li#gn-hours a:before { background-position: 0 -60px; }
#global-nav li#gn-offers a:before { background-position: 0 -90px; }
#global-nav li#gn-facebook a:before { background-position: 0 -120px; }
#global-nav li#gn-twitter a:before { background-position: 0 -150px; }
#global-nav li#gn-about a:before { background-position: 0 -180px; }
#global-nav li#gn-brands a:before { background-position: 0 -210px; }

#global-nav li a {
	display: block;
	padding: 6px 6px 6px 50px;
	border-bottom: 1px solid #B1774F;
	font-size: 1.8em;
	background: #C9A276 url(../img/brown_gradient.png) repeat-x left bottom;
	color: #fff;
}



/* SECONDARY PAGE
-------------------------------------------------------------- */

.brandimage{
	float:right;
	margin-left:5px;
	border:1px solid #e8e8e8;
}

.clear {
	clear:both;
	height:1px;
}


#storehourstable {
	width:100%;
}

#storehourstable td, #storehourstable th {
	padding:3px;
}

/* CLEARFIX
============================================================== */
/*
	perishablepress.com/press/2009/12/06/new-clearfix-hack/
	j.mp/bestclearfix
*/
.clearfix:before, .clearfix:after,
.wrapper:before, .wrapper:after,
#content:before, #content:after {display:block;visibility:hidden;height:0;content:"\0020";}
.clearfix:after,
.wrapper:after,
#content:after {clear:both;}
.clearfix,
.wrapper,
#content {zoom:1;}

