html,
body {
	background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
	overflow: hidden;
}

html,
body {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

.nodisplay {
	display: none;
	visibility: hidden;
}

::-webkit-input-placeholder {
	color: #cecece;
}

:-moz-placeholder {
	color: #cecece;
	opacity: 1;
}

::-moz-placeholder {
	color: #cecece;
	opacity: 1;
}

:-ms-input-placeholder {
	color: #cecece;
}

input[type=text] {
	-webkit-touch-callout: text;
	-webkit-user-select: text;
	-khtml-user-select: text;
	-moz-user-select: text;
	-ms-user-select: text;
	user-select: text;
}

.menuLink {
	font-size: 20px;
}

a {
	color: #a56dc8;
	text-decoration: none;
}

a:active {
	color: #795094;
}

a:visited {
	color: #a56dc8;
}

a:hover {
	color: #795094;
}

* {
	font-family: 'Hammersmith One';
	font-size: 12px;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

span {
	font-size: inherit;
}

:root {
	--menu-card-width: 360px;
}

#errorNotification {
	position: absolute;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	max-width: 500px;
	z-index: 99999;
}

#errorNotification .errorClose {
	position: absolute;
	top: 5px;
	left: 5px;
}

#youtuberOf {
	position: absolute;
	top: 10px;
	left: 10px;
	color: #fff;
	font-size: 24px;
}

.ytLink {
	color: #6eb3ef;
	font-size: 24px;
	text-decoration: none;
}

.ytLink:hover {
	color: #5c96c9;
}

#featuredYoutube {
	margin-top: 5px;
}

#featuredYoutube a {
	color: #6eb3ef !important;
}

#featuredYoutube a:hover {
	color: #5c96c9 !important;
}

#mainMenu {
	background-color: rgba(0, 0, 0, 0.5);
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: 10;
}

#menuContainer {
	width: 100%;
	white-space: nowrap;
	text-align: center;
	position: absolute;
	top: 45%;
	transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	-o-transform: translateY(-50%);
}

#partyButton {
	position: absolute;
	color: white;
	top: 20px;
	right: 20px;
	font-size: 24px;
	text-decoration: none;
}

#joinPartyButton {
	position: absolute;
	top: 54px;
	right: 20px;
	cursor: pointer;
}

#pingDisplay {
	position: absolute;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: white;
}

#shutdownDisplay {
	position: absolute;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: white;
	font-size: 25px;
	z-index: 100;
	pointer-events: none;
}

#settingsButton {
	position: absolute;
	cursor: pointer;
	display: none;
}

#followText {
	position: absolute;
	bottom: 40px;
	left: 10px;
	color: #fff;
	font-size: 22px;
}

#twitterFollow {
	position: absolute;
	bottom: 10px;
	left: 10px;
}

#youtubeFollow {
	position: absolute;
	bottom: 10px;
	left: 10px;
}

#linksContainer1 {
	border-radius: 4px;
	position: absolute;
	bottom: 0px;
	left: 0px;
	background-color: #fff;
	font-size: 20px;
	padding: 8px;
	-webkit-border-radius: 0 4px 0 0;
	-moz-border-radius: 0 4px 0 0;
	border-radius: 0 4px 0 0;
}

#linksContainer2 {
	border-radius: 4px;
	position: absolute;
	bottom: 0px;
	right: 0px;
	background-color: #fff;
	text-align: right;
	font-size: 20px;
	padding: 8px;
	-webkit-border-radius: 4px 0 0 0;
	-moz-border-radius: 4px 0 0 0;
	border-radius: 4px 0 0 0;
}

#loadingText {
	font-size: 45px;
	color: #fff;
	text-align: center;
}

#loadingText a {
	display: block;
}

.menuCard {
	text-align: left;
	white-space: normal;
	word-wrap: break-word;
	margin: 0;
	display: block;
	padding: 20px;
	background: #ffffff;
	backdrop-filter: blur(10px);
	border: 2px solid #e0e0e0;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	-webkit-border-radius: 12px;
	-moz-border-radius: 12px;
	border-radius: 12px;
	overflow: hidden;
	box-sizing: border-box;
	transition: all 0.3s ease;
}

.menuHeader {
	font-size: 24px;
	color: #292929;
	margin-bottom: 8px;
	font-weight: 600;
}

.menuText {
	font-size: 15px;
	color: #666;
	margin-bottom: 12px;
	line-height: 1.5;
}

#serverBrowser select {
	width: 100%;
	height: 42px;
	padding: 10px 14px;
	font-size: 15px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
	color: #333;
	cursor: pointer;
	transition: all 0.2s ease;
	outline: none;
}

#serverBrowser select:hover {
	border-color: #7ee559;
	background: #f9fff7;
}

#serverBrowser select:focus {
	border-color: #7ee559;
	box-shadow: 0 0 0 3px rgba(126, 229, 89, 0.2);
	background: #fff;
}

#altServer {
	width: 100%;
	text-align: center;
	margin-top: 10px;
	display: flex;
	gap: 8px;
	flex-direction: column;
}

#altServer .serverModeButton {
	padding: 10px 14px;
	font-size: 15px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
	color: #333;
	cursor: pointer;
	transition: all 0.2s ease;
	outline: none;
	font-weight: 500;
	text-align: center;
}

#altServer .serverModeButton:hover {
	border-color: #7ee559;
	background: #f9fff7;
}

#altServer .serverModeButton.active {
	border-color: #7ee559;
	background: #7ee559;
	color: #fff;
}

#skinColorHolder {
	padding: 8px;
	background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
	border-radius: 6px;
	border: 1px solid #e0e0e0;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 6px;
	justify-items: center;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.activeSkin {
	border-color: #7ee559 !important;
	border-width: 1.5px !important;
	transform: scale(1.2) rotate(0deg) !important;
	box-shadow: 0 0 8px rgba(126, 229, 89, 0.7), 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

.skinColorItem {
	cursor: pointer;
	display: inline-block;
	width: 24px;
	height: 24px;
	border-radius: 8px;
	border: 2px solid #d0d0d0;
	transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	position: relative;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skinColorItem:hover {
	transform: scale(1.15) rotate(5deg);
	border-color: #7ee559;
	box-shadow: 0 4px 8px rgba(126, 229, 89, 0.4), 0 2px 4px rgba(0, 0, 0, 0.15);
	z-index: 1;
}

.skinColorItem:active {
	transform: scale(1.05);
	transition: all 0.1s ease;
}

#skinColorPicker.show {
	display: block !important;
	animation: slideUpFadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

#skinColorPicker.hide {
	animation: slideUpFadeOut 0.3s ease forwards;
}

@keyframes slideUpFadeIn {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(15px) scale(0.95);
	}

	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0) scale(1);
	}
}

@keyframes slideUpFadeOut {
	from {
		opacity: 1;
		transform: translateX(-50%) translateY(0) scale(1);
	}

	to {
		opacity: 0;
		transform: translateX(-50%) translateY(15px) scale(0.95);
	}
}

#hatSelect:hover,
#accessorySelect:hover {
	border-color: #7ee559;
	background: #f9fff7;
}

#hatSelect:focus,
#accessorySelect:focus {
	border-color: #7ee559;
	box-shadow: 0 0 0 3px rgba(126, 229, 89, 0.2);
}

.settingRadio {
	font-size: 18px;
	color: #a8a8a8;
	margin-bottom: 10px;
}

#gameName {
	font-size: 170px;
	margin-bottom: -25px;
	text-shadow:
		0 1px 0 #c4c4c4,
		0 2px 0 #c4c4c4,
		0 3px 0 #c4c4c4,
		0 4px 0 #c4c4c4,
		0 5px 0 #c4c4c4,
		0 6px 0 #c4c4c4,
		0 7px 0 #c4c4c4,
		0 8px 0 #c4c4c4,
		0 9px 0 #c4c4c4;
	color: #fff;
}

/* Menu Layout */
#menuCardHolder {
	display: inline-flex;
	gap: 8px;
	justify-content: center;
	align-items: flex-start;
	animation: menuFadeIn 0.5s ease-out;
	white-space: normal;
	padding: 0 20px;
}

@keyframes menuFadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.menuColumn {
	display: inline-flex;
	flex-direction: column;
	gap: 12px;
	vertical-align: top;
	flex-shrink: 0;
}

.leftColumn {
	width: 280px;
	animation: slideInLeft 0.6s ease-out;
	height: 420px;
}

.centerColumn {
	width: var(--menu-card-width);
	animation: slideInCenter 0.6s ease-out;
	height: 440px;
}

.rightColumn {
	width: 280px;
	animation: slideInRight 0.6s ease-out;
	height: 420px;
}

@keyframes slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-30px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slideInCenter {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(30px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Card Styles */
.menuCard {
	box-sizing: border-box;
	max-width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.mainCard {
	padding: 20px !important;
	width: 100%;
	height: auto !important;
	flex: 0 0 auto;
}

.cardSection {
	margin-bottom: 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.serverCard {
	padding: 18px !important;
	width: 100%;
}

.infoCard {
	padding: 18px !important;
	width: 100%;
	height: 80px !important;
	flex: 0 0 80px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.statsCard {
	padding: 18px !important;
	width: 100%;
	flex: 1;
}

/* Section Titles */
.sectionTitle {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
	color: #292929;
	margin-bottom: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.sectionTitle i {
	font-size: 22px;
	color: #7ee559;
}

/* Tabbed Card */
.tabbedCard {
	padding: 0 !important;
	overflow: hidden;
	height: 420px !important;
	display: flex;
	flex-direction: column;
	width: 100%;
	box-sizing: border-box;
	flex: 1;
}



.tabNavigation {
	display: flex;
	background: linear-gradient(to bottom, #f8f8f8, #f0f0f0);
	border-bottom: 2px solid #e0e0e0;
	padding: 0;
	flex-shrink: 0;
}

.tabButton {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 10px 6px;
	cursor: pointer;
	transition: all 0.2s ease;
	border-bottom: 3px solid transparent;
	background: transparent;
	position: relative;
	min-width: 0;
}

.tabButton:hover {
	background: rgba(126, 229, 89, 0.1);
}

.tabButton.active {
	background: #fff;
	border-bottom-color: #7ee559;
}

.tabButton i {
	font-size: 20px;
	color: #888;
	transition: all 0.2s ease;
}

.tabButton.active i {
	color: #7ee559;
	transform: scale(1.05);
}

.tabButton span {
	font-size: 11px;
	color: #666;
	font-weight: 500;
	transition: color 0.2s ease;
	white-space: nowrap;
}

.tabButton.active span {
	color: #292929;
	font-weight: 600;
}

/* Tab Content */
.tabContentWrapper {
	flex: 1;
	overflow-y: auto;
	background: #fff;
	-webkit-overflow-scrolling: touch;
}

.tabContentWrapper::-webkit-scrollbar {
	width: 8px;
}

.tabContentWrapper::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.tabContentWrapper::-webkit-scrollbar-thumb {
	background: #7ee559;
	border-radius: 4px;
}

.tabContentWrapper::-webkit-scrollbar-thumb:hover {
	background: #6fc94e;
}

.tabContent {
	display: none;
	animation: fadeSlideIn 0.4s ease;
}

.tabContent.active {
	display: block;
}

.tabInner {
	padding: 20px;
	height: 100%;
	box-sizing: border-box;
	overflow-y: auto;
}

#gameTab .tabInner {
	overflow-y: hidden;
}

@keyframes fadeSlideIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.contentSection {
	margin-bottom: 20px;
}

.contentSection:last-child {
	margin-bottom: 0;
}

.contentFooter {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid #e0e0e0;
	text-align: center;
}

.controlItem {
	display: flex;
	align-items: center;
	font-size: 14px;
	color: #333;
	padding: 8px 10px;
	background: #f5f5f5;
	border-radius: 6px;
	transition: all 0.2s ease;
	border: 1px solid #e0e0e0;
}

.controlItem:hover {
	background: #e8f5e0;
	border-color: rgba(126, 229, 89, 0.4);
	transform: translateX(2px);
}

.controlKey {
	display: inline-block;
	background: linear-gradient(to bottom, #7ee559, #6fc94e);
	border: 1px solid #5fb03d;
	border-radius: 5px;
	padding: 3px 10px;
	font-size: 11px;
	font-weight: 600;
	color: #ffffff;
	margin-right: 10px;
	min-width: 50px;
	text-align: center;
	box-shadow: 0 2px 4px rgba(126, 229, 89, 0.3);
}

/* Settings Grid */
.settingsGrid {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.settingItem {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px;
	background: #f5f5f5;
	border-radius: 8px;
	transition: all 0.2s ease;
	border: 1px solid #e0e0e0;
}

.settingItem:hover {
	background: #e8f5e0;
	border-color: rgba(126, 229, 89, 0.4);
	transform: translateX(2px);
}

.settingLabel {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 15px;
	color: #333;
}

.settingLabel i {
	font-size: 20px;
	color: #7ee559;
}

.settingCheckbox {
	width: 20px;
	height: 20px;
	cursor: pointer;
	accent-color: #7ee559;
}

/* Info Box */
.infoBox {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
	background: rgb(126 229 89 / 65%);
	color: #ffffff;
	border-radius: 8px;
	font-size: 14px;
	border: 1px solid rgb(126 229 89 / 70%);
}

.infoBox i {
	font-size: 20px;
	color: #60af44;
	flex-shrink: 0;
}

.infoBox span {
	font-size: 14px;
}

/* Account Tab */
.centerContent {
	text-align: center;
	padding: 2px 0;
}

.accountIcon i {
	font-size: 80px;
	color: #7ee559;
}

.buttonGroup {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 20px;
}

#desktopInstructions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

#mobileInstructions {
	display: none;
}

#guideCard.touch #desktopInstructions {
	display: none;
}

#guideCard.touch #mobileInstructions {
	display: block;
}

.statsContent {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.statItem {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 12px;
	background: #f5f5f5;
	border-radius: 6px;
	border: 1px solid #e0e0e0;
}

.statLabel {
	font-size: 14px;
	color: #666;
}

.statValue {
	font-size: 16px;
	color: #7ee559;
	font-weight: 600;
}

#guideCard #smallLinks {
	display: none;
}

#rightCardHolder {
	display: inline-block;
	vertical-align: top;
}

#nameInput {
	text-align: center;
	font-size: 18px;
	margin-bottom: 14px;
	padding: 14px 16px;
	border: 2px solid #e0e0e0;
	outline: none;
	box-sizing: border-box;
	color: #333;
	background: #fff;
	width: 100%;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	border-radius: 8px;
	transition: all 0.3s ease;
	font-weight: 500;
}

#nameInput:hover {
	border-color: #c0c0c0;
	background: #f9fff7;
}

#nameInput:focus {
	border-color: #7ee559;
	box-shadow: 0 0 0 3px rgba(126, 229, 89, 0.2);
	background: #fff;
}

.menuButton {
	text-align: center;
	font-size: 18px;
	padding: 14px 20px;
	box-sizing: border-box;
	color: #fff;
	background-color: #7ee559;
	width: 100%;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	font-weight: 600;
	border: none;
	box-shadow: 0 4px 0 #5fb03d;
}

.menuButton:hover {
	background-color: #6fc94e;
	transform: translateY(-2px);
	box-shadow: 0 6px 0 #5fb03d;
}

.menuButton:active {
	transform: translateY(2px);
	box-shadow: 0 2px 0 #5fb03d;
}

.primaryButton {
	background: linear-gradient(to bottom, #7ee559, #6fc94e);
}

.secondaryButton {
	background: linear-gradient(to bottom, #6eb3ef, #5c96c9);
	box-shadow: 0 4px 0 #4a7ba7;
}

.secondaryButton:hover {
	background: linear-gradient(to bottom, #5c96c9, #4a7ba7);
	box-shadow: 0 6px 0 #4a7ba7;
}

.secondaryButton:active {
	box-shadow: 0 2px 0 #4a7ba7;
}

#gameUI {
	pointer-events: none;
	z-index: 2;
}

#chatHolder {
	position: absolute;
	bottom: 200px;
	width: 100%;
	text-align: center;
}

#chatBox {
	padding: 6px;
	font-size: 20px;
	color: #fff;
	background-color: rgba(0, 0, 0, 0.25);
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	pointer-events: all;
	border: 0;
}

#chatBox:focus {
	outline: none;
}

#topInfoHolder {
	position: absolute;
	right: 20px;
	top: 20px;
}

#leaderboard {
	color: #fff;
	font-size: 31px;
	text-align: left;
	padding: 10px;
	padding-top: 7px;
	padding-bottom: 5px;
	width: 220px;
	background-color: rgba(0, 0, 0, 0.25);
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
}

.leaderHolder {
	overflow: hidden;
	white-space: nowrap;
}

#killCounter {
	right: 0px;
	margin-top: 10px;
	color: #fff;
	font-size: 28px;
	background-color: rgba(0, 0, 0, 0.25);
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	background-image: url(../img/icons/skull.png);
}

.leaderScore {
	text-align: right;
	float: right;
	margin-left: 10px;
	display: inline-block;
	font-size: 22px;
}

.leaderboardItem {
	float: left;
	display: inline-block;
	max-width: 140px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	-o-text-overflow: ellipsis;
	font-size: 22px;
}

.uiElement,
.resourceDisplay {
	background-color: rgba(0, 0, 0, 0.25);
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	color: #fff;
	padding: 10px;
	padding-top: 5px;
	padding-bottom: 5px;
	font-size: 28px;
}

.resourceDisplay {
	position: absolute;
	right: 20px;
	height: 35px;
	text-align: right;
	line-height: 39px;
	padding-left: 10px;
	padding-right: 40px;
	background-size: 28px;
	background-repeat: no-repeat;
	background-position: right 6px center;
}

#foodDisplay {
	background-image: url(../img/resources/food_ico.png);
}

#woodDisplay {
	background-image: url(../img/resources/wood_ico.png);
}

#stoneDisplay {
	background-image: url(../img/resources/stone_ico.png);
}

#scoreDisplay {
	right: inherit;
	left: 20px;
	bottom: 160px;
	text-align: left;
	padding-left: 40px;
	padding-right: 10px;
	background-position: left 6px center;
	background-image: url(../img/resources/gold_ico.png);
}

#stoneDisplay {
	bottom: 20px;
}

#woodDisplay {
	bottom: 75px;
}

#foodDisplay {
	bottom: 130px;
}

#actionBar {
	bottom: 17px;
	width: 100%;
	text-align: center;
}

.actionBarItem {
	width: 66px;
	height: 66px;
	margin-left: 5px;
	margin-right: 5px;
	background-color: rgba(0, 0, 0, 0.25);
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	display: inline-block;
	cursor: pointer;
	pointer-events: all;
	background-size: cover;
}

.actionBarItem:hover {
	background-color: rgba(50, 50, 50, 0.25);
}

.itemIcon {
	width: 66px;
	height: 66px;
}

#mapDisplay {
	position: absolute;
	bottom: 20px;
	left: 20px;
	display: inline-block;
	width: 130px;
	height: 130px;
	pointer-events: all;
	background-color: rgba(0, 0, 0, 0.25);
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
}

.gameButton {
	position: absolute;
	top: 20px;
	padding: 5px;
	cursor: pointer;
	pointer-events: all;
}

.gameButton:hover {
	background-color: rgba(50, 50, 50, 0.25);
}

#allianceButton {
	right: 270px;
}

#leaderboardButton {
	display: none;
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
}

#leaderboardButton:focus {
	outline: none !important;
}

#storeButton {
	right: 330px;
}

#chatButton {
	right: 390px;
}

#storeMenu {
	display: none;
	width: 100%;
	position: absolute;
	text-align: center;
	top: 50%;
	transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	-o-transform: translateY(-50%);
}

#storeHolder {
	pointer-events: all;
	width: 400px;
	display: inline-block;
	background-color: rgba(0, 0, 0, 0.25);
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	color: #fff;
	padding: 10px;
	height: 200px;
	max-height: calc(100vh - 200px);
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
}

.storeTab {
	width: 183px;
	font-size: 26px;
	display: inline-block;
	background-color: rgba(0, 0, 0, 0.25);
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	color: #fff;
	padding: 10px;
	pointer-events: all;
	cursor: pointer;
}

.storeTab:hover {
	background-color: rgba(50, 50, 50, 0.25);
}

.storeItem {
	color: #fff;
	padding: 5px;
	font-size: 24px;
	text-align: left;
	cursor: pointer;
}

.itemPrice {
	margin-top: 5px;
	float: right;
	display: inline-block;
	color: rgba(255, 255, 255, 0.5);
	font-size: 24px;
	padding-right: 5px;
}

.hatPreview {
	margin-top: -5px;
	width: 45px;
	height: 45px;
	display: inline-block;
	vertical-align: middle;
	padding-right: 10px;
}

#allianceMenu {
	display: none;
	width: 100%;
	position: absolute;
	text-align: center;
	top: 50%;
	transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	-o-transform: translateY(-50%);
}

#allianceHolder {
	pointer-events: all;
	height: 200px;
	max-height: calc(100vh - 260px);
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
	width: 350px;
	display: inline-block;
	text-align: left;
	padding: 10px;
	background-color: rgba(0, 0, 0, 0.25);
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
}

.allianceItem {
	font-size: 24px;
	color: #fff;
	padding: 5px;
}

.joinAlBtn {
	float: right;
	font-size: 24px;
	text-align: right;
	cursor: pointer;
	color: #80eefc;
}

.joinAlBtn:hover {
	color: #72d3e0;
}

.notificationText {
	vertical-align: top;
	font-size: 25px;
	color: #fff;
	display: inline-block;
}

.notifButton {
	padding: 5px;
	margin-left: 10px;
	display: inline-block;
	cursor: pointer;
	pointer-events: all;
	background-color: rgba(0, 0, 0, 0.25);
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
}

.notifButton:hover {
	background-color: rgba(50, 50, 50, 0.25);
}

#noticationDisplay {
	vertical-align: top;
	position: absolute;
	right: 270px;
	top: 80px;
	text-align: right;
}

.allianceButtonM {
	pointer-events: all;
	cursor: pointer;
	margin-top: 10px;
	font-size: 24px;
	color: #fff;
	padding: 5px;
	background-color: rgba(0, 0, 0, 0.25);
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	padding: 5px;
	text-align: center;
	display: inline-block;
}

.allianceButtonM:hover {
	background-color: rgba(50, 50, 50, 0.25);
}

#allianceInput {
	pointer-events: all;
	font-size: 24px;
	color: #fff;
	padding: 5px;
	background-color: rgba(0, 0, 0, 0.25);
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	padding: 5px;
	display: inline-block;
	outline: none;
	border-color: none;
	border: 0;
	-webkit-box-shadow: none;
	box-shadow: none;
	width: 200px;
	margin-right: 10px;
}

#itemInfoHolder {
	max-width: 250px;
	display: none;
	position: absolute;
	top: 20px;
	left: 20px;
}

#itemInfoHolder.visible {
	display: block;
}

#itemInfoName {
	font-size: 30px;
}

#itemInfoDesc {
	font-size: 22px;
	color: rgba(255, 255, 255, 0.6);
}

.itemInfoReq {
	font-size: 22px;
}

.itemInfoReqVal {
	font-size: 22px;
	color: rgba(255, 255, 255, 0.6);
}

.itemInfoLmt {
	font-size: 22px;
	position: absolute;
	right: 10px;
	bottom: 6px;
}

#ageBarContainer {
	width: 100%;
	bottom: 93px;
	text-align: center;
}

#ageText {
	width: 100%;
	bottom: 118px;
	text-align: center;
	color: #fff;
	font-size: 24px;
}

#ageBar {
	background-color: rgba(0, 0, 0, 0.25);
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	padding: 5px;
	width: 314px;
	height: 10px;
	display: inline-block;
}

#ageBarBody {
	background-color: rgba(255, 255, 255, 1);
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	width: 0px;
	height: 100%;
}

#upgradeHolder {
	width: 100%;
	position: absolute;
	text-align: center;
	top: 10px;
}

#upgradeCounter {
	width: 100%;
	position: absolute;
	top: 95px;
	text-align: center;
	font-size: 24px;
	color: #fff;
}

#gameCanvas {
	width: 100%;
	height: 100%;
	background-color: #b6db66;
	z-index: 1;
}

#diedText {
	display: none;
	font-size: 150px;
	color: #fff;
	background-color: rgba(0, 0, 0, 0.25);
	width: 100%;
	padding: 0px;
	position: absolute;
	text-align: center;
	top: 50%;
	transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	-o-transform: translateY(-50%);
	pointer-events: none;
}

#pre-content-container {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	width: 100%;
	background: rgba(0, 0, 0, 0.8);
	z-index: 1000;
}

#pre-content-player {
	position: absolute;
	width: 640px;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

#post-ad-join {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);

	width: 100px;
	height: 100px;
	background: red;
}

#force-skip-ad {
	position: absolute;
	top: 8px;
	left: 8px;
}

/* MOBILE */
@media only screen and (max-width: 896px) {
	:root {
		--menu-card-width: 300px;
	}

	#pingDisplay {
		right: 10px;
		left: auto;
		top: 50px;
		text-align: right;
		transform: none;
	}

	#actionBar {
		max-width: calc(100% - 340px);
		margin-left: 170px;
	}

	/* HOME */
	#guideCard {
		position: absolute;
		display: none;
		z-index: 10;
		top: calc(50% + 20px);
		left: 50%;
		transform: translate(-50%, -50%);
	}

	#guideCard #smallLinks {
		display: block;
	}

	#guideCard.showing {
		display: flex !important;
		flex-direction: column;
	}

	#loadingText {
		margin-top: 20px;
	}

	#gameName {
		font-size: 80px;
		text-shadow:
			0 1px 0 #c4c4c4,
			0 2px 0 #c4c4c4,
			0 3px 0 #c4c4c4,
			0 4px 0 #c4c4c4,
			0 5px 0 #c4c4c4;
	}

	#menuCardHolder {
		margin-top: 20px;
	}

	#menuCardHolder {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.leftColumn,
	.centerColumn,
	.rightColumn {
		width: var(--menu-card-width);
	}

	.mainCard,
	.serverCard,
	.infoCard,
	.statsCard {
		width: 100%;
	}

	.tabbedCard {
		height: 420px !important;
	}

	.infoCard {
		height: 70px !important;
		flex: 0 0 70px;
	}

	.tabButton {
		padding: 8px 4px;
	}

	.tabButton i {
		font-size: 18px;
	}

	.tabButton span {
		font-size: 10px;
	}

	.tabButton {
		padding: 8px 4px;
		gap: 2px;
	}

	.tabButton i {
		font-size: 18px;
	}

	.tabButton span {
		font-size: 10px;
	}

	.controlKey {
		min-width: 60px;
		font-size: 11px;
	}

	.controlItem {
		font-size: 14px;
	}

	.sectionTitle {
		font-size: 18px;
	}

	.sectionTitle i {
		font-size: 20px;
	}

	.settingLabel {
		font-size: 14px;
	}

	.accountIcon i {
		font-size: 60px;
	}

	#guideCard.showing {
		display: flex !important;
	}

	#partyButton {
		top: 8px;
		left: 33%;
		right: inherit;
		transform: translateX(-50%);
	}

	#joinPartyButton {
		top: 8px;
		left: 66%;
		right: inherit;
		transform: translateX(-50%);
	}

	#settingsButton {
		display: block;
		bottom: 28px;
		left: 50%;
		transform: translateX(-50%);
	}

	#youtuberOf {
		display: none;
		top: 8px;
		left: 8px;
	}

	#featuredYoutube {
		display: inline-block;
		margin-top: 0;
	}

	#linksContainer1,
	#linksContainer2,
	#youtubeFollow,
	#twitterFollow {
		display: none;
	}

	/* GAME */
	#mapDisplay {
		width: 66px;
		height: 66px;
		bottom: unset;
		top: 8px;
		left: 8px;
	}

	#itemInfoHolder {
		max-width: 128px;
		top: inherit;
		top: 8px;
		right: 8px;
		left: inherit;
	}

	#itemInfoName {
		font-size: 22px;
	}

	#itemInfoDesc,
	#itemInfoDesc,
	.itemInfoReq,
	.itemInfoLmt,
	.itemInfoReqVal {
		font-size: 12px;
	}

	.uiElement,
	.resourceDisplay {
		font-size: 20px;
	}

	.resourceDisplay,
	#scoreDisplay {
		right: inherit;
		left: 8px;
		height: 25px;
		line-height: 27px;

		padding-left: 36px;
		padding-right: 10px;

		background-size: 24px;
		background-position: left 6px center;
	}

	#foodDisplay {
		top: 82px;
		bottom: inherit;
	}

	#woodDisplay {
		top: 124px;
		bottom: inherit;
	}

	#stoneDisplay {
		top: 166px;
		bottom: inherit;
	}

	#scoreDisplay {
		top: 208px;
		left: 8px;
		bottom: inherit;
	}

	#topInfoHolder {
		top: 8px;
		right: 8px;
	}

	#killCounter {
		left: inherit;
		margin-top: 0;
	}

	#actionBar {
		bottom: 8px;
		min-height: 44px;
		max-width: calc(100% - 88px);
		margin-left: 44px;
	}

	.actionBarItem {
		width: 44px;
		height: 44px;
		margin-left: 5px;
		margin-right: 5px;
	}

	#upgradeCounter {
		font-size: 18px;
		top: 58px;
	}

	#ageText {
		bottom: 70px;
		font-size: 16px;
	}

	#ageBarContainer {
		bottom: 54px;
	}

	#ageBar {
		-webkit-border-radius: 6px;
		-moz-border-radius: 6px;
		border-radius: 6px;
		padding: 3px;
		width: 200px;
		height: 6px;
	}

	#ageBarBody {
		-webkit-border-radius: 3px;
		-moz-border-radius: 3px;
		border-radius: 3px;
	}

	#leaderboard {
		display: none;
		width: 340px;
		position: fixed;
		top: 50%;
		left: 50%;
		margin-left: -180px;
		margin-top: -100px
	}

	#leaderboard.is-showing {
		display: block;
	}

	#leaderboardData,
	.leaderHolder,
	.leaderboardItem,
	.leaderScore {
		font-size: 18px;
	}

	.leaderScore {
		margin-left: 0;
	}

	#noticationDisplay {
		top: inherit;
		right: inherit;
		left: 50%;
		bottom: 96px;
		transform: translateX(-50%);
		text-align: center;
	}

	.notificationText {
		line-height: 35px;
		font-size: 18px;
		display: block;
	}

	.notifButton {
		padding: 3px 3px 0 3px;
		margin-left: 4px;
		margin-right: 4px;
	}

	#allianceButton {
		top: inherit;
		right: 8px;
	}

	#storeButton {
		top: inherit;
		right: 60px;
	}

	#chatButton {
		top: inherit;
		left: 8px;
		display: none;
	}

	#chatButton.hide {
		display: none;
	}

	.gameButton {
		bottom: 8px;
		width: 44px;
		height: 44px;
		padding: 0 !important;
	}

	.gameButton i {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		font-size: 34px !important;
	}

	.allianceItem,
	#allianceInput,
	.allianceButtonM {
		font-size: 18px;
	}

	.storeItem {
		font-size: 18px;
	}

	.hatPreview {
		width: 35px;
		height: 35px;
	}

	.joinAlBtn,
	.itemPrice {
		font-size: 18px;
	}

	#itemInfoHolder {
		top: 51px;
	}

	#leaderboardButton {
		display: block;
		right: 8px;
		bottom: 60px;
		top: initial;
	}
}

@media only screen and (max-width: 480px) {
	#storeButton {
		top: 8px;
		left: 78px;
	}

	#allianceButton {
		top: 8px;
		left: 126px;
	}

	#leaderboardButton {
		top: 8px;
		left: 174px;
	}

	#gameName {
		font-size: 60px;
	}

	.storeTab {
		width: 153px;
		font-size: 24px;
	}

	#storeHolder {
		width: 340px;
	}

	#upgradeHolder {
		width: 80%;
		top: 50%;
		left: 10%;
		margin-top: -40px;
	}

	#upgradeCounter {
		top: 50%;
		margin-top: -70px;
		background-color: rgba(50, 50, 50, 0.5);
	}

	#upgradeHolder .actionBarItem {
		width: 66px;
		height: 66px;
	}
}

#touch-controls-left,
#touch-controls-right,
#touch-controls-fullscreen {
	position: absolute;
	width: 50%;
	height: 100%;
	top: 0;
	bottom: 0;
	display: none;
}

#touch-controls-fullscreen {
	width: 100%;
}

#touch-controls-right {
	left: 50%;
}

#bottomContainer {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
}