/* Layout */

* {
    font-family: verdana, arial, helvetica, sans-serif;
    margin: 0px;
    padding: 0px;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    background: #ffffff url(/images/backgrounds/header.png) repeat-x;
    list-style: none;
}

#wrapper {
    min-height: 100%;
    width: 100%;
    margin-bottom: -75px;
}

#header {
    height: 180px;
}

#logo a {
    float: left;
    background: transparent url(/images/logos/coink.png) 20px center no-repeat;
    margin-top: 18px;
    text-indent: -2000em;
    width: 300px;
    height: 155px;
}

#contents {
    background-color: transparent;
    margin-left: auto;
    margin-right: auto;
    padding: 5px;
    width: 920px;
}

/* default elements */

h1 { 
    font-size: 1.4em;
    color: #6d6d6d;
    font-weight: normal;
    padding-bottom: 15px;
}

h2 { 
    font-size: 1em;
    color: #6d6d6d;
    font-weight: normal;
    padding-bottom: 15px;
}

h3 { 
    font-size: 0.8em;
    color: #6d6d6d;
    font-weight: bold;
    padding-bottom: 5px;
}

h4 { 
    font-size: 0.8em;
    font-style: italic;
    color: #8d8d8d;
    font-weight: normal;
    padding-bottom: 5px;
}

p, pre {
    font-size: 0.8em; 
    font-weight: normal;
    color: #333333;
    padding-left: 5px;
    line-height: 1.6em;
    text-align: justify;
}

.right {
    background-color: black;
    float: right;
}

/* version highlighting */

del {
    background-color: #ffbbbb;
    text-decoration: none;
}

ins {
    background-color: #a3feba;
    text-decoration: none;
}

/* quote element */

blockquote p {
    font-style: italic;
    display: inline;
}

blockquote {
    margin-top: 10px;
}

blockquote p:before, blockquote p:after {
    font-family: georgia, times, times new roman, serif;
    color: #facd00;
    line-height: 0;
    font-size: 5em;
}

blockquote p:before {
    content: open-quote;
    padding-right: 10px;
    vertical-align: -27px;
}

blockquote p:after {
    content: close-quote;
    font-size: 5em;
    line-height: .3;
    vertical-align: -37px;
}

p.author {
    margin-top: -20px;
    text-align: right;
    font-weight: bold;
    font-style: italic;
}

p.author:before {
    content: "(";
}

p.author:after {
    content: ")";
}

/* link elements */

a {
    color: #467aa7;
    font-weight: normal;
    text-decoration: none;
    /* Now remove the anoying dotted border when dragging in Firefox */
    outline-color: -moz-use-text-color !important;
    outline-style: none !important;
    outline-width: medium !important;
}

a img {
    border: 0px;
}

a:visited {
    color: #467aa7;
    font-style: normal;
    font-weight: normal;
    text-decoration: none;
}

a:hover {
    color: #facd00; 
    font-style: normal;
    text-decoration: none;
}

/* Navigation */

#nav ul {
    display: block;
    float: right;
    list-style: none;
    margin-top: 75px;
    margin-right: 20px;
}

#nav li {
    float: left;
    margin-bottom: 0px;
    padding-bottom: 0px;
    padding-right: 19px;
}

#nav ul li a {
    float: left;
    border-left: 2px solid #858383;
    display: block;
    margin-right: 1px;
    padding-right: 5px;
    padding-left: 5px;
    padding-top: 10px;
    padding-bottom: 10px;
    color: #ffffff;
    font-size: 0.9em;
    text-decoration: none;
    text-transform: lowercase;
    letter-spacing: 1px;
}

#nav ul li a:hover, #nav ul li a.selected {
    color: #facd00;
    border-color: #facd00;
}

#nav ul li a.l1:hover, #nav ul li a.l1.selected {
    color: #ff4848;
    border-color: #ff4848;
}

#nav ul li a.l2:hover, #nav ul li a.l2.selected {
    color: #2f74d0;
    border-color: #2f74d0;
}

#nav ul li a.l3:hover, #nav ul li a.l3.selected {
    color: #8fff6f;
    border-color: #8fff6f;
}

/* Google Adsense */

#adsense {
    float: left;
    text-align: center;
    padding: 5px;
    width: 920px;
    height: 90px;
}

/* Page Columns */

#col1 {
    float: left;
    background-color: transparent;
    margin-top: 10px;
    margin-bottom: 5px;
    padding: 0 10px 10px 10px;
    width: 570px;
    border-right: 1px solid #eaeaea;
}

#col2 { 
    float: right;
    background-color: transparent;
    margin-top: 10px;
    margin-bottom: 5px;
    padding: 0px 0 10px 15px;
    width: 310px;
}

#col1 p, #col2 p {
    font-size: 0.8em;
    padding: 0 20px 20px 0;
    color: #555555;
}

#col1 pre, #col2 pre {
    font-size: 0.8em;
    margin: 0 20px 20px 0;
    color: #555555;
    overflow: auto;
}

ul, ol {
    font-size: 0.8em;
    color: #555555;
    margin: 0 20px 20px 20px;
}

ul li, ol li {
    padding: 2px;
}

/* Images */

img {
    display: block; 
}

img.logo {
    padding-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}

img.photo {
    border: 1px solid #ababab;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
}

img.external {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

img.progress {
    border: 0;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
}

a.button img {
    display: inline; 
}

/* Footer */

#footer {
    padding: 15px 0 10px 0;
    background-color: #191718;
    text-align: center;
    height: 50px;
    font-size: 0.8em;
    float: left;
    clear: both;
    width: 100%;
}

#footer p {
    color: #272325;
    text-align: center;
    padding: 2px;
}

#footer a {
    font-weight: normal;
    color: #5b5b5b;
}

#footer a:hover {
    color: #facd00;
}