@media (max-width: 380px) {

	.wrap {
		background-size: 550px 457px;
	}

}

@media (min-width: 381px) and (max-width: 700px) {

	.wrap {
		background-size: 720px 599px;
	}

}

@media (max-width: 550px) {

	#mm-title .main-menu-bottom,
	#mm-notifications .main-menu-bottom {
		left: 0;
	}

	#mm-title .main-menu-bottom,
	#mm-last-posts .main-menu-bottom {
		width: 100%;
		right: 0;
	}

}

@media (max-width: 700px) {

	/* Override prosilver\responsive.css */

	.headerbar, .forabg, .forumbg, .post, .panel {
		margin-left: 0;
		margin-right: 0;
	}

	.navbar {
		margin: auto;
	}

	.topicreview {
		margin: 0;
	}

	li.header dt {
		text-align: left;
		text-transform: uppercase;
	}

	.inputbox:not(.autowidth) {
		max-width: 100%;
	}

	/* table responsive */

	table.responsive tr {
		padding: 5px 0;
	}

	table.table1.responsive td dfn {
		color: #888;
		font-weight: bold;
		font-style: normal;
	}

	table.table1.responsive td strong {
		color: #fff;
	}

	/* END responsive.css */

	/* table not-responsive wyświetlanie */

	table .rank-img {
		display: none;
	}

	.phpbb_alert {
		top: 100px;
	}

	.flex-columns-container-left,
	.flex-columns-container-right {
		padding-left: 0;
		padding-right: 0;
	}

	.submit-buttons .flex-columns,
	#postingbox .flex-columns,
	.flex-columns-container {
		flex-direction: column;
	}

	.flex-columns {
		margin-bottom: 25px;
	}

	#postingbox .column-left,
	#postingbox .column-right,
	#register .column-left,
	#register .column-right,
	#reset_password .column-left,
	#reset_password .column-right,
	#resend .column-left,
	#resend .column-right,
	#login .column-left,
	#login .column-right {
		flex-basis: 100%;
		align-items: center;
		text-align: center;
	}

	/* column-left column-right mobile change */

	.settings-panel .flex-columns:not(.with-checkbox, .with-radio) .column-left {
		flex-basis: 100%;
		align-items: flex-start;
		text-align: left;
	}

	.settings-panel .flex-columns:not(.with-checkbox, .with-radio) .column-right {
		flex-basis: 100%;
		align-items: center;
		text-align: center;
	}

	/* column-left column-right mobile change */

	.column-right,
	.flex-columns-container-right {
		justify-content: space-around;
		flex-wrap: wrap;
	}

	/*.flex-columns */select {
		max-width: 85vw;
	}

	.lastpost.responsive-show span {
		display: flex;
		white-space: nowrap;
	}

	.m-list-right {
		padding-right: 0;
		width: 91px;
		max-width: 91px;
	}

	.m-list-left {
		/*width: calc(100% - 91px);*/
	}

	#mm-notifications .m-list-right {
		width: 66px;
	}

	.m-list-left.notification_text {
		/*width: calc(100% - 66px);*/
		/*max-width: calc(100% - 66px);*/
	}

	.top-with-settings div,
	.top-with-settings i {
		top: -20px;
		right: 10px;
	}	

	/* E-mail stays in one line */

	table.table1#notification-settings-table .mark {
		white-space: nowrap;
	}

	#titleID {
		/*padding: 0 5px 0 5px;*/
	}

	.pagination .menu-all {
		right: 0;
	}

	.memberlist.table1 .info {
		display: none;
	}

	/* wyświetlanie post-buttons dla mcp_post */

	.postbody.mcp-post-postbody {
		position: relative;
	}

	.postbody.mcp-post-postbody .post-buttons {
		top: -1.618em;
	}

	span.author-mobile.responsive-show {
		display: inline !important;
	}

	.post .postprofile {
		padding: 0;
		margin: 0;
		min-height: 32px;
	}

	.postprofile p.post-number {
		clear: none;
	}

	.postprofile dd.profile-rank {
		display: none;
	}

	.has-profile .post-buttons,
	.post-buttons {
		right: 8px;
		top: 5px;
	}

	div.content {
		margin: 0;
	}

	.postbody p.post-number,
	.topiclist li:not(.header) .lastpost {
		display: none;
	}

	.lastpost.responsive-show {
		float: right;
		margin: 2px 0;
	}

	.lastpost .fa-fast-forward {
		padding-left: 5px;
		opacity: 0.2;
		width: 1.28571429em;
		text-align: center;
	}

	.post:not(.search) dl.postprofile {
		padding-left:3px;
	}

	.postbody {
		width: auto;
	}

	.action-bar .column-left,
	.action-bar .column-right {
		flex-basis: 100%;
	}

	fieldset.display-actions {
		padding-left: 0;
		padding-right: 0;
	}

	/* mobile width fix */

	.message-box textarea {
		width: 100%;
	}

	.inputbox {
		margin: auto;
	}

	/* END mobile width fix */

	#agreement input {
		width: 100%;
	}

	.to-searched-post {
		padding: 0;
	}

}

@media (max-width: 700px) or (max-height: 800px) {

	.main-menu-bottom {
		max-height: 66vh;
	}

}

@media (min-width: 701px) {

	dd.posts,
	dd.topics,
	dd.views,
	dd.extra,
	dd.mark,
	.flex-2centered {
		display: flex !important;
		align-items: center;
		justify-content: center;
	}

	.flex-box {
		flex-basis: 50%;
	}

}

@media (max-width: 860px) {

	.wrap {
		padding: 0 0 15px 0;
		margin: auto;
	}

	#top-site-menu {
		position: sticky;
		padding: 5px 5px 0 5px;
		box-sizing: border-box;
		background: linear-gradient(to top, transparent 0%, #000 10%);
	}

	#mm-title {
		/*order: 3;*/
		/*width: auto;*/
		margin-left: 45px;
	}

	#mm-search {
		order: 1;
		position: absolute;
		z-index: 1001;
		background: black;
		/*background: blueviolet;*/
		/*width: 100%;*/
		min-height: auto;
		align-items: flex-start;
	}

	#mm-search .main-menu-top {
		width: 100%;
		padding-left: 0;
		padding-right: 0;
	}

	#search-box-icon {
		padding-left: 11px;
		padding-right: 11px;
		z-index: 1001;
	}

	#search-box-hide {
		position: absolute;
		z-index: 1001;
	}

	#search-box-keywords {
		position: absolute;
		z-index: 1000;
		margin-left: 45px;
		font-weight: bold;
	}

	#mm-search .main-menu-bottom {
		top: 3em;
	}

	#main-menu-middle {
		order: 4;
	}

	#last-posts-icon {
		width: 50px;
	}

	#mm-last-posts .main-menu-bottom {
		left: 0;
		right: auto;
	}

	#page-header {
		display: none;
	}

	#thegate {
		margin: 0;
	}

	#thegate a {
		padding: 0;
	}

	#mm-home,
	#mm-title,
	#mm-pagination,
	#mm-search,
	#mm-search .main-menu-top {
		height: auto;
	}

	.main-menu-top a {
		padding-left: 10px;
		padding-right: 10px;
		height: 45px;
	}

	/* zmienny układ #main-menu-right zależnie czy użytkownik zalogowany czy nie */

	#main-menu-right {
		/*width: calc(100% - 55px);*/
		/*justify-content: space-between !important;*/
		flex: 1;
		justify-content: space-between;
	}

	.menu-registered-user #main-menu-right {
		/*width: calc(100% - 16.67%);*/
	}

	.menu-registered-user/*,
	.menu-registered-user #main-menu-right*/ {
		column-gap: calc((100% - (5 * 50px + 45px)) / 5);
	}

	.menu-unregistered-user/*,
	.menu-unregistered-user #main-menu-right*/ {
		column-gap: calc((100% - (2 * 50px + 45px + 90px)) / 3);
	}

	.menu-unregistered-user #main-menu-right {
		/*width: calc(100% - 25%);*/
	}

	.main-menu-row {
		flex-wrap: wrap;
	}

	.search .postprofile,
	.search .postbody,
	.topicreview .postbody,
	.mcp-main .postbody {
		width: 100%;
	}

	.search .postprofile {
		display: flex;
		min-height: auto;
	}

	.postprofile .search-result-date {
		margin-bottom: 0;
	}

	.post-buttons .post-buttons-row-2 {
		/*opacity: 0.8;*/
	}

	/* unika wyjeżdżania poza vw przy rozwijaniu menu w posting buttons */

	.abbc3_buttons_row .menu-all {
		margin: auto !important; /* nadpisuje margin obliczany przez javascript */
		width: auto !important; /* nadpisuje wartości #smiley-box-all */
		left: 1em;
		right: 1em;
	}

	.message-box {
		width: auto;
	}

}

@media (max-width: 860px) and (hover: hover) and (pointer: fine) {

	/*.main-menu-top .labeled-icon:hover .fa::after,*/
	.main-menu-top .labeled-icon:hover::after {
		content: '';
		top: 100%;
		padding-bottom: 45px;
		position: absolute;
		width: 100%;
	}

}

@media (min-width: 861px) and (max-width: 900px) {

	.wrap{
		padding: 15px 0;
	}

}

@media (max-width: 900px) {

	.wrap {
		border-width: 0;
		border-radius: 0;
		box-shadow: none;
	}

	/* cp.css */

	.navigation {
		max-width: 100%;
	}

	.nojs .tabs a span, .nojs .minitabs a span {
		letter-spacing: normal;
	}

	/* END cp.css */

}

@media (min-width: 861px) and (max-width: 1280px) {

	#mm-last-posts .main-menu-bottom {
		right: 0;
	}

}

@media (max-width: 1280px) {

	#mm-notifications .main-menu-bottom,
	#mm-user .main-menu-bottom {
		right: 0;
	}

}

@media not all and (hover: hover) and (pointer: fine) {

	.post-buttons .post-buttons-row-2 {
		display: flex;
		justify-content: flex-end;
		width: 100%;
		opacity: 0.8;
	}

}