/*
Theme Name: Pharma
Theme URI: http://www.pharmacopoeia-art.net/
Description: The theme for the Pharmacopoeia-Art website.
Version: 1.0
Author: Leo Critchley
Author URI: http://leo.critchley.name/
Tags: white, fixed width, one column, widgets
*/






/* General typography and layout. ****************************************************/

html
{
	overflow-y: scroll; /* Always show a scrollbar, to prevent 'popping' when moving between pages with and without overflow. */
}

body
{
	font-family: Arial, Helvetica, sans-serif;
	font-size: 100%; /* Fix IE re-sizing problem. */
	line-height: 1.5em; /* For general legibility. */
	background-color: white;
	margin: 0 10px;
	padding: 0;
	behavior:url("http://www.pharmacopoeia-art.net/wp-content/themes/pharma/csshover.htc"); /* Fix IE 5/6 :hover behaviour. */
}

img
{
	display: block;
}

/* Need this workaround in somewhere so that other browsers take their sizes correctly in pixels.
<!--[if !IE]>-->

body
{
    font-size:16px;
}

<!--<[endif]-->
*/

#page
{
	font-size: 0.8em; /* 16px * 0.75em = 12px */
	width: 900px;
	margin-left: auto;
	margin-right: auto;
}

p,
table
{
	font-family: Georgia, "Times New Roman", serif;
}

a, img
{
	border: 0;
}

hr
{
	clear: both;
	margin: 0px;
	padding: 0px;
	line-height: 0px;
	height: 1px;
	color: #aaaaaa;
	background-color: #aaaaaa;
	border: none;
}







/* Links. ****************************************************/

a:link
{
	color: #3980c1;
	text-decoration: none;
}

a:visited
{
	color: #9385d0;
	text-decoration: none;
}

a:hover
{
	text-decoration: underline;
}

a:active
{
	color: red;
}







/* Headings. ****************************************************/

h1
{
	font-weight: normal;
	color: #3980c1;
}

h2
{
	font-weight: normal;
	font-size: 1.5em;
	color: #3980c1;
	margin-top: 15px;
	margin-bottom: 20px;
	line-height: 25px;
}

h3
{
	font-weight: normal;
	margin-bottom: 0px;
	color: #3980c1;
}

h3.subtitle {
	margin-top: -15px;
	margin-bottom: 15px;
}

h4
{
	border-top: 3px double #aaaaaa;
	border-bottom: 1px solid #aaaaaa;
	margin-bottom: -1px;
}

h5
{
	color: #3980c1;
	margin-top: 0px;
	padding-top: 0px;
}







/* Tables. ****************************************************/
td
{
	padding: 0 0.5em;
	font-size: 90%;
}

#content .post table
{
	margin-right: 0;
}





/* Blockquotes. ****************************************************/
blockquote
{
	margin: 1em 40px;
}

/* Source */
blockquote strong
{
	display: block;
	position: relative;
	width: 90%;
	left: 10%;
	text-align: right;
	color: #666666;
	margin-top: 0.5em;
	font-size: 90%;
}

/* Remove the 40px margin given by blockquote from the spacing. */
#content blockquote img.alignleft
{
	right: 390px;
	margin-left: -390px;
}




/* Header / Sidebar / Footer ****************************************************/

#header
{
	line-height: 25px;
	height: 50px;
	width: 400px;
	float: left;
	z-index: 101; /* In front of the menus. */
}

#sidebar
{
	/*background-color: #bbeebb;
	border: 2px solid #00aa00;*/
	font-size: 0.857em; /* 14px * 0.857 ~= 12px */
	float: left;
}

#searchForm
{
	float: left;
	line-height: 3em;
}

#footer
{
	/*background-color: #eebbee;
	border: 2px solid #aa00aa;*/
	font-size: 0.857em; /* 14px * 0.857 ~= 12px */
	float: right;
	margin-bottom: 5px;
}

#footer p
{
	font-family: Arial, Helvetica, sans-serif;
	margin: 0;
	line-height: 3em;
}

/* Remove list formatting and float the admin links so they form a row. */
/* remove all the bullets, borders and padding from the default list styling */
ul#admin
{
	padding:0;
	margin:0;
	list-style-type:none;
	list-style:none;
	float: left;
	line-height: 3em;
}

ul#admin li
{
	float:left;
	position:relative;
	padding-left: 10px;
}






/* Default content layout. ****************************************************/

#content
{
/* 	background-color: #DDDDDD; */
	position: relative;
	left: 400px;
	width: 410px;
	padding-left: 10px;
	padding-right: 80px;
}

#content .post
{
/* 	background-color: silver; */
	border-top: 1px solid #aaaaaa;
}

.single #content .post
{
	border-top: none;
}

#content .banner
{
	position: relative;
	left: -410px;
	width: 900px;
}

#content .banner p
{
	margin: 10px;
}

/* Pad images */
#content img.alignright
{
	float: right;
	position: relative;
	top: -54px;
	margin-left: 10px;
	margin-bottom: -54px;
}

#content img.alignleft
{
	float: right;
	position: relative;
	right: 430px;
	margin-left: -430px;
	clear: right;
}

#content .thumbnail
{
	float: left;
	margin-left: -170px;
	clear: left;
}

#content .summary
{
	min-height: 150px;
}

#content small.date
{
	float: right;
	color: black;
	font-style: italic;
}

#content .secondaryCategory
{
/* 	background-color: yellow; */
	position: absolute;
	top: 0;
	left: -400px;
	width: 300px;
}

#content .secondaryCategory h2
{
	margin-top: 0px;
}

#content .oneLiner h3
{
	margin-bottom: 0px;
}

#content .oneLiner p
{
	margin-top: 0px;
}

#content .oneLiner .date
{
	display: none;
}





/* 'noDate' content layout. ****************************************************/

#content.noDate .date
{
	display: none;
}





/* 'swapColumns' content layout. ****************************************************/

#content.swapColumns
{
	position: relative;
	left: 0px;
	width: 380px;
	padding-left: 0px;
	padding-right: 20px;
}

#content.swapColumns .banner
{
	position: relative;
	left: 0px;
}

#content.swapColumns img.alignright
{
	float: left;
	position: static;
	right: 0px;
	margin-left: 0px;
	margin-bottom: 0px;
}

#content.swapColumns img.alignleft
{
	float: right;
	position: relative;
	left: 520px;
	margin-left: -500px;
	margin-right: 0; /* Reset regular #content img.alignleft */
	top: -60px; /* Total height of H2 */
	margin-bottom: -60px; /* Total height of H2 */
	right: 0px;
}

#content.swapColumns .thumbnail
{
	float: right;
	margin-right: -170px;
	clear: right;
}

#content.swapColumns .secondaryCategory
{
	position: absolute;
	top: 0;
	left: 600px;
	width: 300px;
}






/* 'fullWidth' content layout. ****************************************************/

#content.fullWidth
{
	position: relative;
	left: 0px;
	width: 900px;
	padding-left: 0px;
	padding-right: 0px;
}

#content.fullWidth .banner
{
	left: 0px;
}

#content.fullWidth img.alignright
{
	float: right;
	position: absolute;
	right: 0px;
	margin-left: 0px;
	margin-bottom: 0px;
}

#content.fullWidth img.alignleft
{
	float: left;
	position: relative;
	left: 0px;
	margin-left: 0px;
	margin-right: 0; /* Reset regular #content img.alignleft */
	right: 0px;
}

#content.fullWidth .post
{
	width: 279px;
	height: 150px;
	overflow: hidden;
	border-left: 1px solid #aaaaaa;
	border-right: 1px solid #aaaaaa;
	border-top: none;
	margin-top: 10px;
	margin-left: -1px;
	margin-bottom: 10px;
	padding: 10px;
	float: left;
}

#content.fullWidth h3
{
	margin-top: 0px;
}

#content.fullWidth .thumbnail
{
	float: left;
	margin-left: 0px;
	margin-right: 10px;
	clear: left;
}

#content.fullWidth .thumbnail img
{
	width: 50px;
	height: 50px;
}

#content.fullWidth .summary
{
	min-height: 0px;
}

#content.fullWidth #tagline
{
	position: absolute;
	bottom: 7px;
	left: 10px;
	font-size: 20px;
	color: white;
	text-shadow: 1px 1px 3px black;
}






/* 'thumbnails' content layout. ****************************************************/

#content.thumbnails
{
	padding-right: 0px;
/*
	background-color: #eebbbb;
	border: 2px solid #aa0000;
*/
	width: 520px;
/* 	padding-bottom: 30px; */
	position: relative;
}

#content.thumbnails .post
{
	float: left;
	padding-top: 10px;
	padding-bottom: 10px;
	padding-right: 20px;
	border-top: none;
}

#content.thumbnails .thumbnail
{
	float: none;
	margin-left: 0px;
	left: auto;
}

.thumbnails .summary
{
	position: absolute;
	left: -390px; /* Positioned absolutely within the next relative block (#content) */
	margin-top: -165px;
	width: 250px;
	display: none;
}

.thumbnails .post:hover .summary
{
	display: block;
}

.thumbnails small
{
	clear: both;
	float: left;
}

.thumbnails .date
{
	display: none;
}







/* Home page content layout. ****************************************************/
.home .date
{
	display: none;
}

.home .summary h5
{
	margin-top: 19px;
	margin-bottom: 0px;
	line-height: 10px;
}

.home .summary hr
{
	background-color: white;
	border: none;
}






/* For the pill viewer in 'Which Ones Have You Taken?'. ****************************************************/
#Pills
{
	width: 900px;
	height: 57px;
	background-image: url("http://www.pharmacopoeia-art.net/wp-content/pharma-pills/b_whole.jpg");
}

#Pills img
{
	float: left;
	margin: 0px;
}

#PillViewer
{
	position: relative;
	top: 0;
	left: 0;
	margin-right: 20px;
}

.PillInfo, #PillViewer img
{
	display: block;
	float: left;
	clear: both;
	margin-right: -300px;
}




/* Adjustment to 'Gretel' banner images. ****************************************************/
.postid-1137 .banner img
{
	display: inline;
}

/* Adjustment to 'Wieg tot Graf' - 'Woman's Story' image. ****************************************************/
.page-id-980 .wp-image-1119
{
	margin-top: 10px;
}




/* The menu. ****************************************************/

	div.testMenu ul,div.testMenu li,div.testMenu a {
		display:block;
		margin:0;
		padding:0;
		border:0;
	}

	div.testMenu ul {
		width:150px;
		border:1px solid #9d9da1;
		background:white;
		list-style:none;
	}

	div.testMenu li {
		position:relative;
		padding:1px;
		padding-left:26px;
		background:url("images/item_moz.gif") no-repeat;
		z-index:9;
	}
		div.testMenu li.folder	{ background:url("images/item_folder.gif") no-repeat; }
		div.testMenu li.folder ul {
			position:absolute;
			left:120px; /* IE */
			top:5px;
		}		
			div.testMenu li.folder>ul { left:140px; } /* others */

	div.testMenu a {
		padding:2px;
		border:1px solid white;
		text-decoration:none;
		color:gray;
		font-weight:bold;
		width:100%; /* IE */
	}
		div.testMenu li>a { width:auto; } /* others */

	div.testMenu li a.submenu {
		background:url("images/sub.gif") right no-repeat;
	}

	/* regular hovers */

	div.testMenu a:hover {
		border-color:gray;
		background-color:#bbb7c7;
		color:black;
	}
		div.testMenu li.folder a:hover {
			background-color:#bbb7c7;
		}
	
	/* hovers with specificity */
	
	div.testMenu li.folder:hover { z-index:10; }		
		
	div.testMenu ul ul, div.testMenu li:hover ul ul {
		display:none;
	}

	div.testMenu li:hover ul, div.testMenu li:hover li:hover ul {
		display:block;
	}