/**
 * @author      : Aidan Mullen (git@acm.contact)
 * @file        : style
 * @created     : 2021
 */

/*
 * =====
 * Fonts
 * =====
 */

@font-face {
	font-family: "Glacial Indifference";
	src: url("../fonts/GlacialIndifference/GlacialIndifference-Regular.eot")
	format("embedded-opentype"),
	url("../style/fonts/GlacialIndifference/GlacialIndifference-Regular.eot?#iefix")
	format("embedded-opentype"),
	url("../fonts/GlacialIndifference/GlacialIndifference-Regular.woff2")
	format("woff2"),
	url("../fonts/GlacialIndifference/GlacialIndifference-Regular.woff")
	format("woff"),
	url("../fonts/GlacialIndifference/GlacialIndifference-Regular.ttf")
	format("truetype"),
	url("../fonts/GlacialIndifference/GlacialIndifference-Regular.svg#GlacialIndifference-Regular")
	format("svg");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

/*
 * ========
 * Defaults
 * ========
 *
 * A set of cross-platform defaults.
 */

* {
	font-family: "Glacial Indifference";
	cursor: default;
}

html, body {
	text-align: center;
	height: 100%;
	font-size: 100%; /* Use browser's default font-size; this allows the text to
	scale to what the user specifies. */
}

html {
	background-color: #CFD3CD;
	color: #0A0A0D;
}

body {
	display: block;
	margin: 0px;
	padding: 0;
	line-height: 1;
}

br {
	display: block;
	content: "";
	line-height: 150%;
}

p {
	font-family: 'Glacial Indifference';
	text-align: center;
	font-size: 1em;
}

a {
	text-decoration: underline;
	border: none;
	outline: none;
	padding: 0.25%;
}

h1 {
	font-size: 3.0em;
}

h2 {
	font-size: 1.4em;
}

.incompatible {
	display: none;
}

/* Holds primary content for page. */
#content {
	max-width: 1280px;
	width: 100%;
	content: "";
	margin-top: 5%;
	margin-bottom: 10em;
	display: inline-block;
	text-align: center;
}

hr.vertical_divider {
	background-color: #0A0A0D;
	width: 100%;
	border: none;
	height: 1em;
	display: inline-block;
	vertical-align: top;
	display: none;
}

.horizontal_center {
	text-align: center;
}

/* Sidebar and information should be merged; differences should be applied via
 * a class. */

#sidebar {
	display: none;
	width: 38%;
	min-height: 38px;
	min-width: 300px;
	vertical-align: middle;
	min-height: 100%;
}

.sidebar_footer {
	display: block;
	width: 100%;
	height: 0;
	font-size: 0.75em;
	padding-bottom: 1em;
}

#information {
	display: inline-block;
	height: 100%;
	width: 98%;
	position: relative;
	margin-left: auto;
	margin-right: 0%;
	text-align: center;
	vertical-align: middle;
	min-width: 300px;
	/*line-height: 175%;*/
}

a:link, a:visited {
	background: none;
	color: #0A0A0D;
	pointer-events: all;
}

a:hover, a:focus {
	text-decoration: none;
	cursor: pointer;
	background-color: #0A0A0D;
	color: #CFD3CD;
}

.b {
	background-color: #0A0A0D;
	color: #CFD3CD;
	display: inline-block;
	text-decoration: none;
	text-align: center;
	width: 1em;
	height: 1em;
	font-size: 1.25em;
	margin: 1em;
	min-height: 32px;
	min-width: 64px;
	background: none;
	border: none;
	outline: none;
	padding: 0px;
	padding-top: 0.5em;
}

.b:hover, .b:focus, .b.sidebar:hover, .b.sidebar:focus {
	background-color: #0A0A0D;
	color: #CFD3CD;
	cursor: pointer;
}

.b:active, .b.sidebar:active {
	background-color: #0A0A0D;
}

.b.sidebar, .b.sidebar:link, .b.sidebar:visited {
	background: none;
	height: 1.5em;
	text-align: left;
	margin: auto;
	padding-left: 10%;
	width: 90%;
}

.b.sidebar.special {
	color: #154889;
	padding-left: 5%;
	width: 95%;
}

.b.sidebar.special:hover, .b.sidebar.special:focus {
	color: #3481B8;
}

.flink {
	margin: 1em;
	line-height: 200%;
}

.flink:focus {
	background-color: #0A0A0D;
	color: #3481B8;
}

#sub-link {
	line-height: 175%;
}

#sub-link:link, #sub-link:visited {
	text-decoration: none;
	color: #0A0A0D;
	background: none;
	height: 10%;
	padding: 0.25%;
	border: none;
	margin-top: 10%;
	text-decoration: underline;
	pointer-events: all;
}

#sub-link:hover {
	text-decoration: none;
	cursor: pointer;
	background-color: #0A0A0D;
	color: #CFD3CD;
}

/*
 * =========
 * Dark Mode
 * =========
 *
 * Alternative color-scheme to follow system preference.
 */

@media (prefers-color-scheme: dark) {

	html, body {
		background-color: #0A0A0D;
		color: #CFD3CD;
	}

	p {
		color: #CFD3CD;
	}

	h1 {
		color: #CFD3CD;
	}

	a {
		background-color: #0A0A0D;
		color: #CFD3CD;
	}

	a:link, a:visited {
		background: none;
		color: #CFD3CD;
	}

	a:hover, a:focus {
		background-color: #CFD3CD;
		color: #0A0A0D;
	}

	.sub-link:link, .sub-link:visited {
		background: none;
		color: #CFD3CD;
	}

	.sub-link:hover
	{
		background-color: #CFD3CD;
		color: #0A0A0D;
	}

	.b {
		background: none;
		color: #0A0A0D;
	}

	.b:visited {
		background-color: #CFD3CD;
		color: #0A0A0D;
	}

	.b:hover, .b:focus {
		background-color: #CFD3CD;
		color: #0A0A0D;
	}

	.b:active, .b.sidebar:active {
		background-color: #CFD3CD;
		color: #0A0A0D;
	}

	.b.sidebar {
		background-color: #0A0A0D;
		color: #CFD3CD;
	}

	.b.sidebar:hover, .b.sidebar:focus {
		background-color: #CFD3CD;
		color: #0A0A0D;
	}

	.b.sidebar.special {
		color: #3481B8;
		padding-left: 5%;
	}

	.b.sidebar.special:hover, .b.sidebar.special:focus {
		color: #154889;
	}

	.flink:link, .flink:visited {
		color: #CFD3CD;
	}

	.flink:hover, .flink:focus {
		background-color: #CFD3CD;
		color: #0A0A0D;
	}

	hr.vertical_divider {
		background-color: #CFD3CD;
	}
}

@media only screen and (min-width: 768px) {

	p {
		text-align: center;
	}

	h1 {
		font-size: 3em;
	}

	h2 {
		font-size: 2.0em;
	}

	#sidebar {
		display: inline-block;
		width: 30%;
		max-width: 488.917px;
		vertical-align: middle;
		height: 98%;
		margin: 0.25em;
	}

	#information {
		width: 62%;
		max-width: 791.084px;
		border: 0;
		vertical-align: top;
		margin: 0.25em;
	}

	#sub-link:link, #sub-link:visited {
		height: 8px;
	}
}

@media only screen and (max-width: 299px) {
	#view {
		display: none;
	}

	#incompatible {
		display: block;
	}

}

@media only screen and (max-height: 64px) {
	#view {
		display: none;
	}

	#incompatible {
		display: block;
	}

}

/* --- end of STYLE_CSS --- */
