* { margin: 0; padding: 0 }
html, body {
    height: 100%;
    font-family: "Lucida Grande", Verdana, sans-serif;
    font-size: 12px;
    background: #444;
    margin: 0 auto;
    color: #eee;
}

/** page formatting **/

#wrap {
    display: block;
    padding: 1%;
    background: #eee;
    clear: both;
    overflow: auto;
    color: #555;
    min-height: 50%;
}

#meta { border-bottom: 1px solid #ccc; text-align: right; padding-bottom: 2px }
#meta a { text-decoration: none; color: #537E53 }
#meta a[return] { float: left; display: block }

#header {
    border-bottom: 1px solid #ccc;
    text-align: center;
    padding: 5px;
    background: #eaeaea
}

#header span {
    font-size: 28px;
    font-family: Arial;
    letter-spacing: -0.03em;
    font-weight: 900;
    color: #666;
}
#threadlist {
    margin: 1%;
    padding: 1%;
    border: 1px dashed #ddd;
}
#threadlist a {
    text-decoration: none;
    padding: 5px;
    color: #537E53;
    font-family: monospace;
    word-spacing: -0.05em;
}
#threadlist a span { font-size: 80% }
#threadlist a:hover { font-weight: bold }
#footer {
    display: block;
    height: 10px;
    padding: 1%;
    font-weight: 900;
    background: #eee;
    clear: both;
    color: #666;
}

hr { border: none; border-top: 1px solid #ccc; clear: both }

/** post formatting **/

#info {
    background: rgba(0,0,0,0.04);
    padding: 2px 3px 2px 3px;

}
#post #message {
    padding: 10px;
    min-height: 64px;
}
#mainpost {
    font-size: 100%;
    padding: 0;
    margin: 15px 0px 15px 0px;
    overflow: visible;
}
#mainpost:after { content: " "; display: block; height: 0; visibility: none; clear: both }

#firstpost #message {
    min-height: 128px;
    padding: 10px;
}

#info #title
{ display: block; font-size: 130%; font-weight: bold; text-align: center; color: #666 }

#info #time
{ text-align: center; font-size: 75% }

#info #ptime { float: right; margin-right: 2px }
#info #number { float: right; text-transform: uppercase }
#info #download, #info #reply, #info #reference { float: left }

#info #download a, #info #reply a, #info #reference a, #info #number a, #info #ptime a
{   color: #537E53;
    text-decoration: none;
    font-family: Arial;
    padding: 1px;
}

#info #number a:hover, #info #download a:hover,
#info #reply a:hover, #info #reference a:hover { color: #111 }

#firstpost, #post {
    width: 50%;
    float: left;
    background: rgba(0,0,0,0.025);
    margin: 0px;
    padding: 0px;
    word-wrap: break-word;
}

#post {
    width: 50%;
    overflow: visible;
    background: rgba(0,0,0,0.0.5);
    margin-bottom: 10px;
    padding: 0px;
    float: none;
}

#replies { width: 49%; float: right }

#replies #post {
    width: 100%;
    float: none;
    margin-bottom: 10px;
    background: rgba(0,0,0,0.0125);
}

/*#post #message a:before {
    content: "↳";
}*/

.replybox {
    width: 100%;
    min-height: 160px;
    background: rgba(0,0,0,0.03);
    padding-bottom: 0.5px;
}

.replybox h3 { padding: 4px; background: rgba(0,0,0,0.05) }
.replybox h3 input:hover { color: #000; cursor: pointer }
.replybox h3 input {
    background: none;
    border: none;
    float: right;
    padding-top: 2px;
    color: #537E53;
}
.replybox h3 input[type="checkbox"] { margin-top: 2px; margin-right: 4px }
.replybox h3 input[type="radio"] { margin-top: 2px; margin-right: 4px }
.replybox h3 b {
    float: right;
    font-size: 80%;
    line-height: 1.3em;
    font-weight: 100;
    padding-right: 2px
}

.replybox form #title [type="text"], .replybox form #message textarea
{   display: block;
    width: 96.5%;
    padding: 5px;
    margin: 4px auto;
    background: url('title.png') center right no-repeat #eee;
    border: 2px solid #ccc;
}

.replybox form #message textarea
{ background: url('message.png') top right no-repeat #eee; height: 104px }

.replybox form #title [type="text"]
{   background: url('title.png') center right no-repeat #eee;
    padding: 5px;
}

.refloat {
    width: 48%;
    position: fixed;
    margin-left: 50%;
}
.refloat form #message textarea { }

/** filter-specific **/
.youtube-player {
    display: block;
    padding: 5px;
    width: 95%;
    height: 350px;
}

.sjis {
    font-family: IPAMonaPGothic, Mona, 'MS PGothic', YOzFontAA97 !important;
    font-size: 130%;
}

.aa {
    font-family: Courier New, Courier, monospace;
    font-size: 110%;
    color: #000;
}

pre {
    white-space: pre-wrap;       /* css-3 */
    white-space: -moz-pre-wrap !important;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
}
