/**
 * Roria Conquest theme for teams.pbblegacy.com and replays.pbblegacy.com.
 * Loaded after global.css; mirrors the header/colors of calc.pbblegacy.com.
 */

/* Page background: light grey (dark: #1b1b1b) with the RC purple glow at the top */
html {
	background: #f0f0f0;
	color: #333;
}
html.dark {
	background: #1b1b1b;
	color: #e4e4e4;
	color-scheme: dark;
}
body {
	background: linear-gradient(to bottom, rgba(112, 72, 160, 0.6), rgba(112, 72, 160, 0.2) 80px, transparent 160px, transparent);
}
.body {
	background: none;
	padding-bottom: 20px;
}

/* Header / nav (same as calc.pbblegacy.com) */
header {
	margin: 0 0 20px 0;
	padding: 2px;
	background: none;
	text-align: center;
	height: 60px;
}
.nav-wrapper {
	width: 700px;
	margin: 0 auto;
	position: relative;
}
.nav {
	padding: 0;
}
.nav-wrapper .nav {
	padding-left: 140px;
	padding-top: 5px;
}
.nav li {
	float: left;
	list-style-type: none;
}
.nav img {
	position: absolute;
	left: 0;
	top: 0;
}
.nav a, .nav a:visited,
.dark .nav a, .dark .nav a:visited {
	color: white;
	background: #3a4f88;
	background: linear-gradient(to bottom, #4c63a3, #273661);
	box-shadow: 0.5px 1px 2px rgba(255, 255, 255, 0.45), inset 0.5px 1px 1px rgba(255, 255, 255, 0.5);
	border: 1px solid #222c4a;
	text-shadow: black 0px -1px 0;
	padding: 8px 15px;
	font-weight: bold;
	text-decoration: none;
	border-radius: 0;
	margin-left: -1px;
	font-size: 11pt;
	display: inline-block;
	line-height: normal;
	height: auto;
}
.nav a:hover, .dark .nav a:hover {
	background: linear-gradient(to bottom, #5a77c7, #2f447f);
	border: 1px solid #222c4a;
}
.nav a:active, .dark .nav a:active {
	background: linear-gradient(to bottom, #273661, #4c63a3);
	box-shadow: 0.5px 1px 2px rgba(255, 255, 255, 0.45), inset 0.5px 1px -1px rgba(255, 255, 255, 0.5);
}
.nav a.nav-first {
	margin-left: 10px;
	border-top-left-radius: 8px;
	border-bottom-left-radius: 8px;
}
.nav a.nav-last {
	border-top-right-radius: 8px;
	border-bottom-right-radius: 8px;
}
.nav a.greenbutton, .dark .nav a.greenbutton {
	background: linear-gradient(to bottom, #4ca363, #276136);
	margin-left: 10px;
}
.nav a.greenbutton:hover, .dark .nav a.greenbutton:hover {
	background: linear-gradient(to bottom, #5ac777, #2f7f44);
}
.nav a.greenbutton:active, .dark .nav a.greenbutton:active {
	background: linear-gradient(to bottom, #276136, #4ca363);
}
.nav a.purplebutton, .dark .nav a.purplebutton {
	background: linear-gradient(to bottom, hsl(267, 36.4%, 46.9%), hsl(267, 42.6%, 26.7%));
}
.nav a.purplebutton:hover, .dark .nav a.purplebutton:hover {
	background: linear-gradient(to bottom, hsl(267, 49.3%, 56.7%), hsl(267, 46%, 34.1%));
}
.nav a.purplebutton:active, .dark .nav a.purplebutton:active {
	background: linear-gradient(to bottom, hsl(267, 42.6%, 26.7%), hsl(267, 36.4%, 46.9%));
}
.nav a.redbutton, .dark .nav a.redbutton {
	background: linear-gradient(to bottom, #b04a4a, #6b2424);
}
.nav a.redbutton:hover, .dark .nav a.redbutton:hover {
	background: linear-gradient(to bottom, #cc5c5c, #823030);
}
.nav a.redbutton:active, .dark .nav a.redbutton:active {
	background: linear-gradient(to bottom, #6b2424, #b04a4a);
}
.nav .nav-logo a, .nav .nav-logo a:visited, .nav .nav-logo a:hover, .nav .nav-logo a:active,
.dark .nav .nav-logo a, .dark .nav .nav-logo a:hover, .dark .nav .nav-logo a:active {
	background: none;
	border: 0;
	box-shadow: none;
	padding: 0;
	margin: 0;
}
.nav .nav-logo img {
	top: -8px;
	left: 10px;
	width: 114px;
	height: 64px;
}

@media (max-width: 700px) {
	.nav-wrapper {
		width: auto;
		display: inline-block;
	}
	.nav-wrapper .nav {
		padding-left: 135px;
	}
	.nav a, .dark .nav a {
		font-weight: normal;
		padding: 8px 7px;
	}
	.nav .nav-logo img {
		top: 2px;
	}
}
@media (max-width: 554px) {
	header {
		height: 100px;
	}
	.nav-wrapper .nav {
		padding-left: 0;
		padding-top: 50px;
	}
	.nav a, .dark .nav a {
		padding: 8px 12px;
	}
	.nav a.nav-first {
		margin-left: 0;
	}
	.nav a.greenbutton, .dark .nav a.greenbutton {
		position: absolute;
		top: 10px;
		right: 0;
	}
}
@media (max-width: 419px) {
	.nav a, .dark .nav a {
		padding: 8px 7px;
	}
}
@media (max-width: 359px) {
	.nav-wrapper {
		padding-left: 5px;
	}
	.nav a, .dark .nav a {
		padding: 8px 4px;
	}
}

/* Content panels */
.section {
	color: #333;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid #c9bfd9;
	backdrop-filter: none;
}
.dark .section {
	color: #e4e4e4;
	background: #2a2a2a;
	border-color: #3a3a3a;
}
h1 {
	color: #333;
	border-bottom-color: #8b6bb5;
}
.dark h1 {
	color: #e4e4e4;
	border-bottom-color: #6d5393;
}
.dark h2, .dark h3 {
	color: #e4e4e4;
}

/* replay title under the player (index.php styles it for a dark background) */
html .replay-controls h1 {
	color: #555;
}
html.dark .replay-controls h1 {
	color: #ccc;
}
