body {
	font-family: Lato, sans-serif;
	background: black;
	color: white;
	font-size: calc(0.8vmax + 8px);
}

a:link, a:visited {
	font-weight: bold;
	color: #CDF;
}

a:hover, a:active {
	color: #DEF;
}

.user {
	font-weight: bold;
	color: var(--color, inherit);
}

.user img {
	border-radius: 0.625em;
	margin-right: .5ex;
}

.user img, .emoji {
	width: 1.25em;
	height: 1.25em;
	object-fit: contain;
	display: inline-block;
	vertical-align: -.25em;
}

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

* {
	box-sizing: border-box;
}

.message-list {
	list-style: none;
	display: flex;
	justify-content: flex-end;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 1ex;
	row-gap: 1ex;
	column-gap: 1em;
	overflow: hidden;
}

a.external-link, a.external-link:hover, a.external-link:active {
	display: inline-block;
	text-decoration: none;
	color: black;
	background: #CDF;
	border-radius: 0.1em;
	padding: 0 0.25ex;
}

.message {
	display: inline-block;
	overflow: hidden;
	word-break: break-word;
	opacity: 0;


	animation: message-fade .3s ease-out .1s forwards;
}

@keyframes message-fade {
	100% {
		transform: translate(0, 0);
		opacity: 1;
	}
}

@media (orientation: portrait) {
	.message-list {
		flex-direction: column;
	}

	.message {
		transform: translateX(100%);
	}
}

@media (orientation: landscape) {
	.message {
		width: 16em;
		transform: translateY(-100%);
	}

	.message-list {
		flex-direction: row;
	}
}

.image {
	border-radius: 0.25em;
	border: 1px solid #333;
	max-width: max(360px, 100%);
	height: auto;
}

.images {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25em;
	margin-top: 0.25em;
}
