MediaWiki:Common.css

From KartRider Drift Wiki
Jump to navigation Jump to search

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.
/* CSS placed here will be applied to all skins */

:root,
.theme-light {
    --wiki-body-background-image: none;
    --wiki-body-background-color: #6ccfff;
    --wiki-body-background-color--rgb: 108,207,255;
    --wiki-body-background-color--secondary: #ffffff;
    --wiki-body-background-color--secondary--rgb: 255,255,255;
    --wiki-body-dynamic-color: #000000;
    --wiki-body-dynamic-color--rgb: 0,0,0;
    --wiki-body-dynamic-color--inverted: #ffffff;
    --wiki-body-dynamic-color--inverted--rgb: 255,255,255;
    --wiki-body-dynamic-color--secondary: #333333;
    --wiki-body-dynamic-color--secondary--rgb: 51,51,51;
    --wiki-body-dynamic-color--secondary--inverted: #dddddd;
    --wiki-body-dynamic-color--secondary--inverted--rgb: 221,221,221;
    
    --wiki-content-background-color: #ffffff;
    --wiki-content-background-color--rgb: 255, 255, 255;
    --wiki-content-background-opacity: 1;
    --wiki-content-background-color--secondary: #fbfbfb;
    --wiki-content-background-color--secondary--rgb: 211, 194, 176;
    --wiki-content-border-color: #a7d7f9;
    --wiki-content-border-color--rgb: 167, 215, 249;
    --wiki-content-text-color: #111111;
    --wiki-content-text-color--rgb: 17, 17, 17;
    --wiki-content-link-color: #0645ad;
    --wiki-content-link-color--rgb: 6, 69, 173;
    --wiki-content-link-label-color: #ffffff;
    --wiki-content-link-label-color--rgb: 255,255,255;
    --wiki-content-link-color--visited: var(--wiki-content-link-color);
    --wiki-content-link-color--visited--rgb: var(--wiki-content-link-color--rgb);
    --wiki-content-link-color--hover: var(--wiki-content-link-color);
    --wiki-content-link-color--hover--rgb: var(--wiki-content-link-color--rgb);
    --wiki-content-redlink-color: #ba0000;
    --wiki-content-redlink-color--rgb: 186,0,0;
    --wiki-content-text-mix-color: #8a8b8b;
    --wiki-content-text-mix-color--rgb: 138,139,139;
    --wiki-content-text-mix-color-95: #eef0f0;
    --wiki-content-text-mix-color-95--rgb: 238,240,240;
    --wiki-content-dynamic-color: #000000;
    --wiki-content-dynamic-color--rgb: 0,0,0;
    --wiki-content-dynamic-color--inverted: #ffffff;
    --wiki-content-dynamic-color--inverted--rgb: 255,255,255;
    --wiki-content-dynamic-color--secondary: #333333;
    --wiki-content-dynamic-color--secondary--rgb: 51,51,51;
    --wiki-content-dynamic-color--secondary--inverted: #dddddd;
    --wiki-content-dynamic-color--secondary--inverted--rgb: 221,221,221;

    --wiki-heading-color: var(--wiki-content-text-color);
    --wiki-heading-color--rgb: var(--wiki-content-text-color--rgb);
    --wiki-heading-font-family: 'Linux Libertine','Georgia','Times',serif;
    --wiki-zebra-table-color: #DFE6E7;

    --wiki-accent-color: #0087cb;
    --wiki-accent-color--rgb: 0, 135, 203;
    --wiki-accent-color--hover: #447ff5;
    --wiki-accent-color--hover--rgb: 68, 127, 245; 
    --wiki-accent-label-color: #ffffff;
    --wiki-accent-label-color--rgb: 255, 255, 255;
    --wiki-accent-link-color: #22214d;
    --wiki-accent-link-color--rgb: 34, 33, 77;

    --wiki-sidebar-background-color: var(--wiki-content-background-color);
    --wiki-sidebar-background-color--rgb: var(--wiki-content-background-color--rgb);
    --wiki-sidebar-background-opacity: var(--wiki-content-background-opacity);
    --wiki-sidebar-border-color: var(--wiki-content-border-color);
    --wiki-sidebar-border-color--rgb: var(--wiki-content-border-color--rgb);
    --wiki-sidebar-link-color: var(--wiki-content-link-color);
    --wiki-sidebar-link-color--rgb: var(--wiki-content-link-color--rgb);
    --wiki-sidebar-heading-color: var(--wiki-heading-color);
    --wiki-sidebar-heading-color--rgb: var(--wiki-heading-color--rgb);

    --wiki-navigation-background-color: var(--wiki-content-border-color);
    --wiki-navigation-background-color--rgb: var(--wiki-content-border-color--rgb);
    --wiki-navigation-background-color--secondary: #e8f2f8;
    --wiki-navigation-background-color--secondary--rgb: 232, 242, 248;
    --wiki-navigation-border-color: var(--wiki-content-border-color);
    --wiki-navigation-border-color--rgb: var(--wiki-content-border-color--rgb);
    --wiki-navigation-text-color: var(--wiki-content-link-color);
    --wiki-navigation-text-color--rgb: var(--wiki-content-link-color--rgb);
    --wiki-navigation-selected-background-color: var(--wiki-content-background-color);
    --wiki-navigation-selected-background-color--rgb: var(--wiki-content-background-color--rgb);
    --wiki-navigation-selected-border-color: var(--wiki-navigation-border-color);
    --wiki-navigation-selected-border-color-rgb: var(--wiki-navigation-border-color--rgb);
    --wiki-navigation-selected-text-color: var(--wiki-content-text-color);
    --wiki-navigation-selected-text-color-rgb: var(--wiki-content-text-color--rgb);

    --wiki-alert-color: #bf0017;
    --wiki-alert-color--rgb: 191,0,23;
    --wiki-alert-label-color: #ffffff;
    --wiki-alert-label-color--rgb: 255, 255, 255;
    --wiki-warning-color: #cf721c;
    --wiki-warning-color--rgb: 207,114,28;
    --wiki-warning-label-color: #000000;
    --wiki-warning-label-color--rgb: 0, 0, 0;
    --wiki-success-color: #0c742f;
    --wiki-success-color--rgb: 12,116,47;
    --wiki-success-label-color: #ffffff;
    --wiki-success-label-color--rgb: 255, 255, 255;
    
    --wiki-icon-general-filter: ;
    --wiki-icon-to-link-filter: invert(20%) sepia(93%) saturate(2141%) hue-rotate(210deg) brightness(83%) contrast(103%);
}

.theme-dark {
    --wiki-body-background-image: none;
    --wiki-body-background-color: #171717;
    --wiki-body-background-color--rgb: 23, 23, 23;
    --wiki-body-dynamic-color: #ffffff;
    --wiki-body-dynamic-color--rgb: 255,255,255;
    --wiki-body-dynamic-color--inverted: #000000;
    --wiki-body-dynamic-color--inverted--rgb: 0,0,0;
    --wiki-body-dynamic-color--secondary: #dddddd;
    --wiki-body-dynamic-color--secondary--rgb: 221,221,221;
    --wiki-body-dynamic-color--secondary--inverted: #333333;
    --wiki-body-dynamic-color--secondary--inverted--rgb: 51,51,51;
    
    --wiki-content-background-color: #202020;
    --wiki-content-background-color--rgb: 32,32,32;
    --wiki-content-background-opacity: 1.0;
    --wiki-content-background-color--secondary: #2b2b2b;
    --wiki-content-background-color--secondary--rgb: 43,43,43;
    --wiki-content-border-color: #1A5199;
    --wiki-content-border-color--rgb: 26,81,153;
    --wiki-content-text-color: #ededed;
    --wiki-content-text-color--rgb: 237,237,237;
    --wiki-content-link-color: #6d8afb;
    --wiki-content-link-color--rgb: 109,138,251;
    --wiki-content-link-label-color: #000;
    --wiki-content-link-label-color--rgb: 0,0,0;
    --wiki-content-link-color--visited: var(--wiki-content-link-color);
    --wiki-content-link-color--visited--rgb: var(--wiki-content-link-color--rgb);
    --wiki-content-link-color--hover: var(--wiki-content-link-color);
    --wiki-content-link-color--hover--rgb: var(--wiki-content-link-color--rgb);
    --wiki-content-redlink-color: #FC3B2C;
    --wiki-content-redlink-color--rgb: 252,59,44;
    --wiki-content-text-mix-color: #868686;
    --wiki-content-text-mix-color--rgb: 134,134,134;
    --wiki-content-text-mix-color-95: #2a2a2a;
    --wiki-content-text-mix-color-95--rgb: 42,42,42;
    --wiki-content-dynamic-color: #ffffff;
    --wiki-content-dynamic-color--rgb: 255, 255, 255;
    --wiki-content-dynamic-color--inverted: #000000;
    --wiki-content-dynamic-color--inverted--rgb: 0, 0, 0;
    --wiki-content-dynamic-color--secondary: #dddddd;
    --wiki-content-dynamic-color--secondary--rgb: 221, 221, 221;
    --wiki-content-dynamic-color--secondary--inverted: #333333;
    --wiki-content-dynamic-color--secondary--inverted--rgb: 51, 51, 51;

    --wiki-heading-color:  var(--wiki-content-text-color);
    --wiki-heading-color--rgb: var(--wiki-content-text-color--rgb);
    --wiki-heading-font-family: 'Linux Libertine','Georgia','Times',serif;
    --wiki-zebra-table-color: #171717;

    --wiki-accent-color: #1980ff;
    --wiki-accent-color--rgb: 25,128,255;
    --wiki-accent-color--hover: #2073D8;
    --wiki-accent-color--hover--rgb: 32,115,216;
    --wiki-accent-label-color: #000;
    --wiki-accent-label-color--rgb: 0,0,0;
    --wiki-accent-link-color: #22214d;
    --wiki-accent-link-color--rgb: 34, 33, 77;

    --wiki-sidebar-background-color: var(--wiki-content-background-color);
    --wiki-sidebar-background-color--rgb: var(--wiki-content-background-color--rgb);
    --wiki-sidebar-background-opacity: var(--wiki-content-background-opacity);
    --wiki-sidebar-border-color: var(--wiki-content-border-color);
    --wiki-sidebar-border-color--rgb: var(--wiki-content-border-color--rgb);
    --wiki-sidebar-link-color: var(--wiki-content-link-color);
    --wiki-sidebar-link-color--rgb: var(--wiki-content-link-color--rgb);
    --wiki-sidebar-heading-color: var(--wiki-heading-color);
    --wiki-sidebar-heading-color--rgb: var(--wiki-heading-color--rgb);

    --wiki-navigation-background-color: var(--wiki-content-border-color);
    --wiki-navigation-background-color--rgb: var(--wiki-content-border-color--rgb);
    --wiki-navigation-background-color--secondary: var(--wiki-content-background-color--secondary);
    --wiki-navigation-background-color--secondary--rgb: var(--wiki-content-background-color--secondary--rgb);
    --wiki-navigation-border-color: var(--wiki-content-border-color);
    --wiki-navigation-border-color--rgb: var(--wiki-content-border-color--rgb);
    --wiki-navigation-text-color: var(--wiki-content-link-color);
    --wiki-navigation-text-color--rgb: var(--wiki-content-link-color--rgb);
    --wiki-navigation-selected-background-color: var(--wiki-content-background-color);
    --wiki-navigation-selected-background-color--rgb: var(--wiki-content-background-color--rgb);
    --wiki-navigation-selected-border-color: var(--wiki-navigation-border-color);
    --wiki-navigation-selected-border-color-rgb: var(--wiki-navigation-border-color--rgb);
    --wiki-navigation-selected-text-color: var(--wiki-content-text-color);
    --wiki-navigation-selected-text-color-rgb: var(--wiki-content-text-color--rgb);

    --wiki-alert-color: #ce0018;
    --wiki-alert-color--rgb: 206,0,24;
    --wiki-alert-label-color: #000000;
    --wiki-alert-label-color--rgb: 0,0,0;
    --wiki-warning-color:#cf721c;
    --wiki-warning-color--rgb: 207,114,28;
    --wiki-warning-label-color: #000000;
    --wiki-warning-label-color--rgb: 0, 0, 0;
    --wiki-success-color: #0c742f;
    --wiki-success-color--rgb: 12,116,47;
    --wiki-success-label-color: #000000;
    --wiki-success-label-color--rgb: 0,0,0;
    
    --wiki-icon-general-filter: invert(100%);
    --wiki-icon-to-link-filter: invert(60%) sepia(70%) saturate(3715%) hue-rotate(206deg) brightness(101%) contrast(97%);
}

/*****************************
* Dark mode Syntax highlight *
******************************/

.theme-dark .mw-highlight .hll { background-color: #49483e }
.theme-dark .mw-highlight  { background: #272822; color: #f8f8f2 }
.theme-dark .mw-highlight .c { color: #75715e } /* Comment */
.theme-dark .mw-highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.theme-dark .mw-highlight .k { color: #66d9ef } /* Keyword */
.theme-dark .mw-highlight .l { color: #ae81ff } /* Literal */
.theme-dark .mw-highlight .n { color: #f8f8f2 } /* Name */
.theme-dark .mw-highlight .o { color: #f92672 } /* Operator */
.theme-dark .mw-highlight .p { color: #f8f8f2 } /* Punctuation */
.theme-dark .mw-highlight .ch { color: #75715e } /* Comment.Hashbang */
.theme-dark .mw-highlight .cm { color: #75715e } /* Comment.Multiline */
.theme-dark .mw-highlight .cp { color: #75715e } /* Comment.Preproc */
.theme-dark .mw-highlight .cpf { color: #75715e } /* Comment.PreprocFile */
.theme-dark .mw-highlight .c1 { color: #75715e } /* Comment.Single */
.theme-dark .mw-highlight .cs { color: #75715e } /* Comment.Special */
.theme-dark .mw-highlight .gd { color: #f92672 } /* Generic.Deleted */
.theme-dark .mw-highlight .ge { font-style: italic } /* Generic.Emph */
.theme-dark .mw-highlight .gi { color: #a6e22e } /* Generic.Inserted */
.theme-dark .mw-highlight .gs { font-weight: bold } /* Generic.Strong */
.theme-dark .mw-highlight .gu { color: #75715e } /* Generic.Subheading */
.theme-dark .mw-highlight .kc { color: #66d9ef } /* Keyword.Constant */
.theme-dark .mw-highlight .kd { color: #66d9ef } /* Keyword.Declaration */
.theme-dark .mw-highlight .kn { color: #f92672 } /* Keyword.Namespace */
.theme-dark .mw-highlight .kp { color: #66d9ef } /* Keyword.Pseudo */
.theme-dark .mw-highlight .kr { color: #66d9ef } /* Keyword.Reserved */
.theme-dark .mw-highlight .kt { color: #66d9ef } /* Keyword.Type */
.theme-dark .mw-highlight .ld { color: #e6db74 } /* Literal.Date */
.theme-dark .mw-highlight .m { color: #ae81ff } /* Literal.Number */
.theme-dark .mw-highlight .s { color: #e6db74 } /* Literal.String */
.theme-dark .mw-highlight .na { color: #a6e22e } /* Name.Attribute */
.theme-dark .mw-highlight .nb { color: #f8f8f2 } /* Name.Builtin */
.theme-dark .mw-highlight .nc { color: #a6e22e } /* Name.Class */
.theme-dark .mw-highlight .no { color: #66d9ef } /* Name.Constant */
.theme-dark .mw-highlight .nd { color: #a6e22e } /* Name.Decorator */
.theme-dark .mw-highlight .ni { color: #f8f8f2 } /* Name.Entity */
.theme-dark .mw-highlight .ne { color: #a6e22e } /* Name.Exception */
.theme-dark .mw-highlight .nf { color: #a6e22e } /* Name.Function */
.theme-dark .mw-highlight .nl { color: #f8f8f2 } /* Name.Label */
.theme-dark .mw-highlight .nn { color: #f8f8f2 } /* Name.Namespace */
.theme-dark .mw-highlight .nx { color: #a6e22e } /* Name.Other */
.theme-dark .mw-highlight .py { color: #f8f8f2 } /* Name.Property */
.theme-dark .mw-highlight .nt { color: #f92672 } /* Name.Tag */
.theme-dark .mw-highlight .nv { color: #f8f8f2 } /* Name.Variable */
.theme-dark .mw-highlight .ow { color: #f92672 } /* Operator.Word */
.theme-dark .mw-highlight .w { color: #f8f8f2 } /* Text.Whitespace */
.theme-dark .mw-highlight .mb { color: #ae81ff } /* Literal.Number.Bin */
.theme-dark .mw-highlight .mf { color: #ae81ff } /* Literal.Number.Float */
.theme-dark .mw-highlight .mh { color: #ae81ff } /* Literal.Number.Hex */
.theme-dark .mw-highlight .mi { color: #ae81ff } /* Literal.Number.Integer */
.theme-dark .mw-highlight .mo { color: #ae81ff } /* Literal.Number.Oct */
.theme-dark .mw-highlight .sa { color: #e6db74 } /* Literal.String.Affix */
.theme-dark .mw-highlight .sb { color: #e6db74 } /* Literal.String.Backtick */
.theme-dark .mw-highlight .sc { color: #e6db74 } /* Literal.String.Char */
.theme-dark .mw-highlight .dl { color: #e6db74 } /* Literal.String.Delimiter */
.theme-dark .mw-highlight .sd { color: #e6db74 } /* Literal.String.Doc */
.theme-dark .mw-highlight .s2 { color: #e6db74 } /* Literal.String.Double */
.theme-dark .mw-highlight .se { color: #ae81ff } /* Literal.String.Escape */
.theme-dark .mw-highlight .sh { color: #e6db74 } /* Literal.String.Heredoc */
.theme-dark .mw-highlight .si { color: #e6db74 } /* Literal.String.Interpol */
.theme-dark .mw-highlight .sx { color: #e6db74 } /* Literal.String.Other */
.theme-dark .mw-highlight .sr { color: #e6db74 } /* Literal.String.Regex */
.theme-dark .mw-highlight .s1 { color: #e6db74 } /* Literal.String.Single */
.theme-dark .mw-highlight .ss { color: #e6db74 } /* Literal.String.Symbol */
.theme-dark .mw-highlight .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
.theme-dark .mw-highlight .fm { color: #a6e22e } /* Name.Function.Magic */
.theme-dark .mw-highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */
.theme-dark .mw-highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */
.theme-dark .mw-highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */
.theme-dark .mw-highlight .vm { color: #f8f8f2 } /* Name.Variable.Magic */
.theme-dark .mw-highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */

/*****************************
*    End syntax highlight    *
******************************/

/*****************************
*     PortableInfoboxes      *
******************************/
:root {
	--pi-background: var(--wiki-content-background-color);
	--pi-secondary-background: var(--wiki-accent-color);
	--pi-secondary-background--rgb: var(--wiki-accent-color--rgb);
	--pi-secondary-background-label: var(--wiki-accent-label-color);
	--pi-border-color: rgba(var(--pi-secondary-background--rgb),0.5);
}

.portable-infobox .pi-title,
.portable-infobox .pi-header {
	text-align:center;
	font-size:1.5em;
	background:rgba(var(--pi-secondary-background--rgb), 0.75);
	color:var(--pi-secondary-background-label);
}

.portable-infobox .pi-data {
	background:rgba(var(--pi-secondary-background--rgb), 0.18);
}

.portable-infobox .pi-image {
	padding: 8px;
}

.pi-image-thumbnail {
	max-width:100%;
}

.pi-section-navigation .pi-section-tab.pi-section-active,
.pi-section-navigation .pi-section-tab.current,
.pi-media-collection .pi-tab-link.current {
	background: var(--pi-secondary-background);
	color: var(--pi-secondary-background-label);
}

/* overqualify these to overwrite normal content heading styles */
.mw-body .portable-infobox h2,
.mw-body .portable-infobox h3 {
	border-bottom: 0;
	font-family: inherit;
	font-weight: 700;
	margin: 0;
}
/*****************************
*   End PortableInfoboxes    *
******************************/


/*****************************
* Used by [[Template:Ambox]] *
******************************/
.ambox {
    background-color: var(--wiki-content-background-color--secondary);
    border: 1px solid var(--wiki-content-border-color);
    border-collapse: collapse;
    font-size: 95%;
    margin: 0 auto 2px auto;
    width: 80%;
}

.ambox-gray {
    border-left-color: #383838;
}

.ambox + .ambox {
    margin-top: -2px;
}

.ambox-text {
    padding: 0.25em 0.5em;
}

.ambox-image {
    padding: 2px 0px 2px 0.5em;
    text-align: center;
    width: 60px;
}

.ambox-tiny .ambox-image {
    padding: 2px 0.5em;
    text-align: left;
    width: auto;
}

/* Ambox colors */
.ambox-blue {
    border-left: 10px solid #1e90ff;
}

.ambox-red {
    border-left: 10px solid #b22222;
}

.ambox-orange {
    border-left: 10px solid #f28500;
}

.ambox-yellow {
    border-left: 10px solid #f4c430;
}

.ambox-purple {
    border-left: 10px solid #9932cc;
}

.ambox-gray {
    border-left: 10px solid #bba;
}

.ambox-green {
    border-left: 10px solid #228b22;
}
/*********************
* End Template:Ambox *
**********************/

/****************************************
* Semantically-correct horizontal lists *
****************************************/
.hlist dl,
.hlist ol,
.hlist ul {
	margin: 0;
	padding: 0;
}

/* Display list items inline */
.hlist dd,
.hlist dt,
.hlist li {
	/*
	 * don't trust the note that says margin doesn't work with inline
	 * removing margin: 0 makes dds have margins again
	 * We also want to reset margin-right in Minerva
	 */
	margin: 0; 
	display: inline;
}

/* Display requested top-level lists inline */
.hlist.inline,
.hlist.inline dl,
.hlist.inline ol,
.hlist.inline ul,
/* Display nested lists inline */
.hlist dl dl,
.hlist dl ol,
.hlist dl ul,
.hlist ol dl,
.hlist ol ol,
.hlist ol ul,
.hlist ul dl,
.hlist ul ol,
.hlist ul ul {
	display: inline;
}

/* Hide empty list items */
.hlist .mw-empty-li {
	display: none;
}

/* TODO: :not() can maybe be used here to remove the later rule. naive test
 * seems to work. more testing needed. like so: */
.hlist dt:not(:last-child)::after {
	content: ": ";
}
.hlist dd:not(:last-child)::after,
.hlist li:not(:last-child)::after {
	content: " · ";
	font-weight: bold;
}

/* Add parentheses around nested lists */
.hlist dd dd:first-child::before,
.hlist dd dt:first-child::before,
.hlist dd li:first-child::before,
.hlist dt dd:first-child::before,
.hlist dt dt:first-child::before,
.hlist dt li:first-child::before,
.hlist li dd:first-child::before,
.hlist li dt:first-child::before,
.hlist li li:first-child::before {
	content: " (";
	font-weight: normal;
}

.hlist dd dd:last-child::after,
.hlist dd dt:last-child::after,
.hlist dd li:last-child::after,
.hlist dt dd:last-child::after,
.hlist dt dt:last-child::after,
.hlist dt li:last-child::after,
.hlist li dd:last-child::after,
.hlist li dt:last-child::after,
.hlist li li:last-child::after {
	content: ")";
	font-weight: normal;
}

/* Put ordinals in front of ordered list items */
.hlist ol {
	counter-reset: listitem;
}

.hlist ol > li {
	counter-increment: listitem;
}

.hlist ol > li::before {
	content: " " counter(listitem) "\a0";
}

.hlist dd ol > li:first-child::before,
.hlist dt ol > li:first-child::before,
.hlist li ol > li:first-child::before {
	content: " (" counter(listitem) "\a0";
}
/********************************************
* End semantically-correct horizontal lists *
*********************************************/

/******************
* Template:Navbox *
*******************/
.navbox {
  border: 1px solid var(--wiki-content-border-color);
  border-spacing: 0;
  width: 100%;
  margin: auto;
  padding: 2px;
  clear: both;
  background: var(--wiki-content-text-mix-color-95);
  font-size: 88%;
}

.navbox-title {
  background: rgba(var(--wiki-accent-color--rgb), 0.25);
}

.navbox-group {
  background: rgba(var(--wiki-accent-color--rgb), 0.18);
}

.navbox-title {
  font-weight: bold;
}

.navbox-gutter {
  height: 0;
}

.navbox-group {
  font-weight: 700;
  padding-left: 1em;
  padding-right: 1em;
  white-space: nowrap;
}

.navbox-subgroup,
.navbox-list {
  background: var(--wiki-content-text-mix-color-95);
}

.navbox-subgroup {
  border-spacing: 0;
}

.navbox-list {
  text-align: left;
  width: 100%;
  padding: 0;
  border-left: 2px solid var(--wiki-content-text-mix-color-95);
}

.navbox-row.alt > .navbox-list {
  background: rgba(var(--wiki-body-dynamic-color--secondary--rgb), 0.05);
}

.navbox-list > .hlist {
  padding: 0 .1em;
}

.navbar {
    font-size: 88%;
    font-weight: normal
}

.navbox .navbar {
    font-size: 100%
}
/* Mobile adjustments */
@media screen and (max-width: 1280px) {
	.mw-body .navbox-inner table {
        display: table;
	}
}
@media screen and (max-width: 720px) {
	.mw-body .navbox {
		display: none;
	}
}
/**********************
* End Template:Navbox *
***********************/


/*******************
* Main page layout *
********************/
/* Front page structure */

@media screen and (min-width: 1080px){
	.page-KartRider:_Drift_Wiki .mw-parser-output
	{
		display: flex;
		flex-wrap: wrap;
		justify-content: space-evenly;
	}
	.mainpage-left {
		width: calc(100% - 550px);
	}
	.mainpage-right {
		width: 500px;
	}
}


.fpbox {
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 5px;
    overflow: auto;
    width: calc(100% - 2px);
}

.fpbox.plain {
    background: transparent;
    border: none;
    box-shadow: none;
}

.fpbox .heading,
.fpbox .mainheading,
.fpbox .welcome {
    margin: 0 0 10px;
    padding: 0 0 5px;
    overflow: auto;
}

.fpbox#fp-spotlight {
  width:unset;
}

.fpbox .mainheading,
.fpbox .welcome {
    font-size: 150%;
    font-weight: bold;
}

.fpbox .heading {
    text-align: center;
    font-weight: bold;
    font-size: 132%;
	background-color: rgba(var(--wiki-accent-color--rgb), 0.75);
    color:var(--wiki-accent-label-color);
}

.fpbox .heading a {
    color:white;
}

.linkslabel {
    margin: 15px 5px 5px;
    padding: 0 0 5px;
}

/* Template:FP links styles */
.fplinks {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: stretch;
    text-align: center;
}

.fplink-outer {
    padding: 5px;
    flex-basis: calc(25% - 10px);
    width: calc(25% - 15px);
    min-width: 115px;
    display: inline-block;
    vertical-align: middle;
}

.fplink-wide {
    flex-basis: calc(33% - 10px);
    width: calc(33% - 15px);
}

.fplink-fullwidth {
    flex-basis: 100%;
    width: calc(100% - 15px);
    font-weight: bold;
}

.fplink {
    padding: 0.5em;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    display: table;
}

.fplink-plain {
    background: transparent;
    border-radius: 0;
    border: 0;
    box-shadow: none;
}

.fplink-inner {
    display: table-row;
}

.fplink a {
    display: table-cell;
    vertical-align: middle;
}

.fplink img {
    max-width: 150px;
    width: 100%;
    height: auto;
}
/* Auto-resize front page video to fit smaller columns */
.fpbox .embedvideowrap {
    width: 100%!important;
    max-width: 480px;
    margin: 0 auto;
}

.fpbox .embedvideowrap iframe {
    width: 100%!important;
}

@media (min-width: 990px) {
    .fpcontent {
        padding-right:520px;
        width: auto
    }

    #fptopsection {
        float: left;
        width: 100%
    }

    #fpflexsection {
        float: right;
        width: 520px;
        margin-right: -520px
    }

    #fpbottomsection {
        float: left;
        width: 100%;
        margin-top: -5px
    }

    #fptopsection .fplink,#fpbottomsection .fplink {
        width: 50%
    }

    #fptopsection .fplink.wide,#fpbottomsection .fplink.wide {
        width: 100%
    }

    #fpflexsection .fplink {
        width: 25%
    }

    #fpflexsection .fplink.wide {
        width: 50%
    }
}

@media (min-width: 1100px) {
    #fptopsection .fplink,#fpbottomsection .fplink {
        width:33.333%
    }

    #fptopsection .fplink.wide,#fpbottomsection .fplink.wide {
        width: 66.666%
    }
}

@media (min-width: 1210px) {
    #fptopsection .fplink,#fpbottomsection .fplink {
        width:25%
    }

    #fptopsection .fplink.wide,#fpbottomsection .fplink.wide {
        width: 50%
    }
}

@media (min-width: 1320px) {
    #fptopsection .fplink,#fpbottomsection .fplink {
        width:20%
    }

    #fptopsection .fplink.wide,#fpbottomsection .fplink.wide {
        width: 40%
    }
}

@media (min-width: 1430px) {
    #fptopsection .fplink,#fpbottomsection .fplink {
        width:16.666%
    }

    #fptopsection .fplink.wide,#fpbottomsection .fplink.wide {
        width: 33.333%
    }

    .fplink a {
        padding: 3px 5px
    }
}

@media (min-width: 1540px) {
    #fptopsection .fplink,#fpbottomsection .fplink {
        width:14.285%
    }

    #fptopsection .fplink.wide,#fpbottomsection .fplink.wide {
        width: 28.571%
    }

    #fptopsection .fpmaybercol .fpbox,#fpbottomsection .fpmaybercol .fpbox {
        background-image: none
    }

    .fpmaybelcol {
        float: left;
        width: 70.886%
    }

    #fptopsection .fpmaybelcol .fplink,#fpbottomsection .fpmaybelcol .fplink {
        width: 20%
    }

    #fptopsection .fpmaybelcol .fplink.wide,#fpbottomsection .fpmaybelcol .fplink.wide {
        width: 40%
    }

    .fpmaybercol {
        float: right;
        width: 29.113%
    }

    #fptopsection .fpmaybercol .fplink,#fpbottomsection .fpmaybercol .fplink {
        width: 50%
    }

    #fptopsection .fpmaybercol .fplink.wide,#fpbottomsection .fpmaybercol .fplink.wide {
        width: 100%
    }
}

@media (min-width: 1650px) {
    #fptopsection .fplink,#fpbottomsection .fplink {
        width:12.5%
    }

    #fptopsection .fplink.wide,#fpbottomsection .fplink.wide {
        width: 25%
    }
}

@media (min-width: 1697px) {
    #fptopsection .fpmaybelcol .fplink,#fpbottomsection .fpmaybelcol .fplink {
        width:16.666%
    }

    #fptopsection .fpmaybelcol .fplink.wide,#fpbottomsection .fpmaybelcol .fplink.wide {
        width: 33.333%
    }
}

@media (min-width: 1760px) {
    #fptopsection .fplink,#fpbottomsection .fplink {
        width:11.111%
    }

    #fptopsection .fplink.wide,#fpbottomsection .fplink.wide {
        width: 22.222%
    }
}

@media (min-width: 1850px) {
    #fptopsection .fpmaybelcol .fplink,#fpbottomsection .fpmaybelcol .fplink {
        width:14.285%
    }

    #fptopsection .fpmaybelcol .fplink.wide,#fpbottomsection .fpmaybelcol .fplink.wide {
        width: 28.571%
    }
}

@media (min-width: 1870px) {
    #fptopsection .fplink,#fpbottomsection .fplink {
        width:10%
    }

    #fptopsection .fplink.wide,#fpbottomsection .fplink.wide {
        width: 20%
    }

    #fptopsection .fplink.image,#fpbottomsection .fplink.image {
        width: 134px;
        min-height: 134px
    }

    #fptopsection .fplink.image .box,#fpbottomsection .fplink.image .box {
        width: 120px
    }

    #fptopsection .fplink.image .image a,#fpbottomsection .fplink.image .image a {
        width: 120px;
        height: 120px;
        line-height: 120px
    }

    #fptopsection .fplink.image .box .image img,#fpbottomsection .fplink.image .box .image img {
        max-height: 120px;
        height: auto;
        width: 120px
    }
}

@media (min-width: 1918px) {
    #fptopsection .fpmaybercol .fplink,#fpbottomsection .fpmaybercol .fplink {
        width:33.333%
    }

    #fptopsection .fpmaybercol .fplink.wide,#fpbottomsection .fpmaybercol .fplink.wide {
        width: 66.666%
    }
}

@media (min-width: 1980px) {
    #fptopsection .fplink,#fpbottomsection .fplink {
        width:9.09%
    }

    #fptopsection .fplink.wide,#fpbottomsection .fplink.wide {
        width: 18.181%
    }
}

@media (min-width: 2006px) {
    #fptopsection .fpmaybelcol .fplink,#fpbottomsection .fpmaybelcol .fplink {
        width:12.5%
    }

    #fptopsection .fpmaybelcol .fplink.wide,#fpbottomsection .fpmaybelcol .fplink.wide {
        width: 25%
    }
}

@media (min-width: 2090px) {
    #fptopsection .fplink,#fpbottomsection .fplink {
        width:8.33%
    }

    #fptopsection .fplink.wide,#fpbottomsection .fplink.wide {
        width: 16.666%
    }
}

@media (min-width: 2161px) {
    #fptopsection .fpmaybelcol .fplink,#fpbottomsection .fpmaybelcol .fplink {
        width:11.111%
    }

    #fptopsection .fpmaybelcol .fplink.wide,#fpbottomsection .fpmaybelcol .fplink.wide {
        width: 22.222%
    }
}

@media (min-width: 2200px) {
    #fptopsection .fplink,#fpbottomsection .fplink {
        width:7.692%
    }

    #fptopsection .fplink.wide,#fpbottomsection .fplink.wide {
        width: 15.384%
    }
}

@media (min-width: 2296px) {
    #fptopsection .fpmaybercol .fplink,#fpbottomsection .fpmaybercol .fplink {
        width:25%
    }

    #fptopsection .fpmaybercol .fplink.wide,#fpbottomsection .fpmaybercol .fplink.wide {
        width: 50%
    }
}

@media (min-width: 2310px) {
    #fptopsection .fplink,#fpbottomsection .fplink {
        width:7.142%
    }

    #fptopsection .fplink.wide,#fpbottomsection .fplink.wide {
        width: 14.285%
    }
}

@media (min-width: 2316px) {
    #fptopsection .fpmaybelcol .fplink,#fpbottomsection .fpmaybelcol .fplink {
        width:10%
    }

    #fptopsection .fpmaybelcol .fplink.wide,#fpbottomsection .fpmaybelcol .fplink.wide {
        width: 20%
    }
}

@media (min-width: 2420px) {
    #fptopsection .fplink,#fpbottomsection .fplink {
        width:6.666%
    }

    #fptopsection .fplink.wide,#fpbottomsection .fplink.wide {
        width: 13.333%
    }

    .fplink a {
        padding: 5px 5px
    }

    #fptopsection .fplink.image,#fpbottomsection .fplink.image {
        width: 164px;
        min-height: 164px
    }

    #fptopsection .fplink.image .box,#fpbottomsection .fplink.image .box {
        width: 150px
    }

    #fptopsection .fplink.image .image a,#fpbottomsection .fplink.image .image a {
        width: 150px;
        height: 150px;
        line-height: 125px
    }

    #fptopsection .fplink.image .box .image img,#fpbottomsection .fplink.image .box .image img {
        max-height: 150px;
        height: auto;
        width: 150px
    }
}

.fplink.image .image {
    font-size: 75%
}

.fplink.image .image a {
    padding: 0
}

.fplink.image .link a {
    background: rgba(0,0,0,0.1);
    border-top: 2px solid #505050
}

.fpvideos {
    margin: 0 auto;
    overflow: hidden;
    text-align: center
}

.fpvideo {
    display: inline-block;
    margin: 0 5px
}

.fpmidsections {
    float: left;
    width: 100%;
    overflow: hidden
}

.fpsection1,.fpsection2,.fpsection3,.fpsection4 {
    float: left;
    clear: both;
    width: 100%
}

.fpmain .columns .leftcol,.fpmain .columns .rightcol {
    width: 100%;
    margin: 0;
    padding: 0
}

@media (min-width: 790px) {
    .fpsection1,.fpsection4 {
        float:left;
        clear: none;
        width: 50%
    }

    .fpmidsections {
        float: right;
        clear: none;
        width: 50%
    }
}

@media (min-width: 990px) {
    .fpmain .columns .leftcol {
        float:left;
        width: 50%
    }

    .fpmain .columns .rightcol {
        float: right;
        width: 50%
    }
}

@media (min-width: 1390px) {
    .fpmidsections {
        clear:none;
        float: right;
        width: 66.667%
    }

    .fpsection1 {
        clear: none;
        width: 33.333%
    }

    .fpsection2,.fpsection3 {
        clear: none;
        width: 50%
    }

    .fpsection4 {
        clear: left;
        width: 33.333%
    }
}

.desktopleft {
    text-align: left
}

.desktopcenter {
    text-align: center
}

.desktopright {
    text-align: right
}

.fpmain {
    width: 100%;
    overflow: hidden
}

.fpbox {
    padding: 5px;
    margin-bottom: 5px;
    margin-top: 5px;
    overflow: auto;
    background: rgba(var(--wiki-accent-color--rgb), 0.18);
    border-radius: 5px;
    border: none;
    color: var(--wiki-content-dynamic-color);
    box-shadow: 0 0.1em 0.75em rgba(0,0,0,0.3);
}

.fpbox.plain {
    background: transparent;
    border: none;
    box-shadow: none
}

.fpbox .heading,.fpbox .mainheading,.fpbox .welcome {
    margin: 0 0 10px;
    padding: 0 0 5px;
    overflow: auto
}

.fpbox .mainheading,.fpbox .welcome {
    font-size: 150%;
    font-weight: bold
}

.fpbox .heading {
    text-align: center;
    font-size: 132%
}

.linkslabel {
    margin: 15px 5px 5px;
    padding: 0 0 5px
}

.fpbox .embedvideowrap {
    width: 100%!important;
    max-width: 480px;
    margin: 0 auto
}

.fpbox .embedvideowrap iframe {
    width: 100%!important
}

/* Multi-column box support */
.fp-container main .columns .leftcol,
.fp-container .columns .rightcol {
    width: 100%;
    margin: 0;
    padding: 0;
}

@media (min-width: 990px) {
    .fp-container .columns .leftcol {
        float: left;
        width: 50%;
    }

    .fp-container .columns .rightcol {
        float: right;
        width: 50%;
    }
}

.fp-section {
    display: flex;
    flex-wrap: wrap;
}

.fp-help-column-container {
	display: flex;
	flex-direction: column;
	gap: 1em;
}

.fp-help-inner-container {
  padding: 0.5em;
  border-radius: 0.2rem;
  background: rgba(var(--wiki-content-text-mix-color-95--rgb), 0.7);
  border: 1px solid rgba(var(--wiki-accent-color--rgb), 0.5);
  box-shadow: 0 0 0.5rem #0002;
}
/* help */
.fp-help-outer-container {
  display:flex;
  flex-direction:column;
  gap:2em;
}

@media screen and (min-width:1200px) {
  .fp-help-outer-container {
    display:flex;
    flex-direction:row;
  }
}

.fp-help-column-container {
	display: flex;
	flex-direction: column;
	gap: 1em;
}

.fp-help-inner-container {
  padding: 0.5em;
  border-radius: 0.2rem;
  background: rgba(var(--wiki-content-text-mix-color-95--rgb), 0.7);
  border: 1px solid rgba(var(--wiki-accent-color--rgb), 0.5);
  box-shadow: 0 0 0.5rem #0002;
}

.fp-help {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap: 1.3em 1.5em;
  margin-block: 1.25em;
}
@media screen and (max-width: 1000px) {
  .fp-help {
    gap: 0.5rem 1rem;
    margin-block: 0.7em;
  }
  .fp-help-section {
    flex-grow: 1;
  }
}
/* end help */
/* 2 col*/
#fp-2column.fp-container {
  display: grid;
  grid-template-areas: "a" "b" "c";
  grid-template-columns: 100%;
}

@media screen and (min-width: 990px) {
  #fp-2column.fp-container {
    grid-template-areas: "a b" "c c";
    grid-template-columns: 50% 50%;
  }
}
@media screen and (min-width: 1350px) {
  #fp-2column.fp-container {
    grid-template-areas: "a b" "c b";
    grid-template-columns: auto 520px;
  }
}
#fp-top {
  grid-area: a;
}

#fp-flex {
  grid-area: b;
}

#fp-bottom {
  grid-area: c;
}
/* end 2 col */
/* This CSS governs the responsive 3 column main page layout */

#fp-3column.fp-container {
    display: grid;
    grid-template-areas: "a" "b" "c" "d";
    grid-template-columns: 100%;
}
@media screen and (min-width:990px) {
    #fp-3column.fp-container {
        grid-template-areas: "a b" "c b" "c d";
        grid-template-columns: 50% 50%;
    }
}
@media screen and (min-width:1350px) {
    #fp-3column.fp-container {
        grid-template-areas: "a b c" "d b c";
        grid-template-columns: 33.3% 33.3% 33.3%;
    }
}

#fp-1 {
    grid-area: a;
}

#fp-2 {
    grid-area: b;
}

#fp-3 {
    grid-area: c;
}

#fp-4 {
    grid-area: d;
}

/* end responsive 3 column main page layout */

@media only screen and (min-width: 1350px) and (max-width:1560px) {
    div#global-wrapper.with-siderail table.weapons-table {
        font-size:0.85em
    }

    div#global-wrapper.with-siderail table.weapons-table th {
        font-size: 0.8em
    }
}
/***********************
* End main page layout *
************************/

/***********************
* Start DRUID infoboxes *
************************/

.druid-container {
	/* These variables are designed to inherit from your wiki's color variables.
	   If your wiki uses a different naming scheme, change the inner names to match yours.
	   If your wiki doesn't use color variables you should consider doing so,
	   otherwise you can replace the inner variables or the fallback values with colors that match your wiki.
	*/
    --druid-background-color: var(--wiki-content-background-color, #ffffff);
    --druid-background-color--rgb: var(--wiki-content-background-color--rgb, 255, 255, 255);
    
    --druid-secondary-background-color: var(--wiki-accent-color, #36c);
    --druid-secondary-background-color--rgb: var(--wiki-accent-color--rgb, 51, 102, 204);
    --druid-secondary-background-label-color: var(--wiki-accent-label-color, #fff);
    --druid-secondary-background-label-color--rgb: var(--wiki-accent-label-color--rgb, 255, 255, 255);
    
    --druid-tertiary-background-color: var(--wiki-content-background-color--secondary, #eaecf0);
    --druid-tertiary-background-color--rgb: var(--wiki-content-background-color--secondary--rgb, 234, 236, 240);
    
    --druid-border-color: var(--wiki-content-border-color, #a7d7f9);
    --druid-border-color--rgb: var(--wiki-content-border-color--rgb, 167, 215, 249);
    
    --druid-link-color: var(--wiki-content-link-color, #0645ad);
    --druid-link-color--rgb: var(--wiki-content-link-color--rgb, 6, 69, 173);
    --druid-link-label-color: var(--wiki-content-link-label-color, #fff);
    --druid-link-label-color--rgb: var(--wiki-content-link-label-color--rgb, 255, 255, 255);
}

.druid-container {
    border:4px solid var(--druid-border-color);
    background:var(--druid-background-color);
    float: right;
    clear: right;
    margin: 0 0 1em 1em;
    width: 16.875em;
    box-sizing:border-box;
    border-collapse:collapse;
}

@media screen and (max-width: 450px) {
  .druid-container {
    width:100%;
  }
}

@media screen and (max-width: 720px) {
  .druid-container {
    float: none;
    margin: 0.5rem auto;
  }
}

.druid-main-images-file,
.druid-main-image {
    text-align:center;
}

.druid-title,
.druid-section {
    background:rgba(var(--druid-secondary-background-color--rgb), 0.75);
    color:var(--druid-secondary-background-label-color);
    text-align:center;
    font-size:1.5em;
}

.druid-section {
    font-size:1.25em;
}

.druid-label {
    font-weight:bold;
}

.druid-main-images {
    padding:5px;
}

.druid-main-images img {
    max-width:100%;
    height:auto;
}

.druid-main-images-labels {
	display:flex;
	flex-direction:row;
	flex-wrap:wrap;
    justify-content: space-evenly;
    margin:0.25em;
    gap:0.25em;
}

.druid-main-images-label {
	cursor:pointer;
    flex:1 1 auto;
    text-align:center;
    transition:.1s ease-in;
    outline:1px solid var(--druid-link-color);
}

.druid-main-images-label.focused {
	background:var(--druid-link-color);
    color:var(--druid-link-label-color);
}

.druid-main-images-label:not(.focused):hover {
    background:rgba(var(--druid-link-color--rgb), 0.25);
}

.druid-toggleable-data,
.druid-main-images-file {
	display:none;
}

.druid-toggleable-data.focused,
.druid-main-images-file.focused {
	display:block;
}

.druid-row:not(:has(.druid-grid)):has(.druid-toggleable-data-empty.focused) {
    display:none;
}

.druid-section:has(.druid-toggleable-heading-empty.focused) {
    display:none;
}

.druid-grid {
	display:grid;
}

.druid-grid-item {
    background:var(--druid-tertiary-background-color);
    margin:0.25em;
    padding:0.25em;
    border:1px solid rgba(var(--druid-border-color--rgb), 0.5);
}

/***********************
* End DRUID infoboxes  *
************************/