﻿/* This rule resets a core set of elements so that they will appear consistent across browsers. Without this rule, content styled with an h1 tag, for example, would appear in different places in Firefox and Internet Explorer because each browser has a different top margin default value. By resetting these values to 0, the elements will initially be rendered in an identical fashion and their properties can be easily defined by the designer in any subsequent rule. */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6 {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	color: #D1AA89;
}
/* The body is the outermost layout component and contains the visible page content. Setting properties for the body element will help to create consistent styling of the page content and more manageable CSS. Besides using the body element to set global properties, it is common to use the body element to set the background color of the page and create a centered container for the page content to display. */
body {
	font: 1em Arial, Helvetica, sans-serif;
	background: repeat;
	text-align: center; /* Centers the page content container in IE 5 browsers. */;
	margin: 0px;
	padding: 0px;
}
/* =============== headings ================*/
h1, h2, h3, h4 {
	font-weight: bold;
	font-family: 標楷體;
	color: #E9AA53;
}
h1 {
	font-size: 2em;
}
h2 {
	font-size: 1.5em;
}
h3 {
	font-size: 1.25em;
}
h4 {
	margin: 1em;
}
/* ================links ===================*/
a, a:link {
	color: #FFFF00;
	font-weight: bold;
	text-decoration: none;
}
a:visited {
	color: #003366;
	font-weight: bold;
	text-decoration: none;
}
a:hover {
	text-decoration: none;
	color: #FFFFFF;
	font-family: 標楷體;
	font-size: 1.2em;
}
/*============ this is the 2nd layer change the background color to match the image you use ============= */
hr {
	width: auto;
	position: relative;
}
table {
	border-collapse: collapse;
	border: .01em solid #660066;
}
td {
	border-collapse: collapse;
	border: .01em solid #660066;
	empty-cells: hide;
}
#outerwrapper {
	padding: 1em;
	width: 70%;
	margin: 1em auto 0 auto;
	background: #686868 repeat;
	height: auto;
	color: #FFFFFF;
}
/*================= this is the inner content wrapper 
a light solid color gives a better contrast for the text
======================= */
#innerwrapper {
	border: 1px solid #A46F3A;
	background-color: #747474;
	width: 80%;
	text-align: left; /* Redefines the text alignment defined by the body element. */;
	margin: 0px auto 0px auto;
	height: auto;
	color: #FFFFFF;
}
/*=============== masthead ==================*/
#innerwrapper #header {
	background: url('images/logo_cdd.jpg') no-repeat left;
	height: 170px;
	background-color: #FFFFFF;
}
#innerwrapper #header #banner {
	background: left;
	text-align: center;
	vertical-align: middle;
	font-size: 2em;
	font-family: 標楷體;
	padding-top: 2em;
	letter-spacing: .5em;
	color: #F99B1F;
}
/* ============== content wrapper contains menu and main content =================*/
/* ============== left navigation ================*/
#innerwrapper #contentWrapper #leftnav {
	float: left;
	padding: .8em;
	margin: .8em;
	width: 14em;
	border-right: 1px solid #000;
	font-size: .9em;
	background-color: #565656;
	color: #FFFFFF;
	border-right-width: .2em;
	border-right-color: #4B4B4B;
}
#innerwrapper #contentWrapper #leftnav ul {
	border-style: none;
	border-width: .1em;
	border-color: inherit;
	list-style: none;
	margin: 0;
	padding: 0;
	margin-bottom: 4px;
	color: #000066;
}
#innerwrapper #contentWrapper #leftnav li {
	border-bottom: 1px solid #90bade;
	margin: 0;
	padding: 2px 0;
	border-bottom-color: #444444;
	border-bottom-width: .1em;
}
#innerwrapper #contentWrapper #leftnav li a {
	background-position: center top;
	display: block;
	padding: .4em;
	margin-top: .2em;
	border-left: 10px solid #1958b7;
	border-right: 10px solid #508fc4;
	background-color: #747474;
	background-repeat: no-repeat;
	color: #FFFFFF;
	text-decoration: none;
	width: 100%;
	border-right-color: #AAAAAA;
	border-left-color: #565656;
	border-right-width: 10px;
	border-left-width: 10px;
}
html > body #innerwrapper #contentWrapper #leftnav li a {
	width: auto;
}
#innerwrapper #contentWrapper #leftnav li a:hover {
	border-left: 10px solid #1c64d1;
	border-right: 10px solid #5ba3e0;
	background-color: #686868;
	color: #FFFFFF;
	font-size: 110%;
	border-right-color: #AAAAAA;
	border-left-color: #565656;
	border-right-width: 10px;
	border-left-width: 10px;
}
/* Possible new selectors left navigation submenu */
#leftnav ul ul li a {
	padding: 3px 0 3px 3px;
	font-size: 90%;
	font-weight: normal;
	color: #FFFFFF;
}
/*=============main content area ================*/
#innerwrapper #contentWrapper #content {
	padding: 1em;
	margin-top: 1em;
	margin-left: 17em;
	color: #FFFFFF;
	height: auto;
	width: auto;
}
/* Using floated elements and a clear float class is a common method to accomplish multiple column tableless layouts. If floated elements are used without being cleared the elements following will wrap around the floated element. This class should be applied to an element after the last floated element and before the close of the container with floated elements. */
#innerwrapper #contentWrapper .clearFloat {
	display: block;
	clear: left;
}
/* ====================footer ===================*/
#innerwrapper #footer {
	margin: 1em;
	background-color: #686868;
	border-top: solid 1px #666;
	padding: 2em;
	font-size: .85em;
	text-align: center;
	border-top-color: #660066;
	color: #FFFFFF;
}
#innerwrapper #footer p {
	margin-top: 0px;
	margin-bottom: 0px;
}
/* ================== global styles ===================*/
.smalltext {
	font-size: small;
}
.floatleft {
	float: left;
	margin: 10px 10px 10px 15px;
}
.floatright {
	float: right;
	margin: 10px 15px 10px 10px;
}
table caption {
	font-family: 標楷體;
	font-size: 1.2em;
}

