MediaWiki:Common.css

From IdleOn MMO Wiki
Revision as of 15:42, 13 April 2022 by Wekhter (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* --- CUSTOM FONT --- */

@font-face {
	font-family: 'Idleon';
	src: url('https://idleon.info/wiki/resources/assets/Idleon.ttf') format('truetype');
}

/* --- CSS VARIABLES --- */

:root {
	--main-bg-color: #D5D7DA;
	--main-border-color: #999;
	--main-box-shadow: 0 0 10px rgba(63, 91, 105, .25);
	--main-link-color: #054ec6;
	--main-link-color-hover: #083f99;
	--element-bg-color: #EFF0F0;
	--element-bg-color-light: #E5E6E6;
	--element-border-color: #9F9F9F;
	--element-border-color-light: #ADADAD;
	--element-box-shadow: 0 0 10px rgba(63, 91, 105, .15);
	--accent-color-light: #D6C2DB;
	--accent-color-medium: #B17FBD;
	--accent-color-dark: #713C90;
}


/* --- DARK MODE --- */

.client-dark-mode {
	--element-bg-color: #ddd;
	--element-bg-color-light: #d9dada;
}
/* -- Override prepended symbols -- */
.client-dark-mode .darkmode-link:before {
    content: '';
}
.darkmode-link:before { 
    content: '';
}

/* --------- GLOBAL STYLES --------- */

* {
	box-sizing: border-box;
}

.pixelfont,
.mw-body h1,
.mw-body h2,
.mw-body h3,
.mw-body h4,
.mw-body h5,
.Infobox .Header {
	font-family: 'Idleon'
}

.mw-body a,
.mw-body a:visited,
.mw-portlet-body a,
.mw-portlet-body a:visited,
.mw-parser-output a.extiw,
.mw-parser-output a.extiw:active,
.mw-parser-output a.extiw:visited,
.mw-parser-output a.external,
.mw-parser-output a.external:visited,
.client-dark-mode a,
.client-dark-mode #mw-panel .portal .body li a,
.client-dark-mode .toctogglelabel,
.client-dark-mode .mw-parser-output a.external,
.client-dark-mode .mw-parser-output a.extiw,
.client-dark-mode .mw-parser-output a.extiw:active {
	color: var(--main-link-color);
}

.mw-body a:hover,
.mw-body a:visited:hover,
.mw-portlet-body a:hover,
.mw-portlet-body a:visited:hover,
.mw-parser-output a.extiw:hover,
.mw-parser-output a.extiw:active:hover,
.mw-parser-output a.external:hover,
.mw-parser-output a.extiw:visited:hover,
.mw-parser-output a.external:visited:hover {
	color: var(--main-link-color-hover);
}

.mw-body a.new,
.mw-body .new a,
.mw-body a.new:visited,
.mw-body .new a:visited {
	color: #dd3333
}

.mw-body a.new:hover,
.mw-body .new a:hover,
.mw-body a.new:visited:hover,
.mw-body .new a:visited:hover {
	color: #bd2020
}

a.mw-selflink.selflink {
    color: inherit;
}

.transparent {
	background: transparent;
}


/* --- IMAGES --- */

img {
	max-width: 100%;
	height: auto;
	image-rendering: -webkit-optimize-contrast;
}

img[src$="Coin.png"] {
	margin-right: 2px;
	vertical-align: text-bottom;
}

.classimg img {
	width: auto;
	height: 50px;
}

.mw-body .mw-parser-output table a>img,
.mw-body .mw-parser-output table .floatnone>img {
	height: auto !important;
	max-width: 100% !important;
}


/* --- ALIGNMENT --- */

.left {
	text-align: left;
}

.leftImage img {
	display: block;
	float: left;
}

.center {
	text-align: center;
}

.centerImage img {
	display: block;
	margin: 0 auto;
}

.right {
	text-align: right;
}

.rightImage img {
	display: block;
	float: right;
}


/* --- TOGGLES (remove?) --- */

/* .mw-collapsed {
	min-width: 65%;
} */


/* --------- MAINPAGE --------- */

.mainpage-body {
	display: flex;
}

.mainpage-left {
	max-width: calc(100% - 260px);
}

.mainpage-container {
	border: 1px solid var(--element-border-color);
	background: var(--element-bg-color);
	margin: 0 0 1em;
	padding: .5em .8em 0;
	box-shadow: var(--element-box-shadow);
	border-radius: 5px;
}

.mainpage-container h3 {
	font-size: 1.4em;
	margin: 0 0 .4em;
}

@media screen and (max-width: 850px) {
	.mainpage-body {
		flex-flow: column wrap;
	}
	.mainpage-left {
		max-width: 100%;
	}
}


/* --- MAINPAGE FEATURES + BESTIARY --- */

.tile-row {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	width: calc(100% + 1em);
}

.mainpage-features .tile-halves {
	display: flex;
	flex: 1 1 auto;
	flex-flow: column;
	margin-right: 1em;
	overflow: hidden;
	margin-bottom: 1em;
	background: var(--accent-color-light);
	border-radius: 3px;
}

.mainpage-features .tile-halves:hover {
	background: var(--accent-color-dark);
}

.mainpage-features .tile-halves a {
	color: #000;
}

.mainpage-features .tile-halves:hover a {
	color: #fff;
}

.mainpage-features .tile-halves h3 {
	font-size: 1em;
	font-weight: 700;
	font-family: inherit;
	margin: 0;
}

.mainpage-features .tile-top {
	height: 6.5em;
	position: relative;
}

.mainpage-features .tile-top-best {
	height: 8rem;
	position: relative;
}

.mainpage-features .tile-top.tile-image,
.tile-top-best.tile-image-best {
	display: flex;
	align-items: center;
	overflow: hidden;
	padding: 0;
	max-height: 60em;
	background-color: var(--element-bg-color);
}

.tile-top-best.tile-image-best {
	align-items: flex-end;
	padding-bottom: 5px;
}

.tile-top.tile-image a,
.tile-top-best.tile-image-best a {
	width: 100%;
}

.tile-top.tile-image img {
	width: 100%;
	object-fit: cover;
}

.tile-top-best.tile-image-best img {
	margin: auto;
	display: block;
}

.tile-bottom,
.tile-bottom-best {
	width: 100%;
	padding: 0;
}

.tile-bottom.link-button {
	align-content: flex-end;
	padding: 0;
}

.tile-bottom.link-button a {
	display: block;
	text-align: center;
	text-decoration: none;
	padding: .35em 0;
}

@media screen and (max-width: 850px) {
	.tile-row {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
		width: calc(100% + 0.3em);
	}
	.mainpage-features .tile-halves {
		margin-right: 0.5em;
		margin-bottom: 0.5em;
	}
}


/* --- MAIN PAGE ITEMS & SKILLS --- */

.mainpage-container .tabber__tabs {
	flex: 0 1 100%;
}

.mainpage-container .tabber__tab {
	font-family: 'Idleon';
	font-weight: normal;
	font-size: 16px;
}

.tabber__panel .mainpage-items {
	margin-top: 1em
}

.mainpage-items,
.mainpage-skills {
	padding-bottom: .3em;
}

.mainpage-items ul,
.mainpage-skills ul {
	flex-flow: row wrap;
	display: flex;
	margin: 0;
}

.mainpage-items li,
.mainpage-skills li {
	display: flex;
	flex: 1 0 32.3%;
	margin: 0 .5% .5em;
	flex-grow: unset;
}

.mainpage-items.col4 li {
	flex: 1 0 24%;
	flex-grow: unset;
}

.mainpage-items li img {
	width:36px;
}

.mainpage-items li:hover img,
.mainpage-skills li:hover img {
	transform: scale(1.2);
	transition: 0.2s ease-out;
}

.mainpage-items li a:first-child,
.mainpage-skills li a:first-child {
	border-radius: 3px;
	width: 48px;
	height: 48px;
	min-width: 48px;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mainpage-items li a:last-child,
.mainpage-skills li a:last-child {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	color: #000;
	font-size: 1.1em;
	font-weight: 700;
	padding-left: 0.7em;
	text-decoration: none;
}

.mainpage-items li:hover a:first-child,
.mainpage-skills li:hover a:first-child {
	border-radius: 3px 0 0 3px;
}

.mainpage-items li:hover a:last-child,
.mainpage-skills li:hover a:last-child {
	color: #fff;
	border-radius: 0 3px 3px 0;
}

.mainpage-items li a:first-child,
.mainpage-skills li a:first-child {
	background-color: var(--accent-color-light);
}

.mainpage-items li:hover a:last-child,
.mainpage-skills li:hover a:last-child {
	background-color: var(--accent-color-dark);
}

@media screen and (max-width: 850px) {
	.mainpage-skills li,
	.mainpage-items li,
	.mainpage-items.col4 li {
		flex: 1 0 49%;
		flex-grow: unset;
	}
	.mainpage-skills li a:first-child,
	.mainpage-items li a:first-child {
		width: 40px;
		height: 40px;
	}
	.mainpage-skills li a:last-child,
	.mainpage-items li a:last-child {
		font-size: .9em;
	}
}


/* --- MAIN PAGE SKILL COLORS --- */

.mainpage-skills .skill-Mining a:first-child {
	background-color: #d2b244;
}
.mainpage-skills .skill-Mining:hover a:last-child {
	background-color: #b69213;
}

.mainpage-skills .skill-Choppin a:first-child {
	background-color: #748d36;
}
.mainpage-skills .skill-Choppin:hover a:last-child {
	background-color: #4c6215;
}

.mainpage-skills .skill-Smithing a:first-child {
	background-color: #878787;
}
.mainpage-skills .skill-Smithing:hover a:last-child {
	background-color: #616161;
}

.mainpage-skills .skill-Fishing a:first-child {
	background-color: #3e8e9a;
}
.mainpage-skills .skill-Fishing:hover a:last-child {
	background-color: #1a6671;
}

.mainpage-skills .skill-Catching a:first-child {
	background-color: #b9863b;
}
.mainpage-skills .skill-Catching:hover a:last-child {
	background-color: #7b5b13;
}

.mainpage-skills .skill-Alchemy a:first-child {
	background-color: #6e88e8;
}
.mainpage-skills .skill-Alchemy:hover a:last-child {
	background-color: #304d91;
}

.mainpage-skills .skill-Worship a:first-child {
	background-color: #b769d6;
}
.mainpage-skills .skill-Worship:hover a:last-child {
	background-color: #803a9c;
}

.mainpage-skills .skill-Construction a:first-child {
	background-color: #e27c5d;
}
.mainpage-skills .skill-Construction:hover a:last-child {
	background-color: #ab4d31;
}

.mainpage-skills .skill-Trapping a:first-child {
	background-color: #859ab3;
}
.mainpage-skills .skill-Trapping:hover a:last-child {
	background-color: #476588;
}

.mainpage-skills .skill-Breeding a:first-child { 
	background-color: #c99f4b; 
}
.mainpage-skills .skill-Breeding:hover a:last-child { 
	background-color: #d7b46e;
}

.mainpage-skills .skill-Cooking a:first-child { 
	background-color: #b55305; 
}
.mainpage-skills .skill-Cooking:hover a:last-child { 
	background-color: #d7813d; 
}

.mainpage-skills .skill-Laboratory a:first-child {
	background-color: #67c5df; 
}
.mainpage-skills .skill-Laboratory:hover a:last-child {
	background-color: #34cdf7;
}
/* --- MAINPAGE EMBEDS --- */

.twitchplayer,
.youtubeplayer {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	max-width: 100%;
	margin-bottom: 1em
}

.twitchplayer iframe,
.youtubeplayer iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%!important;
	height: 100%!important;
}

.widget-twitter {
	display: block;
	margin: 0 0 1em 1em;
}


/* --- WORLD HEADERS --- */

.worldheader {
	display: block;
	margin-bottom: 1em;
	width: 100%;
}

.worldheader>.mw-collapsible-toggle {
	display: block;
	float: none;
	box-shadow: var(--element-box-shadow);
	margin-bottom: 1em;
}

.mw-body .headerimg {
	height: 60px !important;
	width: 100%;
	object-fit: cover;
	object-position: 0;
	border-radius: 5px;
}

.mainpage-container .headerimg {
	margin-top: .3em
}

@media screen and (max-width: 850px) {
	.mw-body .headerimg {
		height: 50px !important;
	}
}


/* --- WORLD BANNERS (couldn't make .banner-image work, using style instead) (where?) --- */

.banner-image {
	position: relative;
	border-radius: 0.4em;
	max-width: 100%;
	overflow: hidden;
	float: left;
	margin: 0 0 3px;
}

.banner-text {
	position: absolute;
	bottom: 10px;
	left: 20px;
	color: white;
	text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
	font-size: 35px;
	font-weight: bold;
	padding-left: 2px;
	padding-right: 2px;
}

.header-text {
	position: absolute;
	bottom: 2px;
	left: 20px;
	color: white;
	text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
	font-size: 18px;
	font-weight: bold;
	padding-left: 2px;
	padding-right: 2px;
}


/* --- TOC --- */

.toc,
.client-dark-mode .toc {
	padding: 0;
	border-radius: 5px;
	background: var(--element-bg-color);
	border: 1px solid var(--element-border-color);
	box-shadow: var(--element-box-shadow);
}

.toc .toctitle {
	padding: .5em 1em;
}

.toc>ul,
.toc .tocUl {
	padding: .3em 1em;
	margin: 0;
	border-top: 1px solid #ccc;
}

.toc .toctitle {
	text-align: left;
	border: none;
}

.toggleNode {
	position: relative;
	float: right;
	left: unset;
}

.tocnumber {
	display: none;
}


/* TABLES */

table:not([class]),
.client-dark-mode table:not([class]) {
	background: transparent;
}

.wikitable,
.client-dark-mode .wikitable {
	background: var(--element-bg-color);
	box-shadow: var(--element-box-shadow);
}

.wikitable>tr>th,
.wikitable>*>tr>th {
	background-color: var(--accent-color-medium);
	white-space: nowrap;
}

.wikitable tr:hover {
	background: rgba(0, 0, 0, .03);
}

.content-table caption {
	white-space: nowrap;
}

/* CENTER COLUMN TABLE */

.CenterColumn1Image tr td:nth-child(1) img {
	display: block;
	margin: 0 auto;
	max-height: 50px;
	width: auto;
}

.CenterColumn2Image tr td:nth-child(1) img {
	display: block;
	margin: 0 auto;
}

.CenterColumn1Image tr td.drop-separator:nth-child(1) img {
	display: inline-block;
}


/* ----- FIRSTIMAGE TABLES (BOSS, NPC, BUILDING) ----- */

.FirstImage,
.client-dark-mode .FirstImage {
	width: 100%;
	background: transparent;
}

.FirstImage td:first-of-type {
	width: 12%;
	min-width: 100px;
}

.FirstImage td:first-of-type img {
	max-height: 100px;
	height: auto;
	width: auto;
	margin: 0 auto;
	display: block;
}


/* ----- RESPONSIVE TABLES ----- */

.content-table-wrapper:not(.overflowed) .content-table-left,
.content-table-wrapper:not(.overflowed) .content-table-right {
	height: auto !important
}

.content-table-wrapper:not(.overflowed) .content-table caption {
	width: auto !important
}

/* --- ALCHEMY TABLES --- */

.bubble-table,
.client-dark-mode .bubble-table {
	border: 1px solid var(--element-border-color);
	border-radius: 5px;
	background: var(--element-bg-color);
	width: 100%;
	margin: auto;
	box-shadow: var(--element-box-shadow);
}

.bubble-table th,
.bubble-table td {
	padding: 5px 10px;
}

.bubble-table th.name {
	text-align: center;
}

.bubble-table th.icon {
	padding: 0;
}

.bubble-table td img {
	width: 24px;
}

.bubble-table tr:first-child th:nth-child(1) {
	width: 5%;
	border-top-left-radius: 3px;
}

.bubble-table tr:first-child th:nth-child(2) {
	width: 15%;
}

.bubble-table tr:first-child th:nth-child(3) {
	width: 20%;
}

.bubble-table tr:first-child th:nth-child(4) {
	width: 55%;
	border-top-right-radius: 3px
}

.orange-cauldron tr:first-child {
	background-color: #ff9420;
}

.orange-cauldron tr:nth-child(2n+3) {
	background-color: rgba(255, 148, 32, .15);
}

.orange-cauldron tr.big {
	background-color: rgba(255, 148, 32, .35);
}

.green-cauldron tr:first-child {
	background-color: #47db5a;
}

.green-cauldron tr:nth-child(2n+3) {
	background-color: rgba(71, 219, 90, .15);
}

.green-cauldron tr.big {
	background-color: rgba(71, 219, 90, .35);
}

.purple-cauldron tr:first-child {
	background-color: #cb79e3;
}

.purple-cauldron tr:nth-child(2n+3) {
	background-color: rgba(203, 121, 227, .15);
}

.purple-cauldron tr.big {
	background-color: rgba(203, 121, 227, .35);
}

.yellow-cauldron tr:first-child {
	background-color: #fad00a;
}

.yellow-cauldron tr:nth-child(2n+3) {
	background-color: rgba(250, 208, 10, .15);
}

.yellow-cauldron tr.big {
	background-color: rgba(250, 208, 10, .35);
}


/* --- GENERIC FLEX LAYOUT --- */

.GenericFlex {
	flex-wrap: wrap;
	display: flex;
	justify-content: space-between;
}

.GenericChild {
	display: block;
	flex: 0 1 48%;
	margin: 1em 0;
}

.ThreeCol .GenericChild {
	flex: 0 1 32%;
}

@media screen and (max-width: 850px) {
	.ThreeCol .GenericChild {
		flex: 0 1 48%;
	}
}

@media screen and (max-width: 650px) {
	.GenericChild,
	.ThreeCol .GenericChild {
		flex: 1 1 100%;
	}
}

.GenericChild h2,
.GenericChild h3 {
	margin-top: 0;
}

.GenericChild h3:after {
	content: '';
	display: block;
	border-bottom: solid 2px #c8ccd1;
	overflow: hidden;
}

.GenericChild .valInput {
	display: inline-block;
}


/* --- BUBBLES --- */

.bubbleDiv table {
	width: 100%;
	background: var(--element-bg-color);
	border-radius: 5px;
	border: 1px solid var(--element-border-color);
	box-shadow: var(--element-box-shadow);
}

.bubbleDiv .bubbleDesc td {
	background: var(--accent-color-medium);
	text-align: center;
	border-radius: 3px 3px 0 0;
	padding: .5em;
}

.bubbleDiv .bubbleDesc h3 {
	margin: 0;
}

.bubbleDiv .bubbleDesc h3:after {
	display: none;
}

.bubbleDiv .bubbleDesc p {
	margin: 0
}

.orange .bubbleDiv tr.bubbleDesc td {
	background: #ff9420;
}

.green .bubbleDiv tr.bubbleDesc td {
	background: #47db5a;
}

.purple .bubbleDiv tr.bubbleDesc td {
	background: #cb79e3;
}

.yellow .bubbleDiv tr.bubbleDesc td {
	background: #fad00a;
}

.cauldInput,
.client-dark-mode .cauldInput {
	min-width: 50%;
	background: transparent;
}

.cauldInput td:first-child {
	text-align: right;
}

/* --- ACHIEVEMENTS --- */

.secret-achievement,
.steam-exclusive {
	display:block;
	font-size:.8em;
	padding:0 .2em;
	text-transform:uppercase;
	font-weight: 700;
	width:fit-content;
	text-align:center;
	margin-bottom: .3em;
}

.steam-exclusive {
	background: #a6ebe8;
	border: 1px solid #6aafac;
}

.secret-achievement {
    background: #ff90b6;
    border: 1px solid #e56885;
}

/* --- INFOBOX --- */

.Infobox {
	width: 30%;
	min-width: 300px;
	float: right;
	clear: right;
	background: var(--element-bg-color);
	border: 1px solid var(--element-border-color);
	border-radius: 5px;
	margin: 0 0 1em 1em;
	padding: 2px;
	box-shadow: var(--element-box-shadow);
}

.Infobox .Header,
.Infobox .SubHeader {
	background: var(--accent-color-medium);
	text-align: center;
	font-weight: 700;
}


/* Fix for Firefox, <table> doesn't fill the space properly */

.Infobox table {
	width: 100%;
}


/* Affects the very first header of the Infobox */

.Infobox .Header {
	padding: 0.5em;
	border-radius: 3px 3px 0 0;
	font-size: 1.2em;
}


/* Affects all the headers/dividers below the image */

.Infobox .SubHeader {
	margin-top: 2px;
	padding: .2em
}


/* Centers the main image */

.Infobox .HeaderImage {
	text-align: center;
	padding: 5px 0;
}


/* Constraining the max height of images in infoboxes */

.Infobox .HeaderImage img {
	max-height: 300px;
	width: auto;
}


/* --- INFOBOX (TABLE) --- */

table.Infobox {
	padding: 0;
}


/* Affects the left column (purple) */

.Infobox th {
	background: var(--accent-color-light);
	text-align: left;
	margin-top: 2px;
	padding: .2em;
}


/* Makes width of the two rows more consistent, but allows for flexibility // % gets overriden by colspan, em works // */

.Infobox th,
.Infobox td {
	max-width: 8em;
	min-width: 5em;
}


/* Rounds the last table row to fit with the rounded edge of the Infobox */

.LastTable {
	border-radius: 0 0 0 3px;
}


/* --- INFOBOX (DEFINITION LIST) --- */

.Infobox dl,
.Infobox .dl {
	display: grid;
	grid-template-columns: 40% 60%;
	gap: 2px;
	margin: 0;
}

.Infobox dl:not(:empty){
	margin-top: 2px;
}

.Infobox dt,
.Infobox dd,
.Infobox .dt,
.Infobox .dd {
	margin: 0;
	padding: .2em;
	font-family: inherit;
	display: flex;
	align-items: center;
}

.Infobox dt,
.Infobox .dt {
	line-height: 1.5;
	background: var(--accent-color-light);
	font-weight: 700
}

.Infobox>:last-child {
	border-radius: 0 0 3px 3px;
	overflow: hidden
}


/* --- BOSS INFOBOX --- */

.Infobox.BossInfobox .tabber__tabs {
	width: 100%;
}

.Infobox.BossInfobox .tabber__tab {
	justify-content: center;
	flex: 0 1 100%;
}

.Infobox.BossInfobox .tabber__panel {
	overflow-x: hidden;
}


/* --- FRONTPAGE INFOBOX --- */

.Infobox.FrontPageBox {
	min-width: 260px;
}

.Infobox.FrontPageBox .Header {
	font-size: 1.4em;
}

.Infobox.FrontPageBox .HeaderImage {
	padding: 0
}


/* --- CLASS INFOBOX (TALENTS) --- */

.InfoboxTalents {
	text-align: center;
	padding: 5px
}

.InfoboxTalents p {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	row-gap: 5px;
	max-width: 300px;
	margin: auto;
}

/* --- CARD INFOBOX --- */

.CardStar {
	max-height: 13px;
	width: 100%;
}

/* --- DETAILBOX INFOBOX --- */

.DetailboxGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18em, 1fr));
    row-gap: .5em;
    column-gap: .5em;
}

.Infobox.Detailbox {
	float: none;
	margin: 0 0 1em;
	table-layout: fixed;
}

.DetailboxGrid .Infobox.Detailbox {
   min-width: auto;
   width: 100%;
   margin:0;
}

.Infobox.Detailbox .Header {
	font-family: inherit;
	font-size: 1em;
	padding: .2em;
	background: var(--accent-color-light)
}

.Infobox.Detailbox .SellPrice {
	text-align: center
}

.Infobox.Detailbox .SubHeader {
	font-size: .9em;
	background: var(--accent-color-light)
}

.Infobox.Detailbox dl, 
.Infobox.Detailbox .dl {
	grid-template-columns: repeat(4, 1fr);
}

.Infobox.Detailbox dt,
.Infobox.Detailbox dd,
.Infobox.Detailbox .dt,
.Infobox.Detailbox .dd {
	margin: 0;
	font-size: .9em;
}

.Infobox.Detailbox .start {
	grid-column-start: 1;
}

.Infobox.Detailbox .wide {
	grid-column: span 3;
}

.Infobox.Detailbox .clearfix,
.Infobox.Detailbox hr {
	display:none;
}

.Infobox.Detailbox .str {
	color: #ef7600;
}

.Infobox.Detailbox .agi {
	color: #19b131;
}

.Infobox.Detailbox .wis {
	color: #cb50ef;
}

.Infobox.Detailbox .luk {
	color: #cf9f01;
}

/* --- DETAILBOX INFOBOX (TOOLTIP) --- */

.tooltip .Infobox.Detailbox,
.tooltipster-content .Infobox.Detailbox {
	display: block;
	float: none;
	clear: both;
	margin: 0;
	font-size: 1rem;
	width: auto;
	min-width: 200px;
	max-width: 300px;
	color: #000;
}

.tooltip .Infobox.Detailbox .Header,
.tooltip .Infobox.Detailbox .SellPrice,
.tooltip .Infobox.Detailbox .HeaderImage,
.tooltip .Infobox.Detailbox .SubHeader,
.tooltipster-content .Infobox.Detailbox .Header,
.tooltipster-content .Infobox.Detailbox .SellPrice,
.tooltipster-content .Infobox.Detailbox .HeaderImage,
.tooltipster-content .Infobox.Detailbox .SubHeader{
	display: block;
}

.tooltip .Infobox.Detailbox .HeaderImage,
.tooltipster-content .Infobox.Detailbox .HeaderImage {
	padding: 2px 0;
}

.tooltip .Infobox.Detailbox .HeaderImage img,
.tooltipster-content .Infobox.Detailbox .HeaderImage img {
	max-width: 36px;
}

/* --- GENERAL TOOLTIP --- */

.tooltipster-default .tooltipster-content {
	font-family:inherit; 
	padding: 0;
}
.tooltipster-content p {
	margin: 0;
}
.tooltipster-content .text-only {
	padding: 6px 10px;
	display: inline-block;
}
.tooltipster-base.tooltipster-default.tooltipster-fade.tooltipster-fade-show {
	box-shadow: var(--element-box-shadow);
}

/* --- DETAILBOX RNG ITEMS --- */

.DetailboxGrid.RNG-Items {
    grid-template-columns: repeat(auto-fill, minmax(15em, 1fr));
}

.Infobox.RNG-Item {
   border-width: 2px;
}

.Infobox.Rarity-Common {
	border-color:#878898;
}
.Infobox.Rarity-Common .Header, .Infobox.Rarity-Common .SubHeader {
	background-color: #d5d5d5;
}
.Infobox.Rarity-Uncommon {
	border-color:#24994b;
}
.Infobox.Rarity-Uncommon .Header, .Infobox.Rarity-Uncommon .SubHeader {
	background-color: #8ee7a8;
}
.Infobox.Rarity-Rare {
	border-color:#5773b9;
}
.Infobox.Rarity-Rare .Header, .Infobox.Rarity-Rare .SubHeader {
	background-color: #8daded;
}
.Infobox.Rarity-Epic {
	border-color:#715fa5;
}
.Infobox.Rarity-Epic .Header, .Infobox.Rarity-Epic .SubHeader {
	background-color: #bc93ff;
}
.Infobox.Rarity-Legendary {
	border-color:#d5854c;
}
.Infobox.Rarity-Legendary .Header, .Infobox.Rarity-Legendary .SubHeader {
	background-color: #ffa95f;
}

/* --- DETAILBOX DUNGEON ENEMIES --- */

.DetailboxGrid.DungeonEnemies {
    grid-template-columns: repeat(auto-fill, minmax(15em, 1fr));
}

/* --- NAVBOX --- */

.Navbox {
	width: 100%;
	background: var(--element-bg-color);
	border: 1px solid var(--element-border-color);
	border-radius: 5px;
	margin: 0 0 1em;
	padding: 2px;
	box-shadow: var(--element-box-shadow);
}

.Navbox th {
	background: var(--accent-color-medium);
	text-align: center;
	font-weight: 700;
}

/* ----- FORGE SLOT ----- */

.forgeslot {
	width: 100%;
	background: var(--element-bg-color);
	border: 1px solid var(--element-border-color);
	box-shadow: var(--element-box-shadow);
	border-radius: 5px;
	margin-bottom: 1em;
	text-align: center;
	max-width: 400px;
}

.forgeslot th {
	background: var(--accent-color-medium);
}

.forgeslot th:first-child {
	border-top-left-radius: 3px;
}

.forgeslot th:last-child {
	border-top-right-radius: 3px;
}

.forgeslot th:first-child,
.forgeslot td:first-child {
	text-align: left;
}

.forgeslot tr:last-child td {
	text-align: right;
}

.forgeslot .anviltab img {
	float: left;
}

.forgeslot .smithreq img {
	float: right;
}

/* ----- BONUS CALCS (GOLD FOOD, STATUES)  ----- */

.bonusDiv {
    width: 100%;
    max-width: 400px;
    background: var(--element-bg-color);
    border: 1px solid var(--element-border-color);
    border-radius: 5px;
    margin: 0 0 1em;
    padding: 2px;
    box-shadow: var(--element-box-shadow);
    text-align: center;
}

.bonusHead {
    background: var(--accent-color-medium);
    font-weight: 700;
    border-radius: 3px 3px 0 0;
    padding: 1px;
    margin-bottom: .5em;
}

.bonusDiv .valInput {
    vertical-align: middle;
}

.bonusDiv .result, .bonusDiv .result1, .bonusDiv .result2 {
    color: #358510; 
    font-weight: bold;
}

/* ----- PATCH NOTES ----- */

.patchnote {
	width: 50%;
	background: var(--element-bg-color);
	border: 1px solid var(--element-border-color);
	box-shadow: var(--element-box-shadow);
	border-radius: 5px;
	margin-bottom: 1em;
}

.patchnote th {
	background: var(--accent-color-medium);
	text-align: center;
	border-radius: 3px 3px 0 0;
}

.GenericChild .patchnote {
	width: 100%;
}

.patchnote .mw-prefixindex-body {
	columns: 8em 3;
    -moz-columns: 8em 3;
    -webkit-columns: 8em 3;
}

.patchnote .mw-prefixindex-body ul {
	margin-top: 0;
}

/* --- SITE NOTICE --- */

#siteNotice {
	border: 1px solid transparent;
	border-spacing: 3px;
	background-image: linear-gradient(#ffcffa 60%, #ee75ff 70%);
	text-align: center;
	border-radius: 5px;
	color: #fff;
	text-shadow: -0.065em 0 #000, 0 0.065em #000, 0.065em 0 #000, 0 -0.065em #000;
	margin: 0 auto 1em !important;
	font-size: 16px;
	font-family: 'Idleon';
}

.client-dark-mode #siteNotice {
	filter: invert(1) hue-rotate(180deg);
	-webkit-filter: invert(1) hue-rotate(180deg);
}

#siteNotice a {
	color: #94f9ff !important;
}

#siteNotice .mw-dismissable-notice {
	border: 1px solid #000;
	border-radius: 3px;
	padding: 0 1em;
	background-image: linear-gradient(#a94bc1 30%, #7e38aa 80%);
	margin: 3px;
	outline: 1px solid #000;
	outline-offset: 3px;
}

#siteNotice .mw-dismissable-notice-close {
	margin: 0.5em;
}

#siteNotice .mw-dismissable-notice-body {
	margin: 0;
}

#localNotice p {
	margin: .5em;
}

/* MIRAHEZE NOTICES */
#siteNotice .wikitable {background:transparent !important; color:inherit !important; border:0 !important; margin:0 !important}
#siteNotice .wikitable td{border:0 !important}

/* --- ANNOUNCEMENT BANNER --- */

.banner {
	border: 1px solid #000;
	border-spacing: 3px;
	background-image: linear-gradient(#d5d5d5 60%, #979797 70%);
	width: 60%;
	text-align: center;
	border-radius: 5px;
	color: #fff;
	font-size: 20px;
	text-shadow: -.065em 0 #000, 0 .065em #000, .065em 0 #000, 0 -.065em #000;
	margin: 0 auto 1em !important;
	padding: 3px;
}

.banner .banner-inner {
	border: 1px solid #000;
	border-radius: 3px;
	background-image: linear-gradient(#828282 30%, #5c5c5c 80%);
	padding: 0 1em;
}

.banner a {
	color: #94f9ff !important;
}

.banner.blue {
	background-image: linear-gradient(#b0fdfe 60%, #2891d8 70%);
}

.banner.blue .banner-inner {
	background-image: linear-gradient(#369de2 30%, #0d578c 80%);
}

.banner.red {
	background-image: linear-gradient(#ffc0b8 60%, #fe7663 70%);
}

.banner.red .banner-inner {
	background-image: linear-gradient(#ff533c 30%, #d4240c 80%);
}

.banner.purple {
	background-image: linear-gradient(#ffcffa 60%, #ee75ff 70%);
}

.banner.purple .banner-inner {
	background-image: linear-gradient(#a94bc1 30%, #7e38aa 80%);
}

.client-dark-mode .banner {
	filter: invert(1) hue-rotate(180deg);
	-webkit-filter: invert(1) hue-rotate(180deg);
}

/* ----- SECRETS TOGGLE ----- */

.secrets {
	box-sizing: border-box;
	width: 100%;
	border: 1px solid var(--element-border-color-light);
	padding: 1em;
	background-color: var(--element-bg-color-light);
	margin-bottom: 1em;
	box-shadow: var(--element-box-shadow);
	border-radius: 3px;
	clear: both;
}

.secrets>h3 {
	margin: 0;
	font-size: 20px;
}

.secrets>.mw-collapsible-content {
	margin-top: 1em;
	overflow: auto;
}

/* ----- ENEMY NAV ----- */

.EnemyNav {
	display: flex;
	background: var(--element-bg-color);
	border: 1px solid var(--element-border-color);
	margin-bottom: 1em;
	overflow: auto;
	border-radius: 5px;
	padding: .8em;
	box-shadow: var(--element-box-shadow);
}

.EnemyNav div {
	display: flex;
	align-items: center;
	flex-basis: 33%;
}

.EnemyNav div a {
	line-height: 1;
	margin: 0 1px;
}

.EnemyNav .EnemyNavCenter {
	justify-content: center;
}

.EnemyNav .EnemyNavRight {
	justify-content: flex-end;
}


/* ----- DETAILED RECIPE TAB ----- */

.detrecipe {
	margin-top: 1em;
}


/* ----- TABBER NEUE ----- */

.tabber__tab:active,
.tabber__tab:hover,
.tabber__tab--active,
.tabber__tab--active:visited {
	box-shadow: inset 0 -2px 0 0 currentColor;
}

.tabber__section {
	scroll-behavior: unset !important
}

.tabber__panel {
	overscroll-behavior-y: auto !important;
}


/* --- STICKY HEADER --- */

.stickyHeader th {
	position: sticky;
	top: 20px;
	z-index:100;
}


/* --- RESPONSIVE TABLES, INFOBOXES, ETC --- */

@media screen and (max-width: 550px) {
	.Infobox,
	.wikitable,
	.EnemyNav,
	.widget-twitter {
		width: 100%;
		float: none;
		margin: 0 0 1em;
	}
}

/* --- CSS TOOLTIPS --- */

.tooltip {
	display: inline;
	position: relative;
	text-decoration: none; 
	border-bottom: 1px dotted #AAA;
}

.tooltip>span {
	display: none;
}

.tooltip:hover>span {
    display: block;
    position: absolute;
    z-index: 999;
    background: #000;
    color: #fff;
    border-radius: 5px;
    padding: 5px;
    font-size: 12px;
    line-height: 1.2rem;
    min-width: 2em;
    text-align: center;
    top: 0;
    left: 50%;
    transform: translate(-50%, calc(-100% - 8px));
}

.tooltip:hover>span:before {
    display: block;
    content: "";
    border-left: 8px solid transparent !important;
    border-right: 8px solid transparent !important;
    border-top: 8px solid #000;
    bottom: -7px;
    width: 0;
    position: absolute;
    z-index: 999;
    left: calc(50% - 8px);
}

/* Sidebar dropdown CSS */
.sidebar-collapsible {
	background-repeat: no-repeat;
	background-position: right;
}

.sidebar-collapsible:hover {
    cursor: pointer;
}

div#sidebar-collapsible-toggle {
    text-align: right;
    font-size: .95em;
    color: var(--main-link-color);
    cursor: pointer;
}

div#sidebar-collapsible-toggle:hover {
    color: var(--main-link-color-hover);
    text-decoration: underline;
}

#mw-site-navigation .sidebar-chunk h3,
#mw-related-navigation .sidebar-chunk h3 {
	padding: .5em 0 !important;
	background-position: right center;
}

@media only screen and (max-width: 720px) {
	.mp-portal-row {
		flex-flow: row wrap;
	}
	
	.mp-portal-row > div {
		max-width: 150px;
	}
	
	.main-page-nav {
		flex-basis: 100%;
	}
	
	.main-page-twitter {
		flex-basis: 100%;
	}
}

/* --- SHINY PETS --- */

.client-dark-mode .shiny { 
	filter: invert(1) hue-rotate(180deg); 
	-webkit-filter: invert(1) hue-rotate(180deg); 
}

.shiny img { 
	animation: shiny-filter 8s infinite; 
}

@keyframes shiny-filter {
	0% { filter: hue-rotate(60deg); }
	19% { filter: hue-rotate(60deg); }
	20% { filter: hue-rotate(120deg); }
	39% { filter: hue-rotate(120deg); }
	40% { filter: hue-rotate(180deg); }
	59% { filter: hue-rotate(180deg); }
	60% { filter: hue-rotate(240deg); }
	79% { filter: hue-rotate(240deg); }
	80% { filter: hue-rotate(300deg); }
	99% { filter: hue-rotate(300deg); }
	100% { filter: hue-rotate(60deg); }
}