/*
Default puzzle styling
*/
@import url(//fonts.googleapis.com/css?family=Cutive|Open+Sans&display=swap);
body {
	font-family: 'Open Sans', 'Trebuchet MS', Verdana, sans-serif;
	margin: 0 auto;
}
a:link {
	color:#4576b6;
	text-decoration: none;
}
a:visited {
	color:#7d6bb7;
	text-decoration: none;
}
a:hover, a:focus {
	text-decoration: underline;
}
#container {
	margin: 0 auto;
	width: 90%;
	display: block;
}
#header, #main {
	margin: 0 auto;
	width: 90%;
}
#header {
	text-align: center;
}

h1, h2, h3 {
	font-family: 'Open Sans', 'Trebuchet MS', Verdana, sans-serif;
	font-weight: normal;
	margin: 5px;
	line-height: 110%;
}

p.nav {
	margin:0 0 15px 0;
	border-top:3px double #ccc; 
	border-bottom:3px double #ccc;
	font-size:90%;
	padding:3px 0;
}

.crosswordtable {
	border-collapse: collapse;
	border-spacing: 0;
	width: 100%;
	max-width: 100%;
}
.crosswordtable tr {
	width: 100%;
}
.crosswordtable td {
	width: calc(100% / [number of columns]); /*UPDATED 1.10.24 (Lynn, Stephen):Modified to allow for tables headers*/
	height: 3.3em;
	border: 1px solid #333;
	padding: 0;
	margin: 0;
	background-color: #333;
	position: relative;
	border-radius: 0px;
}
.crosswinput {
	width: 100% !important;
	height: 100% !important;
	padding: 0em !important;
	border: none !important;
	text-align: center !important;
	font-size: 1.8em !important;
	color: #000;
	background-color: #f4f4f4;
	margin-bottom: 0px !important;
	text-transform: uppercase;
}
.crosswordtable td input:focus {
	background-color: #fff;
}
.crosswordtable td span {
	color: #222;
	font-size: .9em;
	position: absolute;
	top: 1px;
	left: 2px;
}

/*UPDATED 1.10.24 (Lynn, Stephen): Added the following two CSS entries to include a visual indicator for found cells*/
.crosswordtable td .triangle {
    display: none; /* Initially hidden */
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 8px 0;
    border-color: transparent #5e8060 transparent transparent;
}

.crosswordtable td.found .triangle {
    display: block; /* Show when found */
}

/* End of Update*/

input.crosswinput.done {
	font-weight: normal;
	/*color: #ffffff;*/
	background-color:#cdf6cf !important;
}
 #puzzle-across h2, #puzzle-down h2 {
	font-size: 2em;
	font-weight: bold;
}
#puzzle-across li, #puzzle-down li {
	font-size: 1.4em;
	line-height: 1.6em;
}
#puzzle-across ol, #puzzle-down ol {
	padding-left: 20px;
	overflow-y: scroll;
	height: 595px;
}
li.nonumber {
  list-style-type: none;
  padding-bottom: .3em;
  text-indent: -1.5em;
  padding-left: 28px;
  margin-bottom: 10px;
  margin-right: 13px;
  padding-right: .1em;
  border-radius: 3px;
  padding-top: .2em;
}

.active, .clues-active {
	background-color: #FFF6C8;
	color: #333 !important;
}
.clue-done {
	color: #767676;
	text-decoration: line-through;
	 text-decoration-thickness: 2px;
}
#footer {
	margin: 0 auto;
	width: 90%;
	font-size: 80%;
	clear: left;
	text-align: center;
	margin-top: 10px;
	border-top: 3px double #ccc;
	padding: 10px;
}
#puzzle-wrapper, #puzzle-across, #puzzle-down {
	font: 62.5%/1.3em 'Trebuchet MS', sans-serif !important;
	padding: 10px;
}
#puzzle-wrapper {
	margin: 0 auto;
	border: 1px solid #000;
}

#across li div, #down li div {
	pointer-events: none;
}

/* UPDATED 06.05.24 (Dangerfield, Dominic): Moved the instructions and legend to a dialog box */
.dialog-box { 
	height: auto;
	max-height: 400px;
	width: 600px;
	background-color: white;
	border-radius: 5px;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 5;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
	text-align: center;
	display: flex;
	flex-direction: column;
	user-select: none;
}

.dialog-header {
	background-color: #000;
	color: #fff;
}

.dialog-body {
	background-color: white;
	padding-left: 10px;
	text-align: left;
	height: calc(100% - 50px);
	overflow-y: scroll;
}

.dialog-body > p {
	text-align: center;
}

.dialog-body:focus-visible {
	outline-offset: -2px !important;
}

.dialog-footer { 
	background-color: lightgray;
	padding-top: 10px;
	padding-bottom: 10px;
}

.close-dialog { 
	height: 30px;
	width: 60px;
}

.column-div {
	width:49%;
	text-align: center;
	display: inline-block !important;
	vertical-align: top !important;
}

.column-div p {
	display: inline-block;
	text-align: left;
}

.disabled {
	pointer-events: none;
}

#disabled-screen {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #fff;
	opacity: 0.8;
	z-index: 4;
	display: none;
  }
/* end of update */

/*UPDATED 1.12.24 (Lynn, Stephen): Added to hide screenreader only elements for sighted users */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
/*UPDATED 1.12.24 (Lynn, Stephen): Added to style live region */
.sr_announce{
    position: absolute;
    left: -999px;
	opacity: 0.0;	
	z-index: 998;
    pointer-events: none;
    outline:0px
}

/*
REPONSIVE STYLES
*/
/* Extra small devices (phone) */
@media screen and (max-width: 992px) {
	#puzzle-wrapper {
		float: none;
		width: 90%;
	}
	 #puzzle-across, #puzzle-down {
		width: 90%;
		float: none;
		margin:0 auto;
	}
}

/* Small devices (portrait tablets and large phones) */
@media screen and (min-width: 993px) and (max-width: 1199px) {
	#puzzle-wrapper {
		float: none;
		max-width: 650px;
		width: 90%;
	}
	#puzzle-across, #puzzle-down {
		width: 45%;
		float: left;
		margin: 8px 0 0 10px;
	}
}

/* Large devices (laptops/desktops) */
@media screen and (min-width: 1200px) {
	#main {
		display: flex;
		max-width: 1300px;
	}
	#puzzle-wrapper {
		float: left;
		width: 60%;
		max-width: 650px;
	}
	#puzzle-across, #puzzle-down {
		float: left;
		max-width: 350px;
		width: 45%;
	}
}
