/**
* Wordfind.js 0.0.1
* (c) 2012 Bill, BunKat LLC.
* Wordfind is freely distributable under the MIT license.
* For all details and documentation:
*     http://github.com/bunkat/wordfind
*/

/*body {
  font: 1em Arial;
}

p {
  font: 22pt sans-serif;
  margin: 20px 20px 0px 20px;
}

h1 {
  text-align: center; 
}*/
#GameBackground{
	clear: both;
	text-align:center;
	background-image:url(../../images/games/word-searches/lrg_tiled_bg.gif);
	background-position:left top;
	background-repeat: repeat;
	position: relative;
	transform-origin: 0 0;
	width:300%;
	height:2000px;
	color:#333;
	background-color: #C03;
	font-family: Arial, Verdana, Helvetica, sans-serif;
	font-size:16px;
}
#GameContent{
	clear: both;
	text-align:center;
	position:relative;
	width: 900px;
	height:510px;
	color:#FFF;
	padding: 10px 0px 10px 10px;
	overflow:hidden;
}
#GameContent a{color:#FFF;font-family: Arial, Verdana, Helvetica, sans-serif;
	font-size:16px;}
#GameContent p{font-family: Arial, Verdana, Helvetica, sans-serif;
	font-size:16px; color:#FFF;}
#PuzzleImage{ position: absolute; left:0px; top:0px;
	padding: 0px 0px 0px 0px;
	float:left;z-index:19;width: 300px;display:none;}

#StartButton{position:relative;
	width: 450px;
	padding: 20px 20px 10px 10px;
	float:right; z-index:20;
}
#StartText{ display:none;}
#mainpuzzle {clear: both;
  /*margin: 0 auto;max-width: 60rem;*/
  width: 100%;
  
  border: 0px solid red;
  text-align: left; /* to center #puzzle on small devices */
  display: none;
}
@media only screen and (min-width: 600px) {
  #mainpuzzle {clear: both;
    text-align: left;
	width: 100%;
  }
  #PuzzleImage{display:block;}
}

/**
* Styles for the puzzle
*/
#puzzle {
	position:relative;

  display: inline-block;
  border: 0px solid black;
  padding: 0px;
  float: left;
}

#puzzle > div { /* rows */
  margin: 0 auto;
}

/* style for each square in the puzzle */
.puzzleSquare {
  /*height: 2.8vw;
  width: 2.8vw;font: 2vw sans-serif;*/
  height: 30px;
  width: 30px;
  font: 24px sans-serif;
  /*text-transform: uppercase;*/
  background-color: white;
  border: 0;
  
  margin: 1px 1px 1px 1px;
}
/*@media only screen and (min-width: 600px) {
  #puzzle {
    float: left;
    padding: 0rem;
  }
  .puzzleSquare {
    height: 30px;
    width: 30px;
    font: 25px sans-serif;background-color: #EEE;padding: 1px;
  }
}*/

/*button::-moz-focus-inner {
  border: 0;
}*/

/* indicates when a square has been selected */
#puzzle .selected {
	background-color: #CCC;
}

/* indicates that the square is part of a word that has been found */ 
#puzzle .found {
	background-color: #939;
	color: white;
}

#puzzle .solved {
  background-color: purple;
  color: white;
}

/* indicates that all words have been found */
#puzzle .complete {
	background-color: #939;
}

/**
* Styles for the word list
*/
#wordarea { padding: 26px 0px 0px 10px; min-height: 100%;overflow: visible;
  column-gap: 0px;
}


#words {padding:10px 0 0 20px;
list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    max-height: 80vh; /* Ensures it doesn't go off-screen */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#words li {
    width: 48%; /* Adjust to fit two items per row */
	margin: 0px 0; /* Reduce vertical spacing */
    padding: 2px 0; /* Adjust padding to tighten boxes */
    line-height: 1.2; /* Reduce space inside the text */
}


.word {width: 160px;border: 0px solid black;font-size: 1em;}

/* indicates that the word has been found */
.wordFound {
  text-decoration: line-through;
  color: gray;
}

/**
* Styles for the controls
*/
#controls {
  display: inline-block;
  max-width: 1rem;
  padding: 1em;
  border: none;
  text-align: left;
}
label {
  white-space: nowrap;
  margin-top: 1em;
}
/*input {
  border: none;
  border-bottom: 1px solid #ccc;
  font-size: 1em;
}
input[type="number"] {
  width: 2rem;
}*/
select {
  max-width: 10rem;
}
#create-grid, #solve {
  display: block;
  width:140px;
  float:left;
  background-color:#939;
}
#secret-word {
  /*text-transform: uppercase;*/
}

#result-message {
  font-size: 1.2em;
}
#titletext{display:none; color:#FC3; font-weight:bold; font-size:24px;}

#results{ position:absolute; 
    right: 30px; top:10px; width:350px; height: 340px; border:#CCC solid 4px; background-color:#939; border-radius: 10px; padding:10px 5px 5px 5px;z-index:70; display:none;box-shadow: 4px 4px 8px #333;}
	
#exitbutton{position: absolute; display:none; float:right; z-index:60; right:20px; top:20px;}

h3{color:#FFF;}