/* Imports ----------------------------------------------------------------->*/

@import url('https://cdn.jsdelivr.net/npm/modern-normalize@3.0.1/modern-normalize.min.css');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

/* Common ------------------------------------------------------------------>*/

span.bold {
	font-weight: bold;
}
span.light {
	font-weight: lighter;
}
span.italic {
	font-style: italic;
}
.hide {
	display: none;
}
a {
	color: #1CA152;
	text-decoration: none;
	transition:
	font-weight 110ms ease-in-out,
	color 110ms ease-in-out;

}
a:hover,
a:focus {
	color: #00FF41;
	text-decoration: underline;
	outline: none;
}

/* Main -------------------------------------------------------------------->*/

html {
	background-color: #0E0E0E;
}

body {
	background-color: #0E0E0E;
	font-size: 16px;
	height: calc(100vh - 6rem);
	height: calc(100dvh - 6rem);
	display: flex;
	overflow: hidden;
	font-family: "Roboto Mono", monospace;
	font-optical-sizing: auto;
	font-style: normal;
	font-weight: 400;
	border: 1px solid #FFFFFF;
	border-radius: 0.5rem;
	padding: 2.5rem 0 0;
	margin: 2rem;
	margin-bottom: 4rem;
	position: relative;
	color: #FFFFFF;
	overflow: hidden;
}

main {
	flex: 1;
	overflow: auto;
	padding: 2rem;
}

main.bullseye {
	display: flex;
	justify-content: center;
	align-items: center;
}

main gm-brand {
	font-size: 2rem;
}

main article {
	max-width: 55rem;
	margin-bottom: 2rem;
}

main article h4,
main article h5,
main article h6 {
	margin-left: 0.5rem;
}

/* Custom components ------------------------------------------------------->*/

gm-brand {
	position: relative;
}
gm-brand > div {
	display: flex;
}
gm-brand div.symbol {
	display: inline-block;
	border-radius: 50%;
	width: 0.75rem;
	height: 0.75rem;
	margin-right: 1rem;
	margin-bottom: -6px;
	background-color: #1CA152;
	align-self: center;
	animation: 8s linear 0s infinite normal gm-brand-colors;
}
gm-nav h1 gm-brand div.symbol {
	width: 0.5rem;
	height: 0.5rem;
	margin-right: 0.5rem;
	margin-bottom: -3px;
}

gm-nav {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2.5rem;
	border-top-left-radius: 0.4rem;
	border-top-right-radius: 0.4rem;
	overflow: hidden;
}
gm-nav header {
	height: 100%;
	width: 100%;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	padding: 0 1.5rem;
	background-color: white;
	color: black;
}
gm-nav h1 gm-brand {
	font-size: 1rem;
	font-weight: bold;
}
gm-nav ul {
	display: flex;
	flex-direction: row;
	margin: 0;
	padding: 0;
}
gm-nav li {
	list-style: none;
	margin-left: 1rem;
}
gm-nav a {
	color: inherit;
}
gm-nav a:hover,
gm-nav a:focus {
	color: inherit;
	font-weight: bold;
}

gm-footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 4rem;
}
gm-footer footer {
	height: 100%;
	width: 100%;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	padding: 0 2rem;
}
gm-footer p {
	font-weight: 100;
	flex-shrink: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.75rem;
	margin: 0;
	padding: 0;
}
gm-footer ul {
	display: flex;
	flex-direction: row;
	margin: 0;
	padding: 0;
}
gm-footer li {
	list-style: none;
	margin-left: 1rem;
}
gm-footer a {
	display: block;
	color: inherit;
	width: 2rem;
	height: 2rem;
	fill: currentColor;
	filter: invert(1) opacity(0.7);
	background-repeat: no-repeat;
	background-position: center;
	transition: filter 110ms ease-in-out;
}
gm-footer a:hover,
gm-footer a:focus {
	filter: invert(1) opacity(1);
	outline: none;
}
gm-footer #gm-footer--github {
	background-image: url('./graphics/fa-github.svg');
}
gm-footer #gm-footer--linkedin {
	background-image: url('./graphics/fa-linkedin.svg');
}
gm-footer #gm-footer--email {
	background-image: url('./graphics/fa-envelope.svg');
}

/* Animations -------------------------------------------------------------->*/

@keyframes gm-brand-colors {
	0% {
		background-color: #1CA152;
	}
	30% {
		background-color: #EB2D37;
	}
	40% {
		background-color: #DBDBDB;
	}
	50% {
		background-color: #FFCD00;
	}
	60% {
		background-color: #003087;
	}
	70% {
		background-color: #C8102E;
	}
	100% {
		background-color: #1CA152;
	}
}