#cover-page-wrapper {
	box-sizing: border-box;
/*	padding: 20px;*/

	display: flex;
	justify-content: center;
	align-items: center;
}

#cover-page {
	width: 100%;
	min-height: calc(100vh - var(--header-height));
	box-sizing: border-box;
	padding: 20px;

/*	border-style: solid;*/
/*	border-width: 1px;*/
/*	border-radius: 20px;*/
/*	border-color: var(--surface0);*/

	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: stretch;
	gap: 20px;
}

#cover-page-left {
	max-width: min(100%, calc((100vh - 300px) * (16 / 9)));
	flex-grow: 4;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: stretch;
	gap: 20px;
}

#cover-page-right {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: stretch;
	gap: 20px;
	min-height: 0;
	max-height: calc(100vh - var(--header-height) - 1.5rem - 60px);
	max-width: 40vw;
}

#cover-page-inner {
	flex-grow: 1;
	box-sizing: border-box;
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: stretch;
	gap: 20px;
	min-height: 0;
}

#error-banner {
	background-color: var(--yellow);
	color: var(--crust);
	padding: 10px;
	box-sizing: border-box;
	width: 100%;
	left: 0;
	text-align: center;
	position: relative;
	animation: slight-fade 3s ease-in-out infinite;
	display: none;
}
#error-banner.visible {
	display: block;
}

@keyframes slight-fade {
	0% {
		filter: brightness(1);
	}
	50% {
		filter: brightness(0.8);
	}
	100% {
		filter: brightness(1);
	}
}

#stream-title {
	font-size: 1.5em;
	font-weight: bold;
}

#live-window {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;

	background-color: var(--mantle);
	border: solid 1px var(--crust);
	border-radius: 10px;
	
	overflow: hidden;
	
	aspect-ratio: 16 / 9;
	
	height: auto;
	max-height: calc(100vh);
}

#live-embed {
	position: absolute;
	left: -4px;
	min-width: calc(100% + 16px);
	height: calc(100% + 9px);
	background-color: black;
	overflow: hidden;
}

#fullscreen-button {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 40px;
	height: 40px;
	background-color: var(--mantle);
	border-radius: 10px 0px 0px 0px;
	border: none;
	opacity: 0;
	transition: opacity 0.1s linear;
	color: var(--text);
	cursor: pointer;
}
#reactions-canvas {
	position: relative;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	display: block;
	left: 0;
	right: 0;
	border: none;
	background-color: transparent;
	pointer-events: none;
}

#live-window:hover #fullscreen-button {
	opacity: 0.9;
}

#chatWrapper {
	min-height: 0;
	flex-grow: 1;
	flex-shrink: 1;
}

#live-info {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 20px;
}

#live-ticker {
	flex-grow: 1;
	padding: 20px;
	background-color: var(--mantle);
	border: solid 1px var(--crust);
	border-radius: var(--border-radius);

	display: flex;
	align-items: center;
	justify-content: center;
}

#live-stream-data {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: stretch;
	gap: 20px;
	min-width: 200px;
}

#live-viewers, #live-runtime {
	background-color: var(--mantle);
	border: solid 1px var(--crust);
	border-radius: var(--border-radius);
	padding-left: 20px;
	padding-right: 20px;
	padding-top: 10px;
	padding-bottom: 10px;
	text-align: center;

	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
}

#live-viewers {
	color: var(--red);
}

#live-viewers svg {
	height: 1em;
}

#reaction-wrapper {
	width: 100%;
	align-self: stretch;
	display: flex;
	flex-direction: row;
	justify-content: space-evenly;
	gap: 20px;
}

.cheer {
	display: flex;
	background-color: var(--surface0);
	border: solid 1px var(--crust);
	border-radius: var(--border-radius);
	font-size: 2em;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	padding: 20px;
	width: 50%;
}
.cheer:hover {
	background-color: var(--surface1);
}
.cheer:active svg{
	scale: 1.1;
}

.cheer svg {
	height: 1.5em;
	width: 1.5em;
	transition: scale 0.1s linear;
}

@media (max-width: 1300px){
	#cover-page-wrapper {
		height: unset;
	}

	#cover-page-inner {
		flex-direction: column;
		gap: 20px;
		padding: 10px;
	}

	#cover-page-right {
		flex-direction: column;
		max-width: unset;
	}

	#stream-title {
		text-align: center;
	}

	#chatWrapper {
		width: 100%;
		height: 900px;
		max-width: unset;
	}

	#live-info {
		flex-direction: column;
		gap: 10px;
	}

	#live-ticker {
		min-height: 70px;
	}

	#live-stream-data {
		flex-direction: row;
		gap: 10px;
	}

	#live-viewers, #live-runtime {
		width: 50%;
	}
}
