/* (c) Copyright 2007+ Encalc.com. All Rights Reserved.  */

/* The following is a reset.css file.
   Taken from http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

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, 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,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
table, table td, table tr {
  cellpadding: 0;
  cellspacing: 0;
}


body {
	/*font-family: 'Yanone Kaffeesatz', arial, verdana, tahoma, sans-serif;*/
	font-family: arial, verdana, tahoma, sans-serif;
	margin: 0;
	padding: 0;
}
h1, h2, h3 {
  font-weight: normal;
  margin: 5px 0px;
}

a, a:visited {
	color: #0028A4;
	text-decoration: none;
}
a:hover, a:focus {
	color: #0028A4;
	text-decoration: underline;
}
a:active {
	color: #009CE6;
	text-decoration: underline;
}

input, textarea {
    border: 2px outset #0028A4;
    padding: 2px;
}

input:focus, input:hover, textarea:focus, textarea:hover{
    border: 2px outset #009CE6;
}
input.button {
    border: 2px outset #0028A4;
    background-color: #FFF;
    color: #000;
}
input.button:focus, input.button:hover {
    border: 2px outset #009CE6;
    background-color: #009CE6;
    color: #FFF;
}
input.button:active, input.button.pressed {
    border: 2px inset #009CE6;
    background-color: #0028A4;
    color: #FFF;
}




/* main.css begins here */


#header {
  background-color: #FFF;
  color: #0028A4;
  font-family: 'Nobile', arial, verdana, tahoma, sans-serif;
  padding: 5px 10px;
}
#header a, #header a:visited, #header a:focus, #header a:active {
  color: #0028A4;
}
#header a#logo {
    position: relative;
    width: 200px;
    height: 60px;
    text-decoration: none;
    margin-left: 10px;
}
#header a#logo img {
}
#header a#logo h1 {
	display: inline;
	font-weight: normal;
	font-size: 220%;
}
#header a#logo h2 {
  display: inline;
	font-weight: normal;
	font-size: 120%;
}
#header .trademark {
  display: inline;
  font-size:60%;
  vertical-align: 19px;
}
#header img {
	border: none;
}
#header .addthis_toolbox {
  position: absolute;
  top: 5px;
  right: 30px;
}
#header #top-ad {
  position: absolute;
  top: 5px;
  right: 30px;
}


#footer {
  background-color: #0028A4;
  color: #FFF;
  padding: 8px 0px 4px;
}
#footer a {
  color: #FFF;
}
#footer .quote {
  font-size: 83%;
  font-style: italic;
  margin: 6px 0px;
  text-align: justify;
  width: 460px;
}
.quote_from {
  font-style: normal;
  text-align: right;
}

.central {
  margin-left: auto;
  margin-right: auto;
  position: relative;
  width: 980px;
}


.tricolor {
  width: 100%;
  height: 5px;
}
.tricolor_one, .tricolor_two, .tricolor_three {
  display: block;
  float: left;
  height: inherit;
}
.tricolor .tricolor_one {
  background-color: #D40800;
  width: 33%;
}
.tricolor .tricolor_two {
  background-color: #D40800;
  width: 34%;
}
.tricolor .tricolor_three {
  background-color: #D40800;
  width: 33%;
}





#navigation {
  background-color: #0028A4;
	border-bottom: 1px solid #BBB;
	height: 24px;
	margin-bottom: 8px;
	padding: 8px;
}
#navigation a, #navigation a:visited {
  color: #FFF;
	display: inline-block;
	margin: 0px 6px;
	padding: 3px 8px 5px;
	text-align: center;
	text-decoration: none;
	font-size: 120%;
	text-align: center;
	/* width: 100px; so that it doesn't resize the width on hover */
}
#navigation a:hover, #navigation a.selected {
	text-decoration: none;
	background-color: #009CE6;
	color: #FFF;
}
#navigation .right {
    float: right;
    margin-right: 10px;
}


h1.system {
	margin: 15px 40px;
	padding: 5px;
	text-align: center;
	width: 920px;
	font-weight: normal;
}
h1.system.message {
	color: #000000;
	background-color: #FFFA00;
}
h1.system.error {
	color: #FFFFFF;
	background-color: #DF0000;
}



#content {
	/*margin-left: 250px;*/
	width: 980px;
	padding: 0px 10px;
	display: block;
	overflow: hidden;
}
#content h1, h2, h3 {
  margin: 14px 0px 6px;
}
#content h1 {
  font-size: 140%;
}
#content h2 {
  font-size: 120%;
}
#content #style1-left {
	position: relative;
	float: left;
	width: 650px;
}
#content #style1-right {
	position: relative;
	float: left;
	width: 300px;
	margin-left: 20px;
}
#content #style2-left {
    position: relative;
	float: left;
	width: 430px;
}
#content #style2-right {
  position: relative;
	float: left;
	width: 520px;
	margin-left: 20px;
}
#content p {
  margin: 4px 0px;
  text-indent: 12px;
}

#content td {
    padding: 5px 10px;
}
#content table input, #content table textarea {
    /* used for forms */
    width: 275px;
    padding: 2px;
}
#content table tr {
    padding-top: 5px;
}
#content span.info, #content div.info {
    font-size: 83%;
    color: #606060;
    padding-top: 0px;
    margin-top: 0px;
}
#content div.error, #content span.error {
    color: #FF0000;
    font-size: 83%;
}
#content code {
    background-color: #F3F3F3;
    display: block;
    font-family: monospace;
    font-size: 83%;
    padding: 8px;
}
#content ol {
  list-style: upper-roman;
  padding: 4px 40px;
}
#content ul {
  list-style: circle;
  padding: 4px 40px;
}



#calculator {
	position: relative;
	width: 550px;
	margin-left: 20px;
}

#formula-description {
	background-color: #E3E3E3;
	padding: 5px;
	border: 1px solid #009CE6;
	margin: 5px 0px;
}
#formula-description h1 {
	font-size: 120%;
	margin: 3px;
}
#formula-description h2 {
	font-size: 100%;
	font-weight: normal;
	margin: 4px;
}

#input, #output {
	text-align: center;
	padding-bottom: 12px;
	position: relative;
	min-height: 180px;
}
#input {
	background-color: #E3E3E3;
	color: #0028A4;
}
#input h2 {
	font-size: 140%;
	margin-top: 0px;
	margin-bottom: 2px;
}
#input .help-box {
	position: absolute;
	top: 4px;
	right: 12px;
	font-size: 83%;
}
.dialog {
    display: none;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: #E3E3E3;
    z-index: 100;
}
#submit {
	font-size: 100%;
	width: 580px;
	margin-top: 6px;
}
#expression, .var-name, .var-value {
	height: 22px;
	font-size: 100%;
	line-height: 22px;
	text-align: center;
}
#expression {
	width: 580px;
	margin-bottom: 15px;
}
.var-holder {
	display: block;
	margin: 4px;
}
.var-name {
	width: 130px;
}
.var-value {
	width: 420px;
}
.var-equals {
  font-family: arial, helvetica;
  font-size: 120%;
}
.var-desc, desc {
    display: block;
    font-weight: bold;
	font-size: 83%;
	margin-top: 0px;
	margin-bottom: 8px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	width: 580px;
}
.var-desc.locked {
    cursor: default;
    border: none;
	background-color: #E3E3E3;
}
.var-desc, .description { /* used for both variable descriptions and preferences/actions descriptions */
	font-weight: bold;
	font-size: 83%;
}
#output {
	background-color: #0028A4;
	color: #FFFFFF;
}
#output h2 {
	font-size: 140%;
}
.result-holder {
	position: relative; /* needed explicitly for reportError */
	display: block;
	width: 580px;
	min-height: 48px;
	margin-left: auto;
	margin-right: auto;
	background-color: #FFFFFF;
	color: #000000;
	border: 1px solid #E3E3E3;
	line-height: 21px;
	overflow: auto;
}
a.report-error {
	position: absolute;
	top: 1px;
	right: 3px;
	color: #ACA9A9;
	background-color: #FFFFFF; /* prevents text overlap */
	font-size: 76%;
	text-decoration: underline;
}
a.report-error:hover {
	color: #FF0000;
	font-size: 76%;
	text-decoration: underline;
}
a.result-expression, a.result-expression:visited {
	color: #606060;
	background-color: #FFFFFF;
	text-decoration: none;
}
a.result-expression:hover {
	color: #606060;
	background-color: #FFFFFF;
	text-decoration: none;
	border-bottom: 1px solid;
}
.result-answer {
	display: block;
	font-weight: bold;
	margin: 5px;
}
.result-answer img {
    margin: 4px;
}
.result-error, .result-warning {
	display: block;
	padding-left: 4px;
	padding-right: 4px;
	font-size: 83%;
}
.result-error {
	color: #FF0000;
}
.result-warning {
	color: #FF6600;
}
.hidden-carat {
	color: #FFFFFF;
	font-size: 1px;
}
.error-word, .warning-word {
	font-weight: bold;
}

.side-bar {
    text-align: justify;
}
.side-bar h2 {
    text-align: center;
}

/* keyboard */
a.calc_button, a.calc_button:visited {
    display: block;
    position: relative;
    float: left;
    width: 60px;
    height: 20px;
    text-align: center;
    border: 2px outset #0028A4;
    background-color: #FFF;
    padding: 1px;
    margin: 2px;
}
a.calc_button:hover, a.calc_button:focus {
    color: #FFF;
    background-color: #009CE6;
	border: 2px outset #009CE6;
	text-decoration: none;
}
a.calc_button:active {
    border: 2px inset #009CE6;
    background-color: #0028A4;
    color: #FFF;
	text-decoration: none;
}

#buttons {
    text-align: center;
    width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.calc_spacer {
    display: block;
    width: 20px;
    height: 20px;
    float: left;
}


/* alerts */

a#alert {
  background-color: #2AFF00;
  border-bottom: 2px solid #111;
  display: block;
  position: relative;
  padding: 4px 14px;
  line-height: 20px;
  margin-bottom: 2px;
  color: #111;
  text-decoration: none;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
/* disabled while the experiment is running
a#alert:hover {
    background-color: #111;
    text-decoration: none;
    color: #FFF;
}
*/

/* AddThis stuff */
a.addthis_button_expanded {
  color: #333 !important;
  font-size: 11px !important;
  font-weight: normal !important;
}

.examples a {
	display: block;
	margin-left: 22px;
}
.hiddenDoc {
    display: none;
}


.small {
    font-size: 66%;
}
.emphasis {
    font-weight: bold;
}


.float-left {
	float: left;
}
.float-right {
	float: right;
}
.clear {
	clear: both;
}

