div#chatclosed {
	display: none;
}
div#chatopen {
	height: 50%;
	overflow-y: scroll;
	width: 20%;
	display: block;
	margin: 0% 2% 10% 0%;
	border-radius: 15px;
	position: fixed;
	bottom: 0;
	right: 0;
	background-image: url("launokorpi2.jpg");
	background-repeat: no-repeat;
	background-size: 100%;
	-ms-overflow-style: none;
	scrollbar-width: none;
	border: 3px solid #ce0114;
	flex-direction: column-reverse;
	object-fit: contain;
	background-size: cover;
	background-position: 50% 50%;
	overflow: scroll;
}

div#chatopen::-webkit-scrollbar {
	display: none;
}

button#open {
	margin: 0em 5em 5em 0em;
	position: fixed;
	bottom: 0%;
	right: 0%;
	background-color: #ce0114;
	border: none;
	border-radius: 1000px;
	color: #ffffff;
	font-size: 16px;
	cursor: pointer;
	width: 3em;
	height: 3em;
	transition: all 0.2s ease-in-out;
}

button#open:hover {
	margin: 0em 4em 4em 0em;
	width: 5em;
	height: 5em;
}

button#open > svg {
	width: 1.5em;
	height: 1.5em;
	vertical-align: -0.5em;
	transition: all 0.2s ease-in-out;
}

button#open:hover > svg {
	width: 2.5em;
	height: 2.5em;
}

form#contact {
	display: none;
}

div.messages > ul {
	padding: 5%;
	list-style-type: none;
}

div.reply {
	width: fit-content; 
	max-width: 80%;
	background: #282828;
	margin: 0px auto 20px 0px;
	text-align: left;
}

div.message {
	width: fit-content; 
	max-width: 80%;
	background: #060606;
	border: 2px solid #ce0114;
	margin: 0px 0px 20px auto;
	text-align: left;
}

.bubble {
	position: relative;
	border-radius: 15px;
	color: #ffffff;
	padding: 10px;
}

div.pfpname > img {
	display: inline-block;
}

div.pfpname > p {
	display: inline-block;
	color: #ffffff;
	margin: 5px;
}

div#chatopen > .buttons > #bttns {
	padding: 0 5%;
	list-style-type: none;
}

div#chatopen > .buttons > #bttns button {
	float: right;
	width: 80%;
	background: #060606;
	border: 2px solid #ce0114;
	border-radius: 10px;
	color: #ffffff;
	padding: 10px;
	cursor: pointer;
	margin: 0px 0px 5px auto;
}

div#chatopen > .buttons > #bttns button:hover {
	background: #181818;
	border: 2px solid #ff0019;
}

.loadercontainer {
	padding: 10px;
	background: #282828;
	border-radius: 15px;
	width: min-content;
}

/* HTML: <div class="loader"></div> */
.loader {
	width: 60px;
	aspect-ratio: 4;
	--_g: no-repeat radial-gradient(circle closest-side, #fff 90%, #fff0);
	background: var(--_g) 0% 50%, var(--_g) 50% 50%, var(--_g) 100% 50%;
	background-size: calc(100% / 3) 100%;
	animation: l7 1s infinite linear;
}
@keyframes l7 {
	33% {
		background-size: calc(100% / 3) 0%, calc(100% / 3) 100%, calc(100% / 3) 100%;
	}
	50% {
		background-size: calc(100% / 3) 100%, calc(100% / 3) 0%, calc(100% / 3) 100%;
	}
	66% {
		background-size: calc(100% / 3) 100%, calc(100% / 3) 100%, calc(100% / 3) 0%;
	}
}

#pages {
	background-color: #282828;
	color: #ffffff;
	padding: 1em;
	display: none;
}

#pagesbuttons > button {
	background-color: #fff0;
	border: none;
	cursor: pointer;
}

#pagesbuttons > button#frwrd {
	float: right;
}

#pages > #textbox > a {
	padding: 1em;
	background-color: #ce0114;
	color: #ffffff;
	text-decoration: none; 
	border-radius: 20px;
	display: block
}

#mssgs {
	margin: 0;
	padding: 10px 10px 0px 10px;
}

#refresh {
	margin: 0em 2em 0em 0em;
	right: 0%;
	border-radius: 0 10px 0 20px;
	position: fixed;
	background-color: #ce0114;
	border: none;
	color: #ffffff;
	font-size: 16px;
	cursor: pointer;
	width: 2em;
	height: 2em;
	transition: all 0.2s ease-in-out;
	z-index: 1;
}
#refresh:hover {
	width: 3em;
	height: 3em;
}

#refresh > svg {
	width: 1em;
	height: 1em;
	transition: all 0.2s ease-in-out;
}

#refresh:hover > svg {
	width: 1.5em;
	height: 1.5em;
}