/****** Default form styles ******/
form {
	margin: 0 auto; 
	padding: 1em 0 0 0;
	float: none;
	width: 25em;
}
fieldset {
	margin: .5em auto;
	clear: both;
	border: 2px solid #797CC6;
	padding: 1em 1em;
}
fieldset div {
	display: block;
	margin: 0 auto .5em;
}
label.required {
	font-weight: bold;
}
form label {
	width: 9em;
	display: block;
	float: left;
	text-align: left;
}
form fieldset input {
	width: 13em;
	line-height: 1.2em;
}
form fieldset input.radio {
	width: auto;
	line-height: 1;
}
form fieldset select {
	width:13em;
	line-height: 1.2em;
}

/****** Login form styles ******/
form.login-form {
	width: 25em;
	padding: 3.5em 0 0 0;
}
form.login-form label {
	width: 9em;
}

/****** Signup form styles ******/
form.signup-form {
	width: 35em;
}
form.signup-form label {
	width: 11em;
}

/****** Game form styles ******/
form.game {
	width: 35em;
}

/****** Account form styles ******/
form.member-form {
	width: 38em;
}
form.member-form label {
	width: 22em;
}

/****** Account overview table styles ******/
#account-overview-wrapper {
	width: 350px;
	margin: 2em auto;
	padding: 0;
	clear: both;
}
#account-overview-wrapper h4 {
	padding: 0;
	background: #797CC6;
	color: #FFF;
	font-size: .9em;
	font-style: italic;
	text-align: center;
}
#account-overview {
	border: 2px solid #797CC6;
	padding: 1em 1em 0;
}
#account-overview div {
	display: block;
	margin: 0 auto .5em;
}
#account-overview div p.label {
	width: 80%;
	display: block;
	float: left;
	text-align: left;
}
#account-overview div p.value {
	width: 20%;
	line-height: 1.5em;
	float: right;
	text-align: left;
}

/****** Button styles ******/
.button,
input.button,
a.button,
a.button:link,
a.button:visited,
a.button:hover,
a.button:focus,
a.button:active {
	margin: 1em auto;
	padding: .25em;
	font-family: Geneva, Arial, Helvetica, sans-serif;
	font-weight: bold;
	text-align: center;
	background-color: #EBEBFF;
	border: 2px solid #797CC6;
	color: #797CC6;
	text-decoration: none;
	line-height: 3em;
}

/****** View check page styles ******/
div#check {
	position: relative;
	height: 252px;
}
div#check img {
	position: absolute;
	left: 0;
	top: 0;
}

/****** Desire and resistance styles ******/
form#desire fieldset,
form#resistance fieldset {
	border: 2px solid #797CC6;
	padding: 5px;
}
form#desire fieldset label,
form#resistance fieldset label { 
	display: none; 
}
form#desire input.radio,
form#resistance input.radio { 
	margin: 0 .4em; 
}

table.graph {
	position: relative;
	border: 2px solid #797CC6;
	width: 350px;
	margin: .5em auto;
}
table.graph th {
	padding-top: 3px;
	padding-right: .5em;
	width: 60px;
}
table.graph td {
	padding-top: 3px;
	text-align: left;
	line-height: 20px;
}
table.graph td span {
	position: absolute;
	padding-left: 4px;
}

/****** Previous Visits page (also apply to the visit_complete page) ******/ 
div.previous-visit {
	width: 450px;
	margin: .5em auto 0;
	text-align: left;
}
div.previous-visit h4 {
	margin: 0;
	padding: 3px 0;
	background: #797CC6;
	color: #FFF;
	font-size: .9em;
	font-style: italic;
	text-align: center;
}
div.previous-visit h4 a,
div.previous-visit h4 a:link,
div.previous-visit h4 a:visited,
div.previous-visit h4 a:focus,
div.previous-visit h4 a:active {
	color: white;
	text-decoration: none;
}
div.previous-visit h4 a:hover {
	text-decoration: underline;
}
div.previous-visit div {
	background-color: #EBEBFF;	
}
div.previous-visit table {
	padding: .5em 1em;
}
div.previous-visit th {
	font-weight: bold;
	width: 120px;
	text-align: right;
	vertical-align: top;
	padding-top: 3px;
}
div.previous-visit td {
	vertical-align: top;
	padding-left: 20px;
	padding-top: 3px;
}
div.previous-visit img {
	float: left;
	margin-right: 4px;
}
div#bottomedge {
	border-bottom: 2px solid #797CC6;
	padding-top: .5em;
}

/****** 100 Things *****/
.things-wrapper {
	text-align: center;
	margin-right: 40px;
}
div#content ul#things-list li {
	border: 2px solid #797cc6;
	border-width: 2px 0;
	background-color: #ebebff;
	background-image: none;
	position: relative;
	list-style-position: inside;
	text-align: left;
	padding: 0 0 0 5px;
}
ul#things-list h2 {
	font-size: 1em;
	text-align: left;
	display: inline;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-weight: normal;
}
ul#things-list ul {
	position: absolute;
	top: 1.1em;
	left: 355px;
}
div#content ul#things-list ul li {
	border: none;
	display: inline;
	font-size: .9em;
	padding: 0; 
	margin: 0 1em 0 0;
}
ul#things-list dl {
	padding: 5px;
}
ul#things-list dt.thing-value {
	display: inline;
	margin-right: 1em;
	margin-left: 1.5em;
}
ul#things-list dd.thing-value {
	display: inline;
}
ul#things-list dt.thing-comments {
	margin-left: 1.5em;
}
ul#things-list dd.thing-comments {
	margin-left: 3em;
}

/****** add new things form ******/
form.add-things h2 {
	margin: 0 0 5px;
	padding: 3px 0;
	font-size: 1em;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	width: 25em;
	color: white;
	background: #797cc6;
}
form.add-things div {
	border-bottom: 2px solid #797cc6;
	padding: 0 0 5px;
	background-color: #ebebff;
	margin-bottom: 1em;
}
form.add-things div div {
	border: none;
	padding: 0 5px;
	margin-bottom: .5em;
}
form.add-things div.desc label {
	display: block;
	float: none;
	width: 23em;
	padding-bottom: 3px;
}
form.add-things textarea {
	width: 20em;
	height: 5em;
}
#thingswitch {
	height: 1.5em;
	line-height: 1.5em;
	width: 10em;
}

/****** edit things form ******/
form.edit-things fieldset {
	background-color: #ebebff;
}
form.edit-things textarea {
	width: 22.5em;
	height: 5em;
}
form.edit-things label.thing-thing_text {
	width: 22em;
	margin: 5px 0;
}

/****** FAQs ******/
p.question {
	text-align: left;
}
p.answer {
	display: none; /* gets reset by javascript on the page. */
	text-align: left;
}

/****** Errors ******/
div#content div.errors ul li {
	list-style: none;
	background-image: none;
	text-align: left;
	color: #FF0000;
}

/****** Admin ******/
body#admin fieldset input { 
	width: 8em; 
}

/****** Admin Edit System Message ******/
form.system-message fieldset {
	background-color: #ebebff;
}
form.system-message textarea {
	width: 22.5em;
	height: 5em;
}
form.system-message label {
	width: 10em;
	margin: 5px 0;
}
form.system-message label.system-message_text {
	width: 22em;
	margin: 5px 0;
}

/****** Admin Search Members ******/
form.search-members fieldset {
	background-color: #ebebff;
}
form.search-members label {
	width: 12em;
	margin: 5px 0;
}

/***** Admin Member Search Results *****/
table.datatable {
	margin: 1em auto 1.5em;
}
table.datatable caption {
	text-align: center;
	margin: 0 auto;
}
table.datatable th {
	background: #797CC6 top repeat-x;
	color: white;
}
table.datatable td {
	text-align: left;
	padding: 3px;
}		
table.datatable td.delete-mark {
	text-align: center;
}	

/* datatable rowcolors */
tr.dark td {
	background-color: #eee;
}
tr.light td {
	background-color: #fff;
}

div#content div.paging { 
	background: #eee;
	margin: 1em auto;
	text-align: center;
}
div#content div.paging ul {
	display: inline;
}
div#content div.paging li {
	font-weight: normal;
	display: inline;
	padding: 0 .3em;
	background-image: none;
	font-size: .8em;
	width: auto;
	margin: 0;
}
body#admin div#content div.paging li a {
	font-weight: normal;
}

/** Gratitude Journal **/
ul#journal-days {
padding: 0 1em;
}
ul#journal-days li {
margin-left: 0;
padding-left: 0;
}
div.journal li {
clear: right;
}
#content h4 a {
color: white;
text-decoration: none;
display: block;
font-style: italic;
}
#content h4 a:hover {
text-decoration: underline;
}

div.journal ul.actions {
float: right;
font-size: 70%;
}

div.journal ul.entries {
margin-left: 0;
padding: 0;
}
ul#journal-days ul.entries li {
padding: 0;
margin: 0;
}
div.journal p.entry {
text-align: left;
padding: .3em;
border-bottom: 2px solid #797cc6;
margin: 0;
}
div.journal p.lastentry {
border: none;
}

form.add-journal{
width: 90%;
}

form.add-journal textarea {
display: block;
width: 90%;
height: 5em;
margin: 1em auto;
}

.entrydesc label {
position: absolute;
left: -9999em;
top: -9999em;
}
