@font-face {
	font-family: 'Open Sans';
	src: url('OpenSans-Regular.woff2') format('woff2');
}

* {
	margin: 0px;
	padding: 0px;
	font-family: 'Open Sans', sans-serif;
	font-size: large;
	box-sizing: border-box;
}

body,
html {
	height: 100dvh;
	margin: 0;
	background-color: black;
}

div#wrapper {
	display: flex;
	flex-direction: column;
	height: 100%;

	>div#buttons {
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		width: 100vw;
		height: 100%;

		>div#ui {
			display: flex;
			flex-direction: column;
			width: 250px;

			>input {
				margin: 10px;
				padding: 5px;
				color: black;
			}

			>a {
				margin: 10px;
				padding: 5px;
			}
		}
	}
}

div#header {
	display: flex;
	justify-content: space-evenly;
	align-items: center;
	height: 5%;

	a.button1 {
		margin: 10px;
		padding: 5px;
	}
}


div#player_wrapper {
	display: none;
	height: 95%;
	overflow: auto;
}

div#chat {
	width: 20%;
	height: 100%;
	min-width: 10%;
	overflow: auto;
	right: 0;
	border-left: solid 2px #ccc;

	#chatbox {
		height: 90%;
		width: 100%;
		overflow: clip scroll;
		flex-direction: column;

		#msg {
			margin: 5px;
			padding: 2px;
			height: fit-content;
			color: #ffffff;
			border: 1px solid #ffffff;
			overflow: auto;
			overflow-wrap: break-word;
		}
	}

	#msgbox {
		display: flex;
		height: 10%;

		#message {
			margin: 10px;
			margin-right: 0;
			width: 90%;
			resize: none;
		}

		#sendBtn {
			margin: 10px;
			margin-left: 0;
			width: auto;
		}
	}
}

canvas.bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
}

h1,
h2 {
	color: white
}

a.button1 {
	display: inline-block;
	padding: 0.35em 1.2em;
	border: 0.1em solid #ffffff;
	margin: 10px;
	padding: 5px;
	border-radius: 0.12em;
	box-sizing: border-box;
	text-decoration: none;
	font-weight: 300;
	color: #ffffff;
	text-align: center;
	transition: all 0.2s;
	text-shadow: 0 0 80px rgb(192 219 255 / 75%), 0 0 32px rgb(65 120 255 / 24%);
	margin-bottom: 10px;
	margin-left: auto;
	margin-right: auto;
	cursor: pointer;
	user-select: none;

	&:hover {
		color: #000000;
		background-color: #ffffff;
	}
}

#player_id {
	--op-accent-color: red;
	height: 100%;
	display: flex;
	width: 80%;
	flex-direction: row;
	align-items: center;
	justify-content: center;
}