:root {
	--white: #eee;
	--lt-gray: #bbb;
	--dk-gray: #333;
	--black: #000000;
	--blue: #141b90;
	--green: #00ff77;
	--brown-1: #663c51;
	--brown-2: #9d5f51;
	--yellow: #e1a551;
	--dd-purple: #ff00ff;
}

@font-face {
	font-family: 'Korinna Regular BT';
	font-weight: 400;
	src: url(./Korinna.woff2) format('woff2'), url(./Korinna.woff) format('woff');
}
@font-face {
	font-family: 'Swiss 911 Compressed';
	font-weight: 400;
	src: url(./swiss.woff2) format('woff2'), url(./swiss.woff) format('woff');
}

body {
	background-color: var(--white);
	font-family: 'Korinna Regular BT', sans-serif;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow-y: hidden;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

body.bg-light {
	background-image: url(../img/bg.jpg);
	background-size: cover;
	background-repeat: no-repeat;
}
body.dark {
	background-color: var(--black);
}

* {
	overscroll-behavior: none;
}

.help-icon {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 50%;
	img:hover {
		cursor: pointer;
		opacity: 50%;
	}
}

.category-display {
	font-family: 'Swiss 911 Compressed', sans-serif;
}

.clue-display {
	font-family: 'Korinna Regular BT', serif;
}

.response-display {
	font-family: 'Shadows Into Light Two', cursive;
	font-weight: 400;
	font-style: normal;
}

.no-select {
	-webkit-touch-callout: none; /* iOS Safari */
	-webkit-user-select: none; /* Safari */
	-khtml-user-select: none; /* Konqueror HTML */
	-moz-user-select: none; /* Old versions of Firefox */
	-ms-user-select: none; /* Internet Explorer/Edge */
	user-select: none;
}

.message {
	position: absolute;
	z-index: 2000;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: fit-content;
	width: -moz-fit-content;
	border-radius: 5px;
	border: 1px solid black;
	background-color: white;
	padding: 10px;
	opacity: 1;
	font-weight: bold;
	transition: opacity 0.25s ease-in-out;
	-moz-transition: opacity 0.25s ease-in-out;
	-webkit-transition: opacity 0.25s ease-in-out;
}

.init-container,
.game-container,
.host-panel,
.player-container {
	height: 100%;
	display: flex;
	flex-direction: column;
	margin: auto;
}

.init-container,
.host-panel {
	width: min(100%, 720px);
	padding: 0.5em;
}

.game-container {
	width: min(89vh, 100%);
	padding: 1%;
	/* background-color: black; */
}

.nav-tabs .nav-link.active {
	border-bottom: 5px solid var(--blue);
}

.tab-content {
	flex: 1;
	overflow-y: auto;
}

.host-panel {
	display: flex;
	flex-direction: column;
}

.name-canvas {
	width: 100%;
	height: 100%;
	cursor: crosshair;
}

input[type='radio'] {
	display: none;
}

input[type='radio'] + label {
	border: 1px solid black;
	padding: 0.3em 0.5em;
}

input[type='radio']:checked + label {
	background-color: var(--green);
}

input[type='radio']:disabled + label {
	color: var(--dk-gray);
	background-color: var(--lt-gray);
}

.input-row-h,
.input-row-v {
	margin: 1em auto auto auto;
	width: min(100%, 400px);
	display: flex;
	position: relative;
	.input-label {
		font-size: 0.8em;
		position: absolute;
		z-index: 2;
		top: -0.8em;
		left: 0.8em;
		padding: 0 0.2em;
		font-weight: bold;
		background-color: var(--white);
	}
	.input-container {
		width: 100%;
		padding: 0.8em 0.4em 0.4em 0.4em;
		border: 2px solid var(--blue);
		z-index: 1;
		input {
			width: 100%;
		}
		input.caps {
			text-transform: uppercase;
		}
		::-webkit-input-placeholder {
			/* WebKit browsers */
			text-transform: none;
		}
		:-moz-placeholder {
			/* Mozilla Firefox 4 to 18 */
			text-transform: none;
		}
		::-moz-placeholder {
			/* Mozilla Firefox 19+ */
			text-transform: none;
		}
		:-ms-input-placeholder {
			/* Internet Explorer 10+ */
			text-transform: none;
		}
		::placeholder {
			/* Recent browsers */
			text-transform: none;
		}
	}
}

.input-row-h {
	flex-direction: row;
}
.input-row-v {
	flex-direction: column;
}
.f-1 {
	flex: 1;
}
