/*
Theme Name: stw-forum
Theme URI: http://bbpress.org/
Description: The responsive stw forum theme.
Version: 2.0
Author: Ali Chant / Tom de Bruin
Author URI: http://www.singletrackworld.com
*/

.forum .advert { margin: 10px 0 10px -5px; }
.forum .alt { background-color: #fff !important; }
.delete:hover { background-color: #c00; color: #fff; }
pre, code { font: 1.0em Monaco, 'Courier New', monospace; }
fieldset { border-width: 0; padding: 0; margin: 0; }
img.avatar { border: 1px solid #ddd; }
.bozo { background-color: #eeee88; }
.alt.bozo { background-color: #ffff99; }
.deleted { background-color: #ee8888; }
.alt.deleted { background-color: #ff9999; }
.bbcrumb { font-size: 0.9em; letter-spacing: 1px; margin-bottom: 10px; }
.error {  color: red; }
#paypal { float: left; margin: 3px 5px 0 0; }

/* topic icons plugin */
.topic_icons {text-decoration:none; border: 0; padding: 1px; vertical-align: text-top; background:none;}

/* Front Page
=================================== */

#front-page #discussions {}
.frontpageheatmap {
	font-weight: normal;
	line-height: 30px;
	padding-bottom: 10px;
	width: 100%;
}
#userlogin, #currentfavorites, #register, #passwordrecovery {
	color: #333;
	padding: 3px 4px 2px 4px;
	margin: 0 0 12px 0;
	background-color: #eeeeee;
	border-bottom: 3px solid #9cd91d; 
	letter-spacing: 1px;
	font-size: 1.5em;
	font-weight: normal;
}
#front-page #discussions ul {}
#front-page ul#views { list-style-type: none; margin: 0 0.5em; }
.sticky, .sticky.alt { background-color: #ddd !important; }

/* Page navigation
=================================== */

#forumlist a, #latest a, #history a, #favorites a, #user-threads a { text-decoration: none; }
#forumlist a:hover, #latest a:hover,  #history a:hover, #favorites a:hover { color: #555; }
#latest a.page-numbers,
#latest span.page-numbers {
	border-right: 1px solid #bbbbbb;
	border-bottom: 1px solid #bbbbbb;
	padding: 4px 4px 2px 5px;
	margin-left: 5px;
	background-image: url('images/page-links-background.gif');
	background-repeat: no-repeat;
	background-position: 0 0;
}
#latest span.page-numbers.current {
	color: #ffffff;
	background-position: 0 -100px;
}
#latest a.page-numbers {
	font-size: 0.8em;
	padding: 3px 3px 1px 4px;
	margin-left: 3px;
}
#latest a.prev.page-numbers,
#latest a.next.page-numbers,
#latest span.page-numbers.dots {
	border-width: 0;
	padding: 0 4px;
	background-image: none;
}
#latest span.page-numbers.dots {
	padding: 0;
}
#latest a.page-numbers:hover {
	background-position: 0 -100px;
}
#latest a.prev.page-numbers:hover,
#latest a.next.page-numbers:hover { color: #666; }

/* Topic Page
=================================== */

.infobox {
	border: 1px solid #ccc;
	border-width: 1px 0;
	padding: 10px 0;
	margin-bottom: 5px;
}
.infobox ul {
	margin: 8px 0 8px 20px;
	padding: 0;
}
.infobox ul li { padding-bottom: 3px; }
#topic-info {}
#topic-info ul { margin: 7px; }
#topic-info ul li { padding: 3px 0; }
#topic-tags { padding: 5px 0 0 7px; }
#topic-tags p { float: left; margin: 0 10px 0 0; } 
#topic-tags ul#tags-list { margin: 2px 0; }
ul#tags-list li { display: inline; padding: 0 3px 0 0; line-height: 20px; }
#tag-form { float: right; }
input#tagformsub {
	font-size: 10px;
	padding: 1px 3px;
	border-width: 1px;
	vertical-align: middle;
}
#thread {
	list-style: none;
	margin: 2em 0 0 0;
	padding: 0;
}
ol#thread { margin: 5px 0; }
#thread li {
	clear: both;
	/* Hack to force padding on .threadauthor on IE */
	border-bottom: 1px solid #fff;
	margin-bottom: 10px;
}
#thread li ol, #thread li ul { margin-left: 40px; }
#thread li ol li, #thread li ul li { padding: 0; }
.threadauthor { padding: 0; border-bottom: 1px dotted #CCC; }
.threadauthor p { margin: 0; }
.threadauthor small { font-size: 10px; }
.threadpost {
	padding: 8px 12px;
/*	margin-left: 80px; */
	background-color: #eee;
	overflow: hidden;
}
#thread li.alt .threadpost { background-color: transparent; }
#thread li.deleted { background-color: transparent; }
#thread li.deleted .threadpost { background-color: #ee8888; }
#thread li.alt.deleted .threadpost { background-color: #ff9999; }
#thread .post {
	_height: 90px; /* Hack to fix broken .alt coloring in IE6 */
	border: none;
	margin: 10px 5px;
}
#thread .post p { line-height: 1.2em; margin: 10px 0px; }
#thread .post blockquote, #live_comment_preview_main_content blockquote {
	font-style: italic;
	border-color:#CCCCCC;
	border-style:solid;
	border-width:1px 1px 1px 5px;	
	margin: 5px 6px;
	padding: 4px;
}
#thread .post li { clear:none; }

/* images on the forum */
#thread .post img { max-width: 610px; }
#thread .post img.bb_smilies { margin: 0 !important; }
.poststuff {
	clear:both;
	_clear: none; /* Hack to fix broken .alt coloring in IE6 */
	border-top: 1px dotted #ccc;
	margin: 0;
	padding: 5px 0 0;
	text-transform: uppercase;
	font-size: 80%;
}
.num, #forumlist small {                                     -size: 11px; }
.picon { padding-left: 18px; background: transparent url("/common/images/picon12.gif") no-repeat 2px 3px; }
.premier_icon { vertical-align: text-bottom; }
.postform {
	background-color: #f0f0f0;
	padding: 1em;
	margin-bottom: 1em;
	-moz-border-radius: 6px;
	-khtml-border-radius: 6px;
	-webkit-border-radius: 6px;
	border-radius: 6px;
}
.postform textarea {
	height: 12em;
	margin: 5px 0;
	padding: 5px;
	max-width: 590px;
	width: 98%;
	border: 1px solid #ccc;
	display: block;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
textarea#post_content { }
.postform label { display: block; }
.postform #topic,
.postform #tags-input {
	margin: 5px 0;
	padding: 5px;
	max-width: 590px;
	width: 100%;
	border: 1px solid #ccc;
	display: block;
}
#manage-tags { margin: 10px 0; list-style: none; }

#manage-tags li {
	float: left;
	width: 200px;
	padding-bottom: 10px;
}
.topiclink { display: block; }
.topictitle {
	font-size: 26px;
	font-weight: normal;
	display: inline-block;
	line-height: 1em;
}
.rss-link {
	display: inline-block;
	padding: 6px 0;
	text-indent: 20px;
	background-image: url('images/feed-icon-16x16.gif');
	background-repeat: no-repeat;
	background-position: 0 50%;
}
#topic-move { margin-top: 1em; }

/* Other
=================================== */

#main .frontpageheatmap a {
	font-weight: normal;
	text-decoration: none;
}
#main .infobox li { margin-bottom: 2px; }
#main a:visited { font-weight: normal; }

#main .nav a { border: 1px solid #ccc; font-weight: normal; margin: 2px; }
#main .nav a:hover { border: 1px solid #999; }
.nav { margin: 8px 0; padding: 6px 0; text-align: right; }
.nav span { font-weight: bold; }
.nav span, .nav a { padding: 6px; }
ul#forumlinks {
	list-style-type: none;
	padding: 0 0 2px 0;
	text-align: right;
	font-size: 12px;
	border-bottom: 1px solid #ddd;
	margin: 0 0 8px 0;
}
ul#forumlinks li {
	display: inline; 
	list-style-type: none;
	margin: 0 0.3em;
	color: #646464;
}
ul#forumlinks li a { color: #646464; }
ul#forumlinks li.forum a { font-weight: bold; }
#front-search { float: right; margin-top: -8px; }
#latest td, #forumlist td, #favorites td, #history td, #user-threads td { padding: 5px 10px; }
#forumlist tr td div.nest { padding-left: 2.5ex; }
#latest tr:hover, #forumlist tr:hover, #favorites tr:hover, #history tr:hover, #user-threads tr:hover { background-color: #ddd !important; }
#latest th, #forumlist th, #favorites th, #history th, #user-threads th {
	border-bottom: 1px solid #aaa;
	background-color: #eee;
	padding: 5px 10px;
	text-transform: uppercase;
	text-align: left;
}
#latest, #forumlist, #favorites, #history, #user-threads {
	background-color: #f7f7f7;
	margin-bottom: 1em;
	width: 100%;
}
#topic-search-form legend { margin: 4px; }

/* Profile Page
=================================== */

#profile-menu { list-style: none; float: right; }
#profile-menu li { display: inline; margin-left: 3px; }
#profile-menu li a {
	font-size: 1.1em;
	background-color: #ddd;
	padding: 4px 7px;
	position: relative;
	margin: 5px
	border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px;
}
#profile-menu li.current a { background-color: #bbb; }
#profile-menu li a:hover { background-color: #eaeaea; }
#useravatar { margin-bottom: 1em; float: left; margin: 5px;}
#useravatar img { display: block; border-width: 3px; border-style: double; }
#userinfo { margin-top: 10px; }
#userinfo dt { font-weight: bold; }
#userinfo dd { margin: 0 0 5px; } 
#useractivity { margin: 15px 0 5px; }
.user-recent { margin: 0 0 10px; }
.user-recent ol { margin: 5px 0 0 28px; }
.user-recent ol li { margin: 0 0 3px; }
.hidden { display: none; }
#pass-strength-result {
	padding: 1px 3px 1px 3px;
	text-align: center;
	width: 140px;
	border: 1px solid #ccc;
	background-color: #e3e3e3;
}
#pass-strength-result.bad {
	background-color: #ffeff7;
	border-color: #c69;
}
#pass-strength-result.good {
	background-color: #effff4;
	border-color: #66cc87;
}
#pass-strength-result.short {
	background-color: #e3e3e3;
}
#pass-strength-result.strong {
	background-color: #59ef86;
	border-color: #319f52;
}
/* Live previews CSS */
#live_comment_preview_main_content {
	background-color: #ececec;
	margin: 0 5px 0 0;
}
#live_comment_preview_submit {
	/*background-color: #fbfbfb;*/
	background: #A4AD32;
	color: #FFF;
	font-size: 14px;
	cursor: pointer;
	text-align: center;
	border: 1px solid #ccc;
	width: 120px;
	-moz-border-radius: 3px;
	-khtml-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
}
#live_comment_preview_loading { margin: 5px; }
#live_comment_preview_main_content img { max-width: 600px; }
/*BBsmilies plugin */
.bb_smilies {border:0; vertical-align: middle; padding-bottom:1px;}
.bb_smilies {cursor: pointer; cursor: hand;}
#bbClicker {position: absolute; float: right; visibility: hidden; background: buttonface; width: 150px; border:2px inset buttonface; font: 1.2em times, serif; z-index: 1;}
#bbClicker img {padding:5px;}
#bb_smilies_toggle {float:right; padding: 0px 6px 1px 6px; margin: 0px 15px 0px 0px; font: 1.2em times, serif; word-spacing: -1px; height: 16px; width: 16px; vertical-align:middle; line-height:16px;}
.addthis_counter .atc_s, .addthis_counter .addthis_button_expanded {
background: url(images/addthis.png);
}

#simple-search-options{
	max-width: 100%;
}

.bbcrumb{
	font-family: Sans-Serif;
}
#forum-sponsor-inline-ad{text-align: center;}
form#topic-move{display: inline-block}

/******************************* tablet **********************************/
@media screen and (max-width: 1024px) {

	/*#forum-bottom-banner-ad{*/
		/*width: 300px;*/
		/*margin: 8px auto 20px auto;*/
	/*}*/

	/*TODO: why does it center when you remove the right margin?*/
	#forum-inline-ad, #forum-bottom-banner-ad{
		width: 98vw;
		margin-left: auto;
		margin-right: auto;
	}

	div#discussions h2{
		margin: 10px;
	}

    div#discussions {
        font-size: 1rem;
    }

    div#discussions tr {
        line-height: 1.4rem;
    }

	#thread .post img.bb_smilies {max-width: 15px;}

}
/**************************** phone ***********************************/

@media screen and (max-width: 736px) {

	#thread .post img {
		max-width: 100%;
		width: initial;
	}

	#latest th, #forumlist th, #favorites th, #history th, #user-threads th {
		padding: 2px 5px;
	}

	.mobile-hide{
		display: none;
	}

	.mobile-truncate a{
		font-size: 1rem;
	}

	.topicmeta li{
		font-size: 0.8rem;
	}

	h2.topictitle{
		font-size: 1.2rem;
	}

	tr.bb-precedes-sibling td a{
		font-size: 1.0rem;
	}

	small{
		font-size: 0.8rem;
	}

	small a{
		font-size: 0.8rem;
	}

	#subshout h2, p {
		font-size: 1rem;
	}

	.post-form label {
		max-width: 480px;
		width: 90%;
	}
	textarea {
		width: 100%;
	}

	.forum-topic-author{
		display: none;
	}

	.mobile-truncate{
		/* essential */
		text-overflow: ellipsis;
		max-width: 300px;
		width: 300px;
		white-space: nowrap;
		overflow: hidden;

		/* for good looks */
		padding: 2px;
	}

	#latest td{
		padding: 0.4em;
	}

	#latest th, td.num{
		text-align: center;
		padding: 1px 1px;
	}

	#forum-inline-ad{
		width: 320px;
	}

	#latest th.forum-topic-author, td.forum-topic-author{
		text-align: left;
	}

	#discussions table{
		font-size: 0.93rem !important;
	}

	/* forum search */
	form.SuperSearch span.nowrap{
		display: block;
		padding: 2px 0 0 2px;
	}

	#SSadvanced b{
		display: block;
	}

	#SSforums{
		position: relative !important;
		padding: 2px 0 0 2px;
		margin: 4px 0 0 4px;
	}


}

/*************************** portrait phone **********************************/
@media screen and (max-width: 570px) {
	.post img,
	.post iframe,
	.post object,
	.post embed {max-width: 100%;}
}

/**************************** small phones ***********************************/
@media screen and (max-width: 370px) {

	#thread .post img {
		max-width: 310px;
	}

	.mobile-truncate{
		max-width: 260px;
		width: 260px;
	}
}


