@import 'https://unpkg.com/open-props';
@import 'https://unpkg.com/open-props/normalize.min.css';

:root {
	/* Color palette */
	--text-main: #3a3a3a;
	--link: #1a6597;
	/* #9b952c */
	--link-hover: #03009d;
	--brand: #ffd800;
	/*Gold color color: #cccc66 */
	/* #d4cb30 */
	--background: #fff;
	/* Text styles */
	--size-normal: 19px;
	--font-family: 'Noticia Text', serif;
	/* Another dimension */
	--hero-height: 100svh;
	--width-page: 76ch;
	/* ...pay close attention */
}

::selection {
	background: var(--brand);
	color: var(--link);
	text-shadow: none;
}

html {
	scroll-behavior: smooth;
}

body,
button,
input,
textarea {
	font-family: var(--font-family), var(--font-serif), serif;
}

:where(
	textarea,
	select,
	input:not([type='button'], [type='submit'], [type='reset'])
) {
	background-color: var(--surface-1);
}

form {
	text-align: center;
}

body {
	font-size: var(--size-normal);
	line-height: 1.5em;
	margin: 0;
}

p,
ol li {
	margin: 0 0 20px;
	font-weight: normal;
}

p:last-child {
	margin-bottom: 0;
}

:where(p, ul, ol, dl, h6) {
	font-size: var(--size-normal);
	line-height: 1.5em;
}

:where(p),
:where(h3, h4, h5, h6, dt),
:where(li, dd, figcaption) {
	max-inline-size: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	line-height: 1.5em;
	max-inline-size: 100%;
}

h1 {
	font-size: calc(2.5 * var(--size-normal));
}

h2 {
	font-size: calc(1.58 * var(--size-normal));
}

h3 {
	font-size: calc(1.3 * var(--size-normal));
}

.center img {
	margin: 0 auto;
	display: flex;
}

a,
:where(a[href]):visited {
	color: var(--link);
	transition: color 0.3s var(--ease-1);
}

a:hover {
	color: var(--link-hover);
}

:where(a):where([href]):where(:visited) {
	text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	line-height: 1.4em;
	margin-bottom: 0.3rem;
}

ul,
ol {
	margin: 15px 0 15px 20px;
	padding: 0;
}

li ul,
li ol {
	margin: 0 0 0 25px;
}
.table-responsive {
	margin: var(--size-fluid-2) auto;
	max-width: calc(
		var(--width-page) - var(--size-8) * 2
	); /* Page width minus padding on both sides */
	overflow-x: scroll;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
	border: 0;
	width: fit-content;
	table-layout: fixed;
	display: block;
	white-space: nowrap;
	font-size: 0.9em;
}
table th,
table td {
	padding: 10px;
	text-align: left;
	border-bottom: 1px solid #e9e9e9;
	line-height: 1.5;
	border: 1px solid rgba(128, 128, 128, 0.5);
	font-size: 0.9em;
	vertical-align: middle;
}
table tbody > tr:nth-child(odd) > td,
table tbody > tr:nth-child(odd) > th {
	background-color: rgba(128, 128, 128, 0.07);
}
table tbody > tr {
	transition: var(--ease-3) 0.5s background-color;
}
table tbody > tr:hover {
	background-color: var(--brand);
}

body {
	scroll-padding-top: 20px;
}

header {
	display: flex;
	background-attachment: scroll;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	background-image: url('img/mikes-chocobo-breeding-guide-hero.webp');
	background-color: var(--brand);
	min-height: var(--hero-height);
	position: relative;
}

.bg-dark {
	background-color: rgba(0, 0, 0, 0.27);
	width: 100%;
	height: 100%;
}

.hero {
	display: flex;
	flex-direction: column;
	flex-wrap: initial;
	justify-content: center;
	align-items: center;
	align-content: center;
	gap: 0;
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding-inline: 0;
	height: 100%;
	flex-basis: auto;
	flex-grow: 1;
	flex-shrink: 1;
	align-self: auto;
	min-height: var(--hero-height);
}

.hero h1,
.hero p {
	text-align: center;
	color: var(--gray-0);
}

hero p {
	font-size: var(--font-size-3);
}

article {
	margin: 0 auto;
	max-width: var(--width-page);
	display: flex;
	flex-wrap: nowrap;
	flex-direction: column;
	justify-content: center;
	padding: var(--size-7);
}

.scroll-down {
	transform: translateY(0) rotate(90deg);
	transition: transform 0.4s ease-in-out;
}

.scroll-down:hover {
	transform: translateY(4px) rotate(90deg);
}

.aligncenter {
	text-align: center;
	margin: var(--size-fluid-2) auto;
}

:where(figure) {
	margin: var(--size-fluid-3) auto;
}
/* All images are aligned to the center, unless otherwise  */
figure.align-none {
	margin: var(--size-2) 0;
	justify-content: start;
}
:where(figure) > :where(figcaption) {
	margin: 0 auto;
	text-align: center;
}

.aligncenter img {
	margin: 0 auto;
}

:where(hr) {
	margin-block: var(--size-fluid-1);
	margin-top: var(--size-fluid-1);
}

:where(figure) > :where(figcaption),
footer p {
	font-size: calc(var(--size-normal) * 0.85);
	line-height: 1.2em;
}
:where(figure) > :where(figcaption) {
	font-style: italic;
}

ul,
ol {
	margin-top: 0;
}

ul:where(li) {
	position: relative;
	list-style: none;
	max-inline-size: var(--size-content-3);
}

ul:not(.toc) > li {
	margin-bottom: 0.25rem;
	margin-top: 0.25rem;
	position: relative;
}

ul li::before {
	content: '';
	position: absolute;
	left: -28px;
	top: 2px;
	width: 30px;
	height: 24px;
	background-image: url('img/ff-cursor.webp');
	transform: scale(0.5);
}

:where(kbd, var) {
	border-color: var(--surface-4);
	font-size: smaller;
	text-transform: uppercase;
	padding: 2px;
	box-shadow: var(--gray-0) 1px 1px 2px;
	background: linear-gradient(180deg, #dadada 0%, #bfbfbf 100%);
}

figure > img {
	border-radius: 7px;
}

figure a {
	box-shadow: var(--shadow-3);
	transition:
		var(--ease-1) 0.3s box-shadow,
		var(--ease-1) 0.3s transform;
	padding: 0;
}

figure a:hover {
	box-shadow: var(--shadow-6);
	transform: translateY(-2px);
}

figure a > img {
	border: solid 1px #424542;
	border-radius: 7px;
	box-shadow:
		1px 1px #e7dfe7,
		-1px -1px #e7dfe7,
		1px -1px #e7dfe7,
		-1px 1px #e7dfe7,
		0 -2px #9c9a9c,
		-2px 0 #7b757b,
		0 2px #424542;
	transition: var(--ease-1) 0.2s border-radius;
}
figure a:hover > img {
	border-radius: 0;
}

.ff7 {
	background: linear-gradient(to bottom, #04009d 0%, #06004d 100%);
	border-radius: 7px;
	border: solid 1px #424542;
	box-shadow:
		1px 1px #e7dfe7,
		-1px -1px #e7dfe7,
		1px -1px #e7dfe7,
		-1px 1px #e7dfe7,
		0 -2px #9c9a9c,
		-2px 0 #7b757b,
		0 2px #424542;
	padding: 1rem 1.5rem;
	color: #eff1ff;
	text-shadow:
		2px 2px #212421,
		1px 1px #212021;
	text-align: center;
	margin-right: auto;
	margin-left: auto;
	min-height: 6rem;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 256px;
}

.typewriter strong {
	letter-spacing: 0.15em; /* Adjust as needed */
}

.color-important {
	color: var(--red-7);
}

.color-gold {
	color: #b79000;
}

footer {
	color: var(--gray-0);
	background-color: var(--gray-9);
	padding: var(--size-4);
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
}

.tooltips {
	position: relative;
	display: inline;
	cursor: pointer;
}
@media only screen and (max-width: 767px) {
	:root {
		--size-normal: 16px;
		--width-page: 46ch;
	}
	.bg-dark {
		background-color: rgba(0, 0, 0, 0.4);
	}
	:where(p),
	:where(h3, h4, h5, h6, dt),
	:where(li, dd, figcaption) {
		max-inline-size: initial;
	}
	h2 {
		font-size: 1.26em;
	}
	h3 {
		font-size: 1.19em;
	}
	article {
		padding: var(--size-5);
	}
	table {
		width: auto;
	}
	.table-responsive {
		margin: 0 auto var(--size-fluid-2);
		max-width: calc(var(--width-page) - var(--size-8) * 2);
	}
	.ff7 {
		padding: 1rem 0.8rem;
	}
}
@media only screen and (min-width: 1280px) {
	.table-responsive {
		display: flex;
		flex-direction: row;
		justify-content: center;
		overflow-x: unset;
	}
}
@media (prefers-color-scheme: dark) {
	:root {
		--link: #1b1f23;
		--brand: #b4ad45;
	}
	::selection {
		color: var(--link-hover);
	}
	.color-gold {
		color: #b79000;
	}
	:where(kbd, var) {
		color: var(--gray-9);
	}
	a,
	:where(a[href]):visited {
		color: var(--indigo-5);
	}
	a:hover {
		color: var(--indigo-3);
	}
	footer {
		color: var(--gray-9);
		background-color: var(--gray-6);
	}
	table tbody > tr:hover {
		color: var(--gray-9);
	}
	table tbody > tr:nth-child(even):hover {
		color: var(--brand);
	}
	figure a > img {
		box-shadow: none;
	}
}
@supports (padding: max(0px)) {
	body,
	header,
	footer {
		padding-left: min(0vmin, env(safe-area-inset-left));
		padding-right: min(0vmin, env(safe-area-inset-right));
	}
}
