* {
	margin: 0;
	padding: 0;
	--margin: 40px;
	--border-radius: 20px;
}

html {
	width: 100vw;
	height: 100vh;
	scroll-behavior: smooth;
	/* background: #000000d9; */
	font-size: 30px;
	font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
	color: white;
	text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
	overflow-wrap: break-word;
	align: right;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    background: transparent;
}

#background-wrapper {
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    border-radius: 40px;
    overflow: hidden;
}

.right-aligned {
    direction: rtl; /* This will align the container to the right */
}

.right-aligned #messageList,
.right-aligned #IPutThisHereSoICanCalculateHowBigEachMessageIsSupposedToBeBeforeIAddItToTheMessageList {
    direction: ltr; /* Reset direction for the content */
}

.right-aligned #userInfo {
    flex-direction: row-reverse;
}

.right-aligned #messageContainer,
.right-aligned #card {
    text-align: right;
}

.right-aligned #firstMessage,
.right-aligned #reply {
    text-align: right;
}

.right-aligned .timestamp,
.right-aligned .pronouns,
.right-aligned .bits {
    direction: ltr;
}

.right-aligned #userInfo > span:not([style*="display: none"]) {
    margin-right: 0;
    margin-left: 10px;
}

#statusContainer {
	font-weight: 500;
	font-size: 30px;
	text-align: center;
	background-color: #D12025;
	color: white;
	padding: 10px;
	border-radius: 10px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

#userInfo {
	display: flex;
    align-items: center;
}

#userInfo > span:not([style*="display: none"]) {
    margin-right: 10px; 
}

#userInfo > span:not([style*="display: none"]):last-of-type {
    margin-right: 0;
    margin-left: 0;
}

#mainContainer {
    position: fixed; /* Change from absolute to fixed */
    bottom: 0; /* Stick to bottom */
    left: 0; /* Ensure it starts from the left edge */
    right: 0; /* Ensure it extends to the right edge */
    height: calc(100vh - 40px); /* Use viewport height instead */
    width: calc(100% - 2 * var(--margin));
    margin: var(--margin);
    margin-bottom: 30px;
    margin-top: 30px;
    overflow-y: auto; /* Add scrolling if content overflows */
}

#messageList {
	position: absolute;
	left: 0;
	width: 100%;
}

.normalScrollDirection {
	bottom: 0;
}
.reverseScrollDirection {
	display: flex;
	top: 0;
	flex-direction: column-reverse;
}

li {
	list-style: none;
	overflow: hidden;
	height: 0;
    margin-top: 10px;
	transition: all 1s ease-in-out;
}
.reverseLineItemDirection {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.slide-fade li {
	transition: all 0.5s ease-out;
	opacity: 0;
}

.slide-fade li.show {
	opacity: 1;
}

#IPutThisHereSoICanCalculateHowBigEachMessageIsSupposedToBeBeforeIAddItToTheMessageList {
    margin-top: 10px;
	opacity: 0;
}

#firstMessage {
	display: none;
	font-weight: 500;
	font-size: 0.7em;
}

.firstMessageHighlight {
	background: #adadad46;
	padding: 20px 40px;
	border-radius: var(--border-radius);
}

.avatar {
	height: 2em;
	margin: 1px;
	transform: translate(0px, 0.25em);
	border-radius: 50%
}

.timestamp,
.pronouns {
	background: #adadad46;
	/* border-radius: var(--border-radius); */
	border-radius: 1em;
	font-size: 0.7em;
	/* padding: 5px 15px; */
	padding: 0.15em 0.5em 0.25em;
	margin-top: 0.25em;
}

.bits {
	background: #adadad46;
	border-radius: calc(var(--border-radius) / 2);
	font-size: 0.7em;
	padding: 5px 10px;
}

.platform,
.badge,
.emote {
	height: 1em;
	margin: 1px;
	transform: translate(0px, 0.25em);
}

#badgeList {
	margin: 0px 5px;
}

#username,
#title {
	font-weight: 700;
	margin-top: 0.20em;
}

.title {
	font-weight: 700;
}

#reply {
	display: none;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 0.7em;
	opacity: 0.5;
}

#message {
	font-weight: 400;
	line-height: 1.7em;
}

#card {
	background: #adadad46;
	padding: 20px 40px;
	border-radius: var(--border-radius);
}

#youtubeSuperSticker {
	display: block;
}

#sticker-img {
	height: 5em;
}

#stickerLabel {
	text-align: center;
	font-weight: 700;
}

/*****************/
/** CARD COLORS **/
/*****************/

.announcementBlue {
	background: linear-gradient(#03d3d7BF, #8d49feBF) !important;
}

.announcementGreen {
	background: linear-gradient(#01da86BF, #55bee4BF) !important;
}

.announcementOrange {
	background: linear-gradient(#feb419BF, #e1df00BF) !important;
}

.announcementPurple {
	background: linear-gradient(#9548ffBF, #fc74e6BF) !important;
}

.twitch {
	background: linear-gradient(#6d5ca1bf, #9146ffBF) !important;
}

.youtube {
	background: linear-gradient(#FF6C60BF, #FF0707BF) !important;
}

.streamlabs {
	background: linear-gradient(#73dabbbf, #397765bf) !important;
}

.streamelements {
	background: linear-gradient(#263b8abf, #0a112abf) !important;
}

/****************/
/** ANIMATIONS **/
/****************/

.statusConnected {
	animation-name: statusConnected;
	animation-duration: 2s;
	animation-fill-mode: forwards;
}

.statusDisconnected {
	animation-name: statusDisconnected;
	animation-duration: 0.5s;
	animation-fill-mode: forwards;
}

@keyframes statusConnected {
	0% {
		opacity: 1;
		background-color: #2FB774;
	}

	100% {
		opacity: 0;
		background-color: #2FB774;
	}
}

@keyframes statusDisconnected {
	0% {
		background-color: #D12025;
	}

	100% {
		background-color: #D12025;
	}
}