/* General settings */
body {
    font-family: Arial, sans-serif;
    font-size: 14px;
    background: #333333 url('/images/site/body-bg.jpg') repeat-x 0 0;
    color: #333333;
}

/* Wrapper */
#wrapper {
    width: 880px;
    margin: 0 auto;
}

/* Logo */
#logo {
    font-size: 30px;
    font-weight: bold;
    color: #ffffff;
    display: block;
    width: 350px;
    height: 65px;
    background: url('/images/site/logo.jpg') no-repeat 0 0;
}

#logo:hover {
    background-position: 0 -65px;
}

#logo span {
    display: none;
}

/* Navigation */
#nav {
    width: 870px;
    height: 45px;
    padding: 0 5px;
    list-style: none;
    text-align: right;
    background: #41b1dd url('/images/site/nav-bg.jpg') no-repeat 0 0;
}

#nav li {
    display: block;
    float: left;
    height: 45px;
    margin: 0 10px;
    line-height: 40px;
}

#nav li.current {
    background: #41b1dd url('/images/site/nav-bg.jpg') no-repeat 50% -45px;
}

#nav li a {
    text-decoration: none;
    color: #ffffff;
}

#nav li a:hover,
#nav li.current a {
    color: #0a507a;
}

/* Container */
#container {
    padding: 10px 20px 10px 10px;
    background: #ffffff url('/images/site/container-bg.jpg') no-repeat 0 100%;
}

/* Sidebar */
#sidebar {
    width: 200px;
    margin-right: 20px;
    float: left;
}

#sidebar li {
    list-style: none;
    margin-bottom: 10px;
}

#sidebar li a {
    display: block;
    height: 30px;
    line-height: 30px;
    padding: 0 5px;
    background: #333333 url('/images/site/sidebar-heading-bg.jpg') no-repeat 0 0;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 2px;
    text-decoration: none;
}

#sidebar li a:hover {
    color: #d3eef8;
}

#sidebar li a.nolink:hover {
    color: #ffffff;
}

#sidebar li li {
    background: #d3eef8;
    margin-bottom: 2px;
    padding: 5px;
}

#sidebar li li a {
    font-weight: normal;
    height: inherit;
    line-height: 25px;
    background: none;
    text-transform: none;
    color: #0a507a;
    margin: 0 0 2px 0;
    padding: 0;
}

#sidebar li li a:hover {
    color: #ff0000;
}

#sidebar li li li {
    border: none;
    background-color: #99d7ee;
    margin: 0 0 1px 0;
    padding: 2px 5px;
}

#sidebar li li li a {
    margin: 0;
}

#sidebar li li li a:hover {
    color: #ffffff;
}

#sidebar li li li li {
    padding: 0;
}

#sidebar li li li li a {
    background-color: #63c2e7;
    padding: 2px 5px;
}

#sidebar li li li li a:hover {
    background-color: #0a507a;
}

#sidebar li li li li.current a {
    background-color: #0a507a;
    color: #ffffff;
}

/* Content */
#content {
    width: 630px;
    float: left;
}

/* Footer */
#footer {
    padding: 10px 0;
    text-align: right;
    color: #999999;
}

#footer a {
    text-decoration: underline;
    color: #999999;
}

#footer a:hover {
    color: #ffffff;
}

#copyright {
    float: left;
}

/* Home page */
#content a.section-box {
    display: block;
    width: 265px;
    height: 60px;
    padding: 20px;
    float: left;
    margin: 0 20px 20px 0;
    background: url('/images/site/section-box-bg.jpg') no-repeat 0 0;
    color: #0a507a;
}

#content a.section-box.last {
    margin-right: 0;
}

#content a.section-box:hover {
    background-position: 0 -100px;
    color: #0d6ba4;
}

#content a.section-box span {
    display: block;
    font-weight: bold;
    font-size: 20px;
}

/* Typography */

#content {
    line-height: 1.2;
}

#content h1 {
    margin: 15px 0 10px;
    font-size: 25px;
    font-weight: bold;
    color: #22aadd;
}

#content h2 {
    margin: 10px 0 5px;
    font-size: 18px;
    font-weight: bold;
    color: #22aadd;
}

#content p {
    margin-bottom: 1.2em;
}

#content pre {
    padding: 10px 20px;
    border: 3px solid #d3eef8;
    background-color: #e9f7fc;
    margin-bottom: 1.2em;
    line-height: 1.4em;
    color: #0a507a;
}

#content img {
    border: 1px solid #333333;
    margin: 0 auto;
    display: block;
    margin-bottom: 1.2em;
}

#content div.example {
    border-left: 3px solid #99d7ee;
    padding-left: 20px;
    margin-bottom: 1em;
}

#content a {
    color: #0a507a;
    text-decoration: none;
    background-color: #d3eef8;
}

#content a:hover {
    color: #d3eef8;
    text-decoration: none;
    background-color: #0a507a;
}

#content ol li {
    list-style: inside;
}

#content ul {
    margin-bottom: 1em;
}

#content ul li {
    list-style: square inside;
}

#content ul ul {
    margin: 0;
}

#content ul ul li {
    margin: 0 0 0 2em;
}

#content ul ul li {
    list-style-type: circle;
}

#content dl dt {
    font-weight: bold;
}

#content dl dd {
    margin-left: 2em;
    font-style: italic;
}

#content input, #content textarea, #content select {
    border: 1px solid #333333;
}

#content th {
    font-weight: bold;
    text-align: center;
}

#content table, #content th, #content td {
    border-collapse: collapse;
    border: 1px solid #0a507a;
    padding: 2px 5px;
    vertical-align: top;
}

#content code,
#content pre {
    color: #0a507a;
}

#content #pagenav {
    padding: 1.2em 0;
    border-top: 1px dotted #99d7ee;
}

#content #pagenavtop {
    border-bottom: 1px dotted #99d7ee;
}

#content p.next-page {
    float: right;
}

/* HTML and CSS references */

#content table.list {
    width: 550px;
}

#content table.list, #content table.list tr, #content table.list th, #content table.list td {
    border: none;
    vertical-align: top;
    text-align: left;
}

#content table.list th {
    font-size: 2em;
    padding-bottom: 0.5em;
}

#content table.list h2 {
    margin-top: 0;
}

#content table.list a {
    color: #333333;
}

#content table.list a:hover {
    color: #FFFFFF;
}

/* Contact page */
#content table.contact,
#content table.contact th,
#content table.contact td {
    border: none;
}

#content table td.title {
    width: 150px;
    font-weight: bold;
}

#content table input,
#content table textarea {
    border: 2px solid #22aadd;
    padding: 3px;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

#contact-error {
    padding: 1.2em;
    margin-bottom: 1.2em;
    border: 2px solid #23aadd;
    background: #d3eef8;
}

#contact-error ul {
    margin-bottom: 0;
}