/*
	Theme Name: Sleep Better
	Theme URI: http://sleepbetter.org/
	Description: Custom theme for sleepbetter.org's blog.
	Version: 1.0
	Author: PharrOut
	Author URI: http://pharrout.com/
*/

/* reset */
body, h1, h2, h3, h4, h5, h6, form {
	margin: 0;
	padding: 0;
}

/* wrapper -- clear floats without extra markup */
.wrapper, .wrap { display: inline-block; }
.wrapper:after, .wrap:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
* html .wrapper, * html .wrap { height: 1%; }
.wrapper, .wrap { display: block; }

/* general */
a {
	color: #005d99;
	text-decoration: underline;
}
	a:hover { color: #4776af; }
	a img { border: 0; }
abbr { border: 0; }
blockquote {
	xbackground: url('img/blockquote-bg.png') no-repeat;
	color: #4D4D4D;
	font-style: italic;
	font-size: 13px;
	margin: 0 2.0em 1.62em 2.0em;
	padding: 0 1.3em;
	border-left: 1px solid #808080;
}
body {
	color: #0b3855;
	font: 13px Helvetica Neue, Helvetica, Arial, sans-serif;
}
	body.home { font-size: 12px; }
	body.day {
		background: #76b0d7 url('img/body-bg-day.jpg') no-repeat center top;
	}
	body.night {
		background: #000000 url('img/body-bg-night.jpg') no-repeat center top;
	}
h1, h2, h3, h4, h5 {
	font-weight: normal;
	margin-bottom: 0.5em;
}
h1 {
	font-size: 24px;
	text-transform: uppercase;
}
h2 {
	font-size: 20px;
	font-style: italic;
	text-transform: capitalize;
}
	h2 a {
		color: #ca8e45;
		text-decoration: none;
	}
h3 {
	text-transform: uppercase;
	font-size: 15px;
}
	h3 span { text-transform: none; }
h4 {
	color: #78721d;
	line-height: 1.4em;
}
h5 {
	font-size: 18px;
        text-decoration: none;
}

img.left {
	float: left;
	margin: 0 10px 10px 0;
}
img.right {
	float: right;
	margin: 0 0 10px 10px;
}

input[type="text"] {
	border: 1px solid #dddddd;
	padding: 5px;
}
p, ul, ol {
	line-height: 1.62em;
	margin: 0 0 1.4em 0;
}
ul.horizontal, ul.noBullets {
	list-style: none;
	margin: 0;
	padding: 0;
}
	ul.horizontal li {
		float: left;
		margin: 0;
	}
		ul.horizontal li a { display: block; }
	ul.noBullets li { margin-bottom: 0.5em; }
.left { float: left; }
.right { float: right; }
.center { text-align: center; }
.column {
	display: inline;
	float: left;
	padding-right: 11px;
}
	.column.left { width: 215px; }
	.column.middle { width: 400px; }
	.column.right {
		padding-right: 0;
		width: 313px;
	}
.box {
	border: 1px solid #cccccc;
	margin-bottom: 8px;
	padding: 6px;
}
	.box.noBorder { border: 0; }
	.box h3 {
		color: #ffffff;
		font-size: 14px;
		line-height: 29px;
	}
		.column.middle .box h3 {
			overflow: hidden;
			line-height: 32px;
			margin: 0 -10px;
			text-indent: -9999px;
		}
		.column.right .box h3 {
			color: #005d99;
			font-weight: bold;
			line-height: 32px;
		}
		h3 span { text-transform: none; }
		h3#sleepBetterNewsHeader { background: url('img/sleep-better-news.gif') no-repeat; }
		h3#sleepBetterArticlesHeader { background: url('img/sleep-better-articles.gif') no-repeat; }
		h3#sleepBetterProductsHeader { background: url('img/sleep-better-products.gif') no-repeat; }
	.box .inside { padding: 0 10px; }
	.column.left .box .inside { background: url('img/box-bg-left.gif') repeat-x; }
	.column.middle .box .inside { background: url('img/box-bg-middle.gif') repeat-x; }
	.column.right .box .inside { background: url('img/box-bg-right.gif') repeat-x; }

/* structure / etc */
#site {  }
#main {
	margin: 0 auto;
	width: 970px;
}
#header {
	height: 102px;
	padding-top: 8px;
}
	#header h1 { margin: 0; }
	#header h1 a {
		display: block;
		height: 65px;
		overflow: hidden;
		text-indent: -9999px;
		width: 215px;
	}
	#navigation { margin-top: 3px; }
		#navigation ul { margin-left: 75px; }
		#navigation ul li a {
			background: #4776af;
			color: #ffffff;
			float: left;
			font-size: 13px;
			height: 34px;
			line-height: 34px;
			margin-right: 5px;
			overflow: hidden;
			text-decoration: none;
			text-indent: -9999px;
			text-transform: uppercase;
		}
			/* #navigation ul li a:hover { background-position: 0 100%; } // this does not work for some reason */
		#navigation ul li a#navHome {
			background: url('img/nav-home.gif') no-repeat;
			width: 69px;
		}
			#navigation ul li a:hover#navHome { background-position: 0 100%; }
		#navigation ul li a#navSleepSolutions {
			background: url('img/nav-sleep-solutions.gif') no-repeat;
			width: 147px;
		}
			#navigation ul li a:hover#navSleepSolutions { background-position: 0 100%; }
		#navigation ul li a#navTipsAdvice {
			background: url('img/nav-tips-advice.gif') no-repeat;
			width: 124px;
		}
			#navigation ul li a:hover#navTipsAdvice { background-position: 0 100%; }
		#navigation ul li a#navResources {
			background: url('img/nav-resources.gif') no-repeat;
			width: 105px;
		}
			#navigation ul li a:hover#navResources { background-position: 0 100%; }
		#navigation ul li a#navNews {
			background: url('img/nav-videos.gif') no-repeat;
			width: 65px;
		}
			#navigation ul li a:hover#navNews { background-position: 0 100%; }
		#navigation ul li a#navRecommendedProducts {
			background: url('img/nav-recommended-products.gif') no-repeat;
			width: 199px;
		}
			#navigation ul li a:hover#navRecommendedProducts { background-position: 0 100%; }
		#navigation ul li a#navAboutUs {
			background: url('img/nav-about-us.gif') no-repeat;
			width: 94px;
		}
			#navigation ul li a:hover#navAboutUs { background-position: 0 100%; }
		#navigation ul li a#rssTab {
			background: url('img/icon-rss-tab.png') no-repeat 50% 50%;
			width: 15px;
		}
#dataTop {
	background: url('img/data-bg-top.png') no-repeat;
	height: 25px;
}
#dataBottom {
	background: url('img/data-bg-bottom.png') no-repeat;
	height: 25px;
}
/* stuff for home page */
#homePage {
	background: #ffffff;
}

#topArea2{
		background: url('img/top-area-bg.gif') no-repeat;
		height: 287px;
		padding: 13px 0 0 0;
		width: 969px;
	}
	#topArea {
		background: url('img/top-area-bg.gif') no-repeat;
		height: 287px;
		padding: 13px 0 0 15px;
		width: 969px;
	}
	#stephenville { margin-top: 3px; }
	#sleepSolutions {
		background: url('img/sleep-solutions-bg.gif') no-repeat;
		font-size: 12px;
		height: 266px;
		margin-left: 15px;
		margin-bottom:20px;
		width: 188px;
	}
		#sleepSolutions .inside {
			height: 215px;
			overflow-y: scroll;
			margin: 40px 10px 0 10px;
		}
		#sleepSolutions ul {
			list-style: none;
			padding: 0;
			margin: 0;
		}
		#sleepSolutions ul li {
			display: block;
			border-bottom: 1px solid #cccccc;
			margin: 0 5px 0 0;
			padding: 2px 5px;
		}
	
	#bedtimeupdate {
		background: url('img/bedtimestories-updates-bg.jpg') no-repeat;
		font-size: 12px;
		height: 266px;
		margin-left: 15px;
		margin-bottom:20px;
		width: 212px;
	}

        #bedtimeupdate h2 {
	       font-size: 15px;
	       font-style: italic;
	       text-transform: capitalize;
        }

	#bedtimeupdate h2 a {
	        font-size: 15px;
		color: #ca8e45;
		text-decoration: none;
	}

	#bedtimeupdate h2 a:hover {
                color: #4776af;
       }

		#bedtimeupdate .inside {
			height: 215px;
			margin: 40px 10px 0 10px;
		}
		#bedtimeupdate ul {
			list-style: none;
			padding: 0;
			margin: 0;
		}
		#bedtimeupdate ul li {
			display: block;
			border-bottom: 1px solid #cccccc;
			margin: 0 5px 0 0;
			padding: 2px 5px;
		}
			#bedtimeupdate .post{
				width:170px;
			}
	
	#bedtimeupdate2 {
		background: #ffffff;
		font-size: 12px;
		height: 266px;
		margin-left: 15px;
		margin-bottom:20px;
		width: 212px;
	}


	#dreambiggerUpdate {
		background: url('img/dreamBiggerUpdates-bg.gif') no-repeat;
		font-size: 12px;
		height: 266px;
		margin-left: 15px;
		margin-bottom:20px;
		width: 212px;
	}
		#dreambiggerUpdate .inside {
			height: 215px;
			margin: 40px 10px 0 10px;
		}
		#dreambiggerUpdate ul {
			list-style: none;
			padding: 0;
			margin: 0;
		}
		#dreambiggerUpdate ul li {
			display: block;
			border-bottom: 1px solid #cccccc;
			margin: 0 5px 0 0;
			padding: 2px 5px;
		}
			#dreambiggerUpdate .post{
				width:170px;
			}
	#obeyTheClock {
		margin-left: 5px;
	}
		#obeyTheClock.day {
			background: url('img/clock-bg-day.jpg') no-repeat;
			width: 307px;
			height: 266px;
		}
		#obeyTheClock.night {
			background: url('img/clock-bg-night.jpg') no-repeat;
		}
	#homePage .post {
		background: transparent;
		padding: 0;
		border-top: 1px solid #cccccc;
	}
	.theDate{margin-bottom:0;padding-bottom:0;color:#a2a2a2;font-size:.9em;}
	
		#homePage .post:first-child { border: 0; }
		#homePage h2 {
			font-size: 16px;
			margin: 0.5em 0;
		}
		#homePage .imgWrapper {
			background: #ffffff;
			border: 1px solid #cccccc;
			margin: 0 8px 0 0;
			padding: 2px;
		}
			#homePage .middle .imgWrapper { margin-top: 8px; }
		#homePage .post img {
			border: 0;
			margin: 0;
			padding: 0;
		}
	#latestBlogPost{background:url(img/latest-blog-post.jpg) no-repeat;width:402px;height:74px;margin-top:3px;}
	#latestBlogPost p{margin:0px 0 0 237px;padding-top:35px;border:0px solid red;width:140px;text-align:center;font-weight:bold;}
	#latestBlogPost p a{text-decoration:none; line-height:1em;}
	#zzzzScore {  }
	#dailySleepFact {  }
        #sleepblogger {  }
	#badges {  }
	#sleepBetterNews {  }
	#sleepBetterArticles {  }
	#sleepBetterProducts { font-size: 11px; }
		#sleepBetterProducts .imgWrapper { margin-right: 0; }
		#sleepBetterProducts ul li {
			margin-left: 8px;
			text-align: center;
		}
			#sleepBetterProducts ul li:first-child { margin-left: 4px; }
	#sleepBetterImageThing {  }
	#sleepPoll {  }
	#sleepExpert {  }
/* stuff for everywhere */
#data {
	background: url('img/data-bg.png') repeat-y;
	position: relative;
}

	#contentpage {
		margin: 0 200px;
		width: 450px;
		min-height: 500px;
	}
#page-wider {
margin: 0 25px 0 25px;
width: 950px;
min-height: 500px;
}


#contentbedtimestories {
margin: 0 200px;
width: 800px;
min-height: 500px;
}

#bedtimestoriesposts {
}

                .bedstory-postTop {
			background: url('img/widebg-top.png') no-repeat;
			height: 10px;
		}
		.bedstory-postBottom {
			background: url('img/widebg-bottom.png') no-repeat;
			height: 5px;
		}
		.bedstory-post {
			background: url('img/widebg-body.png') repeat-y;
			padding: 0 20px;
                        min-height: 500px;
		}
		.bedstory-post.excerpt p {
			line-height: 1.4em;
			margin-bottom: 1.0em;
		}
		.bedstory-post img {
			border: 1px solid #bbbbbb;
			margin-top: 5px;
			padding: 5px;
		}
		.bedstory-post h3 { font-weight: bold; }
		.bedstory-post .meta {
			background: url('img/widebg-bottom.png') no-repeat;
			color: #ffffff;
			font-size: 11px;
			margin: 0 -20px;
			padding: 5px 20px 0 20px;

		}
			.post .meta p { margin: 0; }
			.meta span { float: right; }
			.meta a { color: #ffffff; }
		.addThis {
			text-align: right;
			margin: 10px 0 30px 0;
		}
			#at16pf { display: none; }
		.bedstory-postNav {
			margin: 0 auto;
			width: 300px;
		}
			.postNav span { float: right; }


	#content {
		margin: 0 200px;
		width: 550px;
		min-height: 500px;
	}
		.home #content {
			margin: 0 10px;
			width: auto;
		}
		#posts {
		}
		.postTop {
			background: url('img/post-bg-top.png') no-repeat;
			height: 10px;
		}
		.postBottom {
			background: url('img/post-bg-bottom.png') no-repeat;
			height: 5px;
		}
		.post {
			background: url('img/post-bg.png') repeat-y;
			padding: 0 20px;
		}
		.post.excerpt p {
			line-height: 1.4em;
			margin-bottom: 1.0em;
		}
		.post img {
			border: 1px solid #bbbbbb;
			margin-top: 5px;
			padding: 5px;
		}
		.post h3 { font-weight: bold; }
		.post .meta {
			background: url('img/post-meta-bg.png') repeat-y;
			color: #ffffff;
			font-size: 11px;
			margin: 0 -20px;
			padding: 5px 20px 0 20px;
		}
			.post .meta p { margin: 0; }
			.meta span { float: right; }
			.meta a { color: #ffffff; }
		.addThis {
			text-align: right;
			margin: 10px 0 30px 0;
		}
			#at16pf { display: none; }
		.postNav {
			margin: 0 auto;
			width: 300px;
		}
			.postNav span { float: right; }
		#comments {  }
			#comments ol {
				list-style: none;
				padding: 0;
			}
				#comments ol li {  }
			#comments img.avatar {
				float: left;
				margin: 5px 5px 5px 0;
			}
			#comments .comment-meta {
				border-bottom: 1px solid #dddddd;
				font-size: 11px;
				margin-bottom: 5px;
				padding-bottom: 5px;
			}
			#comments p {  }
			#comments textarea { width: 99%; }
	.sidebar { margin: 30px 0 0 0; }
		.sidebar ul, .sidebar ol {
			line-height: 1.2em;
			margin-left: 0px;
		}
		.sidebar li {
                        padding: 0 0 5px 0;
                }
         
		.sidebar.left {
			margin-left: 10px;
			width: 180px;
			font-size: 11px;
		}
			.sidebar.left h3 { text-transform: none; 
                        }
			.sidebar.left h4 { text-transform: none; 
				font-size: 14px;
				font-weight: bold;
                        }
			.sidebar.left #search h3 {
				color: #b5b5b5;
				font-size: 12px;
			}

		.sidebar.left.page {
			margin-left: 10px;
			width: 180px;
			font-size: 11px;
		}
			.sidebar.left h3 { text-transform: none; 
				font-size: 14px;
                        }

			.sidebar.left #search h3 {
				color: #b5b5b5;
				font-size: 12px;
			}

		.sidebar.right {
			margin-right: 10px;
			width: 200px;
			font-size: 11px;
		}
			.sidebar.right h3 {
				background: #0b3855;
				color: #ffffff;
				font-size: 14px;
				margin: 0;
				padding: 0 10px;
				line-height: 29px;
				height: 29px;
			}


		.sidebar.right.page {
			margin-right: 10px;
			width: 300px;
			font-size: 11px;
		}
			.sidebar.right h3 {
				background: #0b3855;
				color: #ffffff;
				font-size: 14px;
				margin: 0;
				padding: 0 10px;
				line-height: 29px;
				height: 29px;
			}

			#twitterFeed .inside { background: url('img/sidebar-twitter-feed-bg.png') no-repeat; }
			#twitterFeed p { color: #0b3855; }
			#twitterFeed span {
				color: #b5b5b5;
				display: block;
			}
			#twitterFeed h3 {
				background: transparent url('img/twitter.png') no-repeat;
				height: 16px;
				margin-bottom: 10px;
				padding: 0;
				text-indent: -9999px;
			}
		.sidebar p { margin: 0 0 1em 0; }
		.sidebar .inside {
			padding: 10px;
		}
			.sidebar .inside .zzzz { padding-top: 20px; }
		.sidebar .section {
			margin-bottom: 30px;
			position: relative;
		}
			.sidebar .section .inside {
				background: url('img/sidebar-inside-bg.png') repeat-x;
				min-height: 100px;
			}
			#zzzzClock {
				position: absolute;
				top: 0;
				right: 5px;
			}
			#links {
				margin-left: -20px;
				margin-right: -10px;
			}
				#links a {
					display: block;
					text-align: center;
				}
#footer {
	font-size: 11px;
	padding: 0 10px;
	margin-top: 1.62em;
	margin-left:400px;
}
	#footer ul li { margin-right: 1em; }

.wp-caption {
border: 1px solid #ddd;
text-align: center;
background-color: #f3f3f3;
padding-top: 1px;
margin: 5px;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}

.wp-caption img {
margin: 0;
padding: 0;
border: 0 none;
}

.wp-caption p.wp-caption-text {
font-size: 11px;
line-height: 17px;
padding: 0 4px 5px;
margin: 0;
}

#sb-list {
padding: 0 0 0 15px;
}

#socialmediaicons {
padding: 10px 0 0 175px;
}


#stories-box {
	margin:0 0 0 5px;
	float:left;
	width:394px;
	height:264px;
	background: url(img/bedtime.gif) 0 0 no-repeat;
}
#stories-box object, #stories-box embed {
	z-index: 1;
}
#bedtime-button {
	height:50px;
	margin-left:195px;
	margin-top:200px;
	position:absolute;
	width:78px;
}
#stories-button {
	display:block;
	height:50px;
	margin-left:289px;
	margin-top:200px;
	position:absolute;
	width:78px;
	z-index:1000;
	text-indent: -9999em;
	line-height: 0;
	font-size: 0;
	/* background: url(img/bedtime-button.gif) 0 0 no-repeat black; */
}
div#book-outer-wrapper {
	height:515px;
	overflow:hidden;
	width:850px;
	background: black;
}
div#book-wrapper {
	left:-31px;
	position:relative;
	top:-26px;
	z-index: 20000;
}

.aligncenter, div.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.alignleft {
	float: left;
}
.alignright {
	float: right;
}
.wp-caption {
	background-color: #f3f3f3;
	border: 1px solid #ddd;
	-khtml-border-radius: 3px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px; /* optional rounded corners for browsers that support it */
	margin: 10px;
	padding-top: 4px;
	text-align: center;
}
.wp-caption img {
	border: 0 none;
	margin: 0;
	padding: 0;
}
.wp-caption p.wp-caption-text {
	font-size: 11px;
	line-height: 17px;
	margin: 0;
	padding: 0 4px 5px;
}

.nivo-caption p {
    color: #ffffff
    font: 11px;
    line-height: 15px;
}
