/**
 * @file
 * Page Styling
 *
 * Style the markup found in page.tpl.php. Also includes some styling of
 * miscellaneous Drupal elements that appear in the $content variable, such as
 * ul.links, .pager, .more-link, etc.
 */


/*
 * Body
 */
body {
  margin: 0;
  padding: 0;
}

#page-wrapper {
}

#page {
}

/*
 * The skip navigation link will be completely hidden until a user tabs to the
 * link. See http://www.webaim.org/techniques/skipnav/
 */
#skip-link a,
#skip-link a:visited {
  position: absolute;
  display: block;
  left: 0;
  top: -500px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  text-align: center;
  background-color: #666;
  color: #fff;
}

#skip-link a:hover,
#skip-link a:active,
#skip-link a:focus {
  position: static;
  width: 100%;
  height: auto;
  padding: 2px 0 3px 0;
}

/*
 * Header
 */
#header {
  /** added by CK Lai **/
  min-height: 163px /*Non-IE6*/;
  height: auto !important /*Non-IE6*/;
  height: 163px /*IE6*/;
  /********************/
}

#header .section {
}

/** added by CK Lai **/
#header-top
{
  height: 100px;
  position: relative;
}

#header-bottom
{
  min-height: 62px /*Non-IE6*/;
  height: auto !important /*Non-IE6*/;
  height: 62px /*IE6*/;
}

#top-links{float:right;}
.top-links-ul, .top-links-ul li{padding:0; margin:0; list-style:none;}
.top-links-ul li{float:left; padding:0 0 0 1em;}
.top-links-ul li, .top-links-ul li a{color:#fff;}

#nav-global{position:absolute; bottom:0; right:0;}
.nav-global-ul li {display:inline; list-style:none;}
.nav-global-ul li a {display:block; float:left; padding:2px 5px 2px 5px; color:rgb(255,255,255); text-decoration:none;}
.nav-global-ul a:hover {text-decoration:none; color:#00ffff;}
/*********************/

#logo /* Wrapping link for logo */ {
  float: left; /* LTR */
  margin: 0;
  padding: 0;
}

#logo img {
  vertical-align: bottom;
}

#name-and-slogan /* Wrapper for website name and slogan */ {
}

h1#site-name,
div#site-name /* The name of the website */ {
  margin: 0;
  font-size: 2em;
  line-height: 1.3em;
}

#site-name a:link,
#site-name a:visited {
  color: #000;
  text-decoration: none;
}

#site-name a:hover,
#site-name a:focus {
  text-decoration: underline;
}

#site-slogan /* The slogan (or tagline) of a website */ {
}

.region-header /* Wrapper for any blocks placed in the header region */ {
}

/*
 * Main (container for everything else)
 */
#main-wrapper {
}

#main {
}

/*
 * Content
 */
#content {
}

#content .section {
  padding: 20px; /* added by CK Lai */
}

#mission /* The mission statement of the site (displayed on homepage) */ {
}

.region-content-top /* Wrapper for any blocks placed in the "content top" region */ {
}

.breadcrumb /* The path to the current page in the form of a list of links */ {
  padding-bottom: 0; /* Undo system.css */
}

h1.title, /* The title of the page */
h2.title, /* Block title or the title of a piece of content when it is given in a list of content */
h3.title /* Comment title */ {
  margin: 0;
}

/** added by CK Lai **/
h1.title
{
  margin-top: 10px; padding:2px 5px 2px 0px; border-top:dotted 1px #999; border-bottom:dotted 1px #999; font-family:"trebuchet ms",arial,sans-serif; color:#993300; font-weight:bold; font-size:180% !important /*Non-IE6*/; font-size:160% /*IE6*/; text-align:left;
}
/*********************/

tr.even /* Some tables have rows marked even or odd. */ {
  /* background-color: #eee; */ /* Drupal core uses a #eee background */
}

tr.odd {
  /* background-color: #eee; */ /* Drupal core uses a #eee background */
}

div.messages /* Important messages (status, warning, and error) for the user. See also the declarations in messages.css. */ {
}

div.status /* Normal priority messages */ {
}

div.warning,
tr.warning /* Medium priority messages */ {
  /* border: 1px solid #f0c020; */ /* Drupal core uses: 1px solid #f0c020 */
}

div.error,
tr.error /* High priority messages. See also the .error declaration below. */ {
}

.error /* Errors that are separate from div.messages status messages. */ {
  /* color: #e55; */ /* Drupal core uses a #e55 background */
}

.warning /* Warnings that are separate from div.messages status messages. */ {
  /* color: #e09010; */ /* Drupal core uses a #e09010 background */
}

div.tabs /* See also the tabs.css file. */ {
}

.help /* Help text on a page */ {
  margin: 1em 0;
}

.more-help-link /* Link to more help */ {
  font-size: 0.85em;
  text-align: right;
}

#content-area /* Wrapper for the actual page content */ {
  /** added by CK Lai **/
  padding: 10px 20px 10px 20px;
  min-height: 35.0em /*Non-IE6*/;
  height: auto !important /*Non-IE6*/;
  height: 35.0em /*IE6*/;
  /*********************/
}

/** added by CK Lai **/
#content-area p
{
  text-align: justify;
}
/*********************/

ul.links /* List of links */ {
  margin: 1em 0;
  padding: 0;
}

ul.links.inline {
  margin: 0;
  display: inline;
}

ul.links li {
  display: inline;
  list-style-type: none;
  padding: 0 0.5em;
}

.pager /* A list of page numbers when more than 1 page of content is available */ {
  clear: both;
  margin: 1em 0;
  text-align: center;
}

.pager a,
.pager strong.pager-current /* Each page number in the pager list */ {
  padding: 0.5em;
}

.feed-icons /* The links to the RSS or Atom feeds for the current list of content */ {
  margin: 1em 0;
}

.more-link /* Aggregator, blog, and forum more link */ {
  text-align: right; /* LTR */
}

.region-content-bottom /* Wrapper for any blocks placed in the "content bottom" region */ {
  margin: 0px -20px -20px -20px; /* added by CK Lai */
  padding: 5px 20px 40px 20px; /* added by CK Lai */
  background-color: rgb(25,25,25); /* added by CK Lai */
  color: #fff; /* added by CK Lai */
}

/*
 * First sidebar (on left in LTR languages, on right in RTL)
 *
 * Remember to NOT add padding or margin to your .region-sidebar-first
 * (see the layout.css file.)
 */
.region-sidebar-first {
}

.region-sidebar-first .section {
}

/*
 * Second sidebar (on right in LTR languages, on left in RTL)
 *
 * Remember to NOT add padding or margin to your .region-sidebar-second
 * (see the layout.css file.)
 */
.region-sidebar-second {
  margin-top: -23px; /* added by CK Lai */
}

.region-sidebar-second .section {
}

/** added by CK Lai **/
.region-sidebar-second .title {margin:0; padding:5em 0.7em 0.3em 0.6em; background-color:#003366; font-family:verdana,arial,sans-serif; color:rgb(255,255,255); font-weight:bold; font-size:1.1em; text-align:left; text-transform:uppercase;}
.region-sidebar-second ul { /*width: 220px;*/ margin-top: 0; margin-left:-20px; }
.region-sidebar-second ul li { border-bottom: #ccc 1px dotted; list-style: none; }
.region-sidebar-second ul li a, #sidebar-right ul li a:visited { display: block; /*min-height: 1.3em Non-IE6; height: auto !important; height: 1.3em IE6; line-height: 1.3em;*/ padding: 0.3em 0.1em 0.2em 0em; text-align: left; text-decoration: none; color: rgb(70,122,167); font-weight: bold; font-size: 11px; }
.region-sidebar-second ul li ul li a, #sidebar-right ul li ul li a:visited {display:block; /*min-height:1.7em Non-IE6; height:auto !important; height:1.7em IE6; line-height:1.7em;*/ padding:0em 0.1em 0em 1.0em; text-align: left; border:none; font-weight:normal; text-decoration:none; color:rgb(70,122,167); font-size:11px; }
.region-sidebar-second ul li ul li ul li a, #sidebar-right ul li ul li ul li a:visited {display:block; padding:0em 0.1em 0em 1.0em; text-align: left; border:none; font-weight:normal; text-decoration:none; color:#333; font-size:11px; }
.region-sidebar-second ul li a:hover { background-color: rgb(223,243,253); color: rgb(0,0,0); text-align: left; text-decoration: none; border-right: solid 0.5em rgb(41,101,164); }
.region-sidebar-second ul li ul li a:hover { background-color: rgb(254,241,254); font-weight: bold; color: rgb(102,102,102); text-align: left; text-decoration: none; /*border-left: solid 0.5em rgb(5,10,140);*/ }
/*********************/

/*
 * Footer
 */
#footer {
  /** added by CK Lai **/
  background-color: rgb(25,25,25);
  padding: 5px 20px 5px 20px;
  min-height: 15.0em /*Non-IE6*/;
  height: auto !important /*Non-IE6*/;
  height: 15.0em /*IE6*/;
  /*********************/
}

#footer .section {
}

#footer-message /* Wrapper for the footer message from Drupal's "Site information"
                   and for any blocks placed in the footer region */ {
  /** added by CK Lai **/
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 10px;
  color: #666;
  /*********************/
}

/** added by CK Lai **/
#footer-message a,
#footer-message a:visited
{
  text-decoration: none;
  color: #fc7316;
}

#footer-message a:hover
{
  text-decoration: none;
  color: #005787;
}
/*********************/

.region-footer {
}

/*
 * Closure
 */
.region-page-closure /* Wrapper for any blocks placed in the closure region */ {
}

/*
 * Drupal boxes
 *
 * Wrapper for Comment form, Comment viewing options, Menu admin, and
 * Search results.
 */
.box /* Wrapper for box */ {
}

.box h2 /* Box title */ {
}

.box .content /* Box's content wrapper */ {
}

/*
 * Markup free clearing (See: http://www.positioniseverything.net/easyclearing.html )
 */
.clearfix:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

/**
 * Hide elements from all users.
 *
 * Used for elements which should not be immediately displayed to any user. An
 * example would be a collapsible fieldset that will be expanded with a click
 * from a user. The effect of this class can be toggled with the jQuery show()
 * and hide() functions.
 */
.element-hidden {
  display: none;
}

/**
 * Hide elements visually, but keep them available for screen-readers.
 *
 * Used for information required for screen-reader users to understand and use
 * the site where visual display is undesirable. Information provided in this
 * manner should be kept concise, to avoid unnecessary burden on the user. Must
 * not be used for focusable elements (such as links and form elements) as this
 * causes issues for keyboard only or voice recognition users. "!important" is
 * used to prevent unintentional overrides.
 */
.element-invisible {
  position: absolute !important;
  clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  clip: rect(1px, 1px, 1px, 1px);
}

/** main table style **/
/* added June 23, 2009 by CK Lai */
	table{
		/*border: 1px solid #666;*/
		width: 100%;
              border-cellspacing: 0;
	}
	tr td{
		font-family: "lucida grande", verdana, sans-serif;
		font-size: 8pt;
		padding: 3px 8px;
		background: #fff;
	}
	thead td, thead th{
		color: #663300;
		background-color: #ddd;
		font-weight: bold;
		border-bottom: 1px solid #999;
	}
	tbody td{
		border-left: 1px solid #D9D9D9;
              border-bottom: 1px dotted #ddd;
	}
	tbody th{
              border-left: 1px solid #D9D9D9;
		font-family: "lucida grande", verdana, sans-serif;
		font-size: 8pt;
		padding: 3px 8px;
		background: #fff;
              color: #993300;
              font-weight: bold;
	}
	tbody tr.even td, tbody tr.even th{
		background: #eee;
	}
	tbody tr.selected td, tbody tr.selected th{
		background: #3d80df;
		color: #ffffff;
		font-weight: bold;
		border-left: 1px solid #346DBE;
		border-bottom: 1px solid #7DAAEA;
	}
	tbody tr.ruled td, tbody tr.ruled th{
		color: #000;
		background-color: #C6E3FF; 
		/*font-weight: bold;*/
		border-color: #3292FC;
	}
	
	/* Opera fix */
	head:first-child+body tr.ruled td, head:first-child+body tr.ruled th{
		background-color: #C6E3FF; 
	}

/** table with design **/
/* added July 20, 2009 by CK Lai */
	table.design{
		width: 100%;
              border-cellspacing: 0;
	}
	table.design tbody td{
		font-family: "lucida grande", verdana, sans-serif;
		font-size: 8pt;
		font-weight: bold;
		padding: 3px 8px;
		background: #fff;
		color: #000;
		text-align: center;
	}
	table.design tbody td.type1{
		background: #c4bbc3;
	}
	table.design tbody td.type2{
		background: #bda7ae;
	}
	table.design tbody td.type3{
		background: #a5bbdb;
	}
	table.design tbody td.type4{
		background: #b7afd1;
	}
	table.design tbody td.type5{
		background: #44b984;
	}
	table.design tbody td.type6{
		background: #e6c3ad;
	}
	table.design tbody td.type7{
		background: #aba99b;
	}
	table.design tbody td.type8{
		background: #ffff00;
	}
	table.design tbody th{
		font-family: "lucida grande", verdana, sans-serif;
		font-size: 8pt;
		padding: 3px 8px;
		background: #eaec50;
              color: #7030a0;
              font-weight: bold;
		text-align: center;
	}

/** pdf link style **/
/* added June 23, 2009 by CK Lai */
.pdfFile {background: url(img/pdficon_small.gif) no-repeat 0 0; padding-left:18px;}
hr {clear: both; height: 0.1em; border: none; background: rgb(210,210,210);}
h2 {color: #996600; border-bottom: 1px solid #999;}
em {color: #557700;}
#content-area p.right {position:absolute; bottom:10px; right:30px;}
.region-content-bottom p.right {text-align: right;}
#header-bottom h1 {color: #fff; font-family: Century Gothic, Geneva, sans-serif; font-size: 200%; margin:0; padding: 2px 15px 2px 15px;}
#header-bottom h3 {color: #fff; font-family: Century Gothic, Geneva, sans-serif; font-size: 140%; margin:0; padding: 0px 15px 2px 150px;}

/* CSS Slide show at home page */
/* added June 29, 2009 by CK Lai */
#slideshow {
    position: relative;
    margin-left: -5px;
    margin-right: -5px;
    min-height: 430px;
    height: auto !important;
    height: 430px;
}

#slideshow IMG {
    position: absolute;
	height: 430px;
	width: 960px;
    top: 0;
    left: 0;
    z-index: 8;
}

#slideshow IMG.active {
    z-index: 10;
}

#slideshow IMG.last-active {
    z-index: 9;
}
