/**
* 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
*/

@font-face { font-family: 'Century Gothic'; src: url('https://www.spellzone.com/images/fonts/GOTHIC.TTF') format('truetype')}

body {
  font: 1em Arial; padding: 10px 10px 10px 10px; width:900px;
}

/*p {
  font: 22pt sans-serif;
  margin: 20px 20px 0px 20px;
}

h1 {
  text-align: center; /* to center #puzzle on small devices */
}*/

#mainpuzzle {
  /*margin: 0 auto;max-width: 60rem;*/
  width: 100%;
  border: 0px solid red;
  text-align: center; /* to center #puzzle on small devices */
}
@media only screen and (min-width: 600px) {
  #mainpuzzle {
    text-align: left;
  }
}

/**
* Styles for the puzzle
*/
#puzzle {/**/float: left;
  display: inline-block;
  border: 0px solid black;
  padding: 5px;
}

#puzzle > div { /* rows */
  margin: 0 auto;
}

/* style for each square in the puzzle */
.puzzleSquare {
  height: 9vw;
  width: 9vw;
  /*text-transform: uppercase;*/
  background-color: white;
  border: 0;
  font: 5vw Century Gothic;
  margin: 2px 2px 2px 2px;
}
@media only screen and (min-width: 600px) {
  #puzzle {
    float: left;
    padding: 0rem;
  }
  .puzzleSquare {
    height: 70px;
    width: 70px;
    font: 40px Century Gothic; background-color: #FFF;
  }
}

/*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: #06C;
	color: white;
}

#puzzle .solved {
  background-color: purple;
  color: white;
}

/* indicates that all words have been found */
#puzzle .complete {
	background-color: #06C;
}

/**
* Styles for the word list
*/
#words {
  display: inline-block;
  max-width: 120px;
  padding: 2em;
  list-style-type: none;
  text-align: left;
  font: 32px Century Gothic;
  float:right;
}
@media only screen and (min-width: 600px) {
  #words {
    -moz-column-count: 1;
    -webkit-column-count: 1;
    column-count: 1;
    column-gap: 20px;
	font: 20px Century Gothic;
  }
}

#words li {
	max-width: 100px;
	padding: 3px 0;
	/*font: 1em sans-serif;*/
}

.word {width: 100px;border: 0px solid black;font-size: 120%; text-align:right;}

/* 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;
  margin-top: 1rem;
}
#secret-word {
  text-transform: uppercase;
}

#result-message {
  font-size: 1.2em;
}

.divFooter {
    position: fixed;
    bottom: 0;
	width: 96%;
	padding: 10px 10px 10px 10px;
  }
  
@media only screen and (max-width: 999px) {
	body {width:100%;}
}
@media print {
.divFooter { display:none;
  }
  #mainpuzzle {
     padding:60px 0 0 0;
  }
}