/******************************************************************************
 * Containers
 ******************************************************************************/

body {
	background: #000 url('../images/bamboo.png') fixed no-repeat 150px 100%;
	font: italic normal 12px/1.4 arial, kai, sans-serif;
	margin: 0;
	padding: 0;
	width: 100%;
	color: #aaa;
}

#header {
	position: fixed;
	left: 0px;
	height: 102px;
	width: 100%;
	background-color: black;
	z-index: 2;
	overflow: hidden;
}

#body-center,
#body {
	margin: auto;
	min-width: 610px;
	max-width: 1000px;
	overflow: visible;
	position: relative;
}

#body-center {
	margin: auto;
	max-width: 800px;
}

#content-center,
#content {
	position: relative;
	margin-left: 300px;
	margin-right: 30px;
	width: auto;
	top: 130px;
	padding: 30px;
}

#content-center {
	margin-left: 30px;
	max-width: 700px;
}

#footer {
	position: fixed;
	bottom: 0px;
	width: 100%;
	padding: 5px;
	z-index: 2;
	background-color: #111;
	text-align: center;
	-moz-opacity: 0.9;
	opacity: 0.9;
	color: #444;
}

.outer-box {
	opacity: 0.8;
	-moz-opacity: 0.8;
	border: 3px solid #222;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	background-color: #181818;
}

.picture {
	float: left;
	margin: 20px 20px 20px 20px;
	text-align: center;
	min-width: 120px;
	width: auto;
}

.picture a img {
	-moz-opacity: 0.8;
	opacity: 0.8;
	border: none;
}

.picture a:hover img {
	-moz-opacity: 0.99;
	opacity: 0.99;
}

.project-description {
	width: auto;
}


table {
	width: 100%;
}

th {
	position: static;
	font: italic small-caps normal 1.3em times, kai, serif;
	letter-spacing: 3px;
	padding: 0;
	text-align: left;
}

.chinese,
.english {
	float: left;
	width: 47%;
	font-size: 1.1em;
	font-style: normal;
}

.english {
	float: right;
	font-size: 0.9em;
	font-style: italic;
}

/******************************************************************************
 * Basic
 ******************************************************************************/

div {
	overflow: hidden;
}

p {
	line-height: 1.5;
	opacity: 0.99;
	-moz-opacity: 0.99;
}

a {
	text-decoration: none;
	color: #b84;
	font-style: italic;
}

a:hover {
	color: white;
}

#footer a {
	opacity: 0.8;
	-moz-opacity: 0.8;
}

h1, h2, h3, h4 {
	font: italic small-caps normal 2em times, kai, serif;
	letter-spacing: 5px;
	color: white;
	margin: 0px 0px 1em 0px;
	opacity: 0.99; -moz-opacity: 0.99;
}

h2, h3, h4 {
	color: #ddd;
	font-size: 1.5em;
	letter-spacing: 0.2em;
	margin: 1.2em 0px 0.8em 0px;
	padding: 0;
	border-bottom: 1px solid #777;
}

h3, h4 {
	color: #bbb;
	margin: 0.8em 0px 0.5em 0px;
	border: none;
}

h4 {
	font-size: 1.2em;
	margin: 0;
}

.clear {
	clear: both;
}

.clear br {
	height: 0px;
	font-size: 0px;
}

td,
li {
	opacity: 0.99;
	-moz-opacity: 0.99;
}

sup {
	vertical-align: top;
}
 
/******************************************************************************
 * Title
 ******************************************************************************/

#title {
	position: absolute;
	right: 30px;
	top: 34px;
	z-index: 1;
}

/******************************************************************************
 * Navigation
 ******************************************************************************/

#navigation {
	position: absolute;
	left: 0px;
	bottom: 0px;
	padding: 0;
	z-index: 2;
	overflow: hidden;
	min-width: 610px;
	width: 100%;
	border-left: none;
	border-right: none;
	-moz-border-radius: 0px;
	-webkit-border-radius: 0px;
}

#navigation #navigation-content {
	width: 610px;
	height: 25px;
	overflow: hidden;
	margin: auto;
}

#navigation a {
	text-decoration: none;
	color: #aaa;
	font-style: italic;
	padding: 0px 8px 0px 8px;
	outline: none;
	letter-spacing: 1px;
	line-height: 25px;
	height: 25px;
	display: block;
	z-index: 4;
	float: left;
}

#navigation a.selected,
#navigation a:hover {
	text-decoration: none;
	color: white;
	background-color: #333;
}


/******************************************************************************
 * Menu
 ******************************************************************************/

#menu {
	float: left;
	position: relative;
	top: 130px;
	left: 2000px;
	margin-left: -1970px;
	width: 240px;
	padding-top: 10px;
	padding-bottom: 10px;
	z-index: 1;
}

#menu p {
	color: #fa4;
	font-style: italic;
	display: block;
	padding: 1em 1em 0.5em 1em;
	text-align: left;
	margin: 0;
	font-variant: small-caps;
	letter-spacing: 0.35em;
	font-weight: bold;
	font: italic small-caps bold 1em/1.4 times, serif;
}

#menu a {
	text-decoration: none;
	display: block;
	padding: 3px 15px 3px 15px;
	text-align: right;
	outline: none;
	color: #aaa;
}

#menu a:hover,
#menu a.selected {
	text-decoration: none;
	color: white;
	text-align: right;
	background-color: #333;
}

/******************************************************************************
 * Resume
 ******************************************************************************/

div.resume-entry {
	margin-top: 0.8em;
}

div.resume-entry p {
	margin: 0px;
}

span.guestbook-date,
span.resume-date,
span.resume-right {
	float: right;
	display: block;
	width: 70%;
}

span.guestbook-heading,
span.resume-heading {
	float: left;
	display: block;
	width: 30%;
}

/******************************************************************************
 * Guestbook
 ******************************************************************************/

.inner-box {
	width: auto;
	margin: 1em 0 1em 0;
	border: 2px solid #161616;
	background: #1c1c1c;
	padding: 1em 2em 1em 2em;
	-moz-border-radius: 8px;
	-webkit-border-radius: 8px;
	overflow: auto;
}

span.guestbook-date {
	text-align: right;
}

form {
	overflow: hidden;
}

form div.row {
	position: static;
	width: 100%;
}

form div.row p.error {
	color: #b84;
	font-weight: bold;
}

form div.row span.label {
	width: 29%;
	float: left;
	clear: right;
}

form div.row span.box {
	width: 69%;
	float: right;
	text-align: right;
}

form div.row span.box * {
	width: 98%;
	margin-top: 0px;
	margin-bottom: 5px;
	border: 1px solid #444;
	background-color: #222;
	padding: 2px;
	color: #bbb;
}

form div.row span.box input.button {
	width: 100px;
	float: right;
	background-color: #444;
	color: white;
	border: 1px gray outset;
	margin-top: 5px;
}

input,
textarea {
	font: normal normal 0.9em arial, kai, sans-serif;
}


/******************************************************************************
 * Galleries
 ******************************************************************************/
 
.drawing,
.photograph {
	float: left;
	margin: 10px 8px 20px 8px;
	text-align: center;
	min-width: 120px;
	width: auto;
}

.drawing {
	margin: 10px 10px 20px 0px;
}

.photograph a img,
.drawing a img {
	-moz-opacity: 0.8;
	opacity: 0.8;
	max-width: 480px;
	width: auto;
	border: 5px solid white;
	background-color: white;
}

.drawing a img {
	border: 3px solid #444;
}

.photograph a:hover img,
.drawing a:hover img {
	-moz-opacity: 1.0;
	opacity: 1.0;
}

/******************************************************************************
 * Features
 ******************************************************************************/
p.footnote {
	font-size: 0.9em;
}

hr,
hr.footnote {
	border: none;
	height: 1px;
	background-color: #555;
	text-align: left;
	margin: 0 auto 0 0;
}

hr.footnote {
	width: 40%;
}

p.caption {
	margin: 0.1em;
	font-style: italic;
	text-align: center;
}

div.clear-buffer,
div.clear {
	clear: both;
	height: 0px;
	line-height: 0px;
	font-size: 0px;
	margin: 0;
	padding: 0;
}

div.clear-buffer {
	height: 200px;
	line-height: 200px;
	z-index: -100;
}

h1.date {
	text-align: right;
	font-size: 1.5em;
	letter-spacing: 0.12em;
}

h2.title,
h2.date {
	float: left;
	margin: 0px;
	border: none;
}

h2.date {
	float: right;
}

.h2 {
	margin-top: 1em;
	border-bottom: 1px solid #666;
}

/******************************************************************************
 * Formatting
 ******************************************************************************/

em {
	font-style: normal;
	font-weight: bold;
}

.dark,
.date {
	opacity: 0.5;
	-moz-opacity: 0.5;
}

/******************************************************************************
 * Funnies
 ******************************************************************************/

.dialog {
	margin: 0.1em;
}

.dialog span.speaker {
	font-weight: bold;
}

.code {
	margin: 10pt 0px 0px 30px;
	font-family: courier, monospace;
	line-height: 1.2;
	font-style: normal;
}
 
/******************************************************************************
 * Overlays
 ******************************************************************************/

#black_overlay {
	display: none;
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	background-color: black;
	z-index: 100;
	-moz-opacity: 0.8;
	opacity: 0.8;
	text-align: center;
}

#black_overlay p {
	position: fixed;
	top: 50%;
	left: 0px;
	width: 100%;
	color: white;
	font: italic small-caps normal 1.6em times, kai, serif;
	letter-spacing: 0.2em;
}

#gray_content {
	display: none;
	position: fixed;
	top: 10%;
	left: 10%;
	width: 80%;
	height: 80%;
	background-color: white;
	z-index: 101;
	overflow: hidden;
	text-align: center;
}

#gray_content div {
	overflow: hidden;
}

#gray_content div img#lightbox-image {
	padding: 20px 4px 4px 4px;
}

#gray_content p#lightbox-caption {
	font-weight: bold;
	margin: auto;
	color: #444;
	padding-bottom: 2px;
	margin-bottom: 0px;
	line-height: 1.3;
}

#gray_content p#lightbox-description {
	margin-left: 32px;
	margin-right: 32px;
	color: #555;
	width: 80%;
	font-size: 0.9em;
	line-height: 1.3;
	margin-top: 0px;
}

#gray_content a#button-close {
	text-decoration: none;
	float: right;
	position: absolute;
	right: 5px;
	bottom: 5px;
	width: 24px;
	height: 24px;
	background-image: url('../images/close-dim.png');
	z-index: 102;
}

#gray_content a#button-close:hover {
	background-image: url('../images/close-lit.png');
	min-height: 1%; /* IE hack? */
}

