.wha-crossword-row {

  height: 100%;
  min-width: 400px;
  margin: 0;

  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.wha-square.wha-letter.wha-first {
  position: relative;
}

input.wha-word {
  display: none;
}

.wha-square.wha-letter.wha-correct {
  background-color: #b3ffb4;
}

.wha-square.wha-letter.wha-correct .wha-char {
  background-color: transparent !important;
}

.wha-square.wha-letter.wha-error {
  background-color: #ff372c63 !important;
}

.wha-square.wha-letter.wha-error .wha-char {
  background-color: transparent !important;
}

.wha-row {
  margin: 0;
  line-height: 1.4;
}

.wha-square.wha-letter.wha-first div.wha-counter {
  content: '1';
  z-index: 3;
  position: absolute;
  font-size: 15px;
  line-height: 1em;
  width: 30px;
  height: 30px;
  top: 0;
  right: 0;
  text-align: right;
}

.wha-crossword-container {
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
}

.wha-square {
  border: 1px solid transparent;
}

.wha-square.wha-letter {
  border-color: #202020;
}

.wha-center {
  margin: 0 auto;
}

.wha-crossword-container .wha-word, .wha-crossword-container .wha-clue {
  display: inline-block;
  height: 1.5em;
  padding: 0 5px;
}

.wha-crossword-container .wha-word {
  text-align: right;
  width: 100px;
}

.wha-crossword {
  display: block;
  padding: 0 15px;
}

.wha-square {
  margin: 0 1px 1px 0;
  display: inline-block;
  font: 24px Calibri;
  width: 1.25em;
  height: 1.25em;
  line-height: 1.25em;
  vertical-align: middle;

  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.wha-letter {
  background-color: rgb(255, 255, 255);
  /*-webkit-touch-callout: text;*/
  -webkit-user-select: text;
  -khtml-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.wha-char:focus {
  -webkit-box-shadow: 0 0 0 2px rgba(255, 32, 32, 1);
  -moz-box-shadow: 0 0 0 2px rgba(255, 32, 32, 1);
  box-shadow: inset 0 0 0 2px rgba(255, 32, 32, 1);
}

#wha-crossword input.wha-char {
  z-index: 2;
  position: relative;
  background-color: transparent;
  font-size: inherit;
  text-transform: uppercase;
  outline: 0;
  border: 0;
  padding: 0;
  margin: -1px 0 0 -1px;
  width: 1.35em;
  height: 1.35em;
  text-align: center;
  background: none;
  cursor: pointer;
}

.wha-hide {
  visibility: hidden;
}

.wha-clueReadOnly {
  border: 0;
  outline: 0;
}


.crossword_wrapper {
  display: flex;
  align-items: center;
  width: max-content;
  margin: 0 auto !important;
  flex-direction: row;
}

.radio_btn {
  padding: 0 10px;
  margin: 0;
}

.wha-crossword-questions {
  max-width: 300px;
  padding: 0 25px;
}




/*** Modal window ***/
#modal_form_crossword {
  width: 100%;
  max-width: 25%;
  border-radius: 5px;
  border: 1px #7f7f7f solid;
  background: #ffffff;
  position: fixed;
  left: 37%;
  margin-top: -150px;
  display: none;
  z-index: 5;
  padding: 30px 10px;
}
#modal_form_crossword #modal_close {
  width: 21px;
  height: 21px;
  position: absolute;
  top: 0;
  right: 10px;
  cursor: pointer;
  display: block;
  font-size: 16px;
  font-family: cursive;
}
#modal_form_crossword .content {
  padding: 15px;
  text-align: center;
}

#wha-overlay {
  z-index: 4;
  position:fixed;
  background-color:#000;
  opacity:0.6;
  -moz-opacity:0.8;
  filter:alpha(opacity=80);
  width:100%;
  height:100%;
  max-width: 100%;
  top:0;
  left:0;
  cursor:pointer;
  display:none;
}
/*** ----  End modal --- ***/

/* @media screen and (max-width: 767px) {
  .wha-square,
  #wha-crossword input.wha-char {
      font-size: inherit;
  }

  .wha-clue {
      width: 300px;
  }

  body .crossword_wrapper {
      display: block;
  }

  .wha-crossword-questions {
      max-width: 100%;
  }

  .wha-crossword-row {
      min-width: auto;
  }

  .wha-crossword {
      width: 100%;
      overflow: scroll;
  }
  .crossword_wrapper {
      display: flex;
      align-items: center;
      width: 100%;
      margin: 0 auto;
      flex-direction: row;
      overflow: hidden;
      padding-top: 50px;
  }

  .wha-crossword-container {
      display: flex;
      align-items: center;
      width: max-content;
      margin: 0 auto;
      flex-direction: row;
  }

  .wha-crossword-row{
      overflow: scroll;
  }

  #modal_form_crossword {
      width: 100%;
      max-width: 90%;
      border-radius: 0;
      left: 0;
      margin: 0 auto;
      right: 0;
  }

} */




/* Custom Styling by LL */


/* Wrapper */

.crossword_wrapper {
  display: block;
  width: unset;
  min-width: 730px;
  padding: 50px;
  background-color: #F4F2F0;
}

@media screen and (max-width: 767px) {
  .crossword_wrapper {
    width: 100%;
    padding: 40px 20px;
    min-width: unset;
  }  
}


/* The Board */

.wha-crossword {
  padding: 0;
}

.wha-crossword-row {
  overflow: scroll;
  min-width: unset;
}

.wha-crossword-container {
  width: max-content;
  margin: 0 auto;
}  

.wha-row {
  line-height: 0.5;
}

.wha-square {
  margin: 0 -1px -1px 0;
  font-family: "pnova", Helvetica, Roboto, Arial, sans-serif;
  font-weight: 600;
  color: #896843;
  width: 2.1rem;
  height: 2.1rem;
  line-height: 2.1rem;
}

.wha-square.wha-letter {
  border-color: #896843;
}

#wha-crossword input.wha-char {
  font-family: "pnova", Helvetica, Roboto, Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #896843;
  width: 2.1rem;
  height: 2.1rem;
  margin: 0;
}

.wha-square.wha-letter.wha-first div.wha-counter {
  z-index: 1;
  text-align: left;
  top: 2px;
  left: 2px;
  font-size: 0.6rem;
  font-family: "pnova", Helvetica, Roboto, Arial, sans-serif;
  font-weight: 600;
}

/* .wha-square.wha-letter.wha-error {
  background-color: white !important;
}

.wha-square.wha-letter.wha-error .wha-char {
  background-color: transparent !important;
}

.wha-square.wha-letter.wha-correct {
  background-color: #DBD1C6;
}

.wha-square.wha-letter.wha-correct .wha-char {
  background-color: transparent !important;
} */

@media screen and (max-width: 767px) {

}


/* The Questions List */

.wha-crossword-questions {
  max-width: unset;
  padding: 0;
}

.wha-crossword-questions-h3 {
  font-family: "merriweather", Helvetica, Roboto, Arial, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.6rem;
}

.wha-word-container {
  display: flex;
  flex-wrap: nowrap;
}

.wha-word-container-column {
  flex: 1 1 100%;
}

.wha-word-container-column:first-of-type {
  margin-right: 50px;
}

.wha-crossword-questions-ol {
  font-family: "merriweather", Helvetica, Roboto, Arial, sans-serif;
  font-size: 0.9rem;
}

.wha-crossword-questions-li {
  padding-left: 0.4rem;
  line-height: 1.2rem;
}

.wha-crossword-questions-a-reveal {
  font-weight: bold;
  opacity: 1;
  transition: opacity 0.2s linear;
}

.wha-crossword-questions-a-reveal-is-hidden {
  opacity: 0;
}

.wha-crossword-questions-solution {
  font-weight: bold;
  overflow: hidden;
  max-height: 0;
  transition: max-height 1s ease;
}

.wha-crossword-questions-solution-revealed {
  max-height: 20px;
}

.wha-line {
  margin-bottom: 0.5rem;
}

@media screen and (max-width: 767px) {
  .wha-word-container {
    flex-wrap: wrap;
  }

  .wha-word-container-column:first-of-type {
    margin-right: 0;
  }
}


/* The Buttons */

.wha-crossword-questions-button-container {
  margin: 0 auto;
  margin-top: 60px;
  width: max-content;
}

.wha-crossword-questions-button {
  border: 1px solid #896843;
  background-color: transparent;
  padding: 16px 38px;
  font-family: "pnova", Helvetica, Roboto, Arial, sans-serif;
  font-weight: 600;
  color: #896843;
  cursor: pointer;
  transition: background-color 0.1s linear, color 0.1s linear;
}

.wha-crossword-questions-button:hover {
  background-color: #896843;
  color: white;
}
