:root
{
	--page-bg: #f5f2f8;
	--text: #2f2637;
	--link-hover: #ff4fa3;

	--dialog-bg: #f8f8f8;
	--dialog-black: #2f2637;
}

@font-face
{
	font-family: "Unown";
	src: url("./Unown.ttf") format("truetype");
	font-display: swap;
}

*
{
	box-sizing: border-box;
	user-select: none;
	-webkit-user-select: none;
}

html,
body
{
	margin: 0;
	min-height: 100%;
}

body
{
	background: var(--page-bg);
	color: var(--text);
	font-family: "Google Sans", Arial, sans-serif;
}

.home-content
{
	width: min(760px, calc(100% - 28px));
	margin: 70px auto 120px;
	text-align: center;
	z-index: 100;
}

h1
{
	margin: 0 0 42px;
	font-size: clamp(38px, 8vw, 64px);
	font-weight: 700;
}

.home-link
{
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr);
	width: 100%;
	margin-bottom: 28px;
	color: var(--text);
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.08s steps(1, end);
}

.home-link:hover
{
	transform: translateY(-2px);
}

.home-link:active
{
	transform: translateY(2px);
}

.home-link:focus-visible
{
	outline: 4px solid var(--link-hover);
	outline-offset: 6px;
}

.gen2-box
{
	position: relative;
	background: var(--dialog-bg);
	border: 4px solid var(--page-bg);
}

.website-main
{
	z-index: 100;
	min-height: 144px;
	padding: 24px 20px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.website-title
{
	margin-top: 6px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	transition: color 0.1s linear;
}

.home-link:hover .website-title,
.home-link:focus-visible .website-title
{
	color: var(--link-hover);
}

.website-description
{
	min-width: 0;
	min-height: 144px;
	margin-left: -4px;
	padding: 31px 34px 30px 38px;
	display: flex;
	align-items: center;
	text-align: left;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.55;
}

.website-description::before
{
	content: "➜";
	margin-right: 10px;
	font-size: 12px;
	flex: 0 0 auto;
	opacity: 0;
}

.home-link:hover .website-description::before,
.home-link:focus-visible .website-description::before
{
	opacity: 1;
	animation: cursor-blink 0.75s steps(1, end) infinite;
}

.website-pokemon
{
	display: block;
	width: 64px;
	height: 64px;
	object-fit: contain;
	image-rendering: pixelated;
	transform-origin: center bottom;
	filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.1));
}

.home-link:hover .website-pokemon,
.home-link:focus-visible .website-pokemon
{
	animation: crystal-sprite 0.65s steps(1, end) infinite;
}

@keyframes crystal-sprite
{
	0%
	{
		transform: translate(0, 0) scaleX(1);
		filter:
			drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.18))
			brightness(1);
	}

	20%
	{
		transform: translate(0, -4px) scaleX(1);
	}

	40%
	{
		transform: translate(2px, -7px) scaleX(0.96);
		filter:
			drop-shadow(3px 5px 0 rgba(0, 0, 0, 0.14))
			brightness(1.12);
	}

	60%
	{
		transform: translate(-2px, -4px) scaleX(1.04);
	}

	80%
	{
		transform: translate(0, -1px) scaleX(1);
	}

	100%
	{
		transform: translate(0, 0) scaleX(1);
	}
}

@keyframes cursor-blink
{
	0%,
	49%
	{
		visibility: visible;
	}

	50%,
	100%
	{
		visibility: hidden;
	}
}

footer
{
	position: fixed; 
	bottom:0;
	overflow: hidden;
	min-height: 200px;
	width:100%;	
	padding: 48px 20px 38px;
	text-align: center;
}

.footer-content
{
	position: relative;
	z-index: 2;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.9;
	width: 240px;
	margin: 0 auto;
	background: var(--page-bg);
}

.footer-title
{
	font-size: 16px;
	letter-spacing: 1px;
}

.footer-content a
{
	color: #6f5b80;
	text-decoration: none;
}

.footer-content a:hover,
.footer-content a:focus-visible
{
	color: var(--link-hover);
}

.sparkles
{
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	font-family: "Unown", sans-serif;
}

.sparkle
{
	position: absolute;
	left: var(--left);
	bottom: -40px;
	font-size: var(--size);
	opacity: 0;
	animation: sparkle-rise var(--duration) linear infinite;
	animation-delay: var(--delay);
}

@keyframes sparkle-rise
{
	0%
	{
		transform: translateY(0) rotate(0deg) scale(0.4);
		opacity: 0;
	}

	15%
	{
		opacity: 0.8;
	}

	60%
	{
		opacity: 0.45;
	}

	100%
	{
		transform: translateY(-205px) rotate(180deg) scale(1.1);
		opacity: 0;
	}
}

@media (max-width: 620px)
{
	.home-content
	{
		margin-top: 42px;
	}

	h1
	{
		margin-bottom: 30px;
	}

	.home-link
	{
		grid-template-columns: 1fr;
	}

	.website-main
	{
		min-height: 138px;
	}

	.website-description
	{
		min-height: 120px;
		margin-top: -4px;
		margin-left: 0;
		padding: 30px 28px;
	}

	.website-pokemon
	{
		width: 82px;
		height: 82px;
	}
}

@media (prefers-reduced-motion: reduce)
{
	.home-link,
	.home-link:hover,
	.home-link:active
	{
		transform: none;
		transition: none;
	}

	.home-link:hover .website-pokemon,
	.home-link:focus-visible .website-pokemon,
	.home-link:hover .website-description::before,
	.home-link:focus-visible .website-description::before,
	.sparkle
	{
		animation: none;
	}

	.sparkles
	{
		display: none;
	}
}
