
.crossword h1 {
  text-align: center; /* to center #puzzle on small devices */
}

.crossword #main {
  margin: 0 auto;
  max-width: 80rem;
  text-align: center; /* to center #puzzle on small devices */
}
@media only screen and (min-width: 600px) {
  .crossword #main {
    text-align: left;
  }
}

/**
* Styles for the puzzle
*/

.crossword #puzzle > div { /* rows */
  width: 100%;
  margin: 0 auto;
}

/* style for each square in the puzzle */
.crossword .puzzleSquare {
  padding: 0 !important;
  height: 7vw;
  width: 7vw;
  max-width: calc(100vmin/15);
  max-height: calc(100vmin/15);
  text-transform: uppercase;
  background-color: white;
  border: 0;
  font: 5vw sans-serif;
}

/* inherit dyslexia font */
.dyslexia .crossword .puzzleSquare {
  font-family: inherit !important;
}

.crossword button::-moz-focus-inner {
  border: 0;
}

.crossword #puzzle .solved {
  background-color: purple;
  color: white!important;
}

/* indicates that all words have been found */
.crossword #puzzle .complete {
  background-color: green;
}

/**
* Styles for the word list
*/
.crossword #words {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  padding: 1em;
  text-align: center;
}
@media only screen and (min-width: 600px) {
  .crossword #words {
    /*-moz-column-count: 2;
    -webkit-column-count: 2;
    column-count: 4;
    column-gap: 20px;*/
  }
}

/* inherit dyslexia font */
.dyslexia .crossword #words li {
  font-family: inherit !important;
}

.crossword #words li {
  padding: 3px 0;
  font: 1em sans-serif;
}

/* indicates that the word has been found */
.crossword .wordFound {
  text-decoration: line-through;
  color: gray;
}

/**
* Styles for the controls
*/
.crossword #controls {
  display: inline-block;
  max-width: 30rem;
  padding: 1em;
  border: none;
  text-align: left;
}
.crossword label {
  white-space: nowrap;
  margin-top: 1em;
}
.crossword input {
  border: none;
  font-size: 1em;
}

.crossword input[type="number"] {
  width: 2rem;
}
.crossword select {
  max-width: 10rem;
}
.crossword #create-grid, #solve {
  display: block;
  margin-top: 1rem;
}
.crossword #secret-word {
  text-transform: uppercase;
}

.crossword #result-message {
  font-size: 1.2em;
}