/* ================================== Reset ======================== */
*,
*::after,
*::before {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: clamp(0.4rem, 0.3793rem + 0.5517vw, 1rem);
}

body {
	font-family: Arial, Helvetica, sans-serif;
	background-color: black;
}

form input[type="checkbox"] {
	width: 1.25rem;
	height: 1.25rem;
	vertical-align: bottom;
}

form input:not([type="checkbox"]),
form select {
	font-size: 1rem;
	padding: 0.375rem 0.75rem;
	margin: 0.25rem;
}

button {
	/* display: block; */
	font-size: 1.5rem;
	/* margin: 0.25rem auto; */
	padding: 0.25rem;
	color: var(--cw-white);
	background-color: var(--cw-primary);
	cursor: pointer;
	border-radius: 5px;
}

/* ================================== Main Layout ======================== */
#deviceVP {
	display: grid;
	place-items: center;
	position: fixed;
	width: 100vw;
	height: 100vh;
}

#theater {
	position: relative;
	/* border: 1px solid purple; */
	aspect-ratio: 16 / 9;
	width: 100%;
	background-color: gray;
}

@media (min-aspect-ratio: 16/9) {
	#theater {
		width: auto;
		height: 100%;
	}
}

#gameCanvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* #controlActive {
	bottom: 10%;
	left: 50%;
	transform: translateX(-50%);
	position: absolute;
} */

/* ================================== Theater Overlay ======================== */
#theaterOverlay {
	display: grid;
	position: absolute;
	grid-template-columns: 1fr;
	grid-template-rows: auto auto 1fr auto auto;
	width: 100%;
	height: 100%;
	/* border: 5px dotted pink; */
}

#theaterOverlay header {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	grid-template-rows: auto;
	padding: 0.5rem;
}

#theaterOverlay header .center {
	font-size: 1.5rem;
	font-weight: bold;
}

#theaterOverlay header .right {
	text-align: end;
}

#theaterOverlay .postHeader {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	grid-template-rows: auto;
	padding: 0 0.5rem;
}

#theaterOverlay .postHeader .center {
	font-size: 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: end;
	justify-content: center;
}

#theaterOverlay .postHeader .center .arrow {
	width: 1.5rem;
}

#theaterOverlay .postHeader .right {
	display: flex;
	align-items: start;
	justify-content: end;
}

#theaterOverlay .postHeader .nameScore {
	display: flex;
	flex-direction: column;
	font-size: 1.25rem;
}

#theaterOverlay .postHeader .nameScore.player2 {
	justify-content: end;
}

main {
	position: relative;
}

#theaterOverlay footer {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	grid-template-rows: auto;
	padding: 0.25rem;
}

#theaterOverlay footer .right {
	text-align: end;
}

/* ================================== Control ======================== */
#theaterOverlay section.control {
	display: flex;
	align-items: center;
	justify-content: center;
	/* text-align: center; */
}

#theaterOverlay section.control .solutionAdj {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	font-size: 1.25rem;
	/* width: 50vw; */
}

#theaterOverlay section.control .solutionAdj input[type="range"] {
	width: 50vw;
}

#theaterOverlay section.control .lableInputGroup {
	padding: 0.5rem;
}

#theaterOverlay .fireBtn {
	font-size: 2rem;
	padding: 0.5rem;
}

/* ================================== Menu ======================== */
#theaterOverlay menu {
	position: absolute;
	bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-left: 0.5rem;
}

/* ================================== msgBox ======================== */
#msgBoxBodyJoinGame #gameCode {
	width: 10ch;
}

/* ================================== Utility ======================== */
.d-none {
	display: none !important;
}

.opacity-50 {
	opacity: 0.5 !important;
}

.pe-none {
	pointer-events: none !important;
}

.fw-bold {
	font-weight: bold;
}
