.cbp-bicontrols {
	position: fixed;
	width: 300px;
	height: 100px;
	margin: -50px 0 0 -150px;
	display: inline-block;
	bottom: 0;
	right: 0;
	z-index: 99;
	margin-right: -100px;
}

.logotrans {
	position: absolute;
	width:100%; 
	text-align:center;
	margin-top: 4%;
	opacity: 0;
}

.menuItem {
	margin-top: 20px;
	margin-right: 20px;
	opacity: 0;
}

.itemvis {
	opacity: 1;
}

.menuItem:hover {
	-webkit-transform: scale(1.15) !important;
    transform: scale(1.15) !important;
}

.menuItemNav:hover {
	-webkit-transform: scale(1.15) !important;
    transform: scale(1.15) !important;
}

.menuItemNavTop {
	margin-right: 10px;
}

#pageMenu {
	position: absolute;
	z-index: 99;
	width: 890px;
	margin-left: -440px;
	left: 50%;
	top: 10px;
}

.dis {
	pointer-events: none;
}

.pages {
	background: url(../miscImg/bg_map.png);
	background-size:900px 900px;
	background-repeat: no-repeat;
	/*background-position: right 0px top 20px;*/
	width: 900px;
	height: 920px;
	text-align: center;
	overflow: hidden;
	padding-top: 100px;
	padding-left: 50px;
	padding-right: 50px;
	position:absolute;
    left:50%;
    margin: 0 0 0 -450px;
    top: 30px;
}

.loading {
	background-color: #FFFFFF;
	z-index: 9999999;
	width: 100%;
	height: 100%;
}

.hearts {
	position: absolute;
	width:100%; 
	text-align:center;
	margin-top: 20%;
}

.bodyoverflowY {

}

.bodyoverflowX {
	overflow-x: hidden;
}

#about {
	text-align: left;
	width: 95%;
	padding-left:40px;
	height: 700px;
	overflow-y: scroll;
	display: block;
	overflow-x: hidden;
}

#rules {
	text-align: left;
	width: 95%;
	padding-left:40px;
}

#texture {
	text-align: left;
	width: 95%;
	padding-left:40px;
}

.enhanceicon {
	list-style: none;
	margin: 0;
	padding: 0;
}

li.econ {
	background-image: url(../miscImg/ico_econ.png);
	background-repeat: no-repeat;
	background-position: 0 0%;
	padding: 3px 0 3px 75px;
	margin: .4em 0;
}

li.event {
	background-image: url(../miscImg/ico_event.png);
	background-repeat: no-repeat;
	background-position: 0 30%;
	padding: 3px 0 3px 75px;
	margin: .4em 0;
}

li.faction {
	background-image: url(../miscImg/ico_faction.png);
	background-repeat: no-repeat;
	background-position: 0 20%;
	padding: 3px 0 3px 75px;
	margin: .4em 0;
}

li.lore {
	background-image: url(../miscImg/ico_lore.png);
	background-repeat: no-repeat;
	background-position: 0 50%;
	padding: 3px 0 3px 75px;
	margin: .4em 0;
}

li.pvp {
	background-image: url(../miscImg/ico_pvp.png);
	background-repeat: no-repeat;
	background-position: 0 60%;
	padding: 3px 0 3px 75px;
	margin: .4em 0;
}

li.quest {
	background-image: url(../miscImg/ico_quest.png);
	background-repeat: no-repeat;
	background-position: 0 20%;
	padding: 3px 0 3px 75px;
	margin: .4em 0;
}

li.town {
	background-image: url(../miscImg/ico_town.png);
	background-repeat: no-repeat;
	background-position: 0 25%;
	padding: 3px 0 3px 75px;
	margin: .4em 0;
}

.rulebook {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 640px;
	float: right;
	margin-bottom: 30px;
}

.bannedText {
	z-index: 99;
	position: absolute;
	margin-top: 215px;
	margin-left: 25%;
}

.mofo1 {
	margin-left: 0%
}

.mofo2 {
	margin-left: 22%
}

.mofo3 {
	margin-left: 43%;
}

.mofo4 {
	margin-left: 65%;
}

.mofo5 {
	margin-left: 85%;
}

.floatImgLeft {
	float: left;
}

.bannedMofos {
	width: 100%;
}

.bannedMofo {
	width: 25%;
}

.bannedMofo img {
	position: absolute;
}

.mofoHead {
	top: 0;
	z-index: 99;
	opacity: 0;
}

.adminsAvatar {
	width: 100%;
}

.adminsAvatar img {
	margin-right: 10%;
}

.tooltip {
	display: inline;
	position: relative;
}

.tooltip:hover:before {
	content: "";
	position: absolute;
	width: 207px;
	height: 55px;
	border: 5px solid #110211;
	border-radius: 5px;
	z-index: 98;
	margin-left: -3%;
	margin-top: -52%;
}

.tooltip:hover:after {
	content: attr(title);
	position: absolute;
	width: 200px;
	height: 50px;
	line-height: 20px;
	padding: 10px;
	font-size: 14px;
	text-align: center;
	color: #719DAB;
	background: rgba(17, 1, 17, .9);
	border: 4px solid #25015C;
	border-radius: 5px;
	text-shadow: rgba(0, 0, 0, 0.0980392) 1px 1px 1px;
	box-shadow: rgba(0, 0, 0, 0.0980392) 1px 1px 2px 0px;
	z-index: 99;
	margin-left: -100%;
	margin-top: -50%;
}

.ui-tooltip {
	border: 4px solid #25015C;
	border-radius: 5px;
	width: 200px;
	padding: 50px;
	font-size: 14px;
	text-align: left;
	color: #33000;
	background: rgba(17, 1, 17, .9);
	text-shadow: rgba(0, 0, 0, 0.0980392) 1px 1px 1px;
	box-shadow: rgba(0, 0, 0, 0.0980392) 1px 1px 2px 0px;
}

.ui-widget {
	border: 4px solid #25015C;
	border-radius: 5px;
	padding: 5px;
	font-size: 14px;
	text-align: left;
	color: #33000;
	background: rgba(17, 1, 17, .9);
	text-shadow: rgba(0, 0, 0, 0.0980392) 1px 1px 1px;
	box-shadow: rgba(0, 0, 0, 0.0980392) 1px 1px 2px 0px;
}
/* =========================================================
   Responsive retrofit (2026)
   Keeps the original desktop layout intact and only changes
   the presentation on tablets/phones.
   ========================================================= */

/* Keep embedded content and large artwork from forcing horizontal scroll. */
.pages img,
.pages iframe {
	max-width: 100%;
}

#apply iframe {
	display: block;
	width: 100%;
	border: 0;
}

@media screen and (max-width: 760px) {
	html,
	body {
		width: 100%;
		min-width: 0;
		overflow-x: hidden;
	}

	/* HOME -------------------------------------------------- */
	.logotrans {
		box-sizing: border-box;
		width: 100%;
		left: 0;
		margin-top: 7vh;
		padding: 0 14px;
	}

	.logoho {
		display: block;
		width: min(88vw, 520px);
		height: auto;
		margin: 0 auto;
	}

	/* Hover cannot be relied on for touchscreens, so expose the
	   original illustrated menu at mobile sizes. */
	#themenu {
		width: 100%;
		margin-top: 12px;
	}

	#main-nav {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		gap: 8px 10px;
		animation: none !important;
		-webkit-animation: none !important;
	}

	#main-nav a {
		display: inline-flex;
		justify-content: center;
		max-width: 30%;
	}

	#main-nav .brk,
	#main-nav div {
		display: none;
	}

	.menuItem,
	.menuItem.dis {
		width: auto;
		max-width: 100%;
		height: auto;
		margin: 0;
		opacity: 1 !important;
		pointer-events: auto !important;
		transform: none !important;
		-webkit-transform: none !important;
	}

	/* Slideshow controls remain available but no longer hang off
	   the right edge as they do in the original desktop override. */
	.cbp-bicontrols {
		width: 190px;
		height: 72px;
		left: 50%;
		right: auto;
		bottom: 8px;
		margin: 0 0 0 -95px;
	}

	.cbp-bicontrols span {
		width: 64px;
		height: 72px;
		background-size: contain;
		background-position: center;
	}

	/* CONTENT NAV ------------------------------------------ */
	#pageMenu {
		position: fixed;
		box-sizing: border-box;
		width: 100%;
		left: 0;
		top: 0;
		margin-left: 0;
		padding: 8px 6px 7px;
		text-align: center;
		background: rgba(102, 51, 51, 0.94);
		z-index: 999;
	}

	#top-page-nav {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 3px;
		width: 100%;
	}

	#top-page-nav a {
		display: flex;
		justify-content: center;
		align-items: center;
		min-width: 0;
		flex: 1 1 0;
	}

	.menuItemNavTop {
		display: block;
		max-width: 100%;
		width: auto;
		height: auto;
		margin-right: 0;
		transform: none !important;
		-webkit-transform: none !important;
	}

	/* CONTENT PANEL ---------------------------------------- */
	.pages {
		box-sizing: border-box;
		position: relative;
		left: auto;
		top: auto;
		width: calc(100% - 16px);
		height: auto;
		min-height: calc(100vh - 16px);
		margin: 8px;
		padding: 88px 18px 42px;
		background-size: 100% auto;
		background-repeat: repeat-y;
		background-position: top center;
		overflow: visible;
		text-align: left;
	}

	#about,
	#rules,
	#texture,
	#apply {
		box-sizing: border-box;
		width: 100%;
		height: auto;
		padding-left: 0;
		padding-right: 0;
		overflow: visible;
	}

	#about {
		overflow-y: visible;
		overflow-x: visible;
	}

	/* Icon feature list: retain the original icons but use less
	   horizontal space. */
	li.econ,
	li.event,
	li.faction,
	li.lore,
	li.pvp,
	li.quest,
	li.town {
		padding-left: 58px;
		background-size: 44px auto;
	}

	/* Admin portraits can wrap instead of extending off screen. */
	.adminsAvatar {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 12px;
	}

	.adminsAvatar img {
		max-width: 64px;
		height: auto;
		margin-right: 0;
	}

	/* RULES ------------------------------------------------ */
	.floatImgLeft {
		float: none;
		display: block;
		margin: 0 auto 14px;
	}

	.rulebook {
		box-sizing: border-box;
		float: none;
		width: 100%;
		margin: 0 0 24px;
	}

	/* The original impaled-head animation is absolutely positioned
	   for a 900px canvas. On phones, present the heads as a clean row. */
	.bannedText {
		position: static;
		display: block;
		width: min(100%, 360px);
		height: auto;
		margin: 28px auto 14px;
	}

	.bannedMofos {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: flex-end;
		gap: 10px;
		width: 100%;
	}

	.bannedMofo,
	.mofo1,
	.mofo2,
	.mofo3,
	.mofo4,
	.mofo5 {
		position: relative;
		width: 80px;
		height: 118px;
		margin-left: 0;
	}

	.bannedMofo img {
		position: absolute;
		left: 0;
		max-width: 80px;
		height: auto;
	}

	.bannedMofo .spike,
	.bannedMofo .bloodSpike {
		bottom: 0;
		top: auto;
	}

	.bannedMofo .mofoHead {
		top: 0 !important;
		bottom: auto;
		opacity: 1 !important;
		z-index: 99;
	}

	/* APPLY ------------------------------------------------ */
	#apply iframe {
		width: 100% !important;
		height: 930px;
	}

	/* TEXTURE PACK ----------------------------------------- */
	#texture > img {
		width: 100% !important;
		height: auto !important;
	}

	#texture > div > div[style] {
		box-sizing: border-box;
		float: none !important;
		width: 100% !important;
		margin: 0 0 28px;
	}

	#texture .download,
	#texture input[type="image"] {
		max-width: 100%;
		height: auto;
	}

	/* jQuery UI tooltips were designed for mouse hover. Keep any
	   tooltip that does appear within the viewport. */
	.ui-tooltip,
	.ui-widget {
		box-sizing: border-box;
		max-width: calc(100vw - 24px);
	}
}

@media screen and (max-width: 420px) {
	.logotrans {
		margin-top: 5vh;
	}

	#main-nav a {
		max-width: 46%;
	}

	.pages {
		width: calc(100% - 8px);
		margin: 4px;
		padding: 82px 14px 36px;
	}

	li.econ,
	li.event,
	li.faction,
	li.lore,
	li.pvp,
	li.quest,
	li.town {
		padding-left: 48px;
		background-size: 36px auto;
	}
}
