:root {
	/*Background color*/
	--bg-color-body: black;
	--bg-color-game-wrapper: #190101d1;

	/*General*/
	--color-hr: darkgrey;

	/*Table colors*/
	--table-char-stat-default-border-color: #5b5656;
	--table-char-stat-header-border-color: #5d0000;
}

body {
	background: url("../images/main/background.jpeg") no-repeat center / cover, var(--bg-color-body);
	background-attachment: fixed;
	font-family: sans-serif;
	color: #cecece;
	margin: 0.5rem 0 0 0;
}

h2 {
	font-size: 1.25em;
}

h3 {
	font-size: 1.12em;
}

h4 {
	font-size: 0.85em;
	font-weight: bold;
	font-style: italic;
	margin: -0.2em auto 0.2em 0.4em;
}

hr {
	border-color: var(--color-hr);
}

.page-container {
	display: block;
	position: relative;
	text-align: center;
	padding: 0.2rem 0.1rem 3rem 0.5rem;
	min-height: calc(100vh - 2.5rem);
}

.game-wrapper {
	display: inline-block;
	position: relative;
	background: var(--bg-color-game-wrapper);
	text-align: center;
	margin: auto;
	padding: 0.2rem 1px 1px;
	border-radius: 4px;
}

.game-content {
	display: inline;
	float: left;
	position: relative;
	text-align: left;
	max-width: 78.5%;
	background: #24171a;
	padding: 0.5rem;
	padding-bottom: 4rem;
	border-radius: 0 4px 4px 0;
}

.resources-overview {
	text-align: center;
	max-width: 90%;
}

img.resource-icon {
	max-height: 0.8rem;
}

.resources-overview > div > div {
	padding: 0;
	background-color: #433b3b;
	border: 1px solid #181313;
	border-radius: 4px;
	white-space: nowrap;
}

.resources-overview .header-player-name {
	font-weight: bold;
	font-size: 1em;
}

table {
	width: 100%;
}

table th {
	background-color: var(--table-char-stat-header-border-color);
	border: 1px solid var(--table-char-stat-header-border-color);
	padding: 0.4em;
	color: #b0a5a5;
}

table th h3 {
	margin: 0;
}

table td {
	border: 1px solid var(--table-char-stat-default-border-color);
	padding: 3px;
}

.game-inventory table td {
	vertical-align: top;
}

.align-right {
	text-align: right;
}

table th.align-center,
table td.align-center {
	text-align: center;
}

footer {
	box-sizing: border-box;
	left: 0;
	bottom: 0;
	width: 100%;
	display: block;
	text-align: center;
	background: #0e0e0e;
	padding: 4px 0;
	color: #626261;
}

footer a,
footer a:visited {
	color: #979797;
	text-decoration: none;
}

footer a:hover,
footer a:active {
	color: #7a1f1f;
}

footer ul {
	list-style: none;
	margin-top: 4px;
	padding: 0;
}

footer li {
	display: inline-block;
	font-size: 0.75rem;
	font-style: italic;
}

footer ul li.li-header {
	display: block;
	margin-bottom: 0.5rem;
}

footer ul li.li-header > ul {
	margin-top: 2px;
}

footer span#copyright {
	font-size: 0.75rem;
}

/* Scrollbar styling */
::-webkit-scrollbar {
	width: 6px;
}

::-webkit-scrollbar-track {
	background: #86868640;
}

::-webkit-scrollbar-thumb {
	background: #646464;
}

::-webkit-scrollbar-thumb:hover {
	background: #363636;
}


@media (min-width: 810px) {
	body,
	h1,
	h2,
	h3 {
		font-size: revert;
	}

	.page-container {
		padding: 0.5rem 0.5rem 2.5rem 0.5rem;
	}
	
	.game-wrapper {
		padding: 0.75rem 0.75rem 1px 1px;
	}
	
	.game-content {
		width: 600px;
		max-width: inherit;
	}
	
	table {
		min-width: 300px;
	}
}
