/***********
*** INFO ***
***********/

/*** About ***/
/*
Theme name:     Lorem Ipsum Structural
Theme author:   Dromin
Last updated:   2011-10-31
*/



/*****************
*** STRUCTURAL ***
*****************/

/*** CSS Reset ***/

* {
    border: 0;
    font-size: 100%;
    margin: 0;
    padding: 0;
}



/*** Head & Foot ***/

div#logo a, div#submenu {
    overflow: hidden; /* Contain floats. */
}

div#top_bar, div#submenu_bar {
    display: none; /* Unnecessary divs. */
}


/* Logo */

div#logo a {
    display: block; /* Make sure the entire logo area is clickable. */
}


/* Topmenu */

div#top_info {
    display: inline-block;
    padding-top: 0;
    padding-bottom: 0;
    max-width: 25em; /* Make sure #top_info can't touch #top_menu. */
}

*+html div#top_info {
    display: inline; /* IE7 inline-block fix. */
    float: left;
}

*+html div#top {
    overflow: hidden;
}

ul#top_menu {
    float: right;
}

div#top small {
    font-size: 100%; /* Small text causes 1px height difference between topmenu links. */
}

ul#top_menu li, ul#top_menu li ul {
    width: 10em;
}

/* Submenu */

div#submenu a {
    white-space: nowrap;
}

div#submenu ul {
    display: inline-block; /* Make sure submenu links can be aligned to left, center or right. */
}

*+html div#submenu ul {
    display: inline; /* IE7 inline-block fix. */
}

div#submenu ul li, div#submenu ul a {
    display: block;
    float: left;
}


/* Copyright */

div#copyright { /* In case Javascript code to place #copyright in #copyrightcontainer isn't working. */
    margin: 1em 0;
    text-align: center;
}



/*** Common Elements ***/

/* Text */

div#main > br, table#quick_pm_compose td > br, a#pmlink > br , div#c_post-wrap > br, td#c_bbcode > br, td.c_user > br {
    display: none; /* Get rid of useless br tags. */
}

td.c_post, #topic_review td, #c_post-preview, #faq_article td, #forum_rules td, 
.meta_box, .search_results, #portal_news .portal_content, .blog_entry > blockquote, #blog_comments > li > blockquote, 
#bbcode_examples td {
    word-wrap: break-word;
}

code {
    white-space: pre;
}


/* Images */

img {
    vertical-align: text-bottom;
}


/* Tables */

table {
    clear: both;
    width: 100%;
}

th {
    white-space: nowrap; /* Table cells will always be at least as wide as their header's text. */
}

div#stats th, thead th, div.portal_box th {
    white-space: normal; /* Fix IE8 expanding td.c_mark bug caused by white-space: nowrap on th. */
}


/* Forms */

form {
    clear: both;
}

td form {
    clear: none;
}

button, a.btn_fake, .button, input, select {
    vertical-align: middle;
}

button, a.btn_fake, .button, input[type=submit], input[type=reset] {
    line-height: normal;
}

a.btn_fake, .button {
    display: inline-block;
}

.button span {
    display: block;
    white-space: nowrap;
}

*+html a.btn_fake, *+html .button {
    display: inline; /* IE7 inline-block fix. */
}

*+html button, *+html input[type=submit], *+html input[type=reset] {
    overflow: visible; /* IE7 button width fix. */
}

input[type=checkbox], input[type=radio] {
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
}

*+html input[type=checkbox], *+html input[type=radio] { /* IE7 fix. */
    background: none;
    border-width: 0;
}

select {
    padding: 0;
}

textarea, div#c_post-preview {
    display: block;
    width: 95%;
}

*+html div#c_post-preview { /* IE7 fix. */
    width: auto;
}

textarea {
    overflow: auto;
}

dl#fast-reply textarea, #c_post textarea, td#c_post div#c_post-preview, table#notepad textarea, table#quick_pm_compose textarea, ol#blog_comments li form p textarea {
    margin-left: auto;
    margin-right: auto;
}



/*** Specific Elements ***/

/* Dropdown Menus */

ul.drop_menu li {
    display: block;
    float: left;
    text-align: left !important; /* Changing this will cause bug in IE7. */
    white-space: normal;
}

ul.drop_menu > li {
    white-space: nowrap;
}

ul.drop_menu a {
    display: block;
}

ul.drop_menu > li > a {
    text-align: center;
}

ul.drop_menu img {
    vertical-align: text-top; /* Default setting causes 1px height difference between .drop_menu a elements. */
}

ul.drop_menu li ul {
    border-top-width: 0 !important;
    left: -999%;
    position: absolute;
    z-index: 1;
}

*+html ul.drop_menu li ul { /* IE7 fixes */
    background-color: white;
    border-top-width: 1px !important;
    margin-top: -1px !important; /* Necessary to make dropdowns work; Do not override. */
}

ul.drop_menu li:hover ul {
    left: auto;
}


/* Wrap & Main */

div#wrap, div#main {
    clear: both; /* Make sure #wrap doesn't get pushed aside by floats from #top. */
}

div#main, div#main > div.cat-container {
    text-align: right; /* Make .cat-buttons align to the right. */
}

div#main > * {
    text-align: left; /* Undo the above rule. */
}

/* Navigation */

div#innerhead, div#navcontainer, ul#nav {
    overflow: hidden; /* Contain floats. */
}

div#navcontainer {
    float: left;
}

div#navcontainer ul {
    display: inline;
}

div#navcontainer li, div#navcontainer a, div#navcontainer span {
    display: block;
}

div#navcontainer li {
    float: left;
    text-align: center;
    white-space: nowrap;
}

div#navcontainer li img {
    vertical-align: text-bottom;
}

div#navcontainer span {
    font-weight: bold;
}

div#navcontainer li span a, div#navcontainer li span a:hover { /* Undo all background & border styles for div#navcontainer span a. */
    background: none;
    border-width: 0;
    margin: 0;
    padding: 0;
}


/* Foot */

div#foot_wrap {
    clear: both;
    overflow: hidden; /* Contain floats. */
}

td#foot_themechooser {
    width: 99%;
}

td#foot_links, td#foot_datetime { /* Make these columns only as wide as their content. */
    white-space: nowrap;
    width: 1%;
}

td#foot_datetime img {
    margin-right: 0.5em;
    vertical-align: text-bottom;
}


/* BBCode */

td.c_post blockquote, td.c_sig blockquote, table#topic_review td blockquote, div#c_post-preview blockquote, table#faq_article td blockquote, table#forum_rules td blockquote, table#bbcode_examples td blockquote, table#warn_viewer td blockquote, 
div.meta_box blockquote, div.search_results blockquote, div#portal_news div.portal_content blockquote, div.blog_entry > blockquote blockquote, #blog_comments > li > blockquote blockquote, 
div.spoilercontainer, 
div.spoiler_toggle, div.spoiler /* In case Javascript doesn't work. */, 
td.c_post table, td.c_sig table, table#topic_review td table, div#c_post-preview table, table#faq_article td table, table#forum_rules td table, table#bbcode_examples td table, table#warn_viewer td table, 
div.meta_box table, div.search_results table, div#portal_news div.portal_content table, div.blog_entry > blockquote table, #blog_comments > li > blockquote table, 
td.c_post ol, td.c_sig ol, table#topic_review td ol, div#c_post-preview ol, table#faq_article td ol, table#forum_rules td ol, table#bbcode_examples td ol, table#warn_viewer td ol, 
div.meta_box ol, div.search_results ol, div#portal_news div.portal_content ol, div.blog_entry > blockquote ol, #blog_comments > li > blockquote ol, 
td.c_post ul, td.c_sig ul, table#topic_review td ul, div#c_post-preview ul, table#faq_article td ul, table#forum_rules td ul, table#bbcode_examples td ul, table#warn_viewer td ul, 
div.meta_box ul, div.search_results ul, div#portal_news div.portal_content ul, div.blog_entry > blockquote ul, #blog_comments > li > blockquote ul, 
td.c_post hr, td.c_sig hr, table#topic_review td hr, div#c_post-preview hr, table#faq_article td hr, table#forum_rules td hr, table#bbcode_examples td hr, table#warn_viewer td hr, 
div.meta_box hr, div.search_results hr, div#portal_news div.portal_content hr, div.blog_entry > blockquote hr, #blog_comments > li > blockquote hr { /* All BBCode blocks. */
    margin-top: 0.5em !important;
    margin-bottom: 0.5em !important;
}

div.spoiler { /* In case Javascript doesn't work. */
    margin-top: -0.5em !important;
}

div.spoilercontainer div.spoiler_toggle, div.spoilercontainer div.spoiler { /* When Javascript does work. */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}


*+html td.c_post table, *+html td.c_sig table, *+html table#topic_review td table, *+html div#c_post-preview table, *+html table#faq_article td table, *+html table#forum_rules td table, *+html table#bbcode_examples td table, *+html table#warn_viewer td table, 
*+html div.meta_box table, *+html div.search_results table, *+html div#portal_news div.portal_content table, *+html div.blog_entry > blockquote table, *+html #blog_comments > li > blockquote table { /* IE7 fix. */
    margin: 0 auto;
    width: 96%;
}

td.c_post blockquote dl, td.c_sig blockquote dl, table#topic_review td blockquote dl, div#c_post-preview blockquote dl, table#faq_article td blockquote dl, table#forum_rules td blockquote dl, table#bbcode_examples td blockquote dl, table#warn_viewer td blockquote dl, 
div.meta_box blockquote dl, div.search_results blockquote dl, div#portal_news div.portal_content blockquote dl, div.blog_entry > blockquote blockquote dl, #blog_comments > li > blockquote dl {
    overflow: hidden; /* Contain floats. */
}

td.c_post blockquote dt, td.c_sig blockquote dt, table#topic_review td blockquote dt, div#c_post-preview blockquote dt, table#faq_article td blockquote dt, table#forum_rules td blockquote dt, table#bbcode_examples td blockquote dt, table#warn_viewer td blockquote dt, 
div.meta_box blockquote dt, div.search_results blockquote dt, div#portal_news div.portal_content blockquote dt, div.blog_entry > blockquote blockquote dt, #blog_comments > li > blockquote dt { /* Quote header title. */
    display: inline;
}

*+html td.c_post blockquote dt, *+html td.c_sig blockquote dt, *+html table#topic_review td blockquote dt, *+html div#c_post-preview blockquote dt, *+html table#faq_article td blockquote dt, *+html table#forum_rules td blockquote dt, *+html table#bbcode_examples td blockquote dt, *+html table#warn_viewer td blockquote dt, 
*+html div.meta_box blockquote dt, *+html div.search_results blockquote dt, *+html div#portal_news div.portal_content blockquote dt, *+html div.blog_entry > blockquote blockquote dt, *+html #blog_comments > li > blockquote dt { /* IE7 fix. */
    float: left;
}

td.c_post blockquote dd, td.c_sig blockquote dd, table#topic_review td blockquote dd, div#c_post-preview blockquote dd, table#faq_article td blockquote dd, table#forum_rules td blockquote dd, table#bbcode_examples td blockquote dd, table#warn_viewer td blockquote dd, 
div.meta_box blockquote dd, div.search_results blockquote dd, div#portal_news div.portal_content blockquote dd, div.blog_entry > blockquote blockquote dd, #blog_comments > li > blockquote dd { /* Quote header date. */
    float: right;
    font-weight: normal;
}

td.c_post blockquote code, td.c_sig blockquote code, table#topic_review td blockquote code, div#c_post-preview blockquote code, table#faq_article td blockquote code, table#forum_rules td blockquote code, table#bbcode_examples td blockquote code, table#warn_viewer td blockquote code, 
div.meta_box blockquote code, div.search_results blockquote code, div#portal_news div.portal_content blockquote code, div.blog_entry > blockquote blockquote code, #blog_comments > li > blockquote code { /* Code blocks. */
    display: block;
    max-height: 20em;
    overflow: auto;
    width: 30em;
}

td.c_post li, td.c_sig li, table#topic_review td li, div#c_post-preview li, table#faq_article td li, table#forum_rules td li, table#bbcode_examples td li, table#warn_viewer td li, 
div.meta_box li, div.search_results li, div#portal_news div.portal_content li, div.blog_entry > blockquote li, #blog_comments > li > blockquote li { /* All list items. */
    margin-left: 2.5em;
}


/* Categories */

table.cat_head, 
div.category table.forums, table#portal_stats {
    background: none;
    border-width: 0;
}

table.cat_head, 
table.forums, table#portal_stats {
    margin-top: 0 !important;
}

table.cat_head td { /* .cat_head h2 will pretend to be td. */
    background: none;
    border-width: 0;
    padding: 0;
}

table.cat_head h2 {
    margin: 0;
    overflow: hidden; /* Contain floats. */
}

span.collapse, span.uncollapse {
    float: right;
}

td.c_mark {
    text-align: center;
    width: 1%;
}

td.c_forum {
    width: 64%;
}

td.c_last {
    width: 35%;
}

tr.c_info td {
    text-align: center;
    white-space: nowrap; /* .c_last/.c_info section of forum will always be at least as wide as .c_info td text + padding. */
}

td.c_last a.c_last-title {
    display: block; /* Display last post title on separate line. */
}

td.c_last a {
    white-space: nowrap; /* Expand td.c_last to fit last post title width. */
}

tr.redirect td.c_last {
    padding-right: 5em; /* Redirect forum's td.c_last will be at least as wide as text content + 5em. */
    white-space: nowrap;
}

td.c_forum div span.forum_desc { /* Class must manually be added to forum descriptions. */
    display: block; /* Will show an extra newline between forum description and 'moderated by' line. */
}

#stats_members a.member, .bday_strip {
    white-space: nowrap;
}


/* Forum View */

th.c_cat-mark, th.c_cat-starter, th.c_cat-replies, th.c_cat-views, th.c_cat-lastpost, 
td.c_cat-mark, td.c_cat-starter, td.c_cat-replies, td.c_cat-views, td.c_cat-lastpost {
    width: 1%;
}

th.c_cat-title, 
td.c_cat-title {
    width: 99%;
}

div.t_lastpostdate {
    min-width: 15em; /* min-width of .c_cat-lastpost column. */
}

*+html div.t_lastpostdate { /* IE7 fix. */
    min-width: 0;
}

*+html th.c_cat-lastpost { /* IE7 fix. */
    padding-right: 7em;
}

*+html table#announcement_list td.c_cat-lastpost {
    padding-right: 5em;
    white-space: nowrap;
}

*+html table#announcement_list td.c_cat-lastpost div.t_lastpostdate {
    width: auto;
}

th.c_cat-mark, th.c_cat-starter, th.c_cat-replies, th.c_cat-views, 
td.c_cat-mark, td.c_cat-starter, td.c_cat-replies, td.c_cat-views {
    text-align: center;
}

td.c_cat-title > img {
    vertical-align: middle;
}

select[name=fid] + small {
    display: inline-block;
    font-size: 100%;
    vertical-align: middle;
}

*+html select[name=fid] + small {
    display: inline; /* IE7 inline-block fix. */
}

div#forum_jump select, div#forum_jump small {
    margin-top: 0 !important;
}

div#forum_jump {
    float: left;
}

tr.generic td { /* Error messages. */
    text-align: center;
}

tr.generic td small { /* Error code. */
    font-weight: bold;
}


/* Topic view */

table#topic_viewer > tbody > tr:first-child > th {
    font-weight: normal;
}

td.c_username, td.c_user, tr.c_postfoot td {
    text-align: center;
}

td.c_post, td.c_sig, td.c_user {
    vertical-align: top;
}

td.c_sig {
    height: 1em;
}

th.post_sep {
    padding: 0;
}

input.multi_quote {
    vertical-align: text-top;
}

*+html input.multi_quote { /* IE7 fix */
    vertical-align: top;
}

td.c_post, td.c_sig, td.c_nosig {
    width: 99%;
}

dl.c_post-attachment dt {
    font-weight: bold;
}

table td.c_next, table td.c_topicfoot {
    text-align: center;
}

#fast-reply dd {
    text-align: center;
}


/* td.c_user */

td.c_user {
    width: 1%;
}

td.c_user > *:first-child, #pm_viewer tr.topinfo td > *:first-child, td.c_user > img.c_user {
    margin-top: 0;
}

td.c_user > div:first-child, td.c_user > a:first-child div, #avatar_gallery_sys td:first-child div, table#pm_viewer tr.topinfo:first-child td:first-child div, table.profile td.c_mark div, div#blog_user div {
    display: inline-block;
    max-height: none !important; /* Kill inline styles. */
    max-width: none !important; /* Kill inline styles. */
}

*+html td.c_user > div:first-child, *+html td.c_user > a:first-child div, *+html #avatar_gallery_sys td:first-child div, *+html table#pm_viewer tr.topinfo:first-child td:first-child div, *+html table.profile td.c_mark div, *+html div#blog_user div {
    display: inline; /* IE7 inline-block fix. */
}

td.c_user div.usertitle {
    display: block;
}

dl.user_info, dl.user_profile {
    overflow: hidden; /* Contain floats. */
    padding-right: 0 !important; /* Padding would add to td.c_user width. */
    padding-left: 0 !important; /* Padding would add to td.c_user width. */
}

dl.user_info dt, dl.user_info dd, dl.user_profile dt, dl.user_profile dd {
    padding-top: 0;
    padding-bottom: 0;
}

dl.user_info dt {
    float: left;
    text-align: right;
}

dl.user_info dd {
    text-align: left;
}

dl.user_profile dt, dl.user_profile dd {
    display: block;
    text-align: left;
}

dl.user_info dt, dl.user_profile dt {
    font-weight: bold;
}

dl.user_info dt {
    padding-right: 0;
    width: 6.1em;
}

dl.user_info dd {
    margin-left: 6.5em;
}

dl.user_profile dd {
    font-style: italic;
    margin-left: 2em;
}

div.warn {
    white-space: nowrap;
}

dl.user_info dd.spacer, dl.user_profile dd.spacer, dl.c_user img.c_user {
    clear: left;
    font-size: 100%; /* Smaller font size would cause smaller td.c_user width. */
    height: 0;
    line-height: 0;
    margin: 0;
    padding: 0;
}


/* Polls */

td.c_poll-votes small, td.c_poll-answer small {
    display: inline;
}

td.c_poll-choice small {
    float: right;
}

td.c_poll-choice input.radiobutton, table#portal_poll input.radiobutton {
    margin-right: 0.5em;
}

td.c_poll-answer {
    text-align: right;
    width: 49%;
}

#portal_poll td.c_poll-answer {
    text-align: left;
    width: auto;
}

td.c_poll-votes {
    white-space: nowrap;
    width: 1%;
}

td.c_poll-bar {
    width: 50%;
}

td.c_poll-bar div {
    overflow: hidden;
}

td.c_poll-bar span {
    display: block;
    float: left;
}


/* Paging */

div.cat-container {
    overflow: hidden; /* Contain floats. */
}

div.cat-buttons, div.topic-buttons {
    display: inline-block; /* No float because of margin collapse. */
}

*+html div.cat-buttons, *+html div.topic-buttons {
    float: right;
}

ul.cat-pages {
    float: left;
}

ul.cat-topicpages {
    float: right;
}

ul.cat-pages li, ul.cat-pages a, ul.cat-pages span, ul.cat-pages i, ul.cat-pages input, ul.cat-topicpages li, ul.cat-topicpages a {
    display: block;
    float: left;
    text-align: center;
}

ul.cat-pages input {
    margin: 0;
    padding: 0;
}

ul.cat-pages span {
    font-weight: bold;
}

li.cat-pageshead {
    padding-top: 0;
    padding-bottom: 0;
}

ul.cat-topicpages li.cat-pageshead {
    display: none;
}


/* Posting page */

td#c_emot, td#c_bbcode, td#c_post {
    vertical-align: top;
}

td#c_bbcode, td#c_post {
    width: 99%;
}

tr td#c_emot{
    font-weight: normal;
    width: 1%;
}

td#c_bbcode {
    height: 1em;
}

td#c_bbcode button, td#c_bbcode select {
    margin: 0.1em 0;
}

ul#emot_list, div#emot_list { /* Smilie list. */
    font-style: normal;
    font-weight: normal;
    min-height: 20em;
    text-align: center;
}

div#emot_list { /* Smilie table. */
    max-height: 20em;
    overflow: auto;
}

div#emot_wrap h3 {
    font-size: 100%;
    margin-top: 0;
}

div#emot_wrap li {
    display: inline;
}

div#emot_wrap img {
    background: none;
    border-width: 0;
    padding: 0;
}

div#emot_wrap table {
    margin-top: 0 !important;
}

*+html div#emot_wrap table { /* IE7 fix. */
    margin: 0 auto;
    width: auto;
}

div#emot_wrap a#emot_end {
    display: block;
    text-align: center;
}

div#c_post-wrap {
    overflow: hidden; /* No margin collapse. */
    text-align: center;
}

textarea#c_post-text {
    height: 14em;
}

button#btn_preview {
    float: left;
}

div#c_post-resize {
    float: right;
}

div#c_post-resize span {
    float: left;
}

div#c_post-close {
    margin: 0;
    position: static !important; /* Kill inline styles, because seriously, WTF? */
}

div#c_post-resize span, div#c_post-close {
    line-height: 2em;
    padding: 0;
    text-align: center;
    width: 2em;
}

table#topic_review {
    background: none;
    border-width: 0;
    margin-top: 0 !important;
}

h2.special {
    margin-top: 0;
}

table#topic_review td {
    vertical-align: top;
}

table#bbcode_examples th {
    white-space: normal;
}

table#bbcode_examples td blockquote code {
    width: auto;
}

table#bbcode_examples td:nth-child(3), 
table#bbcode_examples td:nth-child(4), 
table#bbcode_examples td:nth-child(5), 
table#bbcode_examples td:nth-child(6) {
    text-align: center;
}


/* Profile view */

table.profile input[type=text] {
    width: 20em;
}

*+html table.profile input[type=text] { /* IE7 fix. */
    width: 15em;
}

th#profile_menuwrap {
    font-size: 100%;
}

ul#profile_menu, ul#profile_menu ul, ul#profile_menu li, ul#profile_menu a {
    height: auto;
}

ul#profile_menu {
    overflow: hidden; /* Contain floats. */
}

ul#profile_menu li {
    width: 100%;
}

td.c_desc small {
    display: block;
}

table.profile td.c_mark {
    vertical-align: top;
}

table.search_results_post td.c_postinfo {
    font-weight: normal;
    text-align: right;
}

table.search_results_post td.c_postinfo strong {
    float: left;
}


/* Blog */

canvas.cornercanvas {
    display: none !important; /* Outdated. Use CSS for rounded corners. */
}

div#blog, div#blog_head, div#blog_sub, .blog_entry > blockquote {
    overflow: hidden !important; /* Kill inline styles. */
}

div#blog_head h1 {
    float: right;
}

div#blog_sub form {
    clear: none;
    float: right;
}

div#blog_main {
    text-align: center; /* Center previous & next links. */
}

*+html div#blog_main .blog_entry {
    zoom: 1;
}

div#blog_main > * {
    text-align: left;
}

div#blog_main > a {
    display: inline-block;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;
}

div#blog_sidebar {
    float: right;
    padding-bottom: 0;
}

div#blog_sidebar > div { 
    text-align: center !important; /* Center the ads. | Kill inline styles. */
    width: auto !important; /* Kill inline styles. */
}

div#blog_sidebar > div, div#blog_sidebar > dl {
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;
}

div#blog_sidebar > div#blog_about, div#blog_sidebar > div#blog_readers {
    text-align: left !important;
}

div#blog_readers p {
    margin: 0;
}

div.blog_entry:first-child, div#blog_sidebar > div:first-child, div#blog_sidebar > dl:first-child {
    margin-top: 0;
}

div.blog_entry {
    margin-bottom: 0;
    margin-left: 0;
}

div.blog_entry h2 {
    margin: 0;
}

div.blog_date {
    display: none;
    margin-top: 0;
    margin-right: 0;
    text-align: center;
}

div.blog_date span {
    display: block;
    line-height: normal;
    min-width: 1.5em;
}

div.blog_entry > blockquote div.blog_date {
    display: block;
    float: right;
}

div.blog_entry > blockquote blockquote, div.blog_entry > blockquote .spoilercontainer, div.blog_entry > blockquote .spoiler_toggle, div.blog_entry > blockquote .spoiler, div.blog_entry > blockquote hr {
    overflow: hidden; /* Wrap around .blog_date. */
}

div#blog_foot {
    clear: both;
}

ol#blog_comments > li, ol#blog_comments > li > small {
    display: block;
}

ol#blog_comments > li {
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;
}

ol#blog_comments > li:first-child {
    margin-top: 0;
}

ol#blog_comments > li > form {
    clear: none;
    text-align: center;
}


/* Preferences */

div#boardmeta, div.meta_menu {
    overflow: hidden; /* Contain floats. */
}

div.meta_menu {
    float: right;
    padding-right: 0; /* Padding would add to .meta_menu width. */
    padding-left: 0; /* Padding would add to .meta_menu width. */
    width: 48%;
}

div.meta_menu:first-child {
    float: left;
}

div.meta_menu img {
    float: right;
}

div.meta_menu li {
    list-style-position: inside;
    list-style-type: none;
}

td#c_notes {
    text-align: center;
}

table#name_change_req input[type=text] {
    width: 20em; /* IE8 bugfix. */
}

table#edit_profile tbody tr:first-child td small {
    display: block;
}

table#edit_sig td.c_sig {
    font-size: 100%;
    text-align: center;
}

table#edit_sig td#c_post {
    text-align: center;
}

table#edit_sig td#c_post button#btn_preview {
    float: none;
}

table#edit_sig td#c_post div#c_post-preview {
    text-align: left;
}

table#avatar_gallery_sys th {
    white-space: normal;
}

table#avatar_gallery_sys tbody th:first-child, table#avatar_gallery_sys tbody td:first-child {
    text-align: center;
}

table#avatar_gallery_sys td {
    vertical-align: top;
}

table#avatar_gallery_sys td.c_foot {
    font-size: 100%;
}

table#avatar_gallery_sys td.c_foot form {
    display: inline;
}

table#avatar_gallery_sys td.c_foot .cat-topicpages {
    margin-top: 0.5em;
}

td#ucp_gallery {
    text-align: center;
}

td#ucp_gallery li {
    display: inline-block;
}

*+html td#ucp_gallery li {
    display: inline; /* IE7 inline-block fix. */
}

td#ucp_gallery li a {
    display: block;
}

td#ucp_gallery li a img {
    vertical-align: middle;
}

td#ucp_gallery li button img {
    display: block;
}

table#joinable_groups tbody td:nth-child(3), table#joinable_groups tbody td:nth-child(4) {
    white-space: nowrap;
}


/* PM system */

table#pm_inbox td.c_head {
    font-weight: normal;
}

th#pm_folders {
    font-weight: normal;
    vertical-align: top;
    white-space: normal;
    min-width: 10em;
}

*+html th#pm_folders { /* IE7 fix. */
    white-space: nowrap;
}

th#pm_folders li {
    list-style-position: inside;
    list-style-type: none;
}

th#pm_folders, th#pm_subject, th#pm_with, th#pm_replies, th#pm_datesent, th#pm_select {
    height: 1em;
}

th#pm_subject {
    width: 99%;
}

th#pm_folders, th#pm_with, th#pm_replies, th#pm_datesent, th#pm_select {
    width: 1%;
}

th#pm_with, table#pm_inbox tbody td:nth-child(2), th#pm_replies, table#pm_inbox tbody td:nth-child(3), th#pm_select, table#pm_inbox tbody td:nth-child(5) {
    text-align: center;
}

th#pm_datesent a {
    margin-right: 5em; /* th#pm_datesent will at least have with of text + this margin. */
}

table#pm_inbox tbody th#pm_datesent:nth-child(5) a {
    margin-right: 0; /* Undo for browsers that support :nth-child selector. */
}

table#pm_inbox tbody td:nth-child(4) {
    white-space: nowrap;
}

table#pm_inbox td.c_foot {
    font-size: 100%;
}

tr.pm_new td {
    font-weight: bold;
}

table#quick_pm_compose td.c_head:first-child {
    white-space: normal;
    width: 99% !important; /* Kill inline styles. */
}

table#quick_pm_compose td.c_head {
    white-space: nowrap;
    width: 1%;
}

table#quick_pm_compose span#username_response {
    white-space: nowrap;
}

table#quick_pm_compose tr.row2 td, table#pm_quick_reply tbody td {
    text-align: center;
}

table#pm_viewer tr.topinfo td {
    vertical-align: top;
    width: 1%;
}

table#pm_viewer tr.topinfo td, table#pm_viewer tbody tr.topinfo:first-child td:first-child {
    font-weight: normal;
    text-align: center;
}

table#pm_viewer tr.topinfo td.c_username, table#pm_viewer tr.topinfo td.c_user {
    width: 99%;
}

table#pm_viewer tr.topinfo td.c_username {
    vertical-align: middle;
}

table#pm_viewer tr.topinfo td.c_user div.usertitle {
    display: block;
}

table#pm_viewer tr.topinfo div.warn {
    padding-right: 0;
    padding-left: 0;
}

table#conversation {
    margin-bottom: 0 !important; /* Kill inline styles. */
}

table#conversation td.c_postinfo big {
    font-size: 100%;
}

table#conversation td.c_postinfo big a.member {
    font-weight: bold;
}

table#pm_quick_reply td#c_post button#btn_preview {
    float: none;
}

div#pmtoast {
    bottom: 1em;
    position: fixed;
    right: 1em;
}

a#pmlink {
    display: block;
    overflow: hidden; /* Contain floats. */
}

a#pmlink big {
    display: block;
}

a#pmlink small {
    display: block;
    float: left;
    font-size: 100%;
    text-align: right;
}

a#pmlink strong {
    display: block;
}

a#pmclose {
    display: block;
    text-align: right;
}


/* Search */

div.search_results {
    clear: both;
    line-height: 1em;
}

div.search_results > div {
    margin-top: -1em;
}

div.search_results > h3 {
    margin: 0;
}

div.search_results > h3 > cite {
    float: right;
}

div.search_results > cite {
    display: none;
}

div.search_results > p {
    margin: 0;
}


/* Calendar */

table.calendar thead th {
    text-align: center;
}

table.calendar thead th big, table.calendar td.cal_inactive div {
    font-size: 100%;
}

table.calendar td {
    height: 5em;
    vertical-align: top;
    width: 14.3%;
}

table.calendar td div {
    position: relative;
}

table.calendar td div a {
    bottom: 0;
    position: absolute;
    right: 0;
}

table.calendar td.cal_inactive div {
    opacity: 0.3;
    filter: alpha(opacity=30);
}

table.calendar td ul li {
    margin-top: 0.5em;
}

table.calendar td ul li, table.calendar td ul li a {
    border-radius: 1em;
    display: block;
}

table.calendar td ul li a {
    border-width: 0;
}


/* FAQ */

table.faq_list {
    margin-top: 0 !important;
}

table.faq_list, table.faq_list tr:first-child td {
    background: none;
    border: none;
    margin: 0;
}

table.faq_list td {
    padding: 0;
}

table.faq_list tr:first-child td {
    padding-left: 1em;
    vertical-align: top;
    width: 50%;
}

table.faq_list tr:first-child td:first-child {
    padding-right: 1em;
    padding-left: 0em;
    vertical-align: top;
    width: 50%;
}

table.faq_list dl {
    display: block;
    padding-right: 0;
    padding-left: 0;
    overflow: hidden; /* Contain floats. */
}

table.faq_list td .table_fake form {
    margin: 0;
}

dd.faq_more {
    background: none;
    float: right;
    padding: 0;
}


/* Portal */

div#portal_clear {
    clear: both;
    font-size: 0;
}

div#portal_l {
    float: left;
}

div#portal_r {
    float: right;
}

div#portal_r div.portal_box, div#portal_l div.portal_box, div#portal_news div.portal_box, div#portal_foot div.portal_box {
    margin-bottom: 0;
}

div#portal_r div.portal_box, div#portal_l div.portal_box, div#portal_foot div.portal_box {
    margin-right: 0;
    margin-left: 0;
}

div.portal_box:first-child {
    margin-top: 0;
}

div.portal_box h2 {
    margin: 0;
}

div.portal_box form, div.portal_box table {
    clear: none;
}

div.portal_box > table, div.portal_box > form > table, div.portal_box > table#portal_activelist {
    background: none;
    border-width: 0;
    margin-top: 0 !important;
}

div#portal_foot {
    clear: both;
}


/* Shoutbox */

table#shoutwrap td {
    padding: 0;
}

form#shoutpost, p#shoutopts {
    text-align: center;
}

ul#shoutbox li {
    list-style-position: inside;
    list-style-type: none;
}

ul#shoutbox li, ul#shoutbox li.odd {
    border-width: 0;
}

ul#shoutbox li dt {
    font-style: italic;
}

ul#shoutbox li dd a.member {
    font-weight: bold;
}

table#sbx_archive {
    background: none;
    border-width: 0;
    margin-top: 0 !important;
}


/* Registration Page */

table.register th#c_tos {
    font-size: 100%;
    font-style: normal;
    font-weight: normal;
    vertical-align: top;
    white-space: normal;
    width: 18em;
}

table.register button.c_foot {
    display: block;
    margin-right: auto;
    margin-left: auto;
}



