#mobileMenuButton,
#mobileMenuOverlay {
	display: none;
}

@media screen and (max-width: 979px) {
	html {
		-webkit-text-size-adjust: 100%;
		text-size-adjust: 100%;
	}

	body {
		min-width: 0;
		overflow-x: hidden;
	}

	#headerContentBg,
	#headerContentWrap,
	#headerTopWrap,
	#headerBottomWrap,
	#contentWrap,
	#bannedWarningWrapper,
	.securityNotice,
	#bannerWrap,
	#pollMainWrap,
	#buttonHeader {
		min-width: 0;
		max-width: none;
		width: auto;
	}

	#headerContentBg {
		height: 170px;
		background-size: cover;
	}

	#headerContentWrap {
		margin: 0 10px;
		height: 100%;
		position: relative;
	}

	#logo {
		float: none;
		position: absolute;
		left: 0;
		bottom: 0;
		padding: 0;
	}

	#logo img {
		display: block;
		height: 110px;
		width: auto;
	}

	#headerBottomWrap {
		margin: 0 8px 8px 8px;
		height: auto;
	}

	#headerBottomContentWrap {
		position: relative;
		height: auto;
	}

	#headerBottomContent {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		height: auto;
		min-height: 31px;
		margin-left: 0;
		padding: 6px 8px;
		box-sizing: border-box;
		gap: 6px 8px;
	}

	#headerBottomContent:after {
		display: none;
	}

	#mobileMenuButton {
		align-items: center;
		justify-content: center;
		flex: 0 0 auto;
		width: 40px;
		height: 34px;
		border-radius: 6px;
		background: #1f212a;
		border: 1px solid #363843;
		color: #f5f5f5;
		cursor: pointer;
		box-sizing: border-box;
	}

	body.hasMobileMenu #mobileMenuButton {
		display: flex;
	}

	body:has(#leftSidebar) #mobileMenuButton {
		display: flex;
	}

	#mobileMenuButton i {
		font-size: 24px;
	}

	#menu {
		float: none;
		flex: 0 1 auto;
		min-width: 0;
		overflow: hidden;
	}

	.topMenu {
		float: none;
	}

	.topMenu > li {
		float: none;
		margin: 0;
	}

	.topMenu > li > a {
		margin-top: 0;
		padding: 0 4px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	#menuSearch {
		float: none;
		flex: 1 1 200px;
		min-width: 0;
	}

	#menuSearch .autosuggestDivContainer {
		margin: 0 !important;
	}

	#menuSearch .inputSearchSuggestion {
		width: 100%;
		max-width: 320px;
	}

	#searchPlayerName {
		width: 100%;
	}

	#menuSearch .search-icon {
		right: 10px;
	}

	#userHeader {
		float: none;
		margin: 0 0 0 auto;
		position: static;
		flex: 0 0 auto;
	}

	#headerBottomContentWrap .lastNotificationsBox,
	#headerBottomContentWrap .profileSettingsBox {
		top: 100%;
		right: -1px;
		margin-top: 4px;
	}

	.lastNotificationsBox {
		width: 460px;
		max-width: calc(100vw - 14px);
		box-sizing: border-box;
	}

	.lastNotificationsContent {
		max-height: 60vh;
		overflow-y: auto;
	}

	.lastNotificationsBottom {
		margin: 12px auto;
		max-width: 200px;
	}

	#bannedWarningWrapper,
	.securityNotice,
	#bannerWrap,
	#pollMainWrap,
	#buttonHeader {
		margin-left: 8px;
		margin-right: 8px;
	}

	#bannedWarningWrapper {
		height: auto !important;
		display: flex;
		align-items: flex-start;
		padding: 15px 10px;
		box-sizing: border-box;
	}

	#bannedWarningContent {
		height: auto !important;
		float: none;
		padding: 0 0 0 10px !important;
		min-width: 0;
		overflow-wrap: break-word;
	}

	#bannedIcon {
		float: none;
		flex: 0 0 auto;
		height: auto !important;
		margin: 0;
	}

	.securityNotice {
		padding: 15px 10px;
		min-height: 0;
		box-sizing: border-box;
	}

	.securityNoticeIcon {
		height: auto;
		margin: 0;
	}

	.securityNoticeContent {
		padding: 0 0 0 10px;
		min-width: 0;
		overflow-wrap: break-word;
	}

	#bannerWrap {
		padding: 10px 0;
	}

	#bannerContent {
		width: auto !important;
		margin: 0 10px;
		padding: 8px 10px;
		box-sizing: border-box;
		overflow-wrap: break-word;
	}

	#bannerContent img {
		max-width: 100%;
		height: auto;
	}

	.headerAdminTable,
	.headerAdminTable tbody,
	.headerAdminTable tr {
		display: block;
		width: auto;
		text-align: center;
	}

	.headerAdminTable td {
		display: inline-block;
		padding: 2px 6px;
	}

	.headerAdminTable td:not([class]) {
		display: none;
	}

	#pollMainWrap {
		padding: 10px 0;
	}

	#pollWrap {
		width: auto;
		min-width: 0;
		margin: 0 10px;
		padding: 15px 0 70px 0;
	}

	#pollContent {
		width: auto;
		padding: 10px 12px;
		box-sizing: border-box;
	}

	.poll-question {
		margin-top: 55px;
		max-width: 100%;
		overflow-wrap: break-word;
	}

	.poll-answers {
		width: 100%;
		max-width: 320px;
	}

	.poll-answer .progress {
		width: 100%;
	}

	#pollPrev {
		left: 15px;
		bottom: 15px;
	}

	#pollNext {
		right: 15px;
		bottom: 15px;
	}

	#contentWrap {
		margin: 0 8px;
		padding-bottom: 20px;
	}

	#contentBox {
		padding: 0 8px;
	}

	#contentBox > .pageTitle {
		padding: 16px 6px;
		font-size: 18px;
		overflow-wrap: break-word;
	}

	#contentMain {
		display: block;
		padding-left: 0;
	}

	#contentPage.noMenuPage {
		margin-left: 0 !important;
	}

	#contentPage,
	#leftSidebar + #contentPage {
		float: none;
		width: auto;
		min-width: 0;
		min-height: 400px;
		margin-left: 0 !important;
		padding: 10px 8px 30px 8px;
		border-radius: 5px;
		box-sizing: border-box;
	}

	#leftSidebar {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 1060;
		float: none;
		width: 270px;
		max-width: 85vw;
		margin: 0;
		padding: 12px 0 30px 0;
		box-sizing: border-box;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		background: #0b0c10;
		border-right: 1px solid #17191d;
		transform: translateX(-105%);
		visibility: hidden;
		transition: transform .25s ease, visibility 0s linear .25s;
	}

	body.mobileMenuOpen #leftSidebar {
		transform: translateX(0);
		visibility: visible;
		transition: transform .25s ease, visibility 0s linear 0s;
	}

	body.mobileMenuOpen {
		overflow: hidden;
	}

	body.mobileMenuOpen #mobileMenuOverlay {
		display: block;
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 1055;
		background: rgba(0, 0, 0, .6);
	}

	#leftSidebar > ul {
		width: auto;
		border-radius: 0;
	}

	#leftSidebar ul li ul,
	#leftSidebar ul li.active ul {
		width: auto;
		border-radius: 0 !important;
		background: none;
		display: flex;
		align-items: center;
		position: relative;
	}

	#leftSidebar ul li:hover ul {
		background: none;
	}

	#leftSidebar ul li ul li.menuItem,
	#leftSidebar ul li.active ul li.menuItem,
	#leftSidebar ul li.first ul li.menuItem,
	#leftSidebar ul li.last ul li.menuItem,
	#leftSidebar ul li.prev ul li.menuItem {
		order: 1;
		flex: 1 1 auto;
		width: auto;
		height: auto;
		margin: 0;
		border: none;
	}

	#leftSidebar ul li ul li.leftMenuItem,
	#leftSidebar ul li.active ul li.leftMenuItem,
	#leftSidebar ul li.prev ul li.leftMenuItem,
	#leftSidebar ul li.next ul li.leftMenuItem,
	#leftSidebar ul li.first.active ul li.leftMenuItem,
	#leftSidebar ul li.last.active ul li.leftMenuItem {
		order: 2;
		position: static;
		display: flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 auto;
		width: auto;
		height: auto;
		padding: 0 12px 0 0;
		border: none;
		pointer-events: none;
	}

	#leftSidebar ul li ul li.leftMenuItem:empty {
		display: none;
	}

	#leftSidebar ul li ul li.rightMenuItem {
		display: none !important;
	}

	#leftSidebar ul li ul li i,
	#leftSidebar ul li.next ul li i {
		line-height: normal;
	}

	#leftSidebar ul li ul li a,
	#leftSidebar ul li ul li a:active,
	#leftSidebar ul li ul li a:visited,
	#leftSidebar ul li ul li a:hover {
		position: relative;
		top: auto;
		left: auto;
		width: auto;
		height: auto;
		margin: 0;
		padding: 0 14px;
		font-size: 12px;
		display: flex;
		align-items: center;
		min-height: 46px;
		box-sizing: border-box;
	}

	#leftSidebar ul .dropDownSubItem ul li.menuItem a {
		padding-left: 24px;
	}

	#leftSidebar .menu-item {
		margin-top: 0;
		flex: 1 1 auto;
	}

	#leftSidebar .numberBullet,
	#leftSidebar .numberBullet2 {
		position: static;
		transform: none;
		margin-left: 8px;
		flex: 0 0 auto;
	}

	#leftSidebar li.item.activeSection > ul,
	#leftSidebar li.dropDownSubItem.active > ul {
		background: #111217;
	}

	#leftSidebar li.backButton > ul {
		border-bottom: 1px solid #17191d !important;
		margin-bottom: 6px;
	}

	.topTabs {
		position: relative;
		top: auto;
		right: auto;
		margin: 0 0 6px 0;
	}

	.topTabs > ul {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
	}

	.topTabs > ul > li {
		float: none;
	}

	.topTabs > ul > li.dropdown {
		position: static;
	}

	.topTabs > ul > li > a,
	.topTabs > ul > li > a:active,
	.topTabs > ul > li > a:hover,
	.topTabs > ul > li > a:visited,
	.topTabs > ul > li > a:link {
		margin: 0;
		padding: 6px 9px;
	}

	.topTabs .dropdown-menu {
		top: 100%;
		left: 0;
		margin-top: 4px;
		max-width: 100%;
	}

	.subPageTitleLeft {
		float: none;
	}

	.subPageContainer {
		overflow: visible;
	}

	.subPageContainer:after {
		content: "";
		display: block;
		clear: both;
	}

	.tableFull {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.mobileScroll {
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	table.mobileBlockTable,
	table.mobileBlockTable > tbody,
	table.mobileBlockTable > tbody > tr,
	table.mobileBlockTable > tbody > tr > td,
	table.mobileBlockTable > tbody > tr > th {
		display: block;
		width: auto !important;
	}

	table.mobileFlowTable,
	table.mobileFlowTable > tbody {
		display: block;
		width: auto !important;
	}

	table.mobileFlowTable > tbody > tr {
		display: flex;
		flex-wrap: wrap;
	}

	table.mobileFlowTable > tbody > tr > td {
		flex: 0 0 50%;
		padding: 3px 0;
		box-sizing: border-box;
	}

	#contentPage table[style*="padding: 50px"],
	#contentPage table[style*="padding: 10px 50px 50px 50px"],
	#contentPage table[style*="padding: 25px"] {
		padding: 10px 6px !important;
	}

	#contentPage table[style*="width: 500px"] {
		width: 100% !important;
	}

	#contentPage img {
		max-width: 100%;
	}

	#contentPage input:not([type]),
	#contentPage input[type='text'],
	#contentPage input[type='password'],
	#contentPage input[type='email'],
	#contentPage input[type='number'],
	#contentPage select,
	#contentPage textarea {
		max-width: 100%;
	}

	.modal,
	.bootbox.modal {
		top: 10px;
		left: 10px;
		right: 10px;
		width: auto;
		margin-left: 0;
		max-width: none;
	}

	.modal.fade.in {
		top: 10px;
	}

	.modal-body {
		max-height: calc(100vh - 160px);
		max-height: calc(100dvh - 160px);
	}

	.bootbox-input {
		width: 100%;
		box-sizing: border-box;
	}

	#contentPage {
		overflow-wrap: break-word;
	}

	#contentPage iframe,
	#contentPage video,
	#contentPage embed,
	#contentPage object {
		max-width: 100%;
	}

	#contentPage iframe[src*="youtube"],
	#contentPage iframe[src*="youtu.be"],
	#contentPage iframe[src*="vimeo"],
	#contentPage iframe[src*="streamable"] {
		height: auto;
		aspect-ratio: 16 / 9;
	}

	#pageContent {
		padding: 15px 4px;
	}

	.front-stats-container {
		margin: 15px 0;
	}

	.homeStats {
		min-height: 0;
		justify-content: flex-start;
	}

	.homeStats .statsArea {
		display: flex;
		align-items: flex-start;
		width: 33.33%;
		height: auto;
		min-height: 60px;
		margin: 0 0 12px 0;
		padding-right: 6px;
		box-sizing: border-box;
	}

	.homeStats .statsArea > div:first-child {
		flex: 0 0 auto;
	}

	.homeStats .statsArea > div:last-child {
		min-width: 0;
	}

	.graphWrapper,
	.largeChart {
		margin: 0;
		padding: 20px 10px;
	}

	#legend ul {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 6px 15px;
		margin-top: 10px;
	}

	#legend ul li {
		float: none;
		margin: 0;
	}

	.map,
	.map2000 {
		margin-top: 20px;
	}

	.turfLegend {
		display: flex;
		flex-wrap: wrap;
		width: auto;
		max-width: 708px;
	}

	.turfGangList {
		float: none;
		width: 33.33%;
	}

	.clanProgressBar,
	.titles-wrapper,
	.signInPage {
		max-width: 100%;
		box-sizing: border-box;
	}

	.participant-list-modal .modal-dialog {
		width: auto;
		max-width: 100%;
	}

	.tableFull::-webkit-scrollbar,
	.mobileScroll::-webkit-scrollbar {
		height: 6px;
	}

	.tableFull::-webkit-scrollbar-track,
	.mobileScroll::-webkit-scrollbar-track {
		background: transparent;
	}

	.tableFull::-webkit-scrollbar-thumb,
	.mobileScroll::-webkit-scrollbar-thumb {
		background: #363843;
		border-radius: 3px;
	}

	.signInPage table {
		width: 100%;
	}

	.report-stats {
		flex-wrap: wrap;
		gap: 6px 0;
	}

	.report-stats > div {
		flex: 1 1 50%;
		padding: 4px 6px !important;
		border-left: none !important;
		box-sizing: border-box;
	}

	.centeredButtonRow {
		margin-left: auto !important;
		margin-right: auto !important;
		width: 252px;
		max-width: 100%;
	}

	div.lang-ro > div[style],
	div.lang-eng > div[style] {
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding: 15px !important;
	}

	.helperAppConditionGrid,
	.helperAppGrid,
	.helperAppGlance {
		grid-template-columns: minmax(0, 1fr);
	}

	.helperAppQuestionBox {
		padding: 15px;
	}

	.one-full {
		width: auto;
	}

	.leaderControls {
		flex-direction: column;
		align-items: stretch !important;
	}

	.leaderControls > div {
		padding-left: 0 !important;
		border-left: none !important;
	}

	.linkStatus {
		display: flex !important;
		align-items: center;
		justify-content: center;
		white-space: nowrap;
	}

	.linkStatus > div:first-child {
		flex-shrink: 0;
	}

	#contentPage .linkStatus img {
		max-width: none;
	}

	.vehicleBox,
	.businessBox,
	.achievementBox,
	.adventDay {
		float: none;
		display: inline-block;
		vertical-align: top;
		text-align: center;
	}

	.achievementCategory {
		text-align: center;
	}

	.subPageTitle:has(> .achievementGeneralProgress) > div:first-child {
		float: none !important;
		width: auto !important;
		margin-bottom: 8px;
	}

	.achievementGeneralProgress {
		float: none;
		width: 100%;
	}

	.marathonPrizeTitle {
		font-size: 28px;
		line-height: 1;
		margin-top: -10px;
		margin-bottom: 25px;
	}

	.clanLevelText {
		line-height: 1.1;
	}

	.clanCrestImg {
		height: auto;
		max-height: 330px;
	}

	.fullTable td {
		padding-left: 4px;
		padding-right: 4px;
	}

	#contentPage .addSupportTicketWidth input,
	#contentPage .addSupportTicketWidth select,
	#contentPage .addSupportTicketWidth textarea,
	#contentPage textarea[style*="min-width: 500px"] {
		min-width: 0 !important;
	}

	.pollTitle {
		line-height: 1.2;
		padding: 25px 0 20px;
	}

	.leftPaddedTd,
	.leftPaddedTdBig {
		padding-left: 8px;
	}

	.incomeSummary {
		display: grid;
		grid-template-columns: auto auto;
		justify-content: center;
		gap: 4px 8px;
	}

	.incomeSummary strong {
		text-align: right;
	}

	.incomeSummary span {
		margin: 0;
		text-align: left;
	}

	#footer {
		display: flex;
		flex-direction: column;
		gap: 15px;
		padding: 20px 10px;
	}

	#footerLeft,
	#footerRight {
		float: none;
		width: auto;
	}

	#footerCenter {
		display: none;
	}

	#copyright {
		flex-wrap: wrap;
		justify-content: center;
		text-align: center;
	}

	.left-logos {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
	}

	.version-copyright {
		text-align: center;
		white-space: normal;
	}
}

@media screen and (max-width: 979px) and (pointer: coarse) {
	input[type='text'],
	input[type='password'],
	input[type='email'],
	input[type='number'],
	input[type='search'],
	input[type='tel'],
	select,
	textarea {
		font-size: 16px;
	}
}

@media screen and (max-width: 979px) and (max-height: 500px) {
	#headerContentBg {
		height: 110px;
	}

	#logo img {
		height: 75px;
	}
}

@media screen and (max-width: 767px) {
	#wrapper,
	#generalTableWrapper,
	#licensesWrap,
	#FactionWrapper {
		width: auto;
		max-width: 100%;
	}

	#skin {
		float: none;
		display: block;
		margin: 20px auto 0 auto;
	}

	.generalLeft,
	.generalRight {
		float: none;
		width: auto;
		max-width: 407px;
		margin: 20px auto 0 auto;
	}

	.generalRightTable {
		width: 100%;
	}

	.playerButtons {
		margin-left: 0 !important;
	}

	#generalTableLeft,
	#generalTableRight {
		float: none;
		width: auto;
		max-width: 407px;
		margin: 0 auto;
	}

	.generalNormalTable,
	.generalNormalTableSingle {
		float: none;
		width: 100%;
	}

	.homeStats .statsArea {
		width: 50%;
	}

	.turfGangList {
		width: 50%;
	}
}

@media screen and (max-width: 600px) {
	#headerContentBg {
		height: 120px;
	}

	#logo img {
		height: 80px;
	}

	#menu {
		display: none;
	}

	#menuSearch {
		order: 10;
		flex: 1 1 100%;
	}

	#menuSearch .inputSearchSuggestion {
		max-width: none;
	}

	#profileName a {
		font-size: 13px;
	}

	#profileName .userNameText {
		max-width: 110px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	#contentWrap {
		margin: 0 6px;
	}

	#headerBottomWrap,
	#bannedWarningWrapper,
	.securityNotice,
	#bannerWrap,
	#pollMainWrap,
	#buttonHeader {
		margin-left: 6px;
		margin-right: 6px;
	}

	#contentBox {
		padding: 0 6px;
	}

	#contentPage,
	#leftSidebar + #contentPage {
		padding: 8px 6px 25px 6px;
	}

	#contentBox > .pageTitle {
		padding: 14px 4px;
		font-size: 17px;
	}

	#pollWrap {
		margin: 0 6px;
	}

	.poll-question {
		font-size: 16px !important;
	}

	.achievementBox:not(.achievementExtended) {
		zoom: .65;
	}

	.clanLevelText {
		font-size: 24px;
	}

	.skillEditLevels {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	:where(#contentPage) h1 {
		font-size: 26px;
	}

	:where(#contentPage) h2 {
		font-size: 22px;
	}

	.one-half,
	.one-third,
	.viewWarPlayers,
	.attackTurfMembersContainer {
		float: none;
		width: auto;
		margin-right: 0;
	}

	#viewWarDefenderPlayers,
	#attackTurfSelectedContainer {
		float: none;
	}
}
