/*
 * netj.org's stylesheet
 * Author: Jaeho Shin <netj@sparcs.org>
 * Created: 2006-06-25
 */

/* Basics */
html {
    font-size: 16px;
}

/* Fonts */
body, #comments { /* ambience */
    font-family: 'Trebuchet MS', 'HCR Dotum', 'Malgun Gothic', sans-serif;
}
h1, h2, h3, h4, h5, h6 { /* titles */
    font-family: 'Calibri', 'Trebuchet MS', 'HCR Dotum', 'Malgun Gothic', sans-serif;
}
#body, #body pre.formatted, .dsq-comment-body, .comment-body { /* body texts */
    font-family: 'Palatino', 'Georgia', 'HCR Batang', 'NanumMyeongjo', 'UnBatang', 'Batang', serif;
}
pre, tt, textarea, input { /* codes */
    font-family: 'Consolas', 'Menlo', 'Monaco', 'Courier', 'Courier New', 'BatangChe', monospace;
    font-size: 90%;
}
pre.formatted {
    font-size: inherit;
}
@font-face {
    font-family: 'Dijkstra';
    src: local(Dijkstra), url(Dijkstra.ttf);
}
#site-title {
    font-family: 'Dijkstra', cursive, fantasy;
}

/* Colors */
html {
    color: #222;
    background-color: #ffe;
}
html * {
    border-color: #ccc;
}
a:link, a:visited {
    color: #f42;
}
a:link:hover, a:visited:hover, a:active {
    color: #22f;
}
#site-head, #site-foot, #site-head a, #site-foot a {
    color: #aaa !important;
}
.box {
    background: #fff;
    color: #000;
}
#navigation {
    color: #999;
}
#aside {
    color: #888;
    font-size: 11px;
}
#aside a {
    color: #c63;
}
#title {
    color: #114;
}
#body pre {
    background-color: #eee;
    border-color: #999;
    border-width: 2px;
    border-style: dotted;
}
#body pre.formatted {
    white-space: pre-wrap;
    background-color: inherit;
    border: none;
}

/* Links */
a:link {
    text-decoration: none;
}
a:visited, a:link:hover, a:visited:hover, a:active {
    text-decoration: underline;
}
a:link img, a:visited img {
    border: none;
}


/* Layout */
#head, #body, #comments, #foot, #copyright
#site-head, #navigation,
#nav-article, #nav-space, #nav-time,
#site-tools,
#aside {
    display: block;
}

/* horizontal */
body {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
#main, .main-layout {
    width: 680px;
    padding-left: 10px;
    padding-right: 10px;
}
.box {
    width: 620px;
    padding: 30px;
}
#site-head, #aside {
    position: absolute;
    margin-left: 700px;
    width: 160px;
}
#site-title {
    position: absolute;
    margin-left: -680px;
    z-index: 1;
}
#nav-time, #site-tools {
    position: absolute;
    width: 30px;
    margin-left: 860px;
    padding-left: 5px;
    padding-right: 5px;
}
#site-tools {
    padding-left: 6px;
}
#nav-space {
    position: absolute;
    width: 625px;
    padding-left: 230px;
    padding-right: 50px;
}
#nav-article, #site-foot {
    padding-left: 20px;
    padding-right: 20px;
}

/* vertical */
body {
    margin-top: 40px;
    padding-top: 60px;
}
#main {
    min-height: 1200px;
}
#site-head, #nav-time, #nav-space, #site-tools {
    top: 50px;
}
#site-tools {
    height: 16px;
    margin-top: 3px;
    padding-top: 4px;
    padding-bottom: 4px;
}
#nav-space {
    height: 16px;
    padding-top: 4px;
    padding-bottom: 8px;
}
#nav-time {
    margin-top: -5px;
    padding-top: 35px;
    padding-bottom: 10px;
}
#site-title {
    margin-top: 5px;
}
#site-icon {
    position: relative;
    top: 45px;
}
#aside {
    top: 230px;
}
#nav-article {
}
#site-foot {
    margin-top: 10px;
    margin-bottom: 40px;
}

/* Draw lines around layout containers */
#nav-time {
    border-left: 1px solid #ccc;
}
#nav-space {
    border-bottom: 1px solid #ccc;
}
#site-foot {
    border-top: 1px solid #ccc;
}
.box {
    border: 1px solid #ccc;
    border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px;
    box-shadow: 0px 0px 5px #ccc; -moz-box-shadow: 0px 0px 5px #ccc; -webkit-box-shadow: 0px 0px 5px #ccc;
}

/* XXX fixing navigation and asides, but this doesn't look so good
#site-icon, #nav-time, #nav-article, #site-tools, #aside {
    position: fixed;
}
#nav-time {
    top: 0px;
    padding-top: 90px !important;
    bottom: 0px;
}
#site-icon {
    display: block;
    top: 90px;
}
#main {
    z-index: 1;
}
 */



/* Heading */
#head {
    margin-bottom: 30px;
}
#title {
    margin-bottom: 5px;
    padding-bottom: 1px;
    font-size: 36px;
    text-shadow: #ccc 2px 2px 8px;
}
#reaction-info {
    font-size: 0.8em;
    font-weight: normal;
}
#reaction-info a {
    text-decoration: inherit;
}
#site-head, #site-tools {
    text-align: center;
}
#site-title {
    text-align: left;
    font-size: 14px;
    white-space: nowrap;
}
#site-icon {
}

/* Foot */
#foot {
    margin-top: 30px;
}
#copyright {
    font-size: 12px;
}
#copyright, #copyright * {
    vertical-align: bottom;
}
#copyright img {
    opacity: 0.4;
}

/* Navigation */
#navigation {
    font-size: 12px;
}
#navigation ul {
    display: inline;
    list-style: none;
    margin: 0px;
    padding: 0px;
}
#navigation li {
    display: inline;
    padding: 2px;
}

#navigation a {
    white-space: nowrap;
}
#site-head a,
#navigation a:link, #navigation a:visited {
    cursor: pointer;
    text-decoration: none;
}
#site-title:hover, #site-icon:hover,
#navigation a:hover, #navigation a:active {
    border-bottom: 1px dotted;
}

#site-tools img {
    padding: 0px 1px;
    height: 16px;
}

#nav-time li {
    display: block !important;
}
#nav-space {
    text-align: right;
}
#nav-space li {
    display: inline-block;
    padding-left: 5px;
}

#nav-article {
    display: table;
}
#nav-forward a:before { content: '△ '; }
#nav-backward a:after { content: ' ▽'; }
#nav-forward, #nav-backward {
    display: table-cell;
    padding: 10px;
    height: 1.5em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#nav-backward {
    text-align: right;
}



/* aside */
#aside {
    text-align: center;
    font-size: 12px;
}
#aside > div {
    margin: 40px 5px;
}
#site-links {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}
#site-links img {
    padding: 3px 3px;
    height: 16px;
    vertical-align: bottom;
}
#site-search {
    margin-top: 10px !important;
    padding: 0px 10px;
}

/* Google Custom Search Box */
#cse-search-box input[type='search'] {
    width: 100%;
    font-family: inherit;
}

/* Google AdSense */
#main-adsense {
    width: 468px; height: 15px;
    margin: 30px auto;
}
#aside-adsense {
    margin: 20px auto;
    width: 120px; height: 90px; /* links */
    /* width: 125px; height: 125px; /* ads */
    overflow: hidden;
}

/* Twitter Widgets */
#aside .twtr-widget {
    font-size: 11px !important;
}
#aside .twtr-hd h3 {
    font-size: 11px !important;
    display: inline;
}
#aside .twtr-hd h4 {
    font-size: 13px !important;
    display: inline;
}
#aside .twtr-avatar, #aside .twtr-img {
    width: auto; height: auto;
    display: inline !important;
}
#aside .twtr-avatar img {
    margin: 4px 4px 4px 0px;
}
#aside .twtr-tweet-text {
    margin-left: 0px !important;
}

/* DISQUS widget */
#aside #dsq-combo-tabs a {
    font-weight: normal !important;
    font-size: 9px !important;
}
#aside #dsq-combo-tabs {
    white-space: nowrap;
}
#aside #dsq-combo-widget h3 {
    font-size: 14px !important;
}
#aside .dsq-combo-avatar {
    width: 24px !important; height: 24px !important;
    margin-right: 4px !important;
}
#aside .dsq-combo-box {
    padding: 8px !important;
}



/* Feed */
.atom-feed {
}
.atom-entry {
    font-size: 90%;
    margin-bottom: 20px;
}
.atom-title {
    margin: 0px;
    padding-right: 160px;
    background-color: transparent;
}
.atom-published {
    height: 20px;
    margin-left: auto;
    margin-top: -20px;
    max-width: 180px;
    text-align: right;
    z-index: -1;
}
.atom-summary {
    margin-left: 10px;
}
.atom-link {
    margin-left: 10px;
}


/* Comments */
#comments {
}
.dsq-trackback-url {
    width: 100%;
    opacity: 0.5;
    border: 1px dashed;
    background-color: transparent;
    vertical-align: middle;
}
#older-comments {
    font-size: 90%;
    margin-bottom: 20px;
}
#older-comments .comment-body {
    display: block;
    border: 1px dotted;
    border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px;
    padding: 10px;
    margin-left: 10px;
    margin-bottom: 30px;
    line-height: 1.5em;
    white-space: pre-wrap;
}
#older-comments .comment-author {
    font-size: 16px;
    display: inline;
}
#older-comments .comment-timestamp {
    display: inline;
}


/* embedded stuffs */
.embedded-feed {
}
.embedded-feed a {
}
ul.embedded-feed li {
    list-style: square inside;
    vertical-align: middle;
    margin-bottom: 5px;
}


/* for pretty printing */
@media print {
    nav, aside {
        display: none;
    }
}

/* for debugging
* {
    border: 1px solid;
}
/*
*/

#body h2, #body h3, #body h4, #body h5, #body h6 {
    margin-top: 1em;
}

