/*
Theme Name: SAICO
Theme URI: http://www.sa.org/
Author: Chad Cloman
Author URI: http://www.cloman.com/
Description: The website theme for Sexaholics Anonymous
Version: 1.0
Tags: 
Text Domain: SAICO
*/


/*************/
/* Structure */
/*************/

body {
	min-width: 600px;
	max-width: 1000px;
	min-height: 637px;  /* Sidebar height + header height + sidebar padding */
	margin: 0 auto;
	padding: 0;
}

#header {
	height: 75px;
}

#sidebar {
	float: left;
	padding: 36px 5px 26px 5px;
	margin: 0;
	width: 202px;
	overflow: visible;
	min-height: 500px;
}

#content,
#footer {
	/*
	   left margin is the sidebar width (202px) plus the sidebar
	   margins (5px + 5px) plus the desired content left margin (30px).
	*/
	padding: 0;
	margin: 46px 30px 30px 242px;
}

#footer {
	margin-top: 25px;
	margin-bottom: 15px;
}


/***********/
/* Display */
/***********/

html {
	background: #D6CC99;
}

body {
	background: #fff; 
	color: #333;
	font-family: Verdana, Helvetica, sans-serif;
}

a {
	color: #005151; 
	text-decoration: underline
}

a:active {
	color: #C60;
	text-decoration: underline
}

a:visited {
	color: #4C5EA8; 
	text-decoration: underline
}

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

input, select {
	background: #E1E4CE;
	color: #000;
	font-size: 10px;
}

input.paypal-button {
	background: #fff;
}

ol.SpacedList li,
ul.SpacedList li {
	margin-bottom: 1.75ex;
}

.underline {
	text-decoration: underline;
}


/*************************/
/* Header-specific rules */
/*************************/

#header {
	background: url("images/mast_pattern.gif") repeat-x;
}


/**************************/
/* Content-specific rules */
/* Footer-specific rules  */
/**************************/

#content,
#footer {
	text-align: left;
	font-family: Verdana, Helvetica, sans-serif;
	font-size: 8pt;
}

#content h1 {
	margin: 0 0 1.75ex 0;
	padding: 0;
	color: #004242;
	font: bold 10pt Verdana, Helvetica, sans-serif;
	text-decoration: none;
}

#content h2 {
	font: bold 9pt Verdana, Helvetica, sans-serif; 
	color: #825802;
	text-decoration: none;
	margin: 0;
	padding: .5ex 0 .5ex 0;
}

#content img {
	border: none;
}

#lang-block {
	margin: 10px 0 0 0;
}

#lang-block p {
	text-align: left;
	margin: 0;
	padding: 0;
}

#lang-block img {
	border: none;
}

#eventlist {
	margin-bottom: 25px;
}

#eventlist p {
	margin-left: 50px;
	text-indent: -35px;
}

#eventlist h2 {
	margin-top: 2.5ex;
	text-decoration: underline;
}


/*******************/
/* Download Button */
/*******************/

.button {
	background: url("images/buttons/button_phnflyer.png");
	vertical-align: top;
	text-align: left;
	height: 28px;
	width: 140px;
	display: block;
}

.button:hover {
	background-position: 0 -28px;
}

.button:active {
	background-position: 0 -56px;
}

a.button,
a.button:link,
a.button:visited,
a.button:hover,
a.button:active {
	text-decoration: none;
}

/**************************/
/* Sidebar-specific rules */
/**************************/

#sidebar {
	background: url("images/left_table_bg.gif") repeat;
	vertical-align: top;
	text-align: left;
}

#sidebar ul#selection-list li {
	position: relative;
}

#sidebar ul#selection-list a {
	display: block;
	text-decoration: none;
	color: #003535;
	font: bold 10pt Verdana, Helvetica, sans-serif; 
}

/*
Because older versions of IE don't accept the :hover
pseudo-element for anything but a link, we use some
javascript and the "hover-hack" class.
*/
#sidebar ul#selection-list li:hover ul,
#sidebar ul#selection-list li.hover-hack ul {
	display: block;
}

/* Menu list in sidebar */
/* Tier 1 menu from http://e-lusion.com/design/menu/ */

#sidebar ul#selection-list {
	width: 200px;
	border: solid 1px #003535;
	margin: 0;
	padding: 0;
	list-style: none;
}

#sidebar ul#selection-list a.tier1 {
	height: 24px;
	padding: 8px 0 0 10px;
	background: url(images/sidebar.gif);
}

#sidebar ul#selection-list a.tier1:link,
#sidebar ul#selection-list a.tier1:visited {
}
	
#sidebar ul#selection-list a.tier1:hover {
	color: #073;
	background-position: 0 -32px;
}
	
#sidebar ul#selection-list a.tier1:active {
	color: #073;
	background-position: 0 -64px;
}

/* Pop-up menus in sidebar */
/* Tier 2 menu CSS adapted from http://www.alistapart.com/articles/horizdropdowns */

#sidebar ul#selection-list ul.tier2 {
	position: absolute;
	left: 200px;
	top: 0;
	display: none;
	background: url("images/left_table_bg.gif") repeat;
	margin: 0;
	padding: 0;
	list-style: none;
	min-width: 200px;
	border-bottom: 1px solid #003535;
}

#sidebar ul#selection-list ul.tier2 li a {
	padding: 5px;
	border: 1px solid #003535;
	border-bottom: 0;
}

#sidebar ul#selection-list ul.tier2 li a:hover {
	color: #D9DFC7;
	background-image: none;
	background-color: #006045;
}

#sidebar li.spacer {
	height: 10px;
	margin: 0;
	padding: 0;
	background-color: #bbb;
}

/****************************/
/* For the literature pages */
/****************************/

.obtain-pamphlet {
	margin-top: 4ex;
	padding-top: 1ex;
	border-top: thin black solid;
	padding-bottom: 1ex;
	border-bottom: thin black solid;
	width: 300px;
}


/***********************/
/* For the Essay pages */
/***********************/

#essay {
	width: 504px;
	margin-left: 50px;
	margin-top: 25px;
}

#essay_r2_c2 {
	float: right;
}

#essay img {
	border: none;
}

div#essay-article img {
	margin: 5px 10px;
	padding: 0;
	border: thin black solid;
}

div#essay-article img.alignright {
	margin-right: 0;
	float: right;
}

div#essay-article img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

div#essay-article img.alignleft {
	margin-left: 0;
	float: left;
}

div#essay-article p {
	text-align: justify;
	font-size: 9pt;
}

div#essay-article h2 {
	text-align: center;
	margin-top: 1.5em;
	margin-bottom: .25em;
	font-size: 10pt;
}

div#essay-article h3 {
	text-align: center;
	font-size: 7pt;
	margin-top: 0;
	margin-bottom: 1.5em;
	font-weight: normal;
}

div#essay-sidebar-heading {
	text-align: center;
}

div#essay-sidebar-heading div#cover-image {
	width: 100%;
	margin: 0 0 15px 0;
}

div#essay-sidebar-heading #button_subscribe,
div#essay-sidebar-heading #button_submit,
div#essay-sidebar-heading #button_return {
	border: none;
}

div#essay-sidebar-articles {
	margin-top: 15px;
	padding-top: 0;
	border-top: thin black solid;
}

div#essay-sidebar-articles p,
div#essay-sidebar-heading p {
	padding: 0 0 8px 0;
	margin: 0 0 0 7px;
	text-indent: -7px;
	font: 10pt Verdana, Helvetica, sans-serif;
	line-height: 1.25;
}

div#essay-sidebar-articles h1 {
	color: #003535;
	font: bold 10pt Verdana, Helvetica, sans-serif; 
	letter-spacing: 1.5px;
	text-decoration: none;
	padding: 12px 0 0 0;
	margin: 0 0 1.5ex 0;
}

div#essay-sidebar-articles ul {
	margin: 0 20px;
	padding: 0;
	font-size: 8pt;
}

div#essay-sidebar-articles li {
	line-height: 1.25;
	margin-bottom: .5em;
}


/************************/
/* For the meeting list */
/************************/

table.three-columns td {
	padding: 8px 15px 0 0;
	margin: 0;
	min-width: 15em;
}

#content h1.mtgheader {
	padding-bottom: 5px;
	margin-bottom: 20px;
	border-bottom: #005151 2px solid;
	display: inline;
	text-transform: capitalize;
}

#mtgheaderbox {
	display: block;
	margin-bottom: 25px;
}

div#mtglist-disclaimers {
	padding-top: 4ex;
}

table#uk-meetings th,
table#uk-meetings td {
	padding-left: .25em;
	padding-right: .25em;
}

table#uk-meetings thead tr {
	background-color: #ccc;
}

table#uk-meetings th {
	font-weight: bold;
	text-align: center;
}

/***********************/
/* For the disclaimers */
/***********************/

div.disclaimer-container {
	margin-top: 2.5em;
	border-bottom: thin black solid;
	border-top: thin black solid;
}

div.disclaimer-container p {
	padding: .5ex 0;
	margin-top: 0;
	margin-bottom: 0;
}

div.disclaimer-container p.firstline {
	padding-top: 1ex;
}

div.disclaimer-container p.lastline {
	padding-bottom: 1ex;
}
