/* General HTML elements
------------------------------------ */

body {
	background-color: #534106;
	color: #b9b093;
	font-family: 'helvetica neue', helvetica, arial, sans-serif;
	font-size: 12px;
	line-height: 1.6em;
	margin: 0;
	padding: 0;
	
	text-shadow: rgba(0,0,0,0.33) 1px 1px 2px; /* Adds a slight shadow to all text in Safari */
}

h1, h2, h3 {
	color: #ffffff;
	font-weight: bold;
	margin: 0;
	padding: 0;
}

h1 {
	font-size: 1.96em;
	line-height: 1em;
	margin-bottom: 0.4em;
	margin-top: 1em;
}

h2 {
	font-size: 1.4em;	
	line-height: 1em;
	margin-top: 1em;
}

h3 {
	font-size: 1em;
	line-height: 1em;
	margin-top: 1em;
}

/* Links */

a:link {
	color: #e5b517;
}

a:visited {
	color: #9d7b0f;
}

a:hover {
	color: #ffc300;
}

/* Image links */
a img {
	border: none;
	vertical-align: bottom;
}

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

ul {
	margin-left: 0;
	padding-left: 0;
}

li {
	margin-left: 1.4em;	
}

/* Forms 
------------------------------------ */
fieldset {
	background-color: #64501A;
	border: 2px solid #443505;
	margin-top: 1em;
	padding: 1em;
	-moz-border-radius: 1em;
	-webkit-border-radius: 1em;
}

legend {
	background-color: #443505;
	padding: 0 0.5em;
	-moz-border-radius: 0.5em;
	-webkit-border-radius: 0.5em;
}

label {
	font-weight: bold;
}

textarea {
	height: 10em;
	width: 35em;
}

input[type=text] {
	width: 35em;
}

form table th,
form table td {
	padding: 0.5em;
	vertical-align: top;
}

form table th {
	padding-right: 1em;
	text-align: right;
	width: 10em;
}

div.buttons {
	padding: 1em 0 1em 12.5em;	
}

fieldset div.buttons {
	padding: 1em 0 1em 14em;
}

/* Errors */
#errorExplanation {
	border: 2px solid #851919;
	color: #851919;

	-moz-border-radius: 1em;
	-webkit-border-radius: 1em;
}

#errorExplanation h2 {
	background-color: #851919;
	margin: 0;
	padding: 0.5em 1em;
}

#errorExplanation p, 
#errorExplanation ul {
	color: #ffffff;
	margin: 1em;
}

.fieldWithErrors {
	background-color: #851919;
}

/* Flash messages
------------------------------------ */

#flash .container {
	font-weight: bold;
	padding: 0.5em 0;
	text-align: center;
	text-shadow: none;
}

#flash.message {
	background-color: #334118;
	color: #c8ff5e;
}

#flash.error {
	background-color: #851919;
	color: #ffffff;
}

#flash.notice {
	background-color: #f2f279;
	color: #54542a;
}


/* Quotes
------------------------------------ */

#quote {
	background-color: #747f3b;
	color: #dcdfce;
	padding: 1.4em 10em;
	text-align: center;
}

#quote .container {
	text-align: center;
}

#quote a {
	color: #ffffff;
	padding: 0.2em 0;
	text-decoration: none;
}

#quote a:hover {
	text-decoration: underline;
}

.quote {
	border-top: 1px solid #443505;
	margin-top: 1em;
	overflow: auto;
	padding: 1em 2.8em;
}

.quote div.container {
	float: left;
	width: 85%;
}

.quote blockquote,
#quote .container {
	font-family: palatino, 'palatino linotype', georgia, 'times new roman', serif;
	font-size: 1.96em;
	font-style: italic;
	line-height: 1.4em;
	margin: 0;
	padding: 0;
}

.quote .manage {
	overflow: hidden;
	float: right;
	text-align: center;
	width: 12%;
}

.quote .favourites {
	background-color: #443505;
	padding: 0.5em;
	-moz-border-radius: 0.5em;
	-webkit-border-radius: 0.5em;
}

.quote .favourites .count {
	font-size: 1.96em;
}

.quote a {
	background-position: 0 0%;
	background-repeat: no-repeat;
}

.quote a.add {
	background-image: url(/images/add.png);
	padding-left: 20px;
}

.quote a.remove {
	background-image: url(/images/delete.png);
	padding-left: 20px;
}

blockquote a {
	padding: 0.2em 0;
}

blockquote a:link {
	color: #dcdfce;  
	text-decoration: none;
}

blockquote a:visited {
	color: #dcdfce;  
	text-decoration: none;
}

blockquote a:hover {
	color: #ffffff;  
	text-decoration: underline;
}

.quote .tags {
	margin-top: 1em;
}

.quote .tag a {
	background-color: #b9b093;
	color: #333333;
	padding: 0.25em 1em;
	text-decoration: none;

	text-shadow: rgba(255,255,255,0.5) 1px 1px 1px;
}

.quote .tag a:hover {
	background-color: #ffc300;
}

.tag:first-child a {
	-moz-border-radius-bottomleft: 0.7em;
	-moz-border-radius-topleft: 0.7em;
	-webkit-border-bottom-left-radius: 0.7em;
	-webkit-border-top-left-radius: 0.7em;
}

.tag:last-child a {
	-moz-border-radius-bottomright: 0.7em;
	-moz-border-radius-topright: 0.7em;
	-webkit-border-bottom-right-radius: 0.7em;
	-webkit-border-top-right-radius: 0.7em;
}


/* Pagination
------------------------------------ */

.pagination {
	text-align: center;
}


/* Homepage tag list
------------------------------------ */

ul.popular.tags li {
	border-top: 1px solid #443505;	
	overflow: hidden;
	margin: 0;
	position: relative;
}

ul.popular.tags li a {
	display: block;
	padding: 0.5em 0;
}

ul.popular.tags li .count {
	background-color: #443505;
	padding: 0 0.5em;
	position: absolute;
	right: 0;
	top: 0.5em;
	-moz-border-radius: 0.5em;
	-webkit-border-radius: 0.5em;
}



/* Layout structure
------------------------------------ */

.container {
	margin-left: auto;
	margin-right: auto;
	max-width: 1200px;
	width: 95%;
}

#header {
	background: #5c6fa3 url(/images/blue_sky.gif) 0 100% repeat-x;
	color: #d6dbe8;
	overflow: hidden;
	padding: 2.1em 0;
}

#header a {
	color: #ffffff;
	text-decoration: none;
}

#header .site {
	background: url(/images/quotagious.png) 0 100% no-repeat;
	padding-left: 50px;
	float: left;
}

#header #logo {
	font-weight: bold;
}

#header .navigation {
	float: left;
	margin: 0;
	padding: 0;
}

#header .user {
	float: right;
	text-align: right;
}

#header .user .navigation {
	float: right;
}

#header .navigation li  {
	display: inline;
	margin: 0;
}

#header .navigation li a {
	background-color: #8593ba;
	padding: 0.25em 1em;
}

#header .navigation li:first-child a {
	-moz-border-radius-bottomleft: 0.7em;
	-moz-border-radius-topleft: 0.7em;
	-webkit-border-bottom-left-radius: 0.7em;
	-webkit-border-top-left-radius: 0.7em;
}

#header .navigation li:last-child a {
	-moz-border-radius-bottomright: 0.7em;
	-moz-border-radius-topright: 0.7em;
	-webkit-border-bottom-right-radius: 0.7em;
	-webkit-border-top-right-radius: 0.7em;
}

#header li a {
	padding: 0.5em;
}

#header .navigation a:hover {
	background-color: #ffffff;
	color: #5c6fa3;
}

#contents {
	background: url(/images/contents_shadow.gif) 0 0 repeat-x;
	min-height: 100px;
	overflow: auto;
	padding: 0 0 1.4em 0;
}

/* Contents and sidebar */

.contents {
	float: left;
	width: 80%;
}

.sidebar {
	float: right;
	width: 15%;
}

#footer .container {
	border-top: 1px solid #443505;
	margin-top: 1em;
	padding: 1em 0;
	text-align: center;
}


.columns {
	margin-bottom: 1.4em;
	margin-top: 1.4em;
	overflow: auto;
}

.column {
	float: left;
	margin-bottom: 1em;
	margin-left: 3%;
	margin-right: 3%;
	width: 27%;
}

.column form {
	margin-top: 1em;
}

.column #openid_url {
	width: 95%;
}


/* About: Tools */
.bookmarklet a {
	background-color: #443505;
	color: #ffffff;
	display: block;
	font-weight: bold;
	margin-left: auto;
	margin-right: auto;
	padding: 0.5em;
	text-align: center;
	width: 15em;
	
	text-shadow: #000000 1px 1px 2px;
	
	-moz-border-radius: 1em;
	-webkit-border-radius: 1em;
}


.hTagcloud .popularity 		{ margin:0; padding:0; }
.hTagcloud .popularity li	{ display:inline; text-decoration:none; }
.hTagcloud .popularity .popular				{ font-size:1.0em; }
.hTagcloud .popularity .v-popular 		{ font-size:1.2em; }
.hTagcloud .popularity .vv-popular 		{ font-size:1.4em; }
.hTagcloud .popularity .vvv-popular		{ font-size:1.6em; }
.hTagcloud .popularity .vvvv-popular	{ font-size:1.8em; }