/* @override 
	http://localhost/~jiho/work/css/ilford.css
	http://jo.irisson.com/css/ilford.css
*/

/*

	An homage to the Ilford Multigrade Fiber photographic paper

	This paper gives some soft, warm grey tones that I love(d). hopefully the greys in the theme should give the same feelings. It also comes in two kinds which are identified by yellow and pink labels on a green background. The colors are kept here and the dominating hue is yellowish.

	Ref.: http://www.ilfordphoto.com/products/product.asp?n=26&t=Photographic+Papers

*/

/* Page structure:

#page
	#header
		h1 .title
		p .description
		div .dropmenu
			ul
			
	#primary
		#primary
		h1, p, h2, ...
		#secondary
			div .widget
			...
	
#footer
		
*/

/* Reset CSS */
/* http://meyerweb.com/eric/tools/css/reset/ */
/* v1.0 | 20080212 */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0px;
	padding: 0px;
}


/* @group Typography */

body {
	font-size: 11px;
	font-family: Verdana, "DejaVu Sans", "Bitstream Vera Sans", sans-serif;
	text-align: left;
}

strong, em, b, i {
	font-family: Verdana, "DejaVu Sans", "Bitstream Vera Sans", sans-serif;
}

#content {
	font-size: 1em;
	line-height: 1.7em; 
}

h1, h2, h3, h4, h5, h6 {
	font-family: Georgia, "DejaVu Serif", "Bitstream Vera Serif", serif;
	font-weight: normal;
}

code, pre {
	font-size: 1em;
	font-family: "DejaVu Sans Mono", "Bitstream Vera Mono", Monaco, "Courier New", Courier, monospace;
}

/* @end */


/* @group Page layout */

html {
	/* cf. http://www.hicksdesign.co.uk/journal/forcing-scrollbars-now-even-better */
	height: 100%;
	margin-bottom: 1px;
}

#page {
	/* match the size of the header image */
	width: 730px;
	/* center page */
	margin: 0 auto;
	/* force the page to start at the top */
	padding-top: 1px;
	border: 1px solid;
	border-top: none;
}

#header {
	position: relative;
	margin-top: 20px;
	/* match the size of the header image */
	height: 160px;
}

#content {
  padding: 30px;
}

#primary{
	width: 480px;
	display: inline;
	float: left;
	position: relative;
}

#secondary {
	width: 170px;
	margin-left: 20px;
	display: inline;
	position: relative;
	float: left;
}

/* Allows to "close" the page while using floats above */
.clear {
	clear: both;
	padding-bottom: 30px;
}

/* @end */


/* @group General style and colors */

body {
	/* light gray */
	background-color: #ccc;
	/* dark gray */
	color: #333;
	text-align: left;
}

#page {
	background: white;	
	border-color: #888;
}

a, a:visited {
	color: #888;
	text-decoration: none;
}

a:hover {
	/* yellow */
	color: #cb4;
}

a:visited:hover {
	/* pink */
	color: #c6a;
}

input[type=text], textarea {
	padding: 3px;
	margin: 0;
	border: 1px solid #AAA;
	/* NB: because the border is not antialiased, the gray has to be a bit lighter than the link grey to actually appear the same color */
	color: #888;
}

input[type=text]:focus, textarea:focus {
	color: #333;
}

/* code block */
pre {
	padding-top: 0.7em;
	padding-bottom: 0.7em;
	padding-right: 0.5em;
	background-color: #ddd;
	border: none;
}

/* quote block */
blockquote {
	background: none;
	border-left: 1em solid ;
	padding-right: 2em !important;
	padding-left: 1em !important;
	border-color: #ddd;
}

/* horizontal ruler */
hr {
	display: block !important;
	background-color: #888;
	color: #888;
	border: none;
	width: 80%;
	height: 1px;
	margin: 2em auto;
}

/* immages */
img {
	margin: 0.5em;
	border: none;
}

/* @end */


/* @group Text Layout */
h1 { 
	font-size: 1.8em;
}

h2 {
	font-size: 1.6em;
}

h3 {
	font-size: 1.4em;
}

h4 {
	font-size: 1.2em;
}

h5 {
	font-size: 1.1em;
}

h6 {
	font-size: 1em;
	font-style: italic;
}

#content h1, h2, h3 {
	letter-spacing: 1px;
}

#content h1, h2, h3, h4, h5, h6 {
	margin-bottom: 8px;
}

#content h2, h3, h4, h5, h6 {
	margin-top: 1.6em;
}

#primary p,
#primary ul,
#primary ol,
#primary dl,
#primary dt,
#primary blockquote {
	margin-top: 1em;
}



/* nested lists */
#primary li > ul,
#primary li > ol,
#primary li > dl,
#primary dd > ul,
#primary dd > ol,
#primary dd > dl {
	margin-top: 0em;
}

/* paragraphs nested in lists */
#primary li > p,
#primary dd > p {
	margin-top: 0;
	margin-bottom: 0.5em;
}

/* list following paragraphs: no top margin */
/* not supported by IE */
#primary p + ul,
#primary p + ol,
#primary p + dl {
	margin-top: 0;
}

#primary ol,
#primary ul,
#primary dd,
#primary blockquote,
#primary pre {
	padding-left: 2em;
}

#primary ul,
#primary ol {
	list-style-position: outside;
	list-style-type: square;
}

#primary dt {
	font-weight: bold;
}

/* @end */


/* @group Header */

#header {
	background-color: #333;
	text-indent: 30px;
}

/* page title */
h1.title {
	font-size: 2.3em;
	font-weight: normal;
	padding-top: 50px;
	margin: 0px;
	text-shadow: black 0 0 5px;
	letter-spacing: 1px;
}

h1.title a,  h1.title a:hover, h1.title a:visited, h1.title a:visited:hover {
	color: white;
}

#header p.description {
	margin-top: 1em;
	color: white;
	font-style: italic;
	text-shadow: black 0 0 5px;
}

/* @end */


/* @group Footer */

#footer {
	text-align: center;
	margin: 30px 0 30px 0;
}

#footer p {
	margin-bottom: 1em;
}

/* @end */


/* @group Secondary */

#secondary h1 {
	font-size: 1.8em;
}

#secondary p {
	margin: 1em 0;
}

#secondary input {
	width: 95%;
}

/* @end */


/* @group Misc. Tags and Classes */

/* aligned images */
.aligncenter, img.center, img[align="center"] {
	display: block;
	margin-left: auto !important;
	margin-right: auto !important;
}
	
.alignright, img[align="right"] {
	float: right;
	margin-left: 1em !important;
	margin-right: 0 !important;
	display: block;
}

.alignleft, img[align="left"] {
	float: left;
	margin-left: 0 !important;
	margin-right: 1em !important;
	display: block;
}

/* image with a border */
img.border {
	padding: 2px;
	border: 1px solid #ccc;
}

/* inline image with no margin/border */
img.noborder {
	margin: 0px;
	padding: 0px;
	border: none;
}

/* image with a reflection */
.reflect img {
	margin: 0px !important;
}
.reflect {
	margin: 0.5em;
}

/* link with a french flag */
a.fr {
	background: url('../images/flag_france_small.png') center right no-repeat;
	padding-right: 9px;
}

/* bibliography list: inverse indentation */
#primary .biblio ul {
	list-style-type: none;
	list-style-position: outside;
	text-indent: -2em;
}

/* Block with a coloured background */
.alert {
	background: #EEE7A8;
	border-top: 2px solid #cb4;
	border-bottom: 2px solid #cb4;
	text-align: center;
	padding: 5px 20px;
}

div.alert p,
div.alert ul,
div.alert ol,
div.alert dl,
div.alert div {
	margin-top: 1em !important;
	margin-bottom: 1em !important;
}

/* @end */
