#wrapper { display: flex; width: 100%; }
#wrapper > #main, #wrapper > #sidebar { vertical-align: top; }
#wrapper > #main > *:first-child { margin-top: 0!important; }
#main .category:last-child { margin-bottom: 0; }
#sidebar { min-width: 300px; max-width: 300px; margin-left: 10px; }
#sidebar .box { margin-bottom: 10px; }
#sidebar .box:last-child { margin-bottom: 0; }
#sidebar .box_header {
	padding: 5px 10px;
	font-size: 14px;
	color: #FFF;
	font-weight: 600;
	text-shadow: 0 1px 0 rgba(0,0,0,0.2);
	text-align: left;
	background: #FB9A34 url(http://z4.ifrm.com/30570/190/0/p1080828/orange.grad.1.png) repeat-x top;
	border: 1px solid #E77700;
	border-radius: 5px 5px 0 0;
}
#sidebar .box_subheader { padding: 5px 10px; background: #F5F5F5 url(http://z4.ifrm.com/30570/190/0/p1080821/grey.grad.1.png) repeat-x top; border: 1px solid #DDD; border-top: 0; }
#sidebar .box_content { background: #F5F5F5; border: 1px solid #DDD; border-top: 0; border-radius: 0 0 5px 5px; }
#sidebar ul { margin: 0; padding: 0; }
#sidebar li { list-style: none; display: table; width: 100%; padding: 5px 10px; border-bottom: 1px solid #DDD; }
#sidebar li:last-child { border: 0; }
#sidebar .stat_label { display: table-cell; width: 50%; vertical-align: middle; font-weight: 600; }
#sidebar .stat { display: table-cell; width: 50%; vertical-align: middle; text-align: right; }
#sidebar .stat_num { font-weight: 600; font-size: 13px; }
#sidebar .mostonlinedate { display: block; font-size: 10px; }

#sidebar_shoutbox .box_subheader { border-radius: 0 0 5px 5px; }
#sidebar_shoutbox .box_content { border-radius: 0; }
#sidebar_shoutbox ul#shoutbox { height: 300px!important; }
#sidebar_shoutbox form#shoutpost { display: table; width: 100%; }
#sidebar_shoutbox form#shoutpost p { display: table-cell; }
#sidebar_shoutbox form#shoutpost p:nth-child(2) { padding-left: 5px; }
#sidebar_shoutbox form#shoutpost input { width: 100%; }
#sidebar_shoutbox p#shoutopts { margin: 5px 0 0 0; }

#sidebar_events .stat_events { display: table-cell; }
#sidebar_events .stat_events_date { display: table-cell; white-space: nowrap; width: 1%; }

#sidebar_stat_links .box_header {
	background: #979797 url(http://b3.ifrm.com/30700/90/0/p3017032/grey.grad.1.png) repeat-x top;
	border-color: #757575;
}
#sidebar_stat_links a { color: #666; }
#sidebar_stat_links a:hover { color: #222; }

#sidebar_active_topics .box_header {
	background: #576DB0 url(http://z4.ifrm.com/30570/190/0/p1080822/blue.grad.2.png) repeat-x top;
	border-color: #3A5197;
}
#sidebar_active_topics .active_topics_topic a.old { color: #777; }
#sidebar_active_topics .active_topics_topic a.old:hover { color: #222; }
#sidebar_active_topics .active_topics_notice { font-style: italic; }
#sidebar_active_topics .active_topics_date { font-size: 10px; }

@media (max-width:550px) {
	#wrapper { flex-flow: column; }
	#sidebar {
		width: 100%;
		max-width: 100%;
		min-width: 100%;
		margin: 10px 0 0 0;
		flex: auto;
	}
}
