@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&display=swap');

:root {
	--wm-bg: #0d131a;
	--wm-card: #17222d;
	--wm-card-soft: #1d2b37;
	--wm-text: #d5d6db;
	--wm-text-muted: #9eabc0;
	--wm-border: #2f4558;
	--wm-accent: #7e3af2;
	--wm-accent-dark: #9061f9;
	--wm-hover: #203543;
	--wm-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

* {
	box-sizing: border-box;
}

body {
	background:
		radial-gradient(circle at 10% 10%, rgba(31, 196, 141, 0.14) 0%, rgba(31, 196, 141, 0) 42%),
		radial-gradient(circle at 88% 0%, rgba(80, 124, 240, 0.12) 0%, rgba(80, 124, 240, 0) 38%),
		var(--wm-bg);
	color: var(--wm-text);
	margin: 12px;
	font-family: Manrope, Tahoma, Verdana, sans-serif;
	line-height: 1.45;
}

tr, td, div, span, body {
	font-family: Manrope, Tahoma, Verdana, sans-serif;
	font-size: 10pt;
}

a:link,
a:visited,
a:active {
	color: var(--wm-accent);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--wm-accent-dark);
	text-decoration: none;
}

ul {
	margin-left: 8px;
	padding-left: 8px;
}

li {
	margin-bottom: 8px;
}

img {
	text-align: center;
	vertical-align: middle;
	border: none;
}

.fSmall {
	font-size: 9pt;
}

.fHeading {
	font-size: 10pt;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.fTitle {
	font-size: 15pt;
	font-weight: 800;
	letter-spacing: 0.01em;
}

.bg1 {
	background-color: var(--wm-card);
}

.bg2 {
	background-color: var(--wm-card-soft);
}

.block {
	margin: 0 auto 14px auto;
	background: var(--wm-card);
	border: 1px solid var(--wm-border);
	border-radius: 14px;
	box-shadow: var(--wm-shadow);
	overflow: hidden;
}

.subblock {
	margin: 0 auto;
	width: 96%;
}

.headerblock {
	height: auto;
	min-height: 58px;
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	padding: 8px 12px;
	background: linear-gradient(130deg, #111f2a 0%, #173140 48%, #102833 100%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.headerblock .title {
	flex: 1 1 220px;
	min-width: 180px;
}

.headerblock .title img {
	max-width: 100%;
	max-height: 46px;
	height: auto;
	filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.25));
}

.headertabs {
	position: static;
	margin-left: auto;
	flex: 1 1 100%;
}

.headertabs ul {
	list-style-type: none;
	list-style-image: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 5px;
}

.headertabs li {
	margin: 0;
	display: inline-block;
	background: rgba(20, 35, 47, 0.9);
	border: 1px solid rgba(127, 171, 202, 0.2);
	border-radius: 10px;
	padding: 2px 5px;
	transition: transform 0.16s ease, background-color 0.16s ease;
}

.headertabs li:hover {
	transform: translateY(-1px);
	background: rgba(37, 61, 79, 0.95);
}

.header_gameslist {
	position: static;
	float: none;
	margin: 0 0 0 auto;
	max-width: 100%;
	order: 2;
}

ul#header_gameslist {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px;
	margin: 0;
	padding: 0;
}

ul#header_gameslist li {
	float: none;
	padding: 0;
	margin: 0;
}

.location {
	background-color: #101a23;
	min-height: 32px;
	border-top: 1px solid #2d4355;
	border-bottom: 1px solid #2a3e4f;
	padding: 3px 8px;
}

.location ul {
	list-style-type: none;
	list-style-image: none;
	padding: 2px;
	margin: 0;
	color: var(--wm-text-muted);
}

.location li {
	margin-left: 5px;
	display: inline;
}

.location a:link,
.location a:visited {
	color: var(--wm-text);
	font-weight: 600;
}

.location a:hover {
	color: #ffffff;
}

.location_under {
	background: linear-gradient(to right, #1f3b4b, #1a313f);
	height: 2px;
}

.data-table {
	border-style: solid;
	border-width: 0;
	border-color: var(--wm-border);
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
	overflow: hidden;
	border-radius: 12px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.data-table td {
	border-style: solid;
	border-width: 1px 0 0 0;
	border-color: var(--wm-border);
	padding: 8px;
	text-align: left;
	background: var(--wm-card);
}

.data-table-head {
	background: linear-gradient(to bottom, #213241 0%, #1a2834 100%);
	color: var(--wm-text);
	vertical-align: bottom;
	font-weight: 700;
}

.contents-games-table {
	table-layout: fixed;
}

.contents-games-table .data-table-head td {
	text-align: center !important;
}

.contents-games-table .data-table-head td:first-child {
	text-align: left !important;
}

.contents-games-table td:nth-child(2),
.contents-games-table td:nth-child(3),
.contents-games-table td:nth-child(4) {
	text-align: center !important;
}

.game-table-row {
	background-color: var(--wm-card);
}

.game-table-row-hover {
	background-color: var(--wm-hover);
}

.game-table-cell {
	color: var(--wm-text);
	vertical-align: middle;
	border-style: solid;
	border-width: 1px;
	border-color: var(--wm-border);
	padding: 8px;
	background: var(--wm-card);
}

.game-table-cell a {
	color: var(--wm-accent-dark);
	font-weight: 600;
}

.livestats-table {
	border-style: solid;
	border-width: 1px;
	border-color: var(--wm-border);
	padding: 6px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	text-align: left;
	background: var(--wm-card-soft);
	border-radius: 10px;
}

.livestats-table td {
	border: 0;
	padding: 2px;
	text-align: center;
	background: transparent;
}

.navbar {
	list-style-type: none;
	list-style-image: none;
	margin: 0;
	padding: 0 0 16px 0;
	text-align: center;
}

.navbar li {
	margin-right: 20px;
	display: inline;
}

.navbar img,
.tableicon {
	margin: 0 4px;
}

.bargraph {
	height: 10px;
	border-radius: 30px;
	overflow: hidden;
}

.imageformat {
	text-align: center;
	vertical-align: middle;
	border: none;
}

.errorhead {
	background-color: #b42318;
	color: #ffffff;
	font-size: 12pt;
	font-weight: 700;
	padding: 8px;
}

.errortext {
	background-color: #291a1a;
	color: #ffd8d8;
	font-size: 11pt;
	padding: 8px;
}

.gmapstab td {
	border: 0;
	padding: 0;
}

.gmapstab a {
	color: var(--wm-accent-dark);
	text-decoration: underline;
}

.gmapstabtitle {
	color: var(--wm-text);
	font-weight: 700;
	text-align: left;
}

.fancyNav {
	overflow: hidden;
	display: inline-block;
	border-radius: 10px;
	border: 1px solid #2e4658;
	box-shadow: 0 9px 20px rgba(0, 0, 0, 0.3);
	background: #12202b;
	padding: 2px;
}

.fancyNav li {
	background: transparent;
	border-right: 1px solid #2a4152;
	box-shadow: none;
	position: relative;
	float: left;
	list-style: none;
	margin: 0;
}

.fancyNav li:last-child {
	border-right: 0;
}

.fancyNav li:after {
	content: '.';
	text-indent: -9999px;
	overflow: hidden;
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 1;
	opacity: 0;
	background: linear-gradient(to right, rgba(31, 196, 141, 0.12), rgba(31, 196, 141, 0.18), rgba(31, 196, 141, 0.12));
	box-shadow: none;
	transition: opacity 0.18s ease;
}

.fancyNav li:hover:after,
.fancyNav li.selected:after,
.fancyNav li:target:after {
	opacity: 1;
}

.fancyNav li a {
	color: var(--wm-text);
	display: inline-block;
	font-size: 14px;
	font-weight: 700;
	padding: 8px 18px;
	position: relative;
	z-index: 2;
	text-decoration: none !important;
	white-space: nowrap;
	text-shadow: none;
}

input.textbox,
textarea,
select {
	border: 1px solid #345267;
	border-radius: 8px;
	padding: 6px 8px;
	background: #101b24;
	color: var(--wm-text);
	outline: none;
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input.textbox:focus,
textarea:focus,
select:focus {
	border-color: #0f9f76;
	box-shadow: 0 0 0 3px rgba(15, 159, 118, 0.15);
}

input.submit,
input.smallsubmit {
	border: 1px solid #0f8765;
	border-radius: 8px;
	background: linear-gradient(to bottom, #10aa7e, #0f926f);
	color: #ffffff;
	font-weight: 700;
	padding: 0 12px;
	cursor: pointer;
	height: 30px;
}

input.smallsubmit {
	height: 24px;
	font-size: 8.5pt;
}

input.submit:hover,
input.smallsubmit:hover {
	background: linear-gradient(to bottom, #13b889, #0f9f76);
}

#main ul.subsection_tabs {
	list-style: none;
	margin: 0;
	padding: 0;
	clear: both;
	border-bottom: 1px solid #324a5c;
	height: 29px;
}

#main ul.subsection_tabs li {
	float: left;
	margin-right: 6px;
	padding-top: 0;
	text-align: center;
}

#main ul.subsection_tabs li a {
	display: block;
	height: 28px;
	line-height: 28px;
	padding: 0 10px;
	background-color: #14222d;
	border: 1px solid #30495c;
	border-bottom: 0;
	color: var(--wm-text-muted);
	min-width: 120px;
	font-weight: 700;
	font-size: 9pt;
	border-radius: 8px 8px 0 0;
}

#main ul.subsection_tabs li a:hover {
	color: #ffffff;
	background: #193040;
}

#main ul.subsection_tabs li a.active {
	background-color: #1f3c4f;
	border-color: #3c6178;
	color: #ffffff;
}

#main ul.register_tabs {
	border-bottom: none;
}

#main ul.register_tabs li a.active {
	background-color: var(--wm-accent);
	color: #fff;
	border-color: var(--wm-accent);
}

@media screen and (max-width: 980px) {
	body {
		margin: 8px;
	}

	.headerblock {
		align-items: flex-start;
		padding: 7px 10px;
		gap: 6px;
		min-height: 52px;
	}

	.headerblock .title img {
		max-height: 38px;
	}

	.headertabs {
		margin-left: 0;
		width: 100%;
	}

	.headertabs ul {
		justify-content: flex-start;
	}

	.header_gameslist,
	ul#header_gameslist {
		width: 100%;
		justify-content: flex-start;
	}

	.fancyNav li a {
		padding: 8px 10px;
		font-size: 13px;
	}
}
