@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

html, body {
	background-color: #ddf;
	font-size: 40px;
	font-family: "Open sans", sans-serif;
	margin: 0;
	padding: 0;
	height: 100%;
	width: 100%;
}

.wrap {
	display: flex;
	box-sizing: border-box;
	flex-direction: column;
	justify-content: space-between;
	width: 100%;
	height: 100%;
	padding: 0.1rem;
}

.status_bar {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.1rem;
}

.main {
	display: flex;
	flex-direction: row;
	justify-content: space-around;
	align-items: stretch;
	flex-grow: 1;
	gap: 0.2rem;
}

.gameboard {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
}

.chat{
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	flex-grow: 1;
}

.hidden {
	display: none;
}

.grey {
	color: #777;
}

.clear_both {
	clear: both;
}

.blink {
	animation: blinker2 0.6s cubic-bezier(1, 0, 0, 1) infinite alternate;
}
@keyframes blinker2 { to { opacity: 0; } }

.modal {
	position: fixed;
	padding: 1em 3em 1em 3em;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: #bbb;
	font-size: 1.5em;
	border-radius: 0.5em;
}

.modal input {
	font-size: 1em;
}

#welcome_wrap h1, #welcome_wrap p {
	white-space: nowrap;
}

#login_wrap {
	width: 60vw;
	text-align: center;
	padding: 0 1em 2em 1em;
}

.btn {
	display: inline-block;
	background-color: #444;
	color: #fff;
	cursor: pointer;
	border-radius: 0.5em;
	padding: 0.2em 1em 0.2em 1em;
	user-select: none;
	font-size: 1em;
}

#top_bar, #connection_bar {
	float: right;
}

#reconnect_btn {
	padding: 0.2em 0.4em 0.2em 0.4em;
	margin-left: 0.5em;
}

.btn.active {
	background-color: #080;
}

.btn.inactive {
	background-color: #f00;
}

.btn.disabled {
	background-color: #888;
	color: #aaa;
	cursor: not-allowed;
	pointer-events: none;
}

.btn.denied {
	background-color: #f60;
}

.conn_state_symbol.conn_state_off {
	color: #f00;
}

.conn_state_symbol.conn_state_on {
	color: #080;
}

.conn_state_off .fa-link {
	display: none;
}

.conn_state_on .fa-unlink {
	display: none;
}

#video_wrap {
	display: inline-block;
	border: 0.1em solid #000;
}

#scene {
	display: inline-block;
	width: 60vmin;
	height: 70vmin;

	width: 73vmin;
	height: 85vmin;

	background-color: #fdd;
	user-select: none;
	text-align: center;
}

#number_display_wrap {
	display: inline-block;
	width: 30vmin;
	height: 15vmin;
	background-color: #abc;
	vertical-align: top;
}

#number_display {
	font-size: 15vmin;
	font-weight: bold;
	line-height: 15vmin;
	height: 15vmin;
	border: 0.1vmin solid #000;
}

#bingo_btn {
	font-size: 1rem;
	line-height: 1rem;
}

#video_wrap {
	display: inline-block;
	width: 30vmin;
	height: 20vmin;
	vertical-align: top;
	background-color: #777;
	border: 0.1vmin solid #000;
	text-align: center;
}

#received_video {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
}

#number12, .num.marked {
	background-color: yellow;
}

.num {
	display: inline-block;
	width: 11vmin;
	height: 11vmin;

	width: 13.4vmin;
	height: 13.4vmin;
	background-color: #fff;
	font-size: 6vmin;
	line-height: 12vmin;
	margin: 0.5vmin 0.1vmin 0 0;
	cursor: pointer;
	user-select: none;
	text-align: center;
	vertical-align: top;
	font-weight: bold;
}

.num_title {
	display: inline-block;
	width: 13.4vmin;
	height: 13.4vmin;
	font-size: 12vmin;
	font-weight: bold;
	line-height: 10vmin;
	margin: 0.5vmin 0.1vmin -1.5vmin 0;
}

#numbers_wrap {
	margin: 1em;
	padding: 0.5em;
	background-color: #fff;
	font-size: 0.8em;
	max-height: 3em;
	overflow: auto;
}

#bottom_bar {
	text-align: center;
}

#chat_content {
	padding: 0.5em;
	background-color: #ddd;
	flex: 1 1 auto;
	overflow-x: hidden;
	overflow-y: scroll;
}

#chat_footer {
	flex: 0 1 1em;
	display: flex;
	flex-flow: row nowrap;
}

#chat_input {
	flex: 1 1 auto;
	font-size: 1rem;
}

#chat_send_btn {
	flex: 0 0 auto;
}
