/* Message component */

@keyframes incomingMessageAnimation {
	0% {
		opacity: 0;
		/* Stick with px, jitters with rem */
		/* transform: translateY(-10px); */
	}
	100% {
		opacity: 1;
		/* transform: translateY(0); */
	}
}

.message {
	display: flex;
	flex-direction: row;
	gap: 1rem;
	padding: 1.5rem 1.5rem;
	width: 100%;
	animation: incomingMessageAnimation 0.15s linear;
}

.content {
	word-break: break-word;
	white-space: pre-wrap;
}

.message-timestamp {
	white-space: nowrap;
}

.main .author {
	justify-items: flex-start;
}
/* 
.author {
	display: flex;
	flex-direction: row;
	width: 100%;
	gap: 0.25rem;
} */

.author-name {
	color: white;
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.author-handle {
	color: #949ba4;
}

.message-timestamp {
	color: #949ba4;
	cursor: default;
}

.author-name:hover {
	text-decoration: underline;
}

.author-handle:hover {
	text-decoration: underline;
}

.content:hover {
	text-decoration: underline;
}

.display-photo {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
}
.display-photo img {
	border-radius: 50%;
	width: 2.5rem;
	height: 2.5rem;
	vertical-align: middle;
}

.display-photo svg {
	width: 2.5rem;
	height: 2.5rem;
	vertical-align: middle;
}

.message:hover {
	background-color: #2e3035;
}

.attachment {
	display: block;
}

.attachment-wrapper {
	margin-top: 0.7rem;
	border-radius: 16px;
	background-color: rgba(43, 45, 48, 255);
	overflow: hidden;
}

.content {
	margin-top: 0.5rem;
}

.image-wrapper {
	margin-top: 0.7rem;

	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.image {
	background-color: rgba(43, 45, 48, 255);
	/* aspect-ratio: 1; */
	object-fit: cover;
	aspect-ratio: auto;
	vertical-align: middle;
	border-radius: 16px;
	/* transition-duration: 0ms;
	transition-timing-function: linear; */
	width: 100%;
	height: 100%;
	min-height: 20rem;
	max-height: 20rem;
}

.attachment-image {
	aspect-ratio: 2 / 1;
	object-fit: cover;
	width: 100%;
	height: 100%;
	vertical-align: middle;
	min-height: 20rem;
	max-height: 20rem;
}

.attachment-url {
	color: #949ba4;
}

.attachment-text {
	padding: 1rem 1.5rem;
}

.attachment-title {
	margin: 6px 0;
}

/* .attachment-title {
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}

.attachment-description {
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
} */

/* Sidebar */

.right-sidebar {
	min-width: 300px;
	border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.join-bsky-section h1 {
	font-size: 1.25rem;
	font-weight: 500;
	text-align: center;
}

.join-bsky-button {
	display: block;
	height: 2.25rem;
	border-radius: 2.25rem;
	background-color: rgb(0, 133, 255);
	display: flex;
	letter-spacing: 0.25px;
	font-weight: 400;
	color: rgb(255, 255, 255);
	font-size: 1em;
	align-items: center;
	justify-content: center;
	transition: background-color 100ms ease-in;
}

.join-bsky-button:hover {
	background-color: rgba(0, 133, 255, 0.9);
}

.developer {
	text-align: center;
	color: rgba(255, 255, 255, 0.5);
}

.developer a {
	white-space: nowrap;
	color: rgba(255, 255, 255, 0.8);
}

/* Header */

/* .filter-field {
	margin: 1rem 1.5rem;
	display: block;
	max-height: 2.25rem;
	height: 100%;
	width: 100%;
	border-radius: 0.5rem;
	padding: 1rem;
	border: 1px solid #34363c;
	border: none;
	background-color: #383a40;
}

.filter-field:focus {
	outline: none;
} */

/* .banner {
		height: 2rem;
		position: sticky;
		top: 3.75rem;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.connecting {
		background-color: rgb(236, 72, 104);
	}

	.connected {
		background-color: green;
	} */

/* Overlay */

#go-down-button {
	background-color: #b5bac1;
	border-radius: 50%;
	width: 3rem;
	height: 3rem;
	display: flex;
	vertical-align: middle;
	align-items: center;
	justify-content: center;
	border: none;
	cursor: pointer;
}

.go-down-overlay {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	z-index: 2;
}

#go-down-button {
	background-color: rgb(43, 45, 49);
	opacity: 1;
	border-radius: 50%;
	width: 3rem;
	height: 3rem;
	display: flex;
	vertical-align: middle;
	align-items: center;
	justify-content: center;
	border: none;
	cursor: pointer;
}

#go-down-button svg {
	height: 1.5rem;
	width: 1.5rem;
	color: #d6d6d6;
	stroke-width: 2;
}

.attachment-base-url {
	color: #949ba4;
}
