@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

html, body{
	font-family: 'Inter', sans-serif;
	font-size: 0.9rem;
	color: #FFFFFF;
	margin: 0 auto;
	padding: 0 auto;
	background-color: #222222;
	top: 0px;
}

.page {
    width: 100%;
	height: 100vh;
    display: flex;
	overflow:hidden;
}

@keyframes blinkingBackground {
	0%		{ background-color: #10c018;}
	25%		{ background-color: #1056c0;}
	50%		{ background-color: #ef0a1a;}
	75%		{ background-color: #254878;}
	100%	{ background-color: #04a1d5;}
}

.page .player {
	display: grid;
	width: 100%;
	height: 100%;
	object-fit: contain;
	max-width: calc(100vw - 340px);
	max-height: calc(100vh);
	align-content: center;
	position:relative;
	animation: blinkingBackground 2s infinite;
	overflow: hidden;
}

@-moz-document url-prefix() {
.video {
	display: grid;
    width: 100%;
	height: 100%;
    max-width: calc(100vw - 340px);
	max-height: calc(100vh);
    align-content: center;
    position:relative;
}
}

.page .player .overlay {
	position: absolute;
	width: 100%;
	height: 100%;
	opacity: 0%;
	transition:opacity 0.25s
}

.page .player .overlay:hover {
	opacity:100%;
	transition:opacity 0.25s
}

.page .player .overlay .unmute {
	display: block;
	position: absolute;
	width: 256px;
	height: 256px;
	top: calc(50% - 128px);
	left: calc(50% - 128px);
	cursor: pointer;
	filter: drop-shadow(0px 0px 10px black);
}

.page .player .overlay .information {
    position: absolute;
    top: 16px;
    left: 16px;
}

.page .player .overlay .controls {
    position: absolute;
    bottom: 0px;
	width: 100%;
	height: 40px;
	margin: 0 auto;
}

.information .avatar {
	display: inline-block;
	width: 5rem;
	height: 5rem;
	background-color: black;
	clip-path: circle(50% at center);
}

.information .container {
	display: inline-block;
	vertical-align:top;
	padding: 4px;
}

.container .name {
	text-decoration: underline;
	font-size: 1.2rem;
	font-weight: 600;
	padding: 2px;
}

.container .title {
	font-size: 1rem;
	padding: 2px;
}

.title .game {
	text-decoration: underline;
}

.page .player .overlay .live {
	background-color: #FF0000;
	position: absolute;
	padding: 4px;
    top: 32px;
    right: 32px;
	border-radius: 4px;
	font-weight: 600;
}

.page .player .image {
	display: block;
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: contain;
	margin: auto;
	image-rendering: pixelated;
	image-rendering:-moz-crisp-edges;
}

.chat {
	background-color: #111111;
	border-left: 1px solid;
	border-color: #444444;
    width: 340px;
    flex: 0 0 340px;
	height: 100%;
	display: flex;
	justify-content: flex-end;
	flex-direction: column;
}

.chat .chatbox {
	color: #18181b;
}

.chat .messages {
	color: #FFFFFF;
	overflow: auto;
	display: flex;
	flex-direction: column-reverse;
}

.chat .info {
	padding: 8px;
	background-color: #333333;
	color: #BBBBBB;
	font-weight: 600;
}

.chat .message {
	display: inline-block;
	padding-top: 4px;
	padding-left: 8px;
	padding-bottom: 4px;
	vertical-align: middle;
}

.chat .alternate {
	background-color: #242427;
}

.chat .name {
	display: inline;
	font-weight: 600;
	vertical-align: middle;
}

.chat .badge {
	position: relative;
	width: 18px;
	height: 18px;
	padding-right: 4px;
	vertical-align: middle;
}

.chat .emote {
	position: relative;
	width: 28px;
	height: 28px;
	top: -4px;
	vertical-align: middle;
}

.chat .about {
    position:absolute;
    bottom: 0px;
    right: 4px;
	transform: translateY(-50%);
	color: white;
	font-weight: bold;
}

.chat .about .icon {
	width: 16px;
	height: 16px;
	vertical-align: middle;
}