@font-face {
	font-family: 'Space Mono';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(https://fonts.gstatic.com/s/spacemono/v17/i7dPIFZifjKcF5UAWdDRYE58RWq7.woff2) format('woff2');
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

html {
	font-family: "Space Mono", monospace;
	--color: #e0e0e0;
	--primary: #d54444;
	--big-text: 30px;
	--medium-text: 26px;
	--small-text: 20px;
	--code-text: 12px;
	--desktop-content-width: 600px;
}

body {
	background-color: #20202f;
	color: var(--color);
	display: flex;
	flex-direction: row;
	justify-content: center;
}

main {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	min-height: 100vh;
}

.content {
	min-width: min(90%, var(--desktop-content-width));
	max-width: min(90%, var(--desktop-content-width));
}

h1 {
	margin: 40px 0;
	font-size: var(--big-text);
}

h2 {
	font-weight: 500;
	font-size: var(--medium-text);
	margin-bottom: 0;
}

ul {
	list-style: square;
	padding: 20px;
	margin-top: 0;
}

li::marker {
	color: var(--primary);
	border: 0;
}

a {
	color: var(--color);
	text-transform: lowercase;
	font-size: var(--small-text);
	text-decoration: double;
}

a:hover {
	border-bottom: 1px solid var(--primary);
}

p {
	max-width: 100%;
	overflow: hidden;
	margin-top: 8px;
}

img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 20px 0;
}

.codeBlock {
	background-color: #2a2a3d;
	padding: 20px;
	border-radius: 8px;
	font-size: var(--code-text);
	font-family: "Space Mono", monospace;
	max-height: calc(var(--code-text) + 20px);
	overflow-y: hidden;
	overflow-x: scroll;
	white-space: nowrap;
	margin: 20px 0;
}

/* remove scroll bar track when not needed */
.codeBlock::-webkit-scrollbar {
	height: 8px;
}

.codeBlock::-webkit-scrollbar-thumb {
	background: var(--primary);
	border-radius: 8px;
}

.titleContainer {
	display: flex;
	flex-direction: row;
	align-items: baseline;
}

.square {
	width: var(--big-text);
	height: var(--big-text);
	background-color: var(--primary);
	margin-right: 14px;
	transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.square:hover {
	border-radius: 50%;
}