body {
	overflow-y: scroll;
}

ul {
	padding: 0 calc(0.4em + 1ch);
}

#chatbots {
	margin-bottom: 100px;
}

#chatbots:empty::before {
	content: "Loading...";
	display: block;
	font-size: 2em;
	font-weight: bold;
	text-align: center;

	animation: appear 100ms forwards;
}

@keyframes appear {
	0%,
	99% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

#chatbots > li {
	/* display: grid; */
	column-gap: 1em;

	list-style: none;
}

#chatbots > li:nth-child(odd) h2 {
	text-align: right;
}

#chatbots > li > header {
	display: flex;
	justify-content: space-between;
}

#chatbots > li > header > div {
	display: flex;
	align-items: center;
	margin-bottom: 1em;
	gap: 0.33em;
}

#chatbots > li h2 {
	margin: 0;
	grid-area: name;
	margin-top: 0;
	color: darkolivegreen;
	display: flex;
	gap: 0.33em;
	margin-left: calc(-0.33em - 1ch);
}

#chatbots > li h2::before {
	content: "•";
	width: 1ch;
	display: inline-block;
}

#chatbots > li p {
	overflow-wrap: anywhere;
	margin-bottom: 2em;
	grid-area: description;
	min-height: calc(160px - 1em);
}

#chatbots > li a {
	grid-area: link;
}

#chatbots > li img {
	display: inline;
	margin-right: 1em;
	margin-bottom: 1em;
	float: left;
	object-fit: cover;
	grid-area: icon;
	width: 120px;
	height: 160px;
	box-shadow: -4px 4px 4px rgba(0, 56, 0, 0.2);
	border-radius: 2px;
}

#chatbots > li:nth-child(even) {
	& > img {
		float: right;
		margin-right: 0;
		margin-left: 1em;
		box-shadow: 4px 4px 4px rgba(0, 56, 0, 0.2);
	}

	& > header {
		flex-direction: row-reverse;
	}

	& h2 {
		flex-direction: row-reverse;
		margin-right: calc(-0.33em - 1ch);
		margin-left: 0;
	}

	.name-container {
		flex-direction: row-reverse;
	}
}

.token-count {
	color: darkolivegreen;
	opacity: 0.66;
	display: flex;
	align-items: center;
	flex-direction: row;
}

.token-count .separator {
	margin: 0 0.33em;
	user-select: none;
}

.version.updated {
	color: red;
	font-weight: bold;

	&::after {
		content: "!";
	}
}

#update-notification:empty {
	display: none;
}

#update-notification {
	color: red;
	text-decoration: underline;
	cursor: pointer;
}

#update-notification:hover {
	color: firebrick;
}

.into-view-blink {
	animation-name: into-view-blink;
	animation-timing-function: linear;
	animation-iteration-count: 6;
	animation-duration: 660ms;
	animation-direction: alternate;
}

@keyframes into-view-blink {
	from {
		background-color: transparent;
	}
	to {
		background-color: rgba(0, 0, 0, 0.066);
	}
}
