/* Responsive Design
---------------------------------------- */

@media (max-width: 320px) {
	select, .inputbox {
		max-width: 220px;
	}
}

/* Notifications list
----------------------------------------*/
@media (max-width: 350px) {
	.dropdown-extended .dropdown-contents {
		width: auto;
	}
}

@media (max-width: 430px) {
	.action-bar .search-box .inputbox {
		width: 90px;
		margin: 3px 0 0 0;
	}
	
	.action-bar .button {
		margin-top: 3px;
		margin-bottom: 3px;
	}

	.section-viewtopic .search-box .inputbox {
		width: 30px;
		margin: 3px 0 0 0;
	}

	.action-bar .search-box .inputbox ::-moz-placeholder {
    	content: "Search...";
  	}

  	.action-bar .search-box .inputbox :-ms-input-placeholder {
  		content: "Search...";
  	}

  	.action-bar .search-box .inputbox ::-webkit-input-placeholder {
  		content: "Search...";
  	}
}

@media (max-width: 370px) {
	.action-bar .search-box .inputbox {
		width: 40px;
	}
}

@media (max-width: 500px) {
	dd label {
		white-space: normal;
	}

	select, .inputbox {
		max-width: 235px;
		margin: 0 0 3px 0;
	}

	.captcha-panel dd.captcha {
		margin-left: 0;
	}

	.captcha-panel dd.captcha-image img {
		width: 100%;
	}

	dl.details dt, dl.details dd {
		width: auto;
		float: none;
		text-align: left;
	}

	dl.details dd {
		margin-left: 20px;
	}

	p.responsive-center {
		float: none;
		text-align: center;
		margin-bottom: 6px;
		margin-top: 6px;
	}

	.action-bar > div {
		margin-bottom: 5px;
 	}

	.action-bar > .pagination {
		float: none;
		clear: both;
		padding-bottom: 3px;
		padding-top: 3px;
		text-align: center;
	}
	
	.rtl .action-bar > .pagination {
		float: none;
		text-align: center;
	}

	.action-bar > .pagination li.page-jump {
		margin: 0 2px;
	}

	p.jumpbox-return {
		display: none;
	}

	.display-options > label:nth-child(1) {
		display: block;
		margin-bottom: 5px;
	}

	.attach-controls {
		margin-top: 5px;
		width: 100%;
	}

	.quick-links .dropdown-trigger span {
		display: none;
	}
}

@media (max-width: 550px) {
	ul.topiclist.forums dt {
		margin-right: 0;
	}

	ul.topiclist.forums dt .list-inner {
		margin-right: 0;
	}

	ul.topiclist.forums dd.lastpost {
		display: none;
	}
}

@media (max-width: 700px) {
	.responsive-hide { display: none !important; }
	.responsive-show { display: block !important; }
	.responsive-show-inline { display: inline !important; }
	.responsive-show-inline-block { display: inline-block !important; }

	/* Content wrappers
	----------------------------------------*/
	html {
		height: auto;
	}

	.wrap {
		min-width: 290px;
		padding: 0 5px;
	}

	/* Common block wrappers
	----------------------------------------*/
	.page-body {
		margin: 4px;
	}
	
	.headerbar {
		margin-left: 4px;
		margin-right: 4px;
		border-radius: 5px;
	}
	
	.top-navbar, .navbar, .bottom-navbar {
		margin-left: 4px;
		margin-right: 4px;
	}
	
	.bottom-navbar  .responsive-menu.rightside.dropdown-container {
		margin-left: 5px;
	}		
	
	.forabg .header, .forumbg .header {
		padding-left: 0;
	}
	
	.rtl .forabg .header, .rtl .forumbg .header {
		padding-right: 0;
	}
	
	.tabs-containerl {
		margin-bottom: 0;
	}

	/* Logo block
	----------------------------------------*/
	.site-description {
		float: none;
		width: auto;
		text-align: center;
	}

	.logo {
		/* change display value to none to hide logo */
		display: inline-block;
		float: none;
		padding: 0;
	}
	
	/* site logo on small screens */
	.site_logo {
		background-image: url("./images/site_logo_mobile.png");
		width: 250px;
		height: 37px;
	}
	
	.headerbar p {
		font-size: 1.5em;
	}

	.site-description h1, .site-description p {
		text-align: inherit;
		float: none;
		line-height: 1.2em;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.site-description p {
		/* change display value to none to hide site description */
		display: block;
		margin-bottom: 2px;
	}

	/* Navigation
	----------------------------------------*/
	.headerbar {
		padding: 6px;
	}
	
	.headerbar h1 {
		/* change display value to none to hide site name */
		display: block;
		margin-top: 0;
		margin-bottom: 2px;
	}

	/* .topiclist lists
	----------------------------------------*/
	li.header dt {
		text-align: center;
		text-transform: none;
		line-height: 1em;
		font-size: 1.2em;
		padding-bottom: 8px;
	}
	
	table.table1 thead th {
		padding: 8px 5px 4px 5px;
	}

	ul.topiclist li.header dt, ul.topiclist li.header dt .list-inner {
		margin-right: 0 !important;
		padding-right: 0;
	}

	ul.topiclist li.header dd {
		display: none !important;
	}
	
	.panel-container .panel li.header {
		padding-left: 0;
	}

	ul.topiclist dt, ul.topiclist dt .list-inner,
	ul.topiclist.missing-column dt, ul.topiclist.missing-column dt .list-inner,
	ul.topiclist.two-long-columns dt, ul.topiclist.two-long-columns dt .list-inner,
	ul.topiclist.two-columns dt, ul.topiclist.two-columns dt .list-inner {
		margin-right: 0;
	}

	ul.topiclist dt .list-inner.with-mark {
		padding-right: 34px;
	}

	ul.topiclist dt .list-inner {
		min-height: 28px;
	}

	ul.topiclist li.header dt .list-inner {
		min-height: 0;
	}

	ul.topiclist dd {
		display: none;
	}
	ul.topiclist dd.mark {
		display: block;
	}
	
	h2.forum-title, h2.topic-title, h2.posting-title,
	h2.ucp-title, h2.memberlist-title, h2.faq-title {
		text-align: center;
	}

	/* Stat block, on-line list, birthday and statistics headers
	----------------------------------------*/
	.stat-block h3 {
		text-align: center;
		font-size: 1.2em;
		padding-left: 0;
	}
	
	.rtl .stat-block h3 {
		padding-right: 0;
	}

	/* Forums and topics lists
	----------------------------------------*/
	ul.topiclist.forums dt {
		margin-right: -250px;
	}

	ul.topiclist dd.mark {
		display: block;
		position: absolute;
		right: 5px;
		top: 0;
		margin: 0;
		width: auto;
		min-width: 0;
		text-align: left;
	}

	ul.topiclist.forums dd.topics dfn, ul.topiclist.topics dd.posts dfn {
		position: relative;
		left: 0;
		width: auto;
		display: inline;
		font-weight: normal;
	}

	li.row .responsive-show strong {
		font-weight: bold;
		color: inherit;
	}

	ul.topiclist li.row dt a.subforum {
		vertical-align: bottom;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 100px;
	}

	/* Pagination
	----------------------------------------*/
	.pagination > ul {
		margin: 5px 0 0;
	}

	.row .pagination .ellipsis + li {
		display: none !important;
	}

	/* Responsive tables
	----------------------------------------*/
	table.responsive, table.responsive tbody,
	table.responsive tr, table.responsive td {
		display: block;
	}

	table.responsive thead, table.responsive th {
		display: none;
	}

	table.responsive.show-header thead,
	table.responsive.show-header th:first-child {
		display: block;
		width: auto !important;
		text-align: left !important;
	}

	table.responsive.show-header th:first-child span.rank-img {
		display: none;
	}

	table.responsive tr {
		margin: 8px 0;
	}
	
	table.table1 tbody tr {
		border-top: 0;
	}

	table.responsive td {
		width: auto !important;
		text-align: left !important;
		padding: 4px;
	}

	table.responsive td.empty {
		display: none !important;
	}

	table.responsive td > dfn {
		display: inline-block !important;
	}

	table.responsive td > dfn:after {
		content: ':';
		padding-right: 5px;
	}

	table.responsive span.rank-img {
		float: none;
		padding-right: 5px;
	}

	table.responsive.memberlist td:first-child input[type="checkbox"] {
		float: right;
	}

	/* Forms
	----------------------------------------*/
	fieldset dt, fieldset.fields1 dt, fieldset.fields2 dt {
		width: auto;
		float: none;
	}

	fieldset dd, fieldset.fields1 dd, fieldset.fields2 dd {
		margin-left: 0px;
		margin-top: 4px;
	}

	textarea, dd textarea, .message-box textarea {
		width: 100%;
		-moz-box-sizing: border-box;
		box-sizing: border-box;
		margin-top: 6px;
	}

	dl.pmlist dt {
		width: auto !important;
		margin-bottom: 5px;
	}

	dl.pmlist dd {
		display: inline-block;
		margin-left: 0 !important;
	}

	dl.pmlist dd:first-of-type {
		padding-left: 20px;
	}

	.smiley-box, .message-box {
		float: none;
		width: auto;
	}

	.smiley-box {
		margin-top: 5px;
	}

	.bbcode-status {
		display: none;
	}

	.colour-palette, .colour-palette tbody, .colour-palette tr {
		display: block;
	}

	.colour-palette td {
		display: inline-block;
		margin-right: 2px;
	}

	.horizontal-palette td:nth-child(2n),
	.vertical-palette tr:nth-child(2n) {
		display: none;
	}

	fieldset.quick-login label {
		display: block;
		margin-bottom: 5px;
		white-space: normal;
	}

	fieldset.quick-login label > span {
		display: inline-block;
		min-width: 100px;
	}

	fieldset.quick-login input.inputbox {
		width: 85%;
		max-width: 300px;
		margin-left: 20px;
	}

	fieldset.quick-login label[for="autologin"] {
		display: inline-block;
		text-align: right;
		min-width: 50%;
	}

	/* User profile
	----------------------------------------*/
	.column1, .column2, .left-box.profile-details {
		float: none;
		width: auto;
		clear: both;
	}

	/* Polls
	----------------------------------------*/
	fieldset.polls dt {
		width: 86%;
	}

	fieldset.polls dd.resultbar {
		padding-left: 20px;
	}

	fieldset.polls dd.poll_option_percent {
		width: 20%;
	}

	fieldset.polls dd.resultbar, fieldset.polls dd.poll_option_percent {
		margin-top: 5px;
	}

	/* Post
	----------------------------------------*/
	.postbody {
		position: inherit;
	}

	.postprofile, .postbody, .search .postbody {
		display: block;
		width: auto;
		float: none;
		padding: 0;
		min-height: 0;
	}

	.post .postprofile {
		width: auto;
		border-width: 0 0 0 0;
		padding-bottom: 1px;
		margin: 0;
		margin-bottom: 1px;
		min-height: 30px;
		overflow: hidden;
		margin-top: 7px;
	}

	.postprofile dd {
		display: none;
	}

	.postprofile dt, .postprofile dd.profile-rank, .search .postprofile dd {
		display: block;
		margin: 0;
	}
	
	.postprofile dd, .postprofile dt {
	text-align: left;
	}

	.postprofile .has-avatar .avatar-container {
		margin: 0;
		overflow: inherit;
	}

	.postprofile .avatar-container:after {
		clear: none;
	}

	.postprofile .avatar {
		float: left;
		margin: 0 5px 0 0;
	}

	.postprofile .avatar img {
		width: auto !important;
		height: auto !important;
		max-height: 32px;
	}

	.has-profile .postbody h3 {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	.has-profile .post-buttons {
		right: 10px;
		top: 12px;
	}
	
	.postprofile a.username, .postprofile .username-coloured {
		font-size: 1.2em;
	}

	/* Misc stuff
	----------------------------------------*/
	h2 {
		margin-top: .5em;
	}

	p {
		overflow: hidden;
	}

	p.rightside {
		margin-bottom: 0;
	}

	fieldset.display-options label {
		display: block;
		clear: both;
		margin-bottom: 5px;
	}

	dl.mini dd.pm-legend {
		float: left;
		min-width: 200px;
	}

	.topicreview {
		margin: 0 -5px;
		padding: 0 5px;
	}

	fieldset.display-actions {
		white-space: normal;
	}

	.phpbb_alert {
		width: auto;
		margin: 0 5px;
	}

	.attach-comment dfn {
		width: 100%;
	}
	
	#viewprofile dl.details dt, #viewprofile dl.details dd {
		width: auto;
		float: none;
		text-align: center;
	}
	
	#viewprofile dl.details dd {
		margin-left: 0;
	}
	
	#viewprofile .left-box {
		float: none;
		text-align: center;
	}
	
	.recipients input.button2 {
		margin-top: 0;
	}
}

@media (min-width: 700px) {
	.postbody { width: 71%; }
}

@media (min-width: 851px) {
	.postbody { width: 77%; }
}

@media (max-width: 850px) {
	.postprofile { width: 28%; }
}

@media (min-width: 701px) and (max-width: 950px) {

	ul.topiclist dt {
    	margin-right: -410px;
	}

	ul.topiclist dt .list-inner {
    	margin-right: 410px;
	}

	dd.posts, dd.topics, dd.views {
    	width: 80px;
	}
}

@media (max-width: 320px) {
	textarea, dd textarea, .message-box textarea {
		width: 96%;
	}
	select, .inputbox {
		max-width: 228px;
	}
}

@media (max-width: 340px) {
	.tabs .tab > a, .minitabs .tab > a {
		padding: 5px 5px;
	}
	
	.responsive-tab .responsive-tab-link::before {
		left: 6px;
	}
	
	table.responsive td {
		font-size: 1.04em;
	}
}

@media (max-width: 400px) {	
	input.button2 {
		margin: 4px 0;
	}
	
	.headerbar p {
		font-size: 1.4em;
	}
}

@media (max-width: 480px) {
	fieldset.quick-login input.inputbox {
		margin-top: 4px;
	}

	dd input, dd textarea {
		margin-bottom: 1px;
	}

	.left-box, fieldset.display-actions {
		text-align: center;
	}

	fieldset.display-actions label {
		white-space: inherit;
	}

	.cp-main .right-box, .cp-main .left-box {
		margin-bottom: 4px;
	}

	.topicreview .post-buttons {
		margin-bottom: 2px;
	}
}

@media (max-width: 680px) {
	input.button2 {
		margin: 2px 0;
	}
}

@media (max-width: 800px) {
	.minitabs {
		margin: 15px 7px 0 0;
	}
}

@media only screen and (max-width: 900px), only screen and (max-device-width: 900px)
{
	.navigation a {
		margin: 3px 0;
	}
}

/* Gallery avatar image max size
----------------------------------------*/

@media (max-width: 500px) {
#gallery.gallery label img {
	max-width: 80px;
	}
}

/* Online list table header
----------------------------------------*/

@media (max-width: 700px) {
.table1.responsive thead, .table1.responsive th:first-child {
	display: block;
	}
}