/*
Theme Name: Random River Wordpress Theme
Theme URI: http://www.randomriver.net/
Description: A basic WordPress theme to start the ball rolling on new WP themes.
Version: 1.0
Author: Chris Dicken
Author URI: http://www.randomriver.net/
Tags: basic, customisable, flexible
*/



/* Basic Layout Elements */
body {
	background: #e7e9d3;
	font:12px/1.5 "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
	color: #000;
	}

h1, h2, p, li {
	padding: 0;
	margin: 0;
}

p {
	padding-bottom: 1em;
}

h1 {
	font-size: 20px;
	padding: 0.5em 0;
}

h2, h3 {
	font-size: 18px;
	padding-bottom: 0.5em;
}

a {
	color: #7a7c62;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

#container {
	width: 773px;
	margin: 5px auto;
	background: white url(main-bg.jpg);
}

#header {
	height: 148px;
	background: url('header.png');
}

#header h1 {
	font-size: 14px;
	line-height: 1.3em;
	font-weight: normal;
	color: white;
	width: 370px;
	padding: 106px 0 0 30px;
}

#main {
	padding: 0 8px 0 5px;
}

#sidebar-left {
	width: 197px;
	height: 440px;
	background: url('sidebar-bg.jpg');
	float: left;
}

#bulk {
	float: left;
	width: 490px;
	margin: 20px 20px;
}

#footer {
	background: url('footer.png') bottom no-repeat;
	padding: 15px 20px;
	text-align: right;
	clear: both;
}

#footer a {
	color: #989a84;
}

.buy-link-bg {
	background: url('buy-book-on.gif');	
	margin: 30px auto 0 auto;
	width: 159px;
	height: 39px;
}

a.buy-link {
	display: block;
	width: 159px;
	height: 39px;
	background: url('buy-book.gif');

}

a.buy-link:hover {
	background: url('buy-book-on.gif');
}

.hidden-link {
	display: none;
}
ul.registration {
	margin: 0;
	padding: 0;
	list-style: none;
	padding-top: 20px;
}

.sidebar h2 {
	font-size: 14px;
	line-height: 1.2em;
	color: #989A84;
	margin-top: 30px;
}


.sidebar ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sidebar strong {
	font-weight: normal;
}




/* Posts -------------------------------*/

#content {
	padding: 0 20px;
}

.post {
	margin: 0 0 40px;
	text-align: justify;
	}

.postmetadata {
	padding-top: 5px;
	clear: both;
	}

.postmetadata ul, .postmetadata li {
	display: inline;
	list-style-type: none;
	list-style-image: none;
	}

.smallattachment {
	text-align: center;
	float: left;
	width: 128px;
	margin: 5px 5px 5px 0px;
}

.attachment {
	text-align: center;
	margin: 5px 0px;
}

.clear {
	clear: both;
}

.entry ul, .entry ul {
	margin-left: 0px;
	padding: 0 0 0 30px;
	list-style: none;
	padding-left: 10px;
}

/* Images ----------------------------- */

p img {
	padding: 0;
	max-width: 100%;
	}

img.centered {
	display: block;
	margin-left: auto;
	margin-right: auto;
	}

img.alignright {
	padding: 4px;
	margin: 0 0 2px 7px;
	display: inline;
	}

img.alignleft {
	padding: 4px;
	margin: 0 7px 2px 0;
	display: inline;
	}

.alignright {
	float: right;
	}

.alignleft {
	float: left;
	}


/* Lists --------------------- */

.menu-padding {
	padding: 20px;
}


/* All <ul> tags in the menu including the first level */
.menulist, .menulist ul {
	margin: 0;
	padding: 0;
	width: 157px;
	list-style: none;
}

/*
 Submenus (<ul> tags) are hidden and absolutely positioned across from their parent.
 They don't *have* to touch their parent menus, but is' a good idea as CSS-only fallback
 mode requires menus to touch/overlap (when JS is disabled in the browser).
*/
.menulist ul {
	display: none;
	position: absolute;
	top: -1px;
	left: 155px;
}

/*
 All menu items (<li> tags) are relatively positioned to correctly offset their submenus.
 They have borders that are slightly overlaid on one another to avoid doubling up.
*/
.menulist li {
	position: relative;
	border: 1px solid #f5f6f0;
	background: #e7e9d3;
	margin-bottom: -1px;
}
.menulist ul>li:last-child {
	margin-bottom: 1px; /* Mozilla fix */
}

/* Links inside the menu */
.menulist a {
	display: block;
	color: #989a84;
	text-decoration: none;
	font-weight: bold;
	font-size: 14px;
	padding: 5px;
	background: #e7e9d3 none;
}

/*
 Lit items: 'hover' is mouseover, 'highlighted' are parent items to visible menus.
*/
.menulist a:hover, .menulist a.highlighted:hover, .menulist a:focus {
	color: white;
	text-decoration: none;
	background: #bcbfa4;
}
.menulist a.highlighted {
	color: white;
	text-decoration: none;
	background: #bcbfa4;
}

/*
 If you want per-item background images in your menu items, here's how to do it.
 1) Assign a unique ID tag to each link in your menu, like so: <a id="xyz" href="#">
 2) Copy and paste these next lines for each link you want to have an image:
    .menulist a#xyz {
      background-image: url(out.gif);
    }
    .menulist a#xyz:hover, .menulist a.highlighted#xyz, .menulist a:focus {
     background-image: url(over.gif);
    }
*/


/* 'subind' submenu indicators, which are automatically prepended to 'A' tag contents. */
.menulist a .subind {
	float: right;
}

/*
 HACKS: IE/Win:
 A small height on <li> and <a> tags and floating prevents gaps in menu.
 * html affects <=IE6 and *:first-child+html affects IE7.
 You may want to move these to browser-specific style sheets.
*/
*:first-child+html .menulist li {
 float: left;
 width: 100%;
}

* html .menulist li {
 float: left;
 height: 1%;
}
* html .menulist a {
 height: 1%;
}
/* End Hacks */


.menulist li.page-item-17 {
	margin-top: 40px;
}

.menulist li.current_page_item a {
	display: block;
	color: white;
	text-decoration: none;
	font-weight: bold;
	font-size: 14px;
	padding: 5px;
	background: #bcbfa4;
}

.menulist li.current_page_item ul a {
	display: block;
	color: #989a84;
	text-decoration: none;
	font-weight: bold;
	font-size: 14px;
	padding: 5px;
	background: #e7e9d3 none;
}

/* Form Elements ---------------------- */

#searchform {
	margin: 10px auto;
	padding: 5px 3px;
	text-align: center;
	}

#sidebar #searchform #s {
	width: 108px;
	padding: 2px;
	}

#sidebar #searchsubmit {
	padding: 1px;
	}

.entry form { /* This is mainly for password protected posts, makes them look better.
	text-align:center; */
	}

select {
	width: 130px;
	}

/* Comments ------------------------- */

#commentform input {
	width: 170px;
	padding: 2px;
	margin: 5px 5px 1px 0;
}

#commentform {
	margin: 5px 10px 0 0;
}

#commentform p {
	margin: 5px 0;
}

#commentform textarea {
	width: 500px;
	padding: 2px;
}
	
#respond:after {
		content: "."; 
	    display: block; 
	    height: 0; 
	    clear: both; 
	    visibility: hidden;
}

#commentform #submit {
	margin: 0 0 5px auto;
	float: right;
	}


.commentlist li .avatar { 
	float: right;
	border: 1px solid #eee;
	padding: 2px;
	background: #fff;
	}

.commentlist cite, .commentlist cite a {

}

.alt {
	margin: 0;
	padding: 10px;
	}

.commentlist {
	padding: 0;
	text-align: justify;
	}

.commentlist li {
	margin: 15px 0 10px;
	padding: 5px 5px 10px 10px;
	list-style: none;

	}
.commentlist li ul li { 
	margin-right: -5px;
	margin-left: 10px;
}

.commentlist p {
	margin: 10px 5px 10px 0;
}

.children {
	padding: 0;
}

.nocomments {
	text-align: center;
	margin: 0;
	padding: 0;
	}

.commentmetadata {
	margin: 0;
	display: block;
	}

/* comment threading -------------------- */

.thread-alt {
	background-color: #f8f8f8;
}

.thread-even {
	background-color: #fff;
}

.depth-1 {
	border: 1px solid #ddd;
}

.even, .alt {
	border-left: 1px solid #ddd;
}

/* Calendar ------------------------------- */

#wp-calendar {
	empty-cells: show;
	margin: 10px auto 0;
	width: 155px;
}

#wp-calendar #next a {
	padding-right: 10px;
	text-align: right;
}

#wp-calendar #prev a {
	padding-left: 10px;
	text-align: left;
}

#wp-calendar a {
	display: block;
}

#wp-calendar caption {
	text-align: center;
	width: 100%;
}

#wp-calendar td {
	padding: 3px 0;
	text-align: center;
}

#wp-calendar td.pad:hover { /* Doesn't work in IE */
	background-color: #fff;
}

/* Captions ------------------------------------------- */

.aligncenter, div.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	border: 1px solid #ddd;
	text-align: center;
	background-color: #f3f3f3;
	padding-top: 4px;
	margin: 10px;
	-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;
}

/* Various Tags & Classes ----------------------------------- */

blockquote {
	margin: 15px 30px 0 10px;
	padding-left: 20px;
	border-left: 5px solid #ddd;
	}

blockquote cite {
	margin: 5px 0 0;
	display: block;
	}

.center {
	text-align: center;
	}

.hidden {
	display: none;
	}
	
.screen-reader-text {
     position: absolute;
     left: -1000em;
}

a img {
	border: none;
	}

.navigation {
	display: block;
	text-align: center;
	margin-top: 10px;
	margin-bottom: 60px;
	}

small {
	font-size: 10px;
	display: block;
	padding-bottom: 0.5em;
	}

.sticky {
	background: #f7f7f7;
	padding: 0 10px 10px;
}

.sticky h2 {
	padding-top: 10px;
}

code {
	font: 11px 'Courier New', Courier, Fixed;
	}
