* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 100%;
}

body {
	font-family: "geologica", sans-serif;
	background-color: black;
	color: #ffffff;
	line-height: 1.6;
}

.container {
	width: 100%;
	min-height: 100vh;
	color: white;
	padding: 20px;
}

.header {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	text-align: center;
}

.header h1 {
	font-size: 3rem;
	color: white;
	margin-bottom: 5px;
}

.header p {
	font-size: 15px;
	color: #f471b5;
	font-style: italic;
	margin-top: 10px;
	letter-spacing: 0.1em;
}

.link {
	margin: 20px 20px;
}

.link a {
	padding: 5px;
	text-decoration: none;
	color: white;
	transition: all 0.3s ease;
}

.link a:hover,
.link a:focus {
	color: #f471b5;
	outline: none;
}

.welcomeBanner {
	width: 100%;
	margin-top: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	text-align: center;
}

.welcomeBanner p {
	font-size: 15px;
	max-width: 650px;
	line-height: 1.625;
}

.search {
	margin-top: 30px;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.search-wrapper {
	position: relative;
	width: 400px;
}

.search-wrapper input {
	width: 100%;
	padding: 12px 40px 12px 15px;
	border: 1px solid #374151;
	background-color: #111827;
	color: #f471b5;
	caret-color: #f471b5;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
		"Liberation Mono", "Courier New", monospace;
	border-radius: 999px;
	outline: none;
	transition: border-color 0.3s ease;
	letter-spacing: 0.03em;
}

.search-wrapper input::placeholder {
	color: #9ca3af;
	font-style: italic;
	transition: color 0.3s ease;
}

.search-wrapper input:focus::placeholder {
	color: #f471b5;
}

.search-wrapper input:focus {
	border-color: #f471b5;
	outline: 2px solid #f471b5;
	outline-offset: 2px;
}

.search-wrapper i {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: #9ca3af;
	pointer-events: none;
}

.search-wrapper input:focus + i {
	color: #f471b5;
}

.search-hint {
	color: #9ca3af;
	font-size: 12px !important;
	font-style: italic;
	margin-top: 6px;
	text-align: left;
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	transform: translateY(-4px);
}

.search-hint.visible {
	opacity: 1;
	transform: translateY(0);
}

@keyframes flashBorder {
	0%,
	100% {
		border-color: transparent;
	}
	8.33%,
	25% {
		border-color: #f471b5;
	}
	33.33%,
	50% {
		border-color: transparent;
	}
	58.33%,
	75% {
		border-color: #f471b5;
	}
	83.33% {
		border-color: transparent;
	}
}

.highlight-flash {
	animation: flashBorder 1.5s ease-in-out;
}

.charhead {
	margin-top: 50px;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.charhead h1 {
	font-size: 2rem;
	color: white;
	margin-bottom: 5px;
}

.charhead p {
	text-align: center;
	width: 600px;
	font-size: 15px;
	color: white;
	margin-top: 5px;
}

.character-card.subtle {
	background-color: #0f172a;
	color: #cbd5e1;
	border: 1px solid #1e293b;
	border-radius: 8px;
	padding: 20px;
	margin: 32px auto;
	max-width: 800px;
	font-family: "Geologica", sans-serif;
	font-size: 13px;
	line-height: 1.6;
	transition: all 0.3s ease;
	cursor: pointer;
	touch-action: manipulation;
}

.character-card.subtle:hover {
	transform: translateY(-6px);
	box-shadow: 0 8px 20px rgba(244, 113, 181, 0.2);
	border-color: #f471b5;
}

.character-card.subtle:active {
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(244, 113, 181, 0.1);
}

.character-card.subtle:focus-within {
	outline: 2px solid #f471b5;
}

.character-card.subtle h2 {
	font-size: 1.2rem;
	color: #f3f4f6;
	margin-bottom: 4px;
	transition: color 0.3s ease;
}

.character-card.subtle:hover h2 {
	color: #f471b5;
}

.character-card.subtle .char-id {
	color: #64748b;
	font-size: 0.75rem;
	margin-bottom: 12px;
	line-height: 1.4;
}

.character-card.subtle .char-id p {
	margin: 2px 0;
}

.character-card.subtle .char-description p {
	margin-top: 12px;
	color: #9ca3af;
	font-style: italic;
	transition: color 0.3s ease;
}

.character-card.subtle:hover .char-description p {
	color: #f3f4f6;
}

/* Responsive Styles */
@media screen and (max-width: 600px) {
	.container {
		padding: 10px;
	}

	.header h1 {
		font-size: 2rem;
	}

	.header p,
	.charhead p,
	.welcomeBanner p {
		font-size: 14px;
		max-width: 90%;
	}

	.search-wrapper {
		width: 100%;
		padding: 0 10px;
	}
	.search-wrapper i {
		right: 20px;
		font-size: 1rem;
	}

	.character-card.subtle {
		padding: 16px;
		margin: 20px auto;
		font-size: 12px;
	}

	.character-card.subtle h2 {
		font-size: 1rem;
	}

	.charhead h1 {
		font-size: 1.5rem;
	}

	.char-id,
	.char-meta {
		font-size: 0.7rem;
	}
}
