/**
* 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
*/

#mainactivity {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  margin: 0px -10px;
}

/**
* Styles for the puzzle
*/
#puzzle {
  border: 1px solid black;
  padding: 0;
  touch-action: none;
}

#puzzle > div { /* rows */
  width: 100%;
  margin: 0 auto;
  line-height: initial;
}

/* style for each square in the puzzle */
.puzzleSquare {
  height: 5vw;
  width: 5vw;
  text-transform: uppercase;
  background-color: white;
  border: 1px solid #151515;
  font: 4vw sans-serif;
  background-image: linear-gradient(#212528, #212528);
  padding: 0 !important;
  
}
@media only screen and (min-width: 850px) {
  .puzzleSquare {
    height: 3rem;
    width: 3rem;
    font: 2rem sans-serif;
  }
}

button::-moz-focus-inner {
  border: 0;
}

/* indicates when a square has been selected */
#puzzle .selected {
  background-color: orange;
  background-image: linear-gradient(orange, orange);
}

/* indicates that the square is part of a word that has been found */ 
#puzzle .found {
  background-color: #0a4988;
  background-image: linear-gradient(#0a4988, #0a4988);
  color: white;
}

#puzzle .solved {
  background-color: purple;
  color: white;
}

/* indicates that all words have been found */
#puzzle .complete {
  background-color: #005600;
  background-image: linear-gradient(#005600, #005600);
}

/**
* Styles for the word list
*/
#words-editor {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
}
#words {
  max-width: 30rem;
  padding: 1em;
  list-style-type: none;
  text-align: left;
}
@media only screen and (min-width: 600px) {
  #words {
    -moz-column-count: 2;
    -webkit-column-count: 2;
    column-count: 2;
    column-gap: 20px;
  }
}

#words li {
  padding: 3px 0;
  font: 1em sans-serif;
}

/* indicates that the word has been found */
.wordFound {
  text-decoration: line-through;
  color: gray;
}

/**
* Styles for the controls
*/
#controls {
  max-width: 30rem;
  padding: 1em;
  border: none;
  text-align: left;
}
label {
  white-space: nowrap;
  margin-top: 1em;
}
input {
  border: none;
  border-bottom: 1px solid #151515;
  font-size: 1em;
}
input.word {
  border-radius: none;
  box-shadow: none;
}
input[type="number"] {
  width: 3rem;
}
select {
  max-width: 10rem;
}
#create-grid, #solve {
  display: block;
  margin-top: 1rem;
}
#secret-word {
  text-transform: uppercase;
}

#result-message {
  font-size: 1.2em;
}