table[style*="margin-top: 10px;"] iframe, table[style*="margin-top:10px;"] iframe, table[style*="margin-top: 10px;"] > tbody > tr > td > *, table[style*="margin-top:10px;"] > tbody > tr > td > *, #welcome_box iframe, #welcome_box > tbody > tr > td > *, form + table > tbody > tr > td > div.switch_placeholder, form + table > tbody > tr > td > div.switch_placeholder > * {
width:auto !important;
max-width:100%;
overflow:auto;
}

td.c_post, td.c_sig, #topic_review tbody td, #blog div.blog_entry > blockquote, td.c_user, table.profile tbody td, #mod_screen tbody td, #c_post-preview, #portal_head, #portal, #portal_foot, div.search_results, #forum_rules tbody td, #report_form tbody td, #rcp_post tbody td, #report_pm_form tbody td, #rcp_pm tbody td, #warn_viewer tbody td, table.poll tbody td, div.site_wrapper, #edit_profile tbody td, #board_settings tbody td, #sbx_archive tbody td, td.c_forum, #reg_rules_intro, #welcome_box tbody td, #nav, #board_feed tbody td, #amt_list tbody td, #member_amt_list tbody td, #shoutbox, td.c_last, #quick_pm_compose, table.posting, #logo, #pm_compose, #pm_inbox, #blog_comments li, .h2center, td.c_cat-title a, table.calendar tbody a, table.calendar td.cal_inactive div {
word-wrap:break-word;
word-break:break-word;
}

td.c_post, td.c_sig, #topic_review tbody td, #blog div.blog_entry > blockquote, td.c_user, table.profile tbody td, #mod_screen tbody td, #c_post-preview, #forum_rules tbody td, #report_form tbody td, #rcp_post tbody td, #report_pm_form tbody td, #rcp_pm tbody td, #warn_viewer tbody td, #reg_rules_intro, #board_feed tbody td, #security_settings tbody td {
vertical-align:top;
}

input, select, textarea, td.c_post *, td.c_sig *, #topic_review tbody td *, #blog div.blog_entry > blockquote *, td.c_user *, table.profile tbody td *, #mod_screen tbody td *, #c_post-preview *, #portal_head *, #portal *, #portal_foot *, div.search_results *, #forum_rules tbody td *, #report_form tbody td *, #rcp_post tbody td *, #report_pm_form tbody td *, #rcp_pm tbody td *, #warn_viewer tbody td *, table.poll tbody td *, div.site_wrapper *, #edit_profile tbody td *, #board_settings tbody td *, #sbx_archive tbody td *, td.c_forum *, #reg_rules_intro *, #board_feed tbody td *, #amt_list tbody td *, #member_amt_list tbody td *, #shoutbox, #quick_pm_compose *, table.posting *, #logo *, #pm_compose *, #pm_inbox *, #blog_comments li * {
max-width:100%;
}

td.c_user img.avatar, td.c_user img.member {
max-width:100% !important;
}

code {
width:auto !important;
white-space:pre-wrap !important;
}

input, select, textarea {
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}

@media (max-width:768px) {
table tbody td.c_last {
min-width:0;
width:auto;
}

#shoutwrap tbody td {
display:table;
width:100% !important;
table-layout:fixed;
}

#shoutopts, #shoutpost {
text-align:center;
}

#shoutpost input[type="text"] {
width:90%;
}

table.forums tbody .c_cat-mark, table.posts tbody .c_cat-mark:nth-of-type(2), table tbody .c_cat-replies, table tbody .c_cat-views, table.posts tbody .c_cat-starter, #top_menu ul, #member_list_full tbody tr[class*="row"] td:last-child, #member_list_full tbody th:last-child, #avatar_gallery_sys tbody th:first-child, #avatar_gallery_sys tbody td[style] {
display:none;
}

.horizontal_profile_enabled table.topic tbody td.c_user img.avatar, .horizontal_profile_enabled table.topic tbody td.c_user img.member {
margin-bottom:10px;
}

.horizontal_profile_enabled dl {
clear:both;
min-width:0 !important;
}

#main_content, #fast-reply {
width:100% !important;
padding:0 !important;
margin:0 !important;
}

#c_emot {
vertical-align:bottom;
}

#portal #portal_l, #portal #portal_r {
width:50%;
}

#portal #portal_news {
width:100%;
clear:both;
padding:0;
margin:0;
}

table.profile {
table-layout:fixed;
}

/*table.profile + table.profile {
table-layout:auto;
}*/

table.profile #profile_menuwrap ul.drop_menu ul {
margin-left:0;
}

table.profile td.c_user dl {
width:90%;
margin:auto;
}

#c_bbcode * {
margin:5px;
}

#blog #blog_main {
clear:both;
margin:0;
}

#blog #blog_sidebar {
width:100%;
padding:0;
margin:0 0 10px;
}
}

@media (max-width:425px) {
html, body, #main, #wrap, #logo, #submenu, #submenu_bar, #top, #top_bar {
padding:0 !important;
margin:0 !important;
}

#top_menu {
float:none !important;
clear:both;
white-space:nowrap;
overflow:auto;
}

#top_menu > li[id] {
float:none !important;
display:inline-block !important;
}

#top_menu > li[id] > a {
width:auto !important;
}

tr.forum td.c_mark, tr.redirect td.c_mark, #member_list_full tbody th:nth-child(4), #member_list_full tbody td:nth-child(4), #member_list_full tbody th:nth-child(5), #member_list_full tbody td:nth-child(5), #subscriptions tbody th:nth-child(2), #subscriptions tbody td:nth-child(2), #subscriptions tbody th:nth-child(3), #subscriptions tbody td:nth-child(3), #subscriptions tbody th:nth-child(4), #subscriptions tbody td:nth-child(4), #address_book tbody th:nth-child(2), #address_book tbody td:nth-child(2), td.c_subforum, #pm_inbox tbody th:nth-child(4), #pm_inbox tbody td:nth-child(3), #c_bbcode input[name="helpbox"], #joinable_groups tbody th:nth-child(2), #joinable_groups tbody td:nth-child(2), #forum_leaders_global tbody th:nth-child(2), #forum_leaders_global tbody td:nth-last-child(2), #forum_leaders tbody th:nth-last-child(2), #forum_leaders tbody td:nth-last-child(2), #rcp_post_list tbody th:nth-last-child(1), #rcp_post_list tbody th:nth-last-child(2), #rcp_post_list tbody td:nth-last-child(1), #rcp_post_list tbody td:nth-last-child(2), #rcp_pm_list tbody th:nth-last-child(1), #rcp_pm_list tbody th:nth-last-child(2), #rcp_pm_list tbody td:nth-last-child(1), #rcp_pm_list tbody td:nth-last-child(2), table.posts tbody .c_cat-extra, #c_bbcode *, tr.c_info td.c_info-v, tr.c_info td.c_info-v + td, tr.c_info td.c_info-v + td + td, tr#trash + tr.c_info td, #pm_viewer tr.topinfo:first-child td:nth-child(3), #pm_viewer tr.topinfo:first-child td:nth-child(4), #stats.category td.c_mark, table.forums tbody .c_cat-starter, table.forums tbody .c_cat-title:nth-last-child(4) {
display:none;
}

#sbx_archive, table.posting, #multi_login_page, table.calendar, #quick_pm_compose, #pm_compose, #security_settings {
table-layout:fixed;
}

table tbody td.c_desc, table.pm #pm_folders {
width:25%;
}

#sbx_archive td.c_desc {
width:50px;
}

#stats table.forums {
table-layout:auto;
}

.cat-topicpages, .cat-topicpages li a {
font-size:10px;
}

#boardmeta .meta_menu {
display:block;
width:100%;
clear:both;
}

table tbody td.c_post ul {
padding-left:1em;
}

table.pm #pm_folders {
padding:10px 0 0 0;
}

table.pm #pm_datesent {
width:auto;
}

table.pm #pm_folderlist li {
background:none;
padding-left:0;
}

#foot td, #foot_wrap #foot #foot_datetime {
display:block;
width:100%;
padding:10px 0;
}

#faq.faq_list tbody td, #c_bbcode a[target="_blank"] {
display:block;
}
}

@media (max-width:320px) {
#search_form, #calendar_posting, #edit_profile {
table-layout:fixed;
}

table.calendar tbody th {
text-overflow:ellipsis;
}
}