html,
body {
  height: 100%;
  font-family: Courier New;
  margin: 0;
  padding: 0;
}

#container {
  display: flex;
  background-color: rgb(18, 18, 19);
  align-items: center;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

#game {
  width: 95%;
  max-width: 500px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(58, 58, 60);
}

#help,
#stats {
  color: rgb(58, 58, 60);
  font-size: 1.5rem;
  cursor: pointer;
}

.title {
  color: gainsboro;
  font-family: Courier New;
  font-size: 5vmin;
  font-weight: normal;
  margin: 0.3rem 0 0.2rem 0;
  text-align: center;
  letter-spacing: 0.1rem;
}

@media only screen and (max-width: 480px) {
  .title {
    font-size: 1.5rem;
  }
}

#board-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  overflow: hidden;
  flex-direction: column;
}

/*
#final-score {
  color: gainsboro;
}
*/

#board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 5px;
  padding: 10px;
  box-sizing: border-box;
}

.row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 5px;
}

.square {
  border: 2px solid rgb(58, 58, 60);
  width: 8vmin;
  height: 8vmin;

  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 1.7rem;
  line-height: 2rem;
  font-weight: bold;
  vertical-align: middle;
  box-sizing: border-box;
  color: gainsboro;
  text-transform: uppercase;
  user-select: none;
  cursor: pointer;
}

.square.incorrect-letter {
  background-color: rgb(58, 58, 60);
  border-color: rgb(58, 58, 60);
}

.square.correct-letter {
  background-color: rgb(181, 159, 59);
  border-color: rgb(181, 159, 59);
}

.square.correct-letter-in-place {
  background-color: rgb(83, 141, 78);
  border-color: rgb(83, 141, 78);
}

@media only screen and (max-width: 500px) {
  .square {
    min-width: 12vw;
    min-height: 12vw;
  }
}

#keyboard-container {
  height: 29vh;
}

.keyboard-row {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto 8px;
  touch-action: manipulation;
}

.keyboard-row button {
  font-family: inherit;
  font-weight: bold;
  border: 0;
  padding: 0;
  margin-right: 3px;
  height: 8vh;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  background-color: rgb(129, 131, 132);
  color: rgb(215, 218, 220);
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
}

.keyboard-row button.wide-button {
  flex-grow: 1.5;
}

.keyboard-row button.incorrect-letter {
  background-color: rgb(58, 58, 60);
}

.keyboard-row button.correct-letter {
  background-color: rgb(181, 159, 59);
}

.keyboard-row button.correct-letter-in-place {
  background-color: rgb(83, 141, 78);
}

.spacer-half {
  flex-grow: 0.5;
}

#alert {
  font-family: Courier New;
  font-weight: bold;
  display: none;
  text-align: center;
  z-index: 1;
  background-color: white;
  border-radius: 6px;
  top: 15%;
  position: absolute;
  width: 40%;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-right: 0.7rem;
  padding-left: 0.7rem;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: rgb(18, 18, 19);
  margin: 5% auto;
  padding: 20px;
  width: 80%;
  color: gainsboro;
  max-width: 500px;
  font-weight: normal;
}

.modal-content hr {
  border: 1px solid rgb(58, 58, 60);
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#bard {
  justify-content: center;
  text-align: center;
}

#bard-noodle {
  width: 70%;
}

#footer {
  justify-content: center;
  text-align: center;
}

#bard-wink {
  width: 20%;
  margin-bottom: -1rem;
  justify-content: center;
  text-align: center;
}

#methodology {
  margin-left: 40px;
}

.hidden {
  display: none;
}

.footer {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.countdown {
  padding-right: 12px;
  width: 50%;
}

.statistic-container {
  flex: 1;
}

.statistic.timer {
  font-variant-numeric: initial;
}

.statistic-container .statistic {
  font-size: 36px;
  display: flex;
}

#stats-header {
  font-family: Courier New;
  font-size: 110%;
  text-align: center;
  margin-top: -1rem;
  margin-bottom: -0.2rem;
}

h1, h2, h3 {
  font-weight: normal;
}