:root {
	--bg-color: #f9f6f0;
	--text-color: #2c2c2c;
	--text-color-secondary: #5a5a5a;
	--accent-color: #8b4513;
	--new-indicator-color: #d32f2f;
	--scrollbar-thumb: #6a5b5b;
}

@font-face {
	font-family: 'Instrument Serif';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/biota/resources/InstrumentSerif-Regular.ttf') format('truetype');
}

@font-face {
	font-family: 'Instrument Serif';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('/biota/resources/InstrumentSerif-Italic.ttf') format('truetype');
}

.instrument-serif-regular {
	font-family: "Instrument Serif", serif;
	font-weight: 400;
	font-style: normal;
}

.instrument-serif-regular-italic {
	font-family: "Instrument Serif", serif;
	font-weight: 400;
	font-style: italic;
}

html {
	overflow-y: scroll;
	user-select: none;
	scrollbar-color: var(--scrollbar-thumb) var(--bg-color);
	-webkit-tap-highlight-color: transparent;
}

body {
	font-family: "Instrument Serif", serif;
	background-color: var(--bg-color);
	color: var(--text-color);
	max-width: 800px;
	margin: 0 auto;
	padding: 40px 0;
	line-height: 1.6;
}

h1 {
	text-align: center;
	font-size: 3rem;
	margin-bottom: 0.2rem;
	margin-top: 0;
	color: var(--text-color);
}

h2 {
	text-align: center;
	font-size: 1.3rem;
	font-style: italic;
	margin-bottom: 2rem;
	color: var(--text-color-secondary);
	font-weight: 400;
}

details {
	margin-left: 20px;
	margin-bottom: 10px;
}

summary {
	cursor: pointer;
	font-weight: 600;
	padding: 5px 0;
	color: var(--text-color);
	font-size: 1.6rem;
	transition: color 0.08s ease;
}

@media (hover: hover) {
	summary:hover {
		color: var(--accent-color);
	}
}

.species {
	margin: 0;
	margin-bottom: 30px;
	margin-left: 4.5px;
	margin-right: 4.5px;
	padding-top: 0;
	padding-left: 15px;
	padding-right: 15px;
	padding-bottom: 0;
}

.species-name {
	font-size: 1.6rem;
	margin-bottom: 9.5px;
	padding-top:6px;
}

.common-name {
	color: var(--text-color-secondary);
	font-style: normal;
}

.species-text {
	margin-top: 15px;
	line-height: 1.4;
	font-size: 1.5rem;
}

.species-text p {
	margin-top: 0;
	margin-bottom: 9px;
	padding-bottom: 10px;
}

span.new-indicator {
	color: var(--new-indicator-color);
	font-weight: bold;
	display: inline-block;
	margin-left: 7px;
	font-size: 1rem;
	vertical-align: top;
	line-height: 2.77;
	transition: opacity 0.2s ease-out;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg-color: #231e1b;
		--text-color: #eee9e2;
		--text-color-secondary: #b4b4ae;
		--accent-color: #489761;
		/* --new-indicator-color: #ff4323;
		--new-indicator-color: #ff6bce;
		--new-indicator-color: #ffa023;
		--new-indicator-color: #d90098; */
		--new-indicator-color: #9a81e5;
		
		--scrollbar-thumb: #555;
	}

	body {
		text-shadow: 1px 1px 1px black;
	}

}