/* Shared responsive layout for all crossword pages. */
* {
	box-sizing: border-box;
}

body {
	display: block;
	font: 62.5%/1.3em Helvetica, sans-serif;
	width: 96%;
	max-width: 1440px;
	margin: 10px auto;
}

table.clues {
	background-color: #fff;
}

#puzzle-wrapper {
	float: left;
	width: 45%;
	max-width: 45%;
	margin: 0 2% 0 0;
	box-sizing: border-box;
}

#clue-content {
	display: none;
}

#puzzle {
	display: table;
	border-collapse: collapse;
	border-spacing: 0;
	width: 100%;
	max-width: 100%;
	table-layout: fixed;
	margin: 0;
	border: 2px solid #000;
}

#puzzle tr {
	display: table-row;
}

#puzzle td {
	display: table-cell;
	width: auto;
	height: auto;
	min-width: 0;
	padding: 0;
	box-sizing: border-box;
	position: relative;
	border: 1px solid #000;
	background-color: #fff;
}

#puzzle td:empty {
	background-color: #000 !important;
}

#puzzle td input {
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 0 !important;
	text-align: center;
	font-size: 2.5em;
	color: #000;
	background-color: #fff;
	text-transform: capitalize;
}

#puzzle td input.active {
	background-color: #ffff99;
}

#puzzle td input:focus,
#puzzle td input.current {
	background-color: #dfeeff;
	outline: none !important;
	box-shadow: none !important;
}

#puzzle td span {
	position: absolute;
	top: -1px;
	left: 1px;
	color: #444;
	font-size: .8em;
}

#puzzle td input.done {
	font-weight: bold;
	color: #0f6b2a;
}

.active,
.clues-active {
	background-color: #ffff99;
}

.spaced-title {
	margin: 60px 0;
	font-size: 5em;
}

.flash-highlight {
	background-color: #cceeff !important;
	transition: background-color .3s ease;
}

#puzzle-clues {
	float: right;
	width: 53%;
	max-width: 53%;
	margin: 0;
	clear: right;
}

#puzzle-clues li {
	font-size: 1.8em;
	margin: .1em;
	line-height: 1.1em;
}

#other-info {
	float: left;
	clear: left;
	width: 45%;
	max-width: 45%;
	font-size: 2.2em;
	margin: 1em 0 .1em;
	line-height: 1.35em;
}

#clue-to-display {
	display: -webkit-box;
	width: 100%;
	max-width: 100%;
	height: 3em;
	padding: .2em;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	box-sizing: border-box;
	margin: 0 0 .5em;
	font-size: 2.4em;
	line-height: 1.3em;
	background-color: #ffff99;
}

#virtual-keyboard {
	display: none !important;
}

.vk-key-pressed {
	transform: translateY(2px) scale(.97);
	background: #dfeeff !important;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, .22) !important;
}

@media (max-width: 768px) {
	body {
		width: 100%;
		max-width: 100%;
		margin: 10px 0;
		zoom: 1;
	}

	#puzzle-wrapper {
		float: none;
		width: 96vw;
		max-width: 96vw;
		margin: 0 auto;
	}

	#clue-content {
		display: none;
	}

	#puzzle {
		width: 100%;
		max-width: 100%;
	}

	#puzzle td input {
		font-size: 1.8em;
	}

	#puzzle td span {
		top: 1px;
		left: 1px;
		font-size: 10px;
	}

	#puzzle-clues {
		display: none;
		width: 100%;
		float: none;
	}

	#page-title {
		display: block;
		margin: 0 0 .5em;
		font-size: 1.85em;
		line-height: 1.15em;
		text-align: center;
	}

	#clue-to-display {
		width: 100%;
		max-width: 100%;
		height: 3em;
		padding: .2em;
		font-size: 1.7em;
		line-height: 1.3em;
	}

	#other-info {
		float: none;
		clear: none;
		width: 96vw;
		max-width: 96vw;
		margin: 1.5em auto 0;
		font-size: 1.35em;
		line-height: 1.35em;
	}

	#virtual-keyboard {
		display: block !important;
		position: relative;
		z-index: 1000;
		width: 96vw !important;
		max-width: 96vw !important;
		margin: 10px auto !important;
	}

	#virtual-keyboard .vk-key {
		touch-action: manipulation;
		cursor: pointer;
	}
}
