/* ------------------------------------------------------------------
[Table of contents]

1.  BASE
2.  TYPOGRAPHY
3.  LAYOUT
      GENERAL
      3.1. CONTENT
      3.2. HEADER
      3.3. MAIN-MENU
      3.4. SUB-HEADER
      3.5. SUB-MENU
6.  SUPPORT
7.  FORMS
8.  ERRORS
9.  SPLASH

[Measurements]
  Wrapper: 974px
  Content Container: 960px;
  Nav:     260px 
  Content: 700px 

[Color Scheme]

----------------------------------------------------------------*/

/*************************
 * BASE                  *
 *************************/

html,body {
	margin:0;
	padding:0;
	height:100%; /* needed for container min-height */

  background: #E5DBD2 url('../images/body_bck.png') repeat-x 0 0;
  color: #361900;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
	
}

/*************************
 * TYPOGRAPHY            *
 *************************/

a {
  text-decoration:none;
  color:#c45300;
}

h2 {
 font-size:20px;
}

h3 {
  color: #361900;
  font-size:16px;
  font-weight:700;
  margin:0;
  padding:3px 0 6px 0;
}

strong {
  font-weight:700;
}

.fright {
  float:right;
}

.large {
  font-size:16px;
}

.warning {
  color:#800;
  text-decoration:underline;
  margin-bottom:12px;
  font-weight:700;
}

span.description {
  font-size:75%;
  font-style:italic;
}

span.normal {
  font-style:normal;
}

span.small {
  font-size: 65%;
}

/*************************
 * LAYOUT                *
 *************************/

#container {
	position:relative; 
	margin:0 auto; 
	width:974px;
	height:auto !important; /* real browsers */
	height:100%; /* IE6 */
	min-height:100%; /* real browsers */
}

#container.application {
  background: transparent url('../images/content_bck_repeat.png') repeat-y;
}

.container-thin {
  background: transparent url('../images/content_bck_thin_repeat.png') repeat-y 50% 0;
}

#header {
  color: #333;
  margin:0 auto;
  position:relative;
  width: 962px;
  padding-bottom: 10px;
  height: 40px;
  background: transparent url('../images/header_bck.png') no-repeat 100% 0;
  overflow:visible;
  padding-bottom:128px;
  margin-bottom:-128px;
}

#sub-header {
  color: #333;
  margin:0 auto;
  position:relative;
  width: 962px;
  margin-top:20px;
  margin-bottom:10px;
}

#content {
  min-height:600px;
}

#content.application {
  background: transparent url('../images/content_bck_top.png') no-repeat 7px -7px;
}

.content-thin {
  width: 400px;
  margin:0 auto;
  font-size:14px;
  line-height:18px;
  background: transparent url('../images/content_bck_top_thin.png') no-repeat 0 -7px;
}

#content.splash {
  background: none;
}

#left {
  float:left;
}

.thin-content #left {
  position:relative;
  width:400px;
}

#content.application #left {
  position:relative;
  width:700px;
  margin-left:7px;
}

#right {
  position:relative;
  float:right;
  color: #333;
  margin: 0px;
  padding: 24px 14px 10px 0;
  min-height: 400px;
  width: 244px;
  display: inline;
}

/*************************
 * CONTENT               *
 *************************/

#section-title {
  position:relative;
  margin:0px 0 20px 1px;
  border-top: 1px solid #1B0C0F;
  border-bottom: 1px solid #1B0C0F;
}

#section-title.normal{
  width:700px;
}

#section-title.thin {
  width:400px;
  margin:0 auto;
}

#section-title h2 {
  color:#fff;
  background: #1B0C0F;
  padding:2px 4px;
  margin:4px 0;
}

/** CONTENT **/

.form-container {
  padding:24px 24px 8px 24px;
}

.form-container .description {
  margin-top:2px;
  color:#574a3f;
  font-style:italic;
  font-size:90%;
}

.form-description {
  margin-bottom:6px;
  color:#574a3f;
  font-style:italic;
}

.form-description ol {
  list-style-type:disc;
  list-style-position:inside;
}
.form-description ol li {
  list-style-type:disc;
  list-style-position:inside;
  margin:6px 0;
  padding-left:12px;
}


/*************************
 * MENUS                 *
 *************************/

/** MAIN MENU **/

#logo {
  position:absolute;
  top:10px;
  left:0;
}

#menu {
  position:relative;
  float: right;
  right:0;
  top:0;
  margin-top:6px;
  clear:both;
}

#menu li {
  display:inline;
}

#menu li a {
  display:inline;
  color:#bbb;
}

#menu li a.active {
  color:#fff;
  font-weight:bold;
}

#menu li a:hover {
  color:#fff;
}

/* Rounded Corners for Menu */

.b1,.b2,.b3,.b4 {
	font-size:1px;
	overflow:hidden;
	display:block;
}

.b1 {
	/*height:1px;*/ /* Setting the Height in IE6 causes 'hasLayout' */
  padding-top:1px;
	background:#b3a7a1;
	margin:0 5px;
}

.b2 {
	/*height:1px;*/
  padding-top:1px;
	background:#1B0C0F;
	border-right:2px solid #b3a7a1;
	border-left:2px solid #b3a7a1;
	margin:0 3px;
}

.b3 {
	/*height:1px;*/
  padding-top:1px;
	background:#1B0C0F;
	border-right:1px solid #b3a7a1;
	border-left:1px solid #b3a7a1;
	margin:0 2px;
}

.b4 {
	/*height:2px;*/
  padding:1px 0;
	background:#1B0C0F;
	border-right:1px solid #b3a7a1;
	border-left:1px solid #b3a7a1;
	margin:0 1px;
}

.contentb {
	background:#1B0C0F;
	border-right:1px solid #b3a7a1;
	border-left:1px solid #b3a7a1;
  padding:0 12px;
}

.contentb div {
	margin-left:5px;
}

/** USER ACCOUNT MENU **/

.menu-user-account h2 {
  color:#222;
  border-bottom: 1px solid #BBB2AB;
  padding-bottom:3px;
  margin-bottom:9px;
}

.menu-user-account h2 a {
  color:#222;
}

.menu-user-account li {
  margin:6px 0;
}

.menu-user-account li.header {
  padding-bottom:2px;
  margin-bottom:16px;
}

.menu-user-account li.header a {
  background: transparent url('../images/ok_admin/expand.png') no-repeat 0 0;
  padding-left:18px;
  /*border-bottom: 1px solid #BBB2AB;*/
  /*color: #1a416b;*/
  font-weight:700;
}

.menu-user-account ul {
  padding-bottom:6px;
}

.menu-user-account ul li a {
  color:#2969AC;
  font-size:14px;
}

.menu-user-account ul li a.active {
  font-weight:700;
}

.menu-user-account ul li a:hover {
  color:#4b89c9;
}

.menu-user-account ul li ul li a {
  color:#586D7F;
  margin-left:9px;
}

#total-character-count {
  display:block;
  margin-top:12px;
  font-weight:700;
}

/*************************
 * FORMS                 *
 *************************/

fieldset {
  position:relative;
  background:transparent url('../images/form_divider_lrg.png') no-repeat 50% 100%;
  padding-bottom:24px;
  margin-bottom:16px;
}

fieldset h4 {
  color:#222;
  margin-left:-6px;
  font-weight:700;
}

input[type='password'], input[type='text'], textarea {
  border: 2px solid #BDB1A7;
  padding:0 2px;
}

input[type='password'], input[type='text'] {
  width:300px;
  padding:2px;
}

input[type='checkbox'] {
  margin-right:6px;
}

legend {
  color: #361900;
  font-size:16px;
  font-weight:700;
  margin:0;
  padding:3px 0 6px 0;
}

.field-question {
  width:650px;
  color:#222;
  margin-left:2px;
  font-weight:700;
}

.form-back {
  position:absolute;
  top: 0;
  left: 0;
}

.form-controls {
  position:relative;
  text-align:right;
  margin-bottom:6px;
  font-size:110%;
}

.form-group-inline .form-item {
  display:inline;
}

.form-inline-float {
  margin: 6px 0;
}

.form-inline-float,
.form-group-inline-float {
  clear:both;
}

.form-inline-float:after,
.form-group-inline-float:after {
	content:"."; 
	display:block; 
	height:0; 
	clear:both; 
	visibility:hidden;
}

.form-inline-float .form-item,
.form-group-inline-float .form-item {
  display:inline;
  float:left;
  margin-right:9px;
  margin-bottom:0px;
}

.form-inline-float label, .form-group-inline-float label, .form-group-inline label, .form-item label {
  display:block;
  margin:12px 0 0 0;
  font-weight:700;
}

.form-indented {
  position:relative;
  margin:8px 0 0 12px;
}

.form-group-inline-float .form-item label,
.form-indented label {
  color:#666;
}

.form-inline-float .form-item label,
.form-group-inline-float .form-item label {
  margin-top:6px; 
}

.form-item {
  margin-bottom:12px;
  position:relative;
}

.form-item label.inline {
  display:inline;
}

.form-item span.required {
  color: #C62A00;
}

.form-item-add {
  clear:both;
  text-align:right;
}

#character_stories_fields .form-item-add {
  clear:both;
  text-align:left;
}

.form-submit {
  position:relative;
  width:100%;
  margin-top:24px;
  text-align:right;
  clear:both;
}

.form-submit .back {
  position:absolute;
  display:inline;
  top:4px;
  left:0px;
}

.fieldset-toggle {
  margin:16px 0;
}

.fieldset-toggle span.question {
  padding-right:6px;
  font-style:italic;
  font-size:14px;
}

.fieldset-toggle label {
  padding-right:12px;
}

.own-question {
  float:right;
}

.fieldWithErrors textarea,
.fieldWithErrors input{
  border:2px solid #E62A00;
}

.formError {
  color: #E62A00;
}

input[type='text'].tiny {
  width:20px;
}

input[type='text'].small {
  width:40px;
}

input[type='text'].med {
  width:200px;
}

input[type='text'].full {
  width:644px;
}

textarea.short {
  height:100px;
}

textarea.thin {
  height:100px;
  width:644px;
}

textarea.long {
  width:644px;
  height:200px;
}

textarea {
  background: #fff url('../images/textarea_bck.png') repeat-x 0 0;
  overflow:auto;
}

p#story-question {
  padding:3px 0 6px 0;
  font-size:14px;
  font-weight:700;
  color:#444;
}

fieldset.collapsed legend {
  display:block;
}

fieldset.collapsed {
	background:transparent none repeat scroll 0 0;
	padding-bottom:.6em;
	padding-top:0;
	border-bottom-width:0;
	border-left-width:0;
	border-right-width:0;
	height:1em;
	margin-bottom:0;
}

fieldset.collapsible {
	position:relative;
}

fieldset.collapsible legend a {
	display:block;
	background: transparent url('../images/ok_admin/fieldset_expanded.gif') no-repeat scroll 0 50%;
	padding-left:15px;
}

fieldset.collapsed legend a {
	background:transparent url('../images/ok_admin/fieldset_collapsed.gif') no-repeat scroll 0 50%;
}

fieldset.collapsed * {
	display:none;
}

#upload-form {
  margin-bottom:12px;
}


/* Specific Elements */

span.field-question span {
  position:relative;
  display:block;
  width:600px;
}

#add-story {
  text-align:left;
}

#add-story select {
  width:500px;
}

.action-link.remove {
  position:absolute;
  z-index:100;
  top:0;
  right:0;
}

/*************************
 * Definition Lists
 *************************/

.dl-item {
  margin: 0 0 18px 0;
	padding:12px 12px 6px 6px;
  background: transparent url('../images/dl_item_bck.png') repeat-x 0 0;
  border-top: 1px solid #fefefe;
  border-left: 1px solid #f2f2f2;
  border-bottom: 1px solid #d1c6be;
  border-right: 1px solid #dbd0c8;
}

.dl-item dd {
  margin:3px 0;
}

.dl-item dt {
	float:left;
	clear:left;
	width:110px;
  margin-right:6px;
	font-weight:700;
	color:#666;
}

.dl-item dt:after {
	content:":";
}

.dl-item dt.plain:after {
  content:''; 
}

.dl-item dt.long {
  width:11em;
}

.dl-item dl.long dt {
  width:100%;
	text-align:left;
}

.dl-item dl.long dd {
  margin:0 0 16px 0;
	padding:.5em;
}


table.records {
	margin:10px 0pt 15px;
  border-collapse:collapse;
  border-spacing:0;
  width:100%;
}


table.records thead tr {
  width:100%;
  background: #1B0C0F;
  border:none;
}

table.records thead tr th {
  color:#ddd;
  padding:3px 4px;
  margin:4px 0;
}

table.records tbody td {
  border-bottom: 1px solid #8f9aa1;
	padding: 4px;
	vertical-align: middle;
  background: #f7f1ec;
}

table.records tr td.actions {
  width: 100px;
  padding-left: 0;
}

/*************************
 * ALERTS & ERRORS       *
 *************************/

#alert.error, .errorExplanation {
  background:#e36c5a;
  border:1px solid #ff654e;
  border-right:1px solid #db422a;
  border-bottom:1px solid #db422a;
  color: #f6faff;
  margin-bottom:6px;
  padding:2px;
}

#alert.error a {
  color: #600;
}

h4.inline-errors, #alert.error p, .errorExplanation h4, .errorExplanation p, .errorExplanation ul li{
  color: #f6faff;
  padding:2px;
  padding-left:6px;
}

h4.inline-errors, .errorExplanation h4 {
  font-size:120%;
  font-weight:700;
}

.alert {
  background:#fff url('../images/alert_bck.png') repeat-x 0 0;
  border: 1px solid #789DC2;
  padding:2px 3px;
  margin-bottom:6px;
  color:#222;
}

/*********************************
 * WELCOME / LEGAL               *
 ********************************/

#welcome-message p {
  margin-bottom:12px;
}

.legal p {
  margin:8px 0;
  font-size:80%;
}

/*************************
 * LOGIN                 *
 *************************/

.login {
  width:350px;
}

.login dt label {
  font-weight:700;
}

.login input {
  margin-bottom:8px;
}

.login input.big {
  width:344px;
}

.login dl dt {
  width:100%;
	text-align:left;
}

.login dl dd {
  margin-bottom:8px;
}

/*************************
 * SUPPORT               *
 *************************/

.scrolling {
  height:200px;
  padding:6px;
  overflow:scroll;
}
