@font-face {
    font-family: 'MPLUSRounded1c';
    src: url('fonts/MPLUSRounded1c-Thin.ttf') format('truetype');
    font-weight: 100;
}

@font-face {
    font-family: 'MPLUSRounded1c';
    src: url('fonts/MPLUSRounded1c-Light.ttf') format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: 'MPLUSRounded1c';
    src: url('fonts/MPLUSRounded1c-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'MPLUSRounded1c';
    src: url('fonts/MPLUSRounded1c-Medium.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'MPLUSRounded1c';
    src: url('fonts/MPLUSRounded1c-Bold.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'MPLUSRounded1c';
    src: url('fonts/MPLUSRounded1c-ExtraBold.ttf') format('truetype');
    font-weight: 800;
}

@font-face {
    font-family: 'MPLUSRounded1c';
    src: url('fonts/MPLUSRounded1c-Black.ttf') format('truetype');
    font-weight: 900;
}

* {
	font-family: 'MPLUSRounded1c', 'Roboto', sans-serif;
}
html, body, main {
	height: 100%;
	width: 100%;
	padding: 0;
	margin: 0;
}
main {
	display: grid;
	grid-template-columns: 15% 85%;
	height: 100%;
	min-height: 100%;
}
main > div {
	box-sizing: border-box;
	border-right: 1px solid black;
	height: 100%;
	width: 100%;
	background-color: #2f2f2f;
}
main > div:last-child {
	border: none;
}
main span {
	color: white;
}
main .guilds, main .channels, main .messages {
	overflow-y: scroll;
}
main .guilds > div {
	cursor: pointer;
	padding: 5px;
	border-bottom: 1px solid black;
}
main .guilds > div:hover {
	background-color: #2a2a2a;
}
main .guilds > div > span:first-child {
	display: block;
	font-size: 14px;
}
main .guilds > div > span:last-child {
	display: block;
	color: #c4c4c4;
	font-size: 12px;
}

main .channels > div {
	cursor: pointer;
	padding: 5px;
	border-bottom: 1px solid black;
}
main .channels > div.channel:hover {
	background-color: #2a2a2a;
}
main .channels > div > span:first-child {
	display: block;
	font-size: 14px;
}
main .channels .parent span {
	font-weight: 600;
	text-decoration: underline;
}

div.newmsg, div.newmsg > input, div.newmsg > button {
	background-color: #222222;
	border: none;
	color: white;
}

div.newmsg > input, div.newmsg > button {
	border: 1px solid white;
}

div.newmsg {
	background-color: #222222;
}

main .messages > div:not(.newmsg) {
	z-index: 1;
	padding: 15px;
	background-color: #2f2f2f;
}
main .messages {
	position: relative;
}
main .messages .topic button {
	color: #fff;
	border: none;
	background-color: #343434;
	padding: 5px 10px;
	border-radius: 5px;
	cursor: pointer;
}

main .messages .topic, main .channels .topic {
	cursor: default !important;
	box-sizing: border-box;
	position: sticky;
	top: 0;
	height: 7vh;
	width: 100%;
	display: flex;
align-content: flex-start;
  align-items: center;
	background-color: #1a1a1a;
}

main .messages .topic .title {
	flex-grow: 2;
}
main .messages .topic .avatarcontainer {
	height: 100%;
	align-self: firstbaseline;
	position: relative;
	display: inline-block;
	padding-right: 10px;
}
main .messages .topic .avatarcontainer img {
	max-height: 100%;
	width: auto;
	border-radius: 25px;
	cursor: pointer;
}

main .messages > div.normal:hover {
	transition: none;
	background-color: #1f1f1f;
}
main .messages > div.highlight {
	transition: background-color 0.3s ease;
	background-color: #1f1f1f;
}
main .messages div.reply {
	cursor: pointer;
	font-size: 0.75rem;
}
main .messages .author {
	font-weight: 600;
	text-decoration: underline;
}
main .messages .date {
	color: #dddddd;
	font-size: 0.9rem;
	margin-left: 10px;
}
main .messages .content {
	display: block;
	white-space: initial;
	word-wrap: break-word;
}
main .messages .replycontent {
	margin-left: 10px;
	white-space: initial;
	word-wrap: break-word;
}
main .messages .edited, main .messages .deleted {
	font-size: 0.6rem;
	color: #595959;
	margin-left: 10px;
}
main .messages .deleted {
	color: red;
}
main .messages .reply span {
	color: #aaaaaa;
}
.spine {
  margin-right: 15px;
  display: inline-block;
  position: relative;
  width: 25px;
  height: 1px;
  transform: translate(10px, -5px);
  background-color: #666666;
}
.spine::before {
  z-index: 0;
  content: "";
  position: absolute;
  top: 0;
  transform: rotate(45deg);
  left: -8px;
  width: 20px;
  height: 20px;
  border: 1px solid #666666;
  border-color: transparent transparent transparent #666666;
  border-radius: 50%;
}
.attachment {
	padding: 3px;
	max-width: 15%;
}
.pointer {
	cursor: pointer;
}
.hrtext {
	display: flex;
	align-items: center;
	text-align: center;
	margin: 20px 0;
	border: none;
}
.hrtext::before, .hrtext::after {
	content: "";
	flex: 1;
	border-top: 1px solid #ccc;
}

.hrtext span {
	margin: 0 10px;
	font-weight: bold;
	color: #ddd;
}