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

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

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

@media (max-width: 430px) {
	.action-bar .button {
		margin-right: 3px;
	}

	.action-bar .button-search {
		margin-right: 0px;
	}

	.action-bar .search-box .inputbox {
		width: 120px;
	}

	.button[title="Odpowiedz"], .button[title="Nowy temat"] {
		float: right;
		margin-right: 0;
	}

	.section-viewtopic .search-box .inputbox {
		width: 75px;
	}

	.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...";
  	}

	.dropdown-extended ul {
		max-height: 400px;
	}
}

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

	select, .inputbox {
		max-width: 260px;
	}

	.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: 5px;
	}

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

	.action-bar .pagination > ul {
		width: 100%;
	}

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

	.arrow.previous {
		float: left;
	}

	.arrow.next {
		float: right;
	}

	.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;
	}

	#quick-login-panel {
		width: auto!important;
	}


}

@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;
	}

	body {
		font-size: 11px;
		letter-spacing: 0px;
		padding: 0;
	}

	.wrap {
		border: none;
		border-radius: 0;
		margin: 0;
		min-width: 290px;
		padding: 0 5px;
	}

	h3 {
		font-size: 1.2em;
	}

	/* Common block wrappers
	----------------------------------------*/
	.forabg, .forumbg, .post, .panel {
		border-radius: 5px;
	}

	.panel {
		padding: 5px 15px
	}

	#postingbox.panel {
		padding: 5px 10px;
	}

	.headerbar {
		min-height: 90px;
		padding: 10px 0 5px;
	}

	.forabg, .forumbg {
		border-radius: 6px;
	}

	.cp-main .forabg, .cp-main .forumdb, .cp-main .post, .cp-main .panel {
		border-radius: 7px;
	}

	.single-post .postbody .content {
		font-size: 1.15em;
	}

	.forabg h3 {
		font-size: 1.25em;
		text-align: left;
	}

	/* Logo block
	----------------------------------------*/
	.site-description {
		float: none;
		width: auto;
		text-align: center;
	}
	.site-description h1, .site-description p {
		text-align: inherit;
		float: none;
		margin: 0;
		line-height: 1.2em;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.site-description p, .search-header {
		display: none;
	}

	.logo {
	    display: inline-block;
	    float: none;
	    padding: 2px 10px 6px 0px;
	    clear: both;
	    vertical-align: middle;
	}

	.site_logo {
	    background-size: contain;
	    padding: 0;
	    height: 46px;
	    width: 104px;
	}

	.site-title {
		display: inline-block;
		padding-bottom: 6px;
		text-align: left;
		vertical-align: middle;
	}


	.fb-like-wrapper {
		width: auto;
	}


	.social-bar {
	    display: flex;
	    justify-content: center;
	}

	.social-buttons {
		display: flex;
		gap: 15px;
	}

	.social-buttons > div {
		padding-right: 0;
	}



	/* Navigation
	----------------------------------------*/
	.headerbar + .navbar {
		margin-top: 0px;
	}

	.navbar {
		padding: 2px 5px;
	}

	a.header-avatar span span::after {
		padding-left: 0px;
		margin-right: 2px;
	}

	.sub-navbar-dropdown {
		margin-right:2px;
	}

	.sub-navbar-dropbtn::before {
		margin-right:2px;
	}

	/* Search
	----------------------------------------*/
	.responsive-search { display: block !important; }

	/* .topiclist lists
	----------------------------------------*/
	.topic-title, .forum-title, .forum-desc {
		padding: 0 5px 10px;
	}

	li.header dt {
		text-align: center;
		text-transform: none;
		line-height: 1em;
		font-size: 1.2em;
		margin: 0 0 4px 0;
	}

	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;
	}

	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;
		padding-right: 0;
	}

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

	ul.topiclist dd {
		display: none;
	}
	ul.topiclist dd.mark {
		display: block;
	}

	dl.row-item {
		background-position: 2px 7px;
	}

	dl.row-item dt .list-inner {
		padding-left: 48px;
	}

	/* 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;
	}


	.pagination li:nth-child(4).ellipsis + li a {
		display: none;
	}

	.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: 2px 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;
	}

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

	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: 90%;
	} */

	/* fieldset.polls dd.resultbar {
		width: 20%;
	} */


	fieldset.polls dd.resultbar, fieldset.polls dd.poll_option_percent {
	  	padding: 2px 0px;
	}

	/* Post
	----------------------------------------*/
	.postbody {
		position: inherit;
		padding-top: 5px;
	}

	.post-container .inner {
		margin: 0.15em;
		margin-top: 0.75em;
	}


	.postbody .content {
		font-size: 1.33em;
		letter-spacing: 0;
		line-height: 1.63em;
		padding-right: 0px;
		padding-top: 0.75em;
	}

	blockquote {
		line-height: 1.55em;
		padding: 10px;
	}

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

	.postbody, .search .postbody {
		padding: 0 0 1.75em 0;
	}

	.post {
		padding: 5px 10px;
	}

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

	.postprofile dd {
		display: none;
	}

	.profile-best-comments {
		display: none;
	}

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

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

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

	.postprofile .avatar {
		margin-right: 5px;
	}

	.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 {
		/* CZU right: 30px; */
		right: 10px;
		top: 15px;
	}

	.online {
		background-size: 40px;
	}

	.content {
		letter-spacing: normal;
	}

	.signature .postimage {
		max-height: 140px;
	}

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

	#site-description h2 {
	    line-height: 1em;
	    padding: 2px 0 10px 0px;
	    margin: 0;
	}

	p {
		margin-bottom: .5em;
		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%;
	}

	#recent-topics-box .topics dl.row-item dt .list-inner {
	    padding-left: 56px;
	}

	.rt_unread .avatar_circle::after {
		width: 10px;
		height: 10px;
		left: 30px;
	}

	.avatar_circle_container {
	    width: 37px;
	    height: 37px;
	    top: 3px;
	}

	.avatar_circle img {
	    max-width: 37px;
		min-width: 37px;
	}

	#qr_action_box_container {
	    right: 5px!important;
	}

	.qr_fixed_form .panel {
		padding: 2px 4px;
	}

	#qr_postform .panel {
		padding: 0px 10px;
	}
}

@media (min-width: 700px) {
	.postbody { width: 70%; }
	.responsive-show-only-inline {
		display: none;
	}

	.leftsided .post:not(.profile_hidden) div.postbody {
		float: right;
		width: 77%!important;
	}

	#qr_loading_text > span {
		margin: 10px 20px 0!important;
	}
}

@media (min-width: 850px) {
	.postbody { width: 77%; }
	.single-post .postbody .content {
		font-size: 1.1em;
	}
}

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

	.ss_slider_content_inner {
		padding: 0 2px 2px;
	}

	.hasjs .postbody .post-buttons,  .postbody .post-buttons {
		max-width: 118px;
		width: auto;
	}




	/* .hasjs .postbody .post-buttons, .postbody .post-buttons {
	  max-width: 118px;
	  overflow-y: hidden;
	  max-height: 26px;
	} */

}

@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: 1460px) {
	.fixed-tools {
		right: 16px;
	}
}
