* {
  box-sizing: border-box;
}
body {
  padding: 0;
  margin: 0;
  background: #ffffff;
  font-family: Helvetica, sans-serif;
}
svg {
  min-width: 20px;
  min-height: 20px;
  max-width: 20px;
  max-height: 20px;
  fill: #555555;
  margin: 0 4px;
}
.container {
  width: 100%;
  height: 100%;
  display: inline-block;
}
.row {
  width: 100%;
  padding: 20px auto;
  margin: 20px auto;
}
.content {
  width: 80%;
  position: relative;
  margin: 0 auto;
  background: #fff;
}
#gameArea,
#instructionsPopup {
  display: none;
}
/* Instructions */
.closeinstructions {
  color: #000;
  padding: 5px;
  position: absolute;
  right: 10px;
  top: 5px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}
.goahead {
  background: #e1d2e0;
  color: #000;
  padding: 5px;
  position: absolute;
  right: 0;
  top: 45%;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}
.bggreen {
  background: #32cd32;
}
.bgred {
  background: #ff0000;
}
.selectlevel {
  margin: 0 auto;
  padding: 10px 20px;
  text-align: center;
  border: 0px solid #000;
}
.selectlevel img {
  margin: 10px 0;
  cursor: pointer;
}
.selectlevel button#normalLevel {
  background: #32cd32;
  margin-bottom: 10px;
}
.selectlevel button#expertLevel {
  background: #ff0000;
  margin-bottom: 10px;
}
.choosedifficulty {
  display: inline-block;
  width: 100%;
  margin: 8% auto;
}
.instructions {
  position: absolute;
  top: 5px;
  z-index: 1;
  background: #fff;
  margin: 0 auto;
  border: 2px solid #000;
  left: 50%;
  width: 98%;
  display: none;
  transform: translateX(-50%);
}
@media (min-width: 1250px) {
  .instructions {
    /* left: 30%; */
    top: 20px;
    width: 45%;
  }
}
.gameheading {
  text-align: center;
  width: 95%;
  margin: 10px auto;
}
.gameheading h2 {
  margin: 5px 5px;
}
.gameheadingbox {
  padding: 2px;
  font-size: 18px;
  width: 30px;
  height: 25px;
  line-height: 20px;
  display: inline-block;
  border: 1px solid #000;
}
.instructionwords {
  border: 3px solid #000;
  border-radius: 10px;
  padding: 5px 0 5px 0;
  margin-bottom: 5px;
}
.instructionwords h3 {
  margin: 5px 0;
}
.wordletter_i {
  width: 24px;
  height: 24px;
  border: 2px solid #000;
  margin: 2px;
  font-weight: bold;
  display: inline-block;
  text-align: center;
  vertical-align: middle;
}
.gameheading h3 {
  margin: 5px 0;
}
.gameheading h4 {
  margin-top: 0;
  margin-bottom: 0;
}
.typeletters_i {
  text-align: center;
  padding: 5px 0;
}
.typeletter_ie {
  width: 24px;
  height: 24px;
  border: 2px solid #000;
  border-radius: 2px;
  font-weight: bold;
  display: inline-block;
  text-align: center;
}
.leftright1,
.leftright2,
.leftright3 {
  border: 2px solid #000;
  border-radius: 3px;
  margin: 2px 0;
  padding: 5px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.typeletter_lr1 {
  width: 26px;
  height: 26px;
  padding: 3px;
  border: 2px solid #000;
  border-radius: 2px;
  font-size: 18px;
  font-weight: bold;
  display: inline-block;
  text-align: center;
  line-height: 20px;
}
@media (min-width: 1250px) {
  .typeletter_lr1 {
    width: 30px;
    height: 30px;
  }
}
.text_ie {
  width: 150px;
  height: 22px;
  display: inline-block;
  text-align: center;
  margin: 2px 0;
  font-weight: bold;
  border: 2px solid #000;
}

.header {
  background: #8ce3ff;
}
.header h1 {
  margin: 0 0 10px 0;
  padding: 10px 0;
  text-align: center;
}
/* Levels and Scores */
.levelsscoreslives {
  text-align: center;
}
#levelsscoreslives {
  width: 100%;
  margin: 5px auto 10px;
  display: flex;
}
@media (min-width: 768px) {
  #levelsscoreslives {
    margin: 10px auto;
  }
}
#levelsscoreslives h1 {
  margin: 0 5px;
  font-size: 14px;
}
@media (min-width: 768px) {
  #levelsscoreslives h1 {
    margin: 0 10px;
  }
}
#levelsscoreslives img {
  vertical-align: middle;
  cursor: pointer;
  margin: 0 5px;
}
.levels {
  background: #8ce3ff;
  padding: 5px 10px;
  flex-grow: 1;
  flex-basis: 0;
}
.bankedpoints {
  background: #8ce3ff;
  padding: 5px 10px;
  flex-grow: 1;
  flex-basis: 0;
}
.pointsthisround {
  background: #8ce3ff;
  padding: 5px 10px;
  flex-grow: 1;
  flex-basis: 0;
}
#livesleft {
  width: 100%;
  position: relative;
  margin: 0 auto;
  flex-grow: 1;
  flex-basis: 0;
  margin: 0 10px;
}
.livesleft {
  font-size: 14px;
  margin: 0 auto;
  background: #ff8e4f;
  padding: 5px 10px;
}
.livesleftspacer {
  flex-grow: 1;
  flex-basis: 0;
  margin: 0 2px;
}
@media (min-width: 768px) {
  .livesleftspacer {
    margin: 0 10px;
  }
}
.questionenvelope {
  right: 4%;
  top: 0;
}
.questionenvelope img {
  vertical-align: top;
  cursor: pointer;
}

/* Question Word Letters */
.questionanswers {
  width: 100%;
}
.questionwords {
  padding: 10px;
  margin: 0 auto;
}
#word1,
#word2,
#word3 {
  padding-left: 0%;
  text-align: center;
}
.wordletter {
  width: 40px;
  height: 40px;
  border: 2px solid #000;
  font-size: 30px;
  margin: 2px;
  font-weight: bold;
  display: inline-flex;
  text-align: center;
  vertical-align: middle;
  background: #e5e5e5;
  justify-content: center;
  align-items: center;
}
.correcttypeletter,
.correctAnswerBox,
.correctwordletter {
  background: #32cd32;
}
.incorrectAnswerBox {
  background: #ff0000;
}
.shake {
  animation: shake 0.5s;
}
@keyframes shake {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(5px);
  }
  40% {
    transform: translate(-5px);
  }
  60% {
    transform: translate(5px);
  }
  80% {
    transform: translate(-5px);
  }
  100% {
    transform: translate(0);
  }
}
/* Answers */
.answers {
  padding: 20px;
  margin: 0 auto;
  text-align: center;
}
.wordNumbers {
  font-weight: bold;
  font-size: 24px;
  padding: 0px;
}
.submitWordsBtn {
  background: #8ce3ff;
  margin: 0 10px;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
}
.answersbox {
  padding: 5px 10px;
  text-align: center;
  font-size: 24px;
  border: 2px solid #000;
  margin: 2px 0;
  height: 40px;
}
/* Type Letters */
.typelettersE,
.typelettersB {
  text-align: center;
  padding: 10px 0;
  margin: 0 10px;
}
.typelettersK {
  text-align: center;
  padding: 10px 0;
  width: 50%;
  margin: 0 auto;
}
.typeletterE,
.typeletterB {
  width: 40px;
  height: 40px;
  padding: 5px;
  border: 2px solid #000;
  border-radius: 2px;
  font-size: 30px;
  font-weight: bold;
  display: inline-block;
  text-align: center;
  margin: 2px 0;
}
.typeletterK {
  width: 40px;
  height: 40px;
  padding: 5px;
  border: 2px solid #000;
  border-radius: 2px;
  font-size: 30px;
  font-weight: bold;
  display: inline-block;
  text-align: center;
  margin: 3px 0;
}
.letterGuessesRemaining {
  display: none;
  text-align: center;
}
@media (max-height: 1280px) and (max-width: 1280px) {
  .typeletterB,
  .typeletterE,
  .typeletterK {
    display: none;
  }
  .letterGuessesRemaining {
    display: block;
  }
}

/* Answer Words */
#answerswords {
  display: none;
  width: 30%;
  margin: 0 auto;
  text-align: center;
}
#answerswords h1 {
  margin: 0;
}
#answerWords {
  font-size: 20px;
  margin-bottom: 10px;
}
/* All Letters */
.allletters {
  text-align: center;
  padding: 10px 20px 20px;
}
.letters {
  width: 40px;
  padding: 5px;
  margin: 1px;
  cursor: pointer;
  border: 2px solid #000;
  border-radius: 2px;
  font-size: 20px;
  font-weight: bold;
  display: inline-block;
}
/* Next Level Button */
#nextLevelFullBtn {
  display: none;
}
.nextlevel {
  text-align: center;
  padding: 0 0 20px 0;
}
.nextlevelbtn {
  background: #000;
  color: #fff;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  border: none;
}
.nextlevelfullbtn {
  background: #ffcc00;
  color: #000;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  border: none;
  display: inline-block;
}
/* Game Over */
#gameOver {
  margin: 20px auto;
  padding: 40px;
  background: #000;
  color: #fff;
  text-align: center;
  display: none;
}
#gameOver h1 {
  margin-top: 0;
}
.playagain,
.changedifficulty {
  background: #FFFFFF;
  color: #000;
  padding: 5px 10px;
  margin: 5px 0;
  border: none;
  cursor: pointer;
  font-size: 20px;
}
/* How to Play */
.howtoplay {
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  padding: 5px 10px;
  margin: 5px auto;
  position: absolute;
}
.howtoplayscreen {
  position: absolute;
  top: 0%;
  width: 40%;
  display: none;
  margin-left: 29%;
  background: #ffffff;
  padding: 20px;
}
.howtoplayscreen h1 {
  text-align: center;
}
.howtoplayscreen ul li {
  padding: 1x 0;
  font-size: 20px;
}
#hideHowToPlay {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  background: none;
  border: none;
  font-weight: bold;
  cursor: pointer;
}
#questionmark:hover,
#refresh:hover {
  cursor: pointer;
}
#questionMarkDifficulty {
  position: absolute;
  top: 20px;
  right: 20px;
}
#questionMarkDifficulty:hover {
  cursor: pointer;
}
.nextlevelbtninfo button {
  padding: 5px 10px;
  font-size: 16px;
  border-radius: 3px;
  min-width: 140px;
}
.answer-block {
  padding: 10px 0;
}
.answer-block span {
  display: none;
}
@media (max-height: 1280px) and (max-width: 1280px) {
  .answer-block {
    display: none;
    position: fixed;
    width: 90%;
    background: white;
    border: #000 solid 2px;
    padding: 16px 0 0;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    z-index: 1;
  }
  .answer-block input {
    width: 100%;
  }
  .answer-block input[type="button"] {
    margin: 5px 0;
  }
  .answer-block span {
    display: block;
    color: #000;
    padding: 5px;
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
  }
}
.guess-button {
  display: none;
}
@media (max-height: 1280px) and (max-width: 1280px) {
  .guess-button {
    display: block;
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #8ce3ff;
    border-radius: 0;
  }
}
/* Utility Classes start */
.d-flex {
  display: flex;
}
.flex-column {
  flex-direction: column;
}
.flex-grow-1 {
  flex-grow: 1;
}
.align-items-center {
  align-items: center;
}
.justify-content-center {
  justify-content: center;
}
.justify-content-end {
  justify-content: flex-end;
}
/* Utility Classes end */
button {
  border: none;
  padding: 10px 20px;
  font-size: 20px;
  border-radius: 5px;
  font-weight: 600;
  min-width: 200px;
}
button:hover {
  cursor: pointer;
}
input[type="button"] {
  border: none;
  margin: 2px 10px;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: 600;
  min-width: 100px;
}
