/* CSS reset */
* {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: inherit;
	font-weight: normal;
	line-height: inherit;
	font-family: Verdana;
	vertical-align: baseline;
}
*:focus {
	outline: none;
}
body {
	overflow: hidden;
}
a {
	text-decoration: none;
}
h1 {
	font-size: 24px;
	text-transform: uppercase;
}
h2 {
	font-size: 16px;
	text-transform: uppercase;
}
h3 {
	font-size: 15px;
}
hr {
	border: 0;
	height: 1px;
	margin: 5px 0;
	background-image: linear-gradient(
		to right,
		rgba(153, 153, 153, 0)     0%,
		rgba(153, 153, 153, 0.75) 15%,
		rgba(153, 153, 153, 0.75) 85%,
		rgba(153, 153, 153, 0)   100%
	);
}
.hidden {
	visibility: hidden; /* Not seen but takes up space */
}
.missing {
	display: none; /* Not seen and takes up no space */
}
.flex {
	display: flex;
	align-items: center;
	white-space: nowrap;
	justify-content: space-between;
}

/* Forms */
input[type=text],
input[type=password] {
	background: rgba(0, 0, 0, 0.5);
	border: 2px solid #444;
	border-radius: 3px;
	font-size: 16px;
	padding: 2px 5px;
	width: 400px;
	color: #fff;
}
input[type=text]:placeholder-shown,
input[type=password]:placeholder-shown {
	color: #aaa;
	font-size: 14px;
	text-transform: uppercase;
}
input[type=text]:focus,
input[type=password]:focus {
	border-color: #ccc;
	border-width: 1px;
	padding: 3px 6px;
}
input[type=submit] {
	font-family: bold;
	font-size: 24px;
	line-height: 26px;
	padding-top: 2px;
	width: 264px;
	height: 58px;
	cursor: pointer;
	color: #fff;
	text-transform: uppercase;
	background-color: transparent;
	background-position: 0 0;
}
input[type=submit]:hover {
	color: #fff;
	background-position: 0 -58px;
}
input[type=submit].disabled {
	color: #aaa;
	cursor: default;
	background-position: 0 -116px;
}
input[type=checkbox] {
	appearance: none;
	width: 14px;
	height: 14px;
	margin: 5px 3px 7px 10px;
	border: 2px solid #666;
	border-radius: 3px;
	display: inline-block;
	vertical-align: middle;
}
input[type=checkbox]:checked {
	background-image: url('/static/img/default/checked.png');
	background-position: center;
	background-repeat: no-repeat;
	border-color: transparent;
}
select {
	appearance: none;
	background-color: #222;
	color: #fff;
	border: 2px solid #888;
	border-radius: 3px;
	background-image: url('/static/img/select.png');
	background-position: right;
	background-repeat: no-repeat;
	padding-right: 25px;
	padding: 2px 25px 3px 2px;
	margin-top: 3px;
	font-size: 14px;
}
select option {
	padding: 0 12px;
	border: 2px solid #888;
}
button {
	border: 1px solid #aaa;
	border-radius: 5px;
	background: #222;
	color: #fff;
	font-size: 14px;
	padding: 3px 10px;
}
button:hover {
	border-color: #fff;
	background: #fff;
	color: #000;
	cursor: pointer;
}

/* Main page layout */
section {
	font-size: 12px;
	width: 800px;
	height: 600px;
	background-color: #000;
	color: #999;
}
section main {
	height: 525px;
}
section main > div {
	padding: 0 20px;
}
section main .patching {
	height: 90px;
}
section main input[type=text],
section main input[type=password] {
	width: 226px;
	height: 18px;
	padding: 10px;
}
section main input[type=text]:focus,
section main input[type=password]:focus {
	padding: 11px;
}

/* Navigation */
section header nav {
	width: 100%;
	height: 32px;
	background: linear-gradient(#333, #111);
	border-bottom: 1px solid #333;
}
section header nav a {
	color: #999;
}
section header nav a:hover {
	color: #ccc;
}
section header nav menu {
	padding-top: 8px;
	white-space: nowrap;
}
section header nav menu img {
	margin: -4px 10px 0 5px;
}
section header nav menu.left {
	font-weight: bold;
	display: flex;
	overflow: hidden;
}
section header nav menu.left .server-status {
	margin: 0 5px;
	display: none;
	height: 12px;
	width: 9px;
	background: url('/static/img/server-status.png') no-repeat;
}
section header nav menu.left .server-status[data-status=up] {
	display: inline-block;
	background-position: -0px 3px;
}
section header nav menu.left .server-status[data-status=down] {
	display: inline-block;
	background-position: -18px 3px;
}
section header nav menu.left .server-status[data-status=up]:hover:after {
	padding-left: 15px;
	content: attr(data-up);
}
section header nav menu.left .server-status[data-status=down]:hover:after {
	padding-left: 15px;
	content: attr(data-down);
}
section header nav menu.left a {
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: calc(100% - 180px);
}
section header nav menu.right {
	float: right;
	padding-right: 10px;
}
section header nav menu.right li {
	display: inline-block;
}
section header nav menu.right li:after {
    content: "|";
}
section header nav menu.right li:last-child:after {
    content: "";
}
section header .ebs {
	position: absolute;
	max-height: 55px;
	overflow: auto;
	width: 700px;
	background-image: linear-gradient(
		to right,
		rgba(0, 0, 0, 0) 0%,
		rgba(0, 0, 0, 1) 10%,
		rgba(0, 0, 0, 1) 90%,
		rgba(0, 0, 0, 0) 100%
	);
	padding: 5px 50px;
	font-size: 14px;
	text-align: center;
	color: #f00;
	z-index: 2;
}

/* Copyright block */
section footer {
	margin: 0 10px;
	color: #666;
	font-family: Arial;
	font-size: 10px;
	line-height: 12px;
	padding: 0 0 0 75px;
	background: url('/static/img/cryptic.png') no-repeat;
	background-position: 0 12px;
}
section footer a {
	position: relative;
	z-index: 1;
}
section footer .version {
	color: #444;
	float: right;
}

/* Generic pane used for login, linking, etc. */
section main .pane {
	position: relative;
	text-align: center;
	z-index: 0;
}
section main .pane > div {
	position: absolute;
	top: 47px;
	left: 220px;
	width: 361px;
	height: 445px;
	border: 1px solid #555;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.90) 0%,
		rgba(0, 0, 0, 0.25) 100%
	);
}
section main .pane .curtain {
	background: #000;
	z-index: 1;
}
section main .pane .curtain h2 {
	margin: 125px 0 25px;
}
section main .pane .content {
	overflow: auto;
}
section main .pane .content img,
section main .pane .content hr,
section main .pane .content form > div {
	margin: 15px auto;
}
section main .pane .content form > div.compact {
	margin: 10px auto;
}
section main .pane .help {
	font-size: 18px;
	line-height: 10px;
	padding: 15px 0;
	color: #999;
}
section main .pane .help a {
	padding: 0 5px;
	font-size: 16px;
}
section main .pane .help.compact {
	padding: 5px 0;
}

/* Pane dimensions */
section main .pane.login > div {
	left: 220px;
	width: 361px;
}
section main .pane.link > div {
	left: 100px;
	width: 600px;
}
section main .pane.migrate > div {
	left: 165px;
	width: 470px;
	top: 80px;
	height: 350px;
	padding: 0 20px;
}
section main .pane.link-platform > div {
	left: 200px;
	width: 400px;
}
section main .pane.link-platform.de > div {
	left: 165px;
	width: 470px;
}
section main .pane.link-platform.ru > div {
	left: 180px;
	width: 440px;
}
section main .pane.link-platform label {
	display: block;
	text-transform: uppercase;
	font-weight: bold;
	font-size: 15px;
	color: #aaa;
}
section main .pane.link-platform label:after {
	content: ":";
}
section main .pane.link-platform form#bypass span {
	font-size: 15px;
	color: #fff;
}

/* Countdown timer */
section main .countdown {
	height: 190px;
}
section main .countdown a {
	position: relative;
	top: 150px;
	left: 35px;
	font-weight: bold;
	font-size: 22pt;
}

/* Banner ads */
section main .banners {
	white-space: nowrap;
	display: flex;
	margin: 0 -10px;
	min-height: 170px;
}
section main .banners a {
	padding: 15px;
	width: 230px;
	height: 140px;
	background-size: 200%;
}
section main .banners a:hover {
	background-position: -260px 0;
}

/* News section */
section main .news {
	width: 500px;
	height: 65px;
}
section main .news h2 {
	display: inline;
}
section main .news div {
	height: 16px;
}
section main .news div a {
	float: right;
	margin-top: 2px;
	text-transform: uppercase;
}
section main .news div p {
	float: left;
	font-size: 16px;
	font-weight: bold;
	text-transform: uppercase;
}
section main .news ul a {
	display: block;
	float: left;
	height: 18px;
	width: 410px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
section main .news ul p {
	float: right;
}
section main .news li {
	padding: 4px 0;
	list-style-type: none;
}

/* Social media links */
section main .social {
	text-align: right;
	width: 240px;
}
section main .social a {
	display: inline-block;
	width: 36px;
	height: 36px;
}
section main .social a:hover {
	background-position: -36px;
}
section main .social a.vk {
	display: none;
}
section main .social.ru a.vk {
	display: inline-block;
}

/* Shard selection */
section main .patching .shards {
	height: 58px;
	position: relative;
}
section main .patching .shards ul {
	position: absolute;
	padding: 8px 0 5px;
}
section main .patching .shards ul li {
	background-color: #111;
	border: 2px solid #555;
	border-radius: 5px;
	cursor: pointer;
	display: inline;
	margin-right: 10px;
	padding: 3px 8px;
	color: #555;
	font-size: 13px;
	font-weight: bold;
}
section main .patching .shards ul li.selected {
	background-color: #222;
	border-color: #aaa;
	color: #aaa;
}
section main .patching .shards ul li:hover,
section main .patching .shards ul li.selected:hover {
	color: #fff;
}
section main .patching .shards select {
	position: absolute;
	width: 285px;
}

/* Progress bar */
section main .patching .progress {
	position: relative;
	width: 280px;
	height: 22px;
	line-height: 22px;
	background: #000;
	border-radius: 2px;
	border: 2px solid #666;
}
section main .patching .progress .bar {
	position: absolute;
	width: 0px;
	height: 22px;
	background-image: linear-gradient(to right, #333, #888);
}
section main .patching .progress .percent {
	position: absolute;
	width: 280px;
	height: 22px;
	color: #fff;
	text-align: center;
}
section main .patching .message {
	margin-top: 5px;
	margin-right: 265px;
	white-space: nowrap;
	width: 200px;
	height: 20px;
	overflow: hidden;
	text-overflow: ellipsis;
	float: right;
}
section main .patching .action {
	position: relative;
	z-index: 1;
	float: right;
	top: 25px;
}
section main .patching .action[data-state=disabled] {
	visibility: hidden;
}

/* Pop-up dialogs */
section dialog {
	z-index: 99;
	position: fixed;
	top: 0px;
	left: 0px;
	width: 800px;
	height: 600px;
	overflow: hidden;
	background-color: rgba(0, 0, 0, 0.4);
	display: flex;
	justify-content: center;
	align-items: center;
}
section dialog > h1 {
	text-align: center;
}
section dialog > div {
	z-index: 100;
	position: relative;
	border: 1px solid #888;
	border-radius: 5px;
	background: #000;
	color: #fff;
	padding: 10px;
	min-width: 300px;
	max-width: 600px;
}
section dialog .content {
	min-height: 200px;
	max-height: 400px;
	overflow: auto;
}
section dialog .buttons {
	margin-top: 10px;
	text-align: center;
}
section dialog .buttons button {
	margin: 0 5px;
}

/* Licenses dialog */
section dialog#licenses ul li {
	border-radius: 5px;
	border: 1px solid #888;
	padding: 5px 8px;
	margin: 5px 0;
	margin-right: 5px;
	width: calc(100% - 25px);
}
section dialog#licenses ul li span {
	margin: 0 5px;
	width: calc(100% - 180px);
	white-space: nowrap;
	display: inline-block;
	overflow: hidden;
	text-overflow: ellipsis;
}
section dialog#licenses ul li a {
	float: right;
	padding: 0 5px;
}
section dialog#licenses ul li pre {
	margin: 5px 0 0;
	padding: 5px 8px;
	font-family: monospace;
	white-space: pre-line;
	max-height: 200px;
	overflow: auto;
}

/* Platform linking */
section main .pane.link-platform .content img {
	margin: 5px;
}
section main .pane.link-platform .content hr {
	margin: 10px 0;
}
section main .link-platform form#landing > a {
	display: block;
	margin: 5px 15px;
	padding: 10px;
	text-align: left;
	padding-left: 50px;
	background-repeat: no-repeat;
	background-position: 7px 10px;
	color: #999;
}
section main .link-platform form#landing > a:hover {
	background-color: rgba(0, 0, 0, 0.4);
	color: #fff;
}
section main .link-platform form#landing > a.arc {
	background-image: url('/static/img/arc.png');
}
section main .link-platform form#landing > a.steam {
	background-image: url('/static/img/steam.png');
}
section main .link-platform form#landing > a.epic {
	background-image: url('/static/img/epic.png');
}
section main .link-platform form#landing div {
	margin-top: 55px;
}
section main .link-platform form#landing i {
	font-size: 13px;
	font-style: normal;
}
section main .link-platform .instructions {
	text-align: left;
	font-size: 12px;
	width: 250px;
}
section main .link-platform h3 span {
	font-family: inherit;
	display: inline-block;
	max-width: 275px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	vertical-align: bottom;
}

/* Arc account linking */
section main .pane.link > div {
	height: 460px;
}
section main .pane.link .curtain input[type=submit] {
	visibility: hidden;
}
section main .pane.link img {
	margin: 10px;
}
section main .pane.link p,
section main .pane.migrate p {
	padding: 5px 15px;
	margin: 0 40px;
	text-align: left;
}
section main .pane.link .error {
	color: #f00;
	text-shadow: 0 0 3px #000;
	padding-top: 0;
	padding-bottom: 15px;
}
section main .pane.link .content form > div.compact {
	margin-bottom: 3px;
}

/* Options dialog */
section dialog#options > div {
	width: 600px;
	padding-left: 15px;
	padding-right: 0;
}
section dialog#options h1 {
	text-align: center;
}
section dialog#options h2 {
	padding: 15px 0 3px;
}
section dialog#options h2:first-of-type {
	padding-top: 0;
}
section dialog#options input[type=text] {
	margin-right: 8px;
}
section dialog#options select,
section dialog#options input[type=text] {
	margin-left: 10px;
	border-color: #888;
	background-color: #111;
}
section dialog#options div > p {
	color: #a00;
	font-weight: bold;
	margin: 2px 10px;
}

/* Custom dialog */
section dialog#custom > div {
	width: 400px;
}
section dialog#custom .content {
	min-height: 100px;
}

/* Change install location dialog */
section dialog#options-status {
	text-align: center;
}
section dialog#options-status .content {
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	margin: 0 20px;
}
section dialog#options-status progress {
	height: 25px;
	margin: 5px 0;
	border: 2px solid #fff;
	width: calc(100% - 4px);
	-webkit-appearance: none;
}
section dialog#options-status progress::-moz-progress-bar,
section dialog#options-status progress::-webkit-progress-value {
	background: #fff;
}
section dialog#options-status progress,
section dialog#options-status progress::-webkit-progress-bar {
	background: transparent;
}
section dialog#options-status .buttons {
	margin: 0
}
section dialog#options-status button {
	margin: 5px 0 10px;
}
section dialog#options-status .error {
	color: #f00;
}
section dialog#options-status fieldset {
	border: 1px solid #fff;
	border-radius: 3px;
	padding: 2px 0 8px;
	text-align: left;
}
section dialog#options-status fieldset p {
	text-overflow: ellipsis;
	white-space: nowrap;
	font-family: monospace;
	overflow: hidden;
	padding: 0 10px;
	max-width: 500px;
}
section dialog#options-status legend {
	margin-left: 5px;
	padding: 0 3px;
}
