/*
	z-indexes:
	8 = overlay box
	7 = overlay bg
	6 = admin nav
	5 = main nav
	4 = dropdown nav
*/

/* Global elements */

body {
	background: #000 url("/images/bg.jpg");
	color: #fff;
	font-family: 'Trebuchet MS', Verdana, sans-serif;
	font-size: 12px;
	line-height: 1.5;
	margin: 0;
	padding: 0;
}

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

:focus {
	outline: 0;
}

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

a:hover {
	color: #f90;
	text-decoration: underline;
}

a img {
	border: 0;
}

.mod {
	color: #f33;
}

.mod:hover {
	color: #f66;
}

#header {
	height: 80px;
	background: #000 url(/images/head.jpg) no-repeat;
	padding: 10px;
}

#logo {
	float: left;
	width: 360px;
	height: 80px;
	margin-left: 120px;
	text-shadow: 2px 2px 2px #000;
}

#logo a {
	display: block;
	color: #fff;
	font-size: 40px;
	font-weight: bold;
	text-decoration: none;
}

#logo p {
	font-size: 12px;
	color: #ccc;
	margin: 0;
	font-weight: bold;
	text-shadow: none;
}

#user {
	float: right;
	height: 58px;
	border-radius: 10px;
	border: solid 1px #333;
	background: #000;
	padding: 10px;
	width: 275px;
}

/* Logged out */

#user-links {
	float: right;
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: right;
	font-size: 10px;
}

#user .form-row {
	margin-bottom: 2px;
	clear: left;
}

#user .form-label {
	width: 50px;
	padding-top: 5px;
}

#user .form-input {
	margin-left: 60px;
}

#user input[type="email"],
#user input[type="password"] {
	padding: 3px;
	width: 140px;
}

/* Logged in */

#user-drop {
	width: 150px;
	position: relative;
}

#user-drop ul {
	display: none;
	position: absolute;
	top: -6px;
	left: -11px;
	background: #333;
	border: solid 1px #333;
	list-style: none;
	margin: 0;
	padding: 0 0 5px;
	font-size: 12px;
	box-shadow: 3px 3px 5px rgba(0,0,0,0.5);
	border: solid 1px #444;
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
	width: 148px;
	z-index: 6;
}

#user-drop:hover ul {
	display: block;
}

#user-drop ul a {
	display: block;
	background-repeat: no-repeat;
	padding: 5px 10px 5px 35px;
	text-decoration: none;
}

#user-drop li + li a {
	color: #ccc;
}

#user-drop .icon-none a {
	background-image: none;
	background-repeat: no-repeat;
	padding: 5px 10px;
	border-bottom: solid 1px #444;
}

#user-drop .icon-none a:hover {
	text-decoration: underline;
}

#user-drop ul a:hover {
	background-color: #444;
}

#user-drop .icon-player a	{background-image: url(/images/icons/player.png); background-position: 10px 5px; }
#user-drop .icon-key a		{background-image: url(/images/icons/key.png); background-position: 10px 5px; }
#user-drop .icon-ge a		{background-image: url(/images/icons/ge-crosshair.png); background-position: 10px 5px; }
#user-drop .icon-pd a		{background-image: url(/images/icons/pd-crosshair.png); background-position: 10px 5px; }
#user-drop .icon-calendar a	{background-image: url(/images/icons/calendar.png); background-position: 10px 5px; }
#user-drop .icon-update a	{background-image: url(/images/icons/calculator.png); background-position: 10px 5px; }
#user-drop .icon-logout a	{background-image: url(/images/icons/logout.png); background-position: 10px 5px; }

#user-ranks a {
	display: block;
	color: #fff;
	text-decoration: none;
	padding: 1px 2px;
}

#user-ranks a:hover {
	background: #151719;
}

#nav {
	list-style: none;
	padding: 0;
	margin: 0;
	background: #666 url(/images/nav.20120613.png);
	border-top: solid 1px #333;
	height: 41px;
}

#nav > li {
	display: block;
	float: left;
	position: relative;
	z-index: 5;
	zoom: 1;
}

#nav > li > a {
	display: block;
	float: left;
	zoom: 1;
	padding: 10px 20px;
	border-right: solid 1px #181818;
	color: #ccc;
	text-decoration: none;
	font-size: 14px;
}

.active-home #nav1,
.active-ge #nav2,
.active-pd #nav3,
.active-rare #nav4,
.active-players #nav6,
.active- #nav6 {
	background: #151719;
}

#nav > li:hover {
	background: #777 url(/images/nav.20120613.png) 0 -41px;
}

li#nav2 > a,
li#nav3 > a,
li#nav4 > a,
li#nav5 > a,
li#nav6 > a {
	background: url(/images/down.png) no-repeat 100% 50%;
	padding-right: 37px;
}

#nav .right {
	float: right;
}

/* Dropdown nav */

#nav ul {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0 0 5px;
	box-shadow: 3px 3px 5px rgba(0,0,0,0.5);
	position: absolute;
	z-index: 4;
	top: 100%;
	left: 0;
	text-align: left;
	border: solid 1px #444;
	border-top: 0;
	background: #333;
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
}

#nav li:hover ul {
	display: block;
}

#nav li li {
	float: none;
}

#nav li li a {
	display: block;
	color: #ccc;
	background-color: #333;
	background-repeat: no-repeat;
	padding: 5px 10px 5px 35px;
	border-radius: 0;
	width: 150px;
}

#nav li li a:hover {
	background-color: #444;
	text-decoration: none;
}

#nav .icon-ranks a,
#sidebar .icon-ranks a		{ background-image: url(/images/icons/medal.png); background-position: 10px 5px; }
#nav .icon-leaders a,
#sidebar .icon-leaders a	{ background-image: url(/images/icons/leaders-trophy.png); background-position: 10px 5px; }
#nav .icon-controller a,
#sidebar .icon-controller a	{ background-image: url(/images/icons/controller.png); background-position: 10px 5px; }
#nav .icon-calendar a,
#sidebar .icon-calendar a	{ background-image: url(/images/icons/calendar.png); background-position: 10px 5px; }
#nav .icon-players a,
#sidebar .icon-players a	{ background-image: url(/images/icons/players.png); background-position: 10px 5px; }
#nav .icon-player a,
#sidebar .icon-player a		{ background-image: url(/images/icons/player.png); background-position: 10px 5px; }
#nav .icon-ge a,
#sidebar .icon-ge a			{ background-image: url(/images/icons/ge-crosshair.png); background-position: 10px 5px; }
#nav .icon-pd a,
#sidebar .icon-pd a			{ background-image: url(/images/icons/pd-crosshair.png); background-position: 10px 5px; }
#nav .icon-world a		{ background-image: url(/images/icons/world.png); background-position: 10px 5px; }
#nav .icon-contact a,
#sidebar .icon-contact a	{ background-image: url(/images/icons/contact-card.png); background-position: 10px 5px; }
#nav .icon-key a,
#sidebar .icon-key a		{ background-image: url(/images/icons/key.png); background-position: 10px 5px; }
#nav .icon-logout a,
#sidebar .icon-logout a		{ background-image: url(/images/icons/logout.png); background-position: 10px 5px; }
#nav .icon-videos a,
#sidebar .icon-videos a		{ background-image: url(/images/icons/video-orange.png); background-position: 10px 5px; }
#nav .icon-update a,
#sidebar .icon-update a		{ background-image: url(/images/icons/calculator.png); background-position: 10px 5px; }
#nav .icon-log a,
#sidebar .icon-log a		{ background-image: url(/images/icons/logs.png); background-position: 10px 5px; }
#nav .icon-watch a,
#sidebar .icon-watch a		{ background-image: url(/images/icons/watch.png); background-position: 10px 5px; }
#sidebar .icon-world a		{ background-image: url(/images/icons/world.png); background-position: 10px 5px; }
#nav .icon-ltk a,
#sidebar .icon-ltk a		{ background-image: url(/images/icons/hamburger-on.png); background-position: 10px 5px; }
#nav .icon-dltk a,
#sidebar .icon-dltk a		{ background-image: url(/images/icons/hamburger-off.png); background-position: 10px 5px; }
#nav .icon-twitter a,
#sidebar .icon-twitter a		{ background-image: url(/images/icons/twitter.png); background-position: 10px 5px; }
#nav .icon-facebook a,
#sidebar .icon-facebook a		{ background-image: url(/images/icons/facebook); background-position: 10px 5px; }
#nav .icon-twitch a		{ background-image: url(/images/icons/twitch.png); background-position: 10px 5px; }
#nav .icon-discord a	{ background-image: url(/images/icons/discord.png); background-position: 10px 5px; }

#nav .separator {
	margin-top: 5px;
	padding-top: 5px;
	border-top: solid 1px #444;
}

#container {
	width: 960px;
	margin: 0 auto;
}

#page {
	background: #151719;
	padding: 0 0 20px;
	border: solid 1px #333;
	float: left;
	width: 958px;
}

#sidebar {
	float: left;
	width: 167px;
	overflow: visible;
	margin-top: 20px;
	background: #000;
	border-top-right-radius: 10px;
	border-bottom-right-radius: 10px;
	border: solid 1px #333;
	border-left: 0;
	padding: 10px 0;
}

#sidebar h1 {
	margin: 0 0 5px;
	padding: 0 10px;
	font-size: 18px;
	border: 0;
}

#sidebar h5 {
	margin: 5px 0;
	padding: 0 10px;
	font-size: 12px;
	color: #999;
}

#sidebar ul {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: solid 1px #333;
}

#sidebar ul a {
	display: block;
	padding: 3px 0 3px 10px;
	border-bottom: solid 1px #333;
	text-decoration: none;
	color: #ccc;
	width: 157px;
}

#sidebar .has-icon a {
	background-repeat: no-repeat;
	padding-left: 30px;
	width: 137px;
}

#sidebar ul a:hover {
	background-color: #151719;
}

#sidebar .active a {
	background-color: #151719;
	color: #fff;
	width: 158px;
}

#sidebar .active.has-icon a {
	width: 138px;
}

/* Child links */

#sidebar .child a,
#sidebar .child button {
	font-size: 10px;
	border-bottom: 0;
	padding: 2px 0 2px 20px;
	width: 147px;
}

#sidebar .child button {
	box-sizing: content-box;
	background: transparent;
	text-align: left;
	border: none;
	font-family: inherit;
	color: #ccc;
	cursor: pointer;
	height: 19px;
}
#sidebar .child button:hover {
	background: #111;
}

#sidebar .last-child a {
	border-bottom: solid 1px #333;
}

#sidebar .active.child a {
	border: solid 1px #333;
	border-width: 1px 0;
	padding: 1px 0 1px 20px;
	width: 148px;
}

#sidebar .active.first-child a {
	border-top: 0;
	padding-top: 2px;
}

#sidebar .active.last-child a {
	padding-bottom: 2px;
}

#sidebar .child a:hover {
	width: 147px;
}

#sidebar .child.active a:hover {
	width: 148px;
}

#content {
	margin: 0 20px;
	padding-top: 20px;
	float: left;
	width: 920px;
}

.with-sidebar #content {
	width: 750px;
}

#footer {
	clear: both;
	padding-top: 20px;
	color: #999;
	float: left;
	width: 100%;
	margin-bottom: 20px;
}

#copyright {
	width: 550px;
	font-size: 10px;
	float: left;
	margin: 0;
}

#copyright a {
	color: #999;
	text-decoration: underline;
}

#footer-links {
	float: right;
	list-style: none;
	margin: 0;
	padding: 0;
}

#footer-links li {
	margin-left: 20px;
	float: left;
}

/* Boxes */

.dual-box {
	float: left;
	width: 450px;
	margin: 0 20px 20px 0;
	overflow: hidden;
}

.dual-box.last {
	margin-right: 0;
}

.with-sidebar .dual-box {
	width: 365px;
}

.triplet-container:after {
	content: " ";
	display: block;
	height: 0;
	clear: both;
}

.triplet-box {
	float: left;
	width: 293px;
	margin: 0 20px 20px 0;
	overflow: hidden;
}

.triplet-box.last {
	margin-right: 0;
}

.with-sidebar .triplet-box {
	width: 236px;
}

.flex-row {
	clear: both;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
}

.flex-onethird {
	width: 32%;
	margin: 0 0 20px;
}

.flex-twothirds {
	width: 65%;
	margin: 0 0 20px;
}

.flex-half {
	width: 49%;
}

.clearfix {
	clear: both;
}

.clearfix:after {
	content: "";
	clear: both;
	display: table;
}

/* General content styling */

h1, h2 {
	margin-top: 0;
	border-bottom: solid 1px #666;
	font-size: 24px;
	line-height: 24px;
}

h2 {
	font-size: 18px;
	line-height: 18px;
}

.heading-tip {
	display: block;
	font-size: 10px;
	font-weight: normal;
	font-style: italic;
	color: #aaa;
	margin: -15px 0 -10px;
}

table {
	border-collapse: collapse;
	width: 100%;
}

th, td {
	border: solid 1px #666;
	padding: 5px;
}

#content th {
	background-color: #333;
	background-image: -webkit-linear-gradient(top, #333, #222);
	background-image: -moz-linear-gradient(#333, #222);
}

th.stage {
	width: 40%;
}

th.difficulty {
	width: 20%;
}

td.with-block-link {
	padding: 0;
	text-align: center;
}

td.with-block-link a {
	display: block;
	width: 100%;
	padding: 5px 0;
	text-decoration: none;
}

td.with-block-link a:hover {
	background: #000;
}

.overall {
	font-size: 20px;
}

.count {
	color: #f66;
}

.points {
	color: #ffff80;
}

.na {
	font-style: italic;
	color: #666;
}

hr {
	height: 0;
	border: 0;
	border-top: solid 1px #333;
}

a.user {
	text-decoration: none;
}

a.user:hover {
	text-decoration: underline;
}

a.time {
	color: inherit;/*#fff;*/
	text-decoration: none;
}

a.time:hover {
	text-decoration: underline;
}

.video-link {
	/* transparent border, negative margin, and inner content image makes
	the icon overall small, but has a much larger clickable area */
	display: inline-block;
	position: relative;
	width: 16px;
	height: 16px;
	text-indent: -99px;
	overflow: hidden;
	border-radius: 2px;
	border: 6px solid transparent;
	margin: -6px;
	vertical-align: middle;
}
.video-link:after {
	content: " ";
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background-repeat: no-repeat;
	background-image: url(/images/icons/video-orange.png);
	opacity: 0.5;
}

.video-link:hover:after {
	opacity: 1;
}

.image-link {
	/* transparent border, negative margin, and inner content image makes
	the icon overall small, but has a much larger clickable area */
	display: inline-block;
	position: relative;
	width: 16px;
	height: 16px;
	text-indent: -99px;
	overflow: hidden;
	border-radius: 2px;
	border: 6px solid transparent;
	margin: -6px;
	vertical-align: middle;
}
.image-link:after {
	content: " ";
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background-repeat: no-repeat;
	background-image: url(/images/icons/camera.png);
	opacity: 0.5;
}

.image-link:hover:after {
	opacity: 1;
}

.web-link {
	/* transparent border, negative margin, and inner content image makes
	the icon overall small, but has a much larger clickable area */
	display: inline-block;
	position: relative;
	width: 16px;
	height: 16px;
	text-indent: -99px;
	overflow: hidden;
	border-radius: 2px;
	border: 6px solid transparent;
	margin: -6px;
	vertical-align: middle;
}
.web-link:after {
	content: " ";
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background-repeat: no-repeat;
	background-image: url(/images/icons/link.png);
	opacity: 0.5;
}

.web-link:hover:after {
	opacity: 1;
}

.comment-link {
	display: inline-block;
	width: 16px;
	height: 16px;
	background-repeat: no-repeat;
	background-image: url(/images/icons/comment-open.png);
	text-indent: -9999px;
	opacity: 0.5;
}

.comment-link:hover {
	opacity: 1;
}

.achievement-link {
	display: inline-block;
	width: 16px;
	height: 20px;
	background-repeat: no-repeat;
	background-image: url(/images/icons/medal.png);
	text-indent: -9999px;
	opacity: 0.5;
	vertical-align: middle;
}

.achievement-link:hover {
	opacity: 1;
}

.ge-link {
	display: inline-block;
	width: 16px;
	height: 16px;
	background-repeat: no-repeat;
	background-image: url(/images/icons/ge-crosshair.png);
	text-indent: -9999px;
	opacity: 0.5;
	vertical-align: middle;
}

.ge-link:hover {
	opacity: 1;
}

.pd-link {
	display: inline-block;
	width: 16px;
	height: 16px;
	background-repeat: no-repeat;
	background-image: url(/images/icons/pd-crosshair.png);
	text-indent: -9999px;
	opacity: 0.5;
	vertical-align: middle;
}

.pd-link:hover {
	opacity: 1;
}

.ge-icon {
	display: inline-block;
	width: 16px;
	height: 16px;
	background-repeat: no-repeat;
	background-image: url(/images/icons/ge-crosshair.png);
	text-indent: -9999px;
}

.pd-icon {
	display: inline-block;
	width: 16px;
	height: 16px;
	background-repeat: no-repeat;
	background-image: url(/images/icons/pd-crosshair.png);
	text-indent: -9999px;
}

.delete-icon {
	display: inline-block;
	width: 16px;
	height: 16px;
	background-repeat: no-repeat;
	background-image: url(/images/icons/delete.png);
	text-indent: -9999px;
	transform: translate(0%, 28%);
}

.new-icon {
	display: inline-block;
	width: 16px;
	height: 16px;
	background-repeat: no-repeat;
	background-image: url(/images/icons/new.png);
	text-indent: -9999px;
	transform: translate(0%, 28%);
}

.status-enabled {	font-weight: bold; color: #6f6;}
.status-frozen {	font-weight: bold; color: #66f;}
.status-banned {	font-weight: bold; color: #f66;}

.message {
	padding: 5px 5px 5px 35px;
	box-shadow: 3px 3px 5px rgba(0,0,0,0.5);
	border-radius: 5px;
}

.message.ok {
	color: #6f6;
	border: solid 1px #060;
	background: #030 url(/images/tick.png) no-repeat 10px 7px;
}

.message.exc {
	color: #f66;
	border: solid 1px #600;
	background: #300 url(/images/cross.png) no-repeat 10px 7px;
}

/* Forms */

.form-row {
	margin-bottom: 10px;
}

.form-label {
	width: 150px;
	float: left;
	text-align: right;
	padding-top: 8px;
}
.past-date-form.label {
	padding-top: 8px;
}

.form-input,
.form-submit {
	margin-left: 160px;
}

.form-input.checkboxes {
	padding-top: 6px;
}

.form-input.radios {
	padding-top: 5px;
}

.supporting-text {
	font-size: 10px;
	color: #999;
}

.form-row.full-width .form-label {
	float: none;
	width: auto;
	text-align: left;
}

.form-row.full-width .form-input {
	margin-left: 0;
}

input[type="text"],
input[type="date"],
input[type="datetime-local"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea {
	background-color: #333;
	font-family: Arial;
	font-size: 13px;
	border: solid 1px #000;
	padding: 5px;
	color: #ccc;
	outline: 0;
	border-color: #000 #444 #444 #000;
}
button.standalone,
input[type="button"],
input[type="submit"] {
	background: #333;
	background: -webkit-linear-gradient(top, #333, #222);
	background: -moz-linear-gradient(top, #333, #222);
	border: solid 1px;
	border-color: #444 #000 #000 #444;
	font-size: 13px;
	box-shadow: 0 0 5px rgba(0,0,0,0.5);
	color: #ccc;
	padding: 5px 10px;
	border-radius: 5px;
	cursor: pointer;
	display: inline-block;
}

input.login{
	float: right;
}

input[type="button"]:hover,
input[type="submit"]:hover {
	background: #444;
	background: -webkit-linear-gradient(top, #444, #333);
	background: -moz-linear-gradient(top, #444, #333);
}

input[type="button"][disabled="disabled"],
input[type="submit"][disabled="disabled"] {
	background: #222;
	background: -webkit-linear-gradient(top, #222, #333);
	background: -moz-linear-gradient(top, #222, #333);
	color: #666;
}

.form-row select {
	padding: 5px;
}

::-webkit-input-placeholder {
	color: #666;
	font-style: italic;
}

:-moz-placeholder {
	color: #666;
	font-style: italic;
}

/* Overlay */

#overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.7);
	z-index: 7;
}

#overlay-box {
	position: fixed;
	width: 520px;
	border: solid 2px #666;
	background: #151719;
	border-radius: 10px;
	box-shadow: 10px 10px 10px #000;
	padding: 20px;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	min-height: 200px;
	z-index: 8;
	max-height: calc(100vh - 120px);
}

#overlay-inner {
	overflow-y: auto;
	overflow-x: hidden;
	max-height: calc(100vh - 120px);
}

#overlay-close {
	display: block;
	width: 32px;
	height: 32px;
	border-radius: 16px;
	border: solid 2px #666;
	background: #000;
	position: absolute;
	top: -8px;
	right: -8px;
	color: #999;
	font-weight: bold;
	text-align: center;
	line-height: 32px;
	font-size: 20px;
	text-decoration: none;
	font-family: Arial;
}

#overlay-close:hover {
	background: #131719;
	text-decoration: none;
}

#overlay-box h1,
#overlay-box h2 {
	margin-top: 0;
}

.loading {
	background: #151719 url(/images/loading.gif) no-repeat 50% 50%;
}

/* Home */

.rss-link {
	display: block;
	float: right;
	width: 16px;
	height: 16px;
	background-repeat: no-repeat;
	background-image: url(/images/icons/rss.png);
	text-indent: -9999px;
	margin-top: 5px;
}

.set-feed-impressiveness-limit {
	margin-right: 10px;
	float: right;
	font-size: small;
}

#home-latest-times,
.latest-times {
	list-style: none;
	margin: 0;
	padding: 0;
}

#home-latest-times li {
	clear: left;
	float: left;
	width: 100%;
	margin-bottom: 10px;
}

#home-latest-times .thumbnail {
	display: block;
	width: 120px;
	height: 75px;
	padding-top: 15px;
	float: left;
	margin-right: 10px;
	border: solid 1px #333;
	text-align: center;
	font-weight: bold;
	font-size: 24px;
	line-height: 28px;
	color: #999;
	text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

#home-latest-times .thumbnail.ge {
	background: url(/images/novideo-ge-small.jpg);
}

#home-latest-times .thumbnail.pd {
	background: url(/images/novideo-pd-small.jpg);
}

#home-latest-times .thumbnail:hover {
	text-decoration: none;
}

#home-latest-times .title {
	font-weight: bold;
	font-size: 16px;
}

#home-latest-times .wr .title {
	color: #ffff80;
}

#home-latest-times .date {
	font-style: italic;
}

.latest-times .ge-icon,
.latest-times .pd-icon {
	float: left;
	clear: left;
	margin-top: 1px;
}

.dual-box .latest-times .text {
	margin-left: 4px;
	width: 430px;
	float: left;
}

.triplet-box .latest-times .text {
	margin-left: 4px;
	width: 216px;
	float: left;
}

.latest-times .date {
	font-weight: bold;
}

.latest-times .wr .time-info {
	color: #ffff80;
}

/* Main rankings */

#wr-table .time,
.wr-table .time {
	font-weight: bold;
	float: left;
	margin-right: 5px;
}

#wr-table .video,
.wr-table .video {
	float: left;
}

#wr-table .initials,
.wr-table .initials {
	clear: left;
}

#wr-table .stage-image,
.wr-table .stage-image {
	display: block;
	float: left;
	margin-right: 5px;
	border: solid 1px #333;
}

.ge .stage-image {
	background-image: url(/images/ge-stages.jpg);
	width: 68px;
	height: 44px;
}

.pd .stage-image {
	background-image: url(/images/pd-stages.jpg);
	width: 56px;
	height: 36px;
}

.stage-icon-id-1 {background-position:0 0;}
.stage-icon-id-2 {background-position:100% 0;}
.stage-icon-id-3 {background-position:0 -44px;}
.stage-icon-id-4 {background-position:100% -44px;}
.stage-icon-id-5 {background-position:0 -88px;}
.stage-icon-id-6 {background-position:100% -88px;}
.stage-icon-id-7 {background-position:0 -132px;}
.stage-icon-id-8 {background-position:100% -132px;}
.stage-icon-id-9 {background-position:0 -176px;}
.stage-icon-id-10 {background-position:100% -176px;}
.stage-icon-id-11 {background-position:0 -220px;}
.stage-icon-id-12 {background-position:100% -220px;}
.stage-icon-id-13 {background-position:0 -264px;}
.stage-icon-id-14 {background-position:100% -264px;}
.stage-icon-id-15 {background-position:0 -308px;}
.stage-icon-id-16 {background-position:100% -308px;}
.stage-icon-id-17 {background-position:0 -352px;}
.stage-icon-id-18 {background-position:100% -352px;}
.stage-icon-id-19 {background-position:0 100%;}
.stage-icon-id-20 {background-position:100% 100%;}
.stage-icon-id-22 {background-position:-56px 0;}
.stage-icon-id-23 {background-position:100% 0;}
.stage-icon-id-24 {background-position:0 -36px;}
.stage-icon-id-25 {background-position:-56px -36px;}
.stage-icon-id-26 {background-position:100% -36px;}
.stage-icon-id-27 {background-position:0 -72px;}
.stage-icon-id-28 {background-position:-56px -72px;}
.stage-icon-id-29 {background-position:100% -72px;}
.stage-icon-id-30 {background-position:0 -108px;}
.stage-icon-id-31 {background-position:-56px -108px;}
.stage-icon-id-32 {background-position:100% -108px;}
.stage-icon-id-33 {background-position:0 -144px;}
.stage-icon-id-34 {background-position:-56px -144px;}
.stage-icon-id-35 {background-position:100% -144px;}
.stage-icon-id-36 {background-position:0 -180px;}
.stage-icon-id-37 {background-position:-56px -180px;}
.stage-icon-id-38 {background-position:100% -180px;}
.stage-icon-id-39 {background-position:0 100%;}
.stage-icon-id-40 {background-position:-56px 100%;}
.stage-icon-id-41 {background-position:100% 100%;}

#wr-table .stage-title,
.wr-table .stage-title {
	display: block;
	float: left;
	line-height: 46px;
}

#wr-table.pd .stage-title,
.wr-table.pd .stage-title {
	line-height: 38px;
}

.rank,
.footer,
.overall,
.pointless-time {
	text-align: center;
}

.footer a {
	margin: 0 5px;
}

#content th.sortable {
	cursor: pointer;
	background-color: #333;
	background-image: url(/images/sortable.20120408.png);
	background-image: url(/images/sortable.20120408.png), -webkit-linear-gradient(top, #333, #222);
	background-image: url(/images/sortable.20120408.png), -moz-linear-gradient(#333, #222);
	background-repeat: no-repeat;
	background-position: 100% 100%;
}

#content th.sorted,
#content th.sortable:hover {
	background-color: #000;
	background-image: url(/images/sorted.png);
	background-image: url(/images/sorted.png), -webkit-linear-gradient(top, #222, #111);
	background-image: url(/images/sorted.png), -moz-linear-gradient(#222, #111);
}

#point-rankings, #time-rankings, #average-sum-rankings {
	font-size: 11.5px;
}

#average-sum-panel.hidden,
#points-panel.hidden {
	display: none;
}

#average-sum-panel.visible,
#points-panel.visible {
	display: block;
}

.rankings-controls-header {
	display: flex;
	flex-direction: row;
	border-bottom: 1px solid #666666;
}

.panel-title {
	display: none;
}
.panel-title h2 {
	margin-bottom: 0;
	border-bottom: 0;
}
.panel-title.active {
	display: inline-block;
}

.label-container {
	flex-grow: 1;
	align-items: flex-end;
}

.button-container {
	flex-grow: 1;
	display: flex;
	justify-content: flex-end;
	align-items: flex-end;
}

.panel-button {
	border: 1px solid #333333;
	margin-left: 6px;
	margin-right: 6px;
	padding-left: 4px;
	padding-right: 4px;
}

.panel-button.active {
	background-color: #333333;
}

.panel-button a {
	color: white;
}

.panel-button a:hover {
	text-decoration: none;
	color: #999999;
}

.rankings-panel-space {
	display:block;
	min-height: 12px;
	height: 12px;
}

.rankings-table th:nth-child(1) {
	width: 90px;
}

.rankings-table th:nth-child(3),
.rankings-table th:nth-child(4),
.rankings-table th:nth-child(5),
.rankings-table th:nth-child(6) {
	width: 87px;
}


th.time-difficulty {
	width: 11%;
}

th.time-total {
	width: 15%;
}

td.sorted {
	background-color: #000;
}

/* Stages */

.stage-leaders {
	list-style: none;
	margin: 20px 20px;
	padding: 0;
}

.stage-leaders .hidden {
	display: none;
}

.fraction {
	font-size: 0.9em;
}
.fraction span {
	font-size: 1.25em;
}
.fraction sup {
	line-height: 0.5em;
	margin-right: -2px;
}
.fraction sub {
	display: inline-block;
	line-height: 0.5em;
	margin-left: -2px;
	transform: translate(0, -2px);
}

.stage-table tbody + tbody {
	border-top: 2px dotted #ccc;
}
.stage-table tr.hidden {
	display: none;
}
.stage-table tr.showmore td {
	padding: 0;
}
.stage-table tr.showmore button {
	display: block;
	width: 100%;
	cursor: pointer;
	background: transparent;
	border: none;
	font: inherit;
	color: #fff;
	text-align: left;
	padding: 4px 4px;
}
.stage-table tr.showmore button:hover {
	text-decoration: underline;
}
.stage-table tbody.expanded tr.showmore {
	display: none;
}
.stage-table tbody.expanded tr.hidden {
	display: table-row;
	animation: stageExpandedAnimation 2s;
	animation-fill-mode: none;
}
.flex-right {
	display:flex;
	justify-content: space-between;
}
.flex-right .child-r {
	margin-left: auto;
}

@keyframes stageExpandedAnimation {
	from { background-color: #534725; }
	to { background-color: transparent; }
}

/* Time details */

#time-details {
	list-style: none;
	margin-left: 0;
	padding: 0;
}

/* Player Profile */

#contact {
	list-style: none;
	margin: 20px 0;
	padding: 0;
}

#contact li {
	padding-left: 20px;
	background-repeat: no-repeat;
	margin-bottom: 3px;
}

.contact-aim {			background-image: url(/images/icons/aim.png); }
.contact-email {		background-image: url(/images/icons/email.png); }
.contact-facebook {		background-image: url(/images/icons/facebook.png); }
.contact-googleplus {	background-image: url(/images/icons/googleplus.png); }
.contact-linkedin {		background-image: url(/images/icons/watch.png); } /* icon offset is watch, name doesn't match */
.contact-msn {			background-image: url(/images/icons/youtube.png); } /* icon offset is youtube, name doesn't match */
.contact-twitter {		background-image: url(/images/icons/twitter.png); }
.contact-twitch {		background-image: url(/images/icons/twitch.png); }
.contact-discord {		background-image: url(/images/icons/discord.png); }

#webhook {
	list-style: none;
	padding: 0;
}

#webhook li {
	overflow-wrap: break-word;
	margin-bottom: 5px;
}

#webhook-events {
	list-style: none;
	padding: 0;
}

#webhook-events-label {
	padding: 0;
}

.rank-box {
	margin-bottom: 10px;
	padding: 10px;
	height: 44px;
	background: url(/images/rank-box.png) no-repeat;
}

.rank-box-icon {
	float: left;
	width: 25px;
	height: 16px;
	margin-top: 12px;
	background-repeat: no-repeat;
}

.rank-box-icon.ge { background-image: url(/images/icons/ge-crosshair.png); }
.rank-box-icon.pd { background-image: url(/images/icons/pd-crosshair.png); }

.rank-box-label {
	float: left;
	width: 80px;
	color: #999;
	margin-top: 4px;
}

.rank-box-value {
	float: right;
	width: 100px;
	text-align: center;
}

.rank-box-rank {
	font-size: 20px;
}

.rank-box-meta {
	font-size: 11px;
}

/* Player times */

#highlight-controls {
	float: right;
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
}

#highlight-controls li {
	float: left;
	margin-left: 10px;
}

#highlight-title {
	color: #666;
}

#highlight-controls a {
	color: #fff;
	font-weight: bold;
	text-decoration: none;
	padding: 0 5px;
	border-style: solid;
	border-width: 1px;
}

#highlight-control-off a {
	border-color: #333;
}

#highlight-control-wrs a {
	border-color: #646400;
}

#highlight-control-hit a {
	border-color: #640000;
}

#highlight-control-off.active a {	background: #333;}
#highlight-control-wrs.active a {	background: #646400;}
#highlight-control-hit.active a {	background: #640000;}

.player-times {
	margin-bottom: 20px;
}

.player-times .timecell-content {
	color: #999;
	display: flex;
	justify-content: space-between;
}

.player-times .timecell-best a {
	color: #F5CA45;
}

.player-times strong a {
	color: #fff;
}


.player-times-system {
	white-space: nowrap;
}

.player-times-system td + td {
	border-left: 1px dashed #606060;
	border-right: none;
}

.player-times-system tr td:nth-child(3n+1) {
	border-right: 1px solid #666;
}
.player-times-system tr:last-child td+td {
	border-bottom: 1px solid #666;
}
.player-times-system tr:first-child th+th {
	border-top: 1px solid #666;
}
.player-times-system tr:first-child th {
	border-right: 1px solid #666;
}
.player-times-system tr:nth-child(2) th:nth-child(3n) {
	border-right: 1px solid #666;
}
.player-times-system tr td:nth-child(2),
.player-times-system tr td:nth-child(3),
.player-times-system tr td:nth-child(4),
.player-times-system tr td:nth-child(8),
.player-times-system tr td:nth-child(9),
.player-times-system tr td:nth-child(10) {
	background: linear-gradient(90deg, #000, #000);

}

.player-times-system th.stage {
	width: auto;
}
.player-times-system th.difficulty {
	width: auto;
}
.player-times-system th.system {
	width: 9.5%;
}


#no-video {
	width: 363px;
	height: 140px;
	padding: 66px 0;
	border: solid 1px #666;
	text-align: center;
	font-size: 60px;
	line-height: 70px;
	font-weight: bold;
	text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

#no-video.ge { background: url(/images/novideo-ge.jpg);}
#no-video.pd { background: url(/images/novideo-pd.jpg);}

#post-time-link,
#post-ssr-link {
	display: block;
	width: 110px;
	margin: 20px auto;
	color: #fff;
	font-size: 16px;
	padding: 5px 10px 5px 35px;
	background: #333 url(/favicon.ico) no-repeat 10px 50%;
	border: solid 1px #444;
	text-decoration: none;
	border-radius: 5px;
}

#post-time-link:hover,
#post-ssr-link:hover {
	background-color: #444;
	border-color: #555;
	box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
}

#post-ssr-link {
	width: 220px;
}

/* Player times - adding */

/*.stage-selector {*/
/*	list-style: none;*/
/*	margin: 0 0 20px;*/
/*	padding: 0;*/
/*}*/

/*.stage-selector.ge { height: 230px;}*/
/*.stage-selector.pd { height: 140px;}*/

/*.stage-selector li {*/
/*	float: left;*/
/*	padding: 5px;*/
/*	text-indent: -9999px;*/
/*	cursor: pointer;*/
/*}*/

.stage-select-container {
	display: flex;
	flex-wrap: wrap;
}

.stage-select-stage {
	background-color: #151719;
	border: solid 6px #393939; /* must match form background */
	margin: 6px;
	cursor: pointer;
	padding: 0;
}

.stage-select-stage:hover {
	border: solid 6px #333;
}
.stage-select-stage.selected {
	border: solid 6px #666;
}

.stage-select-stage.ge {
	background-image: url(/images/ge-stages.jpg);
	background-repeat: no-repeat;
	width: 68px;
	height: 44px;
}

.stage-select-stage.pd {
	background-image: url(/images/pd-stages.jpg);
	background-repeat: no-repeat;
	width: 56px;
	height: 36px;
}

/*.stage-selector li:hover {*/
/*	background: #333;*/
/*}*/

/*.stage-selector li.selected {*/
/*	background: #666;*/
/*}*/

/* Comparisons */

.compare-player-list {
	overflow: auto;
	list-style: none;
	margin: 0;
	padding: 0;
}

.compare-player-list li {
	padding: 3px 5px;
}

.compare-player-list li.me {
	background: #333;
}

/* Player leaderboards */

.progress-bar {
	border: solid 1px #999;
	position: relative;
	height: 20px;
	margin-bottom: 5px;
	background: #000 -webkit-gradient(linear, left top, left bottom, from(#000), to(#222));
	background: #000 -moz-linear-gradient(top, #000, #222);
}

.pb-label {
	position: absolute;
	z-index: 3;
	line-height: 20px;
	padding-left: 5px;
}

.pb-fill {
	height: 20px;
	background-color: #666;
	background: -webkit-gradient(linear, left top, left bottom, from(#666), to(#555));
	background: -moz-linear-gradient(top, #666, #555);
	position: absolute;
	z-index: 1;
}

.pb-fill.good {
	background-color: #660;
	background: -webkit-gradient(linear, left top, left bottom, from(#660), to(#550));
	background: -moz-linear-gradient(top, #660, #550);
}

.pb-cutoff {
	background: #990;
	width: 1px;
	height: 20px;
	position: absolute;
	z-index: 2;
}

.pb-info {
	display: none;
	line-height: 20px;
	position: absolute;
	left: 260px;
	z-index: 3;
	background-color: #333;
	background: rgba(0,0,0,0.5);
	cursor: default;
	padding: 0 10px;
}

.progress-bar:hover .pb-info {
	display: block;
}

/* Player achievements */

.achievement-block-container {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}

.achievement {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	background: #000;
	border-radius: 10px;
	width: 340px;
	min-height: 130px;
	padding: 10px;
	margin: 0 10px 10px 0;
	overflow: hidden;
}

.achievement-name {
	font-weight: bold;
	font-size: 16px;
	color: #ccc;
	vertical-align: middle;
}

.achievement-icon {
	display: inline-block;
	width: 16px;
	height: 16px;
	vertical-align: middle;
	background-repeat: no-repeat;
}

.achievement-tag-row {
	margin-top: auto;
}

.achievement-tag {
	display: inline-block;
	border: 1px #4a431b;
	margin-right: 8px;
	padding: 2px 8px 2px 8px;
	border-radius: 4px;
	background-color: #ffe69e;
	color: #4a431b;
}

.achievement-tag.locked {
	border: 1px dashed #4a431b;
	background-color: transparent;
}

.achievement-icon-default {
	/* default icon */
	background-image: url(/images/icons/medal.png);
}
.achievement-icon-ge {
	/* goldeneye */
	background-image: url(/images/icons/achievement-ge.png);
}
.achievement-icon-pd {
	/* perfect dark */
	background-image: url(/images/icons/achievement-pd.png);
}
.achievement-icon-gepd {
	/* goldeneye + perfect dark */
	background-image: url(/images/icons/achievement-gepd.png);
}
.achievement-icon-ltk {
	/* ltk */
	background-image: url(/images/icons/achievement-ltk.png);
}
.achievement-icon-missing {
	background-image: url(/images/icons/achievement-missing.png);
}
.achievement-icon-slayer {
	background-image: url(/images/icons/achievement-skull-red.png);
}
.achievement-icon-system-slayer {
	background-image: url(/images/icons/achievement-skull-tan.png);
}
.achievement-icon-system-wr {
	background-image: url(/images/icons/achievement-ribbon-gray.png);
}
.achievement-icon-system-uwr {
	background-image: url(/images/icons/achievement-ribbon-blue.png);
}
.achievement-icon-mrrl {
	background-image: url(/images/icons/achievement-mrrl.png);
}
.achievement-icon-duel {
	background-image: url(/images/icons/achievement-duel.png);
}
.achievement-icon-duel-true {
	background-image: url(/images/icons/achievement-duel-true.png);
}
.achievement-icon-ssr1 {
	background-image: url(/images/icons/achievement-ssr1.png);
}
.achievement-icon-ssr-ge3 {
	background-image: url(/images/icons/achievement-ssr-ge3.png);
}
.achievement-icon-ssr-ge5 {
	background-image: url(/images/icons/achievement-ssr-ge5.png);
}
.achievement-icon-ssr-pd3 {
	background-image: url(/images/icons/achievement-ssr-pd3.png);
}
.achievement-icon-ssr8 {
	background-image: url(/images/icons/achievement-ssr8.png);
}
.achievement-icon-ltk-ge-1 {
	background-image: url(/images/icons/achievement-ltk-ge-1.png);
}
.achievement-icon-ltk-ge-2 {
	background-image: url(/images/icons/achievement-ltk-ge-2.png);
}
.achievement-icon-ltk-ge-3 {
	background-image: url(/images/icons/achievement-ltk-ge-3.png);
}
.achievement-icon-ltk-ge-4 {
	background-image: url(/images/icons/achievement-ltk-ge-4.png);
}
.achievement-icon-dltk-ge-1 {
	background-image: url(/images/icons/achievement-dltk-ge-1.png);
}
.achievement-icon-dltk-ge-2 {
	background-image: url(/images/icons/achievement-dltk-ge-2.png);
}
.achievement-icon-dltk-ge-3 {
	background-image: url(/images/icons/achievement-dltk-ge-3.png);
}
.achievement-icon-dltk-ge-4 {
	background-image: url(/images/icons/achievement-dltk-ge-4.png);
}
.achievement-icon-ltk-ge-master {
	background-image: url(/images/icons/achievement-ltk-ge-master.png);
}
.achievement-icon-ltk-pd-1 {
	background-image: url(/images/icons/achievement-ltk-pd-1.png);
}
.achievement-icon-ltk-pd-2 {
	background-image: url(/images/icons/achievement-ltk-pd-2.png);
}
.achievement-icon-ltk-pd-3 {
	background-image: url(/images/icons/achievement-ltk-pd-3.png);
}
.achievement-icon-ltk-pd-4 {
	background-image: url(/images/icons/achievement-ltk-pd-4.png);
}
.achievement-icon-dltk-pd-1 {
	background-image: url(/images/icons/achievement-dltk-pd-1.png);
}
.achievement-icon-dltk-pd-2 {
	background-image: url(/images/icons/achievement-dltk-pd-2.png);
}
.achievement-icon-dltk-pd-3 {
	background-image: url(/images/icons/achievement-dltk-pd-3.png);
}
.achievement-icon-dltk-pd-4 {
	background-image: url(/images/icons/achievement-dltk-pd-4.png);
}
.achievement-icon-ltk-pd-master {
	background-image: url(/images/icons/achievement-ltk-pd-master.png);
}
.achievement-icon-sun {
	background-image: url(/images/icons/achievement-sun.png);
}
.achievement-icon-snowflake {
	background-image: url(/images/icons/achievement-snowflake.png);
}
.achievement-icon-vs {
	background-image: url(/images/icons/achievement-vs.png);
}
.achievement-icon-ge-a-w {
	background-image: url(/images/icons/achievement-ge-a-w.png);
}
.achievement-icon-ge-a-y {
	background-image: url(/images/icons/achievement-ge-a-y.png);
}
.achievement-icon-ge-sa-w {
	background-image: url(/images/icons/achievement-ge-sa-w.png);
}
.achievement-icon-ge-sa-y {
	background-image: url(/images/icons/achievement-ge-sa-y.png);
}
.achievement-icon-ge-00-w {
	background-image: url(/images/icons/achievement-ge-00-w.png);
}
.achievement-icon-ge-00-y {
	background-image: url(/images/icons/achievement-ge-00-y.png);
}
.achievement-icon-ge-ge-w {
	background-image: url(/images/icons/achievement-ge-ge-w.png);
}
.achievement-icon-ge-ge-y {
	background-image: url(/images/icons/achievement-ge-ge-y.png);
}
.achievement-icon-pd-a-w {
	background-image: url(/images/icons/achievement-pd-a-w.png);
}
.achievement-icon-pd-a-y {
	background-image: url(/images/icons/achievement-pd-a-y.png);
}
.achievement-icon-pd-sa-w {
	background-image: url(/images/icons/achievement-pd-sa-w.png);
}
.achievement-icon-pd-sa-y {
	background-image: url(/images/icons/achievement-pd-sa-y.png);
}
.achievement-icon-pd-pa-w {
	background-image: url(/images/icons/achievement-pd-pa-w.png);
}
.achievement-icon-pd-pa-y {
	background-image: url(/images/icons/achievement-pd-pa-y.png);
}
.achievement-icon-pd-pd-w {
	background-image: url(/images/icons/achievement-pd-pd-w.png);
}
.achievement-icon-pd-pd-y {
	background-image: url(/images/icons/achievement-pd-pd-y.png);
}

.achievement-date {
	color: #ffffff;
	font-size: 10px;
}

.achievement-description {
	color: #666;
	font-size: 11px;
}

.achievement-group-extras {
	margin-top: 12px;
	width: 100%;
}

.achievement-group-extras div.row {
	display: flex;
	justify-content: space-between;
}

.achievement-group-extras .extra-title {
	font-weight: bold;
}
.achievement-group-extras .extra-date {
	color: #666;
}

/* Related Links */

#related h2 {
	margin-bottom: 5px;
}

#related p {
	margin-top: 0;
}

/* RSS Feeds */

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

.rss-listing li {
	background-image: url(/images/icons/rss.png);
	background-repeat: no-repeat;
	padding-left: 25px;
	margin-bottom: 5px;
}

/* Time history */

#time-history .wr a {
	color: #ffff80;
}

.history-div {
	margin: 10px 0;
}

/* Recent activity */

.feed-group {
	border-radius: 10px;
	border: solid 1px;
	border-color: #000 #222 #222 #000;
	background: #111;
	margin: 10px 0;
	padding: 10px;
}

.feed-group-author {
	font-size: 14px;
}

.feed-group .date {
	color: #999;
}

.feed-title {
	font-weight: bold;
	flex-grow: 1;
}

.feed-title a {
	color: #fff;
}

.feed-title.wr,
.feed-title.untied,
.feed-title.wr a,
.feed-title.untied a {
	color: #ffff80;
}

.feed-item {
	margin-top: 10px;
	margin-bottom: 10px;
}

.feed-item ul {
	font-size: 11px;
	list-style-type: square;
	flex-grow: 1;
}

.feed-row {
	display: flex;
	gap: 12px;
}


.feed-item .date {
	margin-left: auto;
	white-space: nowrap;
}

.feed-row .after-icon {
	display: block;

	/* https://stackoverflow.com/questions/36230944/prevent-flex-items-from-overflowing-a-container */
	min-width: 0;
}

.rot-anim {
	transition: transform 0.2s linear;
}

.rot270 {
	transform: rotate(-90deg);
}

.feed-row.comment-row .comment-container .comment {
	word-wrap: anywhere;
}

.comment-container {
	margin-left: 24px;
	margin-right: 24px;
	margin-top: 10px;
}

.comment-show-less {
	margin-top: 10px;
}

.comment-show-less .clicky {
	cursor: pointer;
	text-decoration: underline;
}

.comment-show-less .clicky:hover {
	color: #999;
}

/* Proof policy table of contents */
#toc {
	border: solid 1px #666;
	padding: 5px;
}
#toc li {
	display: block;
}
#toc ol {
	counter-reset: item;
}
#toc li:before {
	content: counters(item, ".")". ";
	counter-increment: item;
}

.listlabel {
	margin-bottom: 0;
}
.listlabel + ul,
.listlabel + ol {
	margin-top: 0;
}

.onelinetext {
	display: block;
	max-width: 340px;
	position: relative;
	overflow: hidden;
	height: 1em;
	line-height: 1em;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	vertical-align: middle;
}

/* In-page tabs */

.buttonselect {
	border: none;
	padding: 0;
	margin: 0 0 10px;
}
.buttonselect a,
.buttonselect button {
	display: inline-block;
	background-color: #222222;
	background-image: linear-gradient(to bottom, #222, #353535);
	color: #fff;
	border: none;
	font-family: inherit;
	font-size: 14px;
	padding: 0 10px;
	cursor: pointer;
	height: 32px;
	line-height: 32px;
	border-left: 1px solid #181818;
	border-right: 1px solid #181818;
	margin-right: -1px;
	text-decoration: none;
}
.buttonselect a:hover,
.buttonselect button:hover {
	background-image: linear-gradient(to bottom, #333, #454545);
}
.buttonselect a.active,
.buttonselect button.active {
	background-image: linear-gradient(to bottom, #666, #333);
}
.buttonselect a:first-of-type,
.buttonselect button:first-of-type {
	border-top-left-radius: 5px;
	border-bottom-left-radius: 5px;
}
.buttonselect a:last-child,
.buttonselect button:last-child {
	border-top-right-radius: 5px;
	border-bottom-right-radius: 5px;
}
.buttonselect fieldset {
	display: inline;
	border: none;
	padding: 0;
}

.hidden {
	display: none;
}
.suppress {
	display: none;
}

#header-past-container {
	display: flex;
	align-items: center;
	background-color: #476789;
	padding-left: 12px;
	padding-right: 12px;
}
#header-past-container .hpc-div {
	display: inline-block;
	vertical-align: middle;
	margin: 2px;
	flex-grow: 1;
}

.past {
	background: #000000;
	font-family: Eurostile, "Times New Roman", Arial, Serif;
	color: #ffffff;
}

#wr-table.past {
	font-size: 16px;
}

table.past {
	border: ridge 2px #ffd700;
	border-spacing: 0px;
}

#content.past th, #content .past td {
	background: #000000;
	border: solid 1px #606060;
	padding: 3px;
}

#content.past th.stage, #content .past th.difficulty {
	color: #ffa500;
}

#content #wr-table.past tr>th:first-child {
	color: #ffa500;
}

#content.past .stage-title a {
	color: blue;
	text-decoration: underline;
}

#content.past .stage-title a:hover {
	color: #ffd700;
	cursor: crosshair;
}

#content.past {
	font-size: 14px;
	margin: 0;
	padding-left: 20px;
	padding-right: 20px;
}

#content.past .stage-table th {
	color: #ffa500;
}

.unicode {
	font-family: Apple Color Emoji,Segoe UI Emoji,Noto Color Emoji,Android Emoji,EmojiSymbols,EmojiOne Mozilla,Twemoji Mozilla,Segoe UI Symbol,Noto Color Emoji Compat,emoji;
}
/* prevent vertical overflow */
.no-y {
	display: inline-block;
	overflow-y: hidden;
}

.f-h1 {
	font-weight: bold;
	font-size: 24px;
	line-height: 24px;
	padding: 4px;
}

.frow {
	display:flex;
	align-content:flex-start;
	justify-content: flex-start;
}

.underline {
	border-bottom: 1px solid #666;
}

.m-b20 {
	margin-bottom: 20px;
}

/* additional links changes */

.al-edit-url-row-label {
	display: inline-block;
	width: 30px;
}
.al-edit-url-row-value {
	display: inline-block;
}
.al-edit-url-row {
	margin-bottom: 4px;
}
.al-form-scroll {
	padding-top: 12px;
	margin-bottom: 20px;
	background-color: #393939;
}

input.al-display_order {
	width:38px;
}

.al-edit-url-row-value input[type="text"] {
	width:320px;
}

/* time meta media styling. Controls expanding/collapsing section based on dom class. */

.tmm-detail-row {
	display: flex;
	align-content: flex-start;
}
.tmm-detail-col-1 {
	display: inline-block;
	flex-grow: 100;
}
.tmm-detail-col-2 {
	display: inline-block;
}

.tmm-title-arrow {
	font-family: monospace;
	display: inline-block;
	padding-right: 6px;
	padding-left: 6px;
}

div.tmm-title-content {
	margin-top: 4px;
	margin-bottom: 4px;
}
div.tmm-url {
	margin-top: 4px;
	margin-bottom: 4px;
	display: flex;
	align-items: stretch;
}
.tmm-url .tmm-url-a {
	flex-grow: 1;
	flex-shrink: 0;
}
.tmm-url .tmm-title-preview {
	flex-grow: 1;
	min-width: 1px;
	width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding-left: 6px;
}

.tmm-detail-col-1 {
	margin-left: 4px;
	overflow: hidden;
}


li.tmm-closed div.tmm-title-arrow.down {
	display: none;
}
li.tmm-closed div.tmm-title-arrow.right {
	display: inline-block;
}
li.tmm-closed div.tmm-title-content {
	display: none;
}
li.tmm-closed .tmm-after {
	display: none;
}
li.tmm-closed .tmm-url .tmm-title-preview {
	display: inline-block;
}

li.tmm-open div.tmm-title-arrow.down {
	display: inline-block;
}
li.tmm-open div.tmm-title-arrow.right {
	display: none;
}
li.tmm-open div.tmm-title-content {
	display: block;
}
li.tmm-open .tmm-after {
	display: block;
}
li.tmm-open .tmm-after {
	display: block;
}
li.tmm-open .tmm-url .tmm-title-preview {
	display: none;
}

li.tmm-closed .tmm-detail-row:has(.tmm-title-arrow:hover) .tmm-detail-col-1 .tmm-url {
	opacity: 0.5;
}

li.tmm-open .tmm-detail-row:has(.tmm-title-arrow:hover) .tmm-detail-col-1 .tmm-title-content {
	opacity: 0.5;
}

.tmm-button {
	cursor: pointer;
}
.tmm-button:hover {
	opacity: 0.5;
}
ol.tmm li {
	margin-bottom: 6px;
}
.tmm-after img {
	max-height: 100%;
	max-width: 100%;
}

.tmm-url .video-link,
.tmm-url .image-link,
.tmm-url .web-link {
	margin-right: 2px;
}

/* time meta media add/edit styling */

.tmm-crud-container {
	padding: 8px;
}
.tmm-crud-row {
	display: flex;
	flex-direction: row;
	border: 1px solid white;
	margin-bottom: 8px;
}
.tmm-crud-col-2 {
	flex-grow: 6;
}
.tmm-crud-col-2 td:first-child {
	padding-left: 8px;
}
.tmm-crud-col-3 {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
}
.tmm-crud-row input:placeholder-shown:required {
	background-color: #574a28;
	color: #ffe971;
}

.extra-info-closed .form-row {
	display: none;
}

.extra-info-open {
	background-color: #464646;
}

.extra-info-open .form-row {
	display: block;
}

.extra-info-open .form-row:last-child {
	padding-bottom: 6px;
}


/* time_meta_comments styling */
.tmc-mod-comment-parent {
	margin-top: 4px;
	margin-bottom: 14px;
}
.tmc-by {
	font-size: smaller;
}


/** datagrid styling for the-elite */
.yadger-col-header {
	display: flex;
	white-space: nowrap;
}

.yadger-col-label {
	display: inline-block;
	flex-grow: 4;
}

.yadger-col-filter {
	display: inline-block;
	width: 12px;
	min-width: 12px;
	cursor: pointer;
	color: transparent;
}

.yadger-col-filter.active {
	color: white;
}

.yadger-col-filter:hover {
	background-color: rgba(255,255,255,0.2);
	border-radius: 4px;
}

.yadger-col-header:hover .yadger-col-filter {
	color: #85B5DA;
}

.yadger-col-header:hover .yadger-col-filter.active {
	color: rgba(255,255,255,0.5);
}

.yadger-sort-icon {
	width: 12px;
	min-width: 12px;
	display: inline-block;
	cursor: pointer;
	color: transparent;
}

.yadger-col-header.sortable:hover {
	cursor: pointer;
}

.yadger-col-header:hover .yadger-sort-icon {
	color: #85B5DA;
}
.yadger-col-header:hover .yadger-sort-icon.active {
	color: rgba(255,255,255,0.5);
}

.yadger-sort-icon.active {
	color: white;
}

.yadger-filter-menu {
	position: absolute;
	background-color: #666;
	color: white;
	border: 1px solid #999;
	min-width: 140px;
	max-width: 230px;
	min-height: 80px;
	z-index: 1;
	border-radius: 4px;
}

.yadger-menu-row {
	text-align: left;
	display: flex;
}

.yadger-menu-datalist {
	max-height: 182px;
	overflow-x: hidden;
	overflow-y: scroll;
	padding: 4px;
}

.yadger-menu-numeric,
.yadger-menu-date,
.yadger-menu-hms {
	padding: 4px;
}

.yadger-bottom-commands {
	padding: 4px;
	border-top: 1px solid #999;
}

.yadger-table td {
	width: auto;
}

.yadger-table td.min {
	width: 1%;
	white-space: nowrap;
}
.yadger-table td.fixed22 {
	width: 22px;
}

.yadger-menu-hms .yadger-menu-row:last-of-type {
	margin-top: 6px;
}

/* hide arrow spinners, Chrome, Safari, Edge, Opera */
.yadger-menu-hms input::-webkit-outer-spin-button,
.yadger-menu-hms input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* hide arrow spinners, Firefox */
.yadger-menu-hms input[type=number] {
	-moz-appearance: textfield;
}

.time-sep {
	min-width: 12px;
	text-align: center;
}

.space12 {
	min-width: 12px;
	display: inline-block;
}

.yadger-menu-row input[data-hms] {
	width: 30px;
	padding: 2px;
}

#news-feed img {
	max-width: 100%;
}
