body {
	color: #000000;
	font-family: sans-serif;
	background: #cbd2e4 url("../img/bar.png") fixed top left repeat-x;
}

#content {
	position: absolute;
	top: 0px;
	padding: 10px;
	left: 235px;
	right: 10px;
	max-width: 60em;
	text-align: center;

    min-height: 100%;
    background-color: #ffffff;
}


.entry {
	position: relative;
	text-align: left;
	margin: 10px;
	top: -5px;
	padding: 10px;
	color: #000000;

    border-top: 5px solid #e6eaf2;
    background-color: #f7f9fb;
}


/*
 * Standard elements
 */

p {
	text-align: justify;
}

th, thead td, tfoot td {
	font-weight: bold;
}

ul {
    list-style: none outside;
	padding: 0;
	margin: 0;
}

ul li {
    margin-left: 0;
}

ul.bullets {
	padding-top: 1em;
	padding-bottom: 1em;
	padding-left: 40px;
	padding-right: 40px;
	text-align: justify;
	list-style-type: circle;
}

#content li:not(:first-child) {
    margin-top: 1ex;
}

ul.bullets li:hover {
	list-style-type: disc;
}

caption {
	font-weight: bold;
    letter-spacing: 0.1em;
    word-spacing: 0.15em;
    margin-bottom: 0.5ex;
	color: #6278ac;
	background: transparent none;
}


/*
 * Headings
 */

h1, h2, h3, h4, h5, h6 {
	color: #6278ac;
	font-style: normal;
	background: transparent none;
	font-family: sans-serif;
	font-variant: small-caps;
	font-weight: bold;
}
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
	color: #6278ac;
}
h1 {
	margin-top: 0;
	margin-bottom: 25px;
	font-size: xx-large;
	font-weight: 900;
	text-align: center;
	
    padding-top: 0;
}

h2 {
	margin-top: 0px;
	font-size: x-large;
	font-weight: bold;
	text-align: left;
}

h3 {
	font-size: large;
	text-align: left;
}

/* date-header comes from LJ entries. */
h2.date-header {
	text-align: center;
	font-size: large;
	position: relative;
	top: -5px;
	left: -5px;
	margin: 10px;
	padding: 10px;
	background: #ACB9D4 none repeat scroll 0%;
}

h4 {
	font-size: medium;
}



/*
 * Text formatting
 */

.small		{ font-size: small; }
.tiny		{ font-size: x-small; }
.minuscule	{ font-size: xx-small; }

sup {
	font-size: 67%;
	vertical-align: super;
}

sub {
	font-size: 67%;
	vertical-align: sub;	
}

p img {
	vertical-align: middle;	
}


/*
 * Tables
 */
table.tabular {
	background-color: #e6eaf2;
	border: #e6eaf2 solid 3px;
}
table.tabular thead, table.tabular tfoot {
    background-color: #e6eaf2;
}
table.tabular th {
    padding-left: 0.5em;
    padding-right: 0.5em;
	background-color: #e6eaf2;
    color: #6278ac;
    text-align: center;
    border: 1px solid #ffffff;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
}

table.tabular tbody tr {
	background-color: #f7f9fb;
}

table.gallery {
	margin-left: auto;
	margin-right: auto;
}

/*
 * Quotes and emphasis
 */

q {
	quotes: "“" "”" "‘" "’";
}

q * {
	quotes: none;	
}

blockquote {
	min-height: 17px;
	border-top: 1px solid #aaa;
	border-bottom: 1px solid #aaa;
	background: url("../img/rdquo.png") bottom right no-repeat;
}

blockquote p {
	padding-left: 35px;
	padding-right: 35px;
}

.citation {
	text-align: right;
	margin-top: 0px;
	padding-bottom: 0.5em;
	margin-left: 3em;
	margin-right: 3em;
}


blockquote > *:first-child {
	background: url("../img/ldquo.png") top left no-repeat;
}


img {
	vertical-align: middle;	
}

#livejournal
{
	position: fixed;
	width: 200px;
	bottom: 0;
	left: 10px;
	border: 1px solid black;
	border-bottom: none;
	background-color: #aaaaff;
	font-size: smaller;
	text-align: left;
	padding: 5px;

    -webkit-border-topright-radius: 10px;
    -moz-border-radius-topright: 10px;
    border-topright-radius: 10px;

    -webkit-border-topleft-radius: 10px;
    -moz-border-radius-topleft: 10px;
    border-topleft-radius: 10px;

	-webkit-box-shadow: 5px 5px 5px 0px #444;
	-moz-box-shadow: 5px 5px 5px 0px #444;
	box-shadow: 5px 5px 5px 0px #444;
}

#livejournal ul
{
	margin: 0px;
	padding: 0px;
	list-style-type: none;
	text-align: left;
}

#livejournal ul li
{
	margin-bottom: 0.5em;	
}

#livejournal ul .small
{
	font-size: smaller;
}

#livejournal ul li:hover {
	list-style-type: none;
}

textarea.source {
	margin-left: 3em;
	margin-right: 3em;
	width: 90%;
	height: 40em;
}

tt {
	font-variant: normal;
}

a {
    cursor: pointer;
	display: inline;
	background: transparent none;
	font-weight: 600;
	text-decoration: none;
    color: #000070;
}
a:link		{ color: #283142; }
a:visited	{ color: #2c4228; }
a:hover		{ color: #6278ac; }
a:active	{ color: #66ac62; }

a img {
	border: none;
}

a.tool {
    font-weight: normal;
    font-size: smaller;
}


/**************
 * Menu style *
 *************/
#menu {
    position: fixed;
    width: 200px;
    top: 10px;
    left: 10px;
    background: #99B599 none;
    border: 1px solid black;
    list-style-type: none;
    padding: 5px;
	width: 200px;

    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;

	-webkit-box-shadow: 5px 5px 5px 0px #888;
	-moz-box-shadow: 5px 5px 5px 0px #888;
	box-shadow: 5px 5px 5px 0px #888;
}

#menu a {
    display: block;
}
#menu a:link, #menu a:visited, #menu a:hover, #menu a:active {
    background: transparent none;
    font-family: sans-serif;
    font-weight: bold;
    text-decoration: none;
}
#menu a:link	{ color: #000070;  }
#menu a:visited	{ color: #000070;  }
#menu a:hover	{ color: #FFFFFF; /*background-color: #AAC6AA;*/ }
#menu a:active	{ color: #000070;  }

#menu li ul {
    border: none;
    background: #AAC6AA none;
    margin: 0px;
    padding: 0px;
    left: 0px;
    top: 0px;
    background: none;
}

#menu img {
    margin-left: 3px;
    margin-right: 3px;	
}

#menu li {
    list-style-type: none;
    padding-top: 1px;
    padding-bottom: 1px;
}
#menu > li {
    padding-top: 2px;
    padding-bottom: 2px;
}

#menu li.active {
    border-radius: 7px;
    -moz-border-radius: 7px;
    -webkit-border-radius: 7px;
}

#menu li:not(.active) ul {
    display: none;
}

#menu .active {
    background-color: #AAC6AA;
    padding: 1px;
    padding-bottom: 1px;
    margin-bottom: 0px;
}

#menu .submenu {
    background-color: #AAC6AA;
    font-size: smaller;
    padding: 1px;
}

#menu .submenu li, #menu .submenu li.active {
    padding: 1px;
    padding-left: 22px;
}

/*
 * Dialogue window stuff
 */

/* This is stupid. If jquery-ui allowed me to not set this fucking class... */
.ui-corner-all {
    border-radius: 0;
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
}

.ui-dialog {
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
	box-shadow: 5px 5px 5px 0px #222;
	-webkit-box-shadow: 5px 5px 5px 0px #222;
	-moz-box-shadow: 5px 5px 5px 0px #222;
    padding: 0;
}
.ui-dialog-content {
    padding: 0.2em;
}

.ui-widget-header {
}

.ui-dialog .ui-dialog-titlebar {
    border-bottom: 1px solid black;
    border-topleft-radius: 10px;
    -moz-border-radius-topleft: 10px;
    -webkit-border-topleft-radius: 10px;
    border-topright-radius: 10px;
    -moz-border-radius-topright: 10px;
    -webkit-border-topright-radius: 10px;
}

.ui-dialog .ui-dialog-title {
	font-weight: bold;
	padding-left: 10px;
	padding-right: 10px;
}

.ui-dialog-titlebar-close {
    float: right;
}

.ui-dialog-content {
    padding: 10px;
	max-height: 700px;
	overflow: auto;
}

.ui-widget-overlay {
	width: 100%;
	height: 100%;
	position: fixed;
    background: #000 none;
    opacity: 0.3;
	cursor: wait;
}

.footnote {
    font-size: smaller;
	font-style: italic;
}

div.highlight {
    max-height: 65ex;
	overflow: auto;
}

.latex, .latex sub {
    font-size: 1em;
}
.latex sub, .tex sub {
    vertical-align: -0.5ex;
    margin-left: -0.1667em;
    margin-right: -0.125em;
}
.latex sub, .tex sub, .latex sup {
    text-transform: uppercase;
}
.latex sup {
    font-size: 0.85em;
    vertical-align: 0.15em;
    margin-left: -0.36em;
    margin-right: -0.15em;
}

