body,
td,
th {
  font-family: Roboto, sans-serif;
  font-size: 16px;
  margin: 0 0;
}

.page {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: auto;
  position: absolute;
}

.scroll-area {
  overflow-y: auto;
  flex: 1 1 auto;
  position: relative;
  margin-left: 10px;
  margin-right: 10px;
}

.guess-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.guess-word {
  display: flex;
  flex-direction: row;
  font-size: 28px;
  padding: 5px;
}

.guess-letter {
  width: 30px;
  height: 30px;
  border: 1px solid black;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 3px;
}

.letter-fixed {
  background-color: #00bfff;
}

.letter-guessed {
  background-color: #3fee3f;
}

.letter-current {
  animation: glowcursor linear 2s infinite;
}

@keyframes glowcursor {
  0% {
    background-color: lightgray;
  }
  50% {
    background-color: yellow;
  }
  100% {
    background-color: lightgray;
  }
}

.hint-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  margin: 10px;
}

.hint-button {
  margin: 5px;
  padding: 5px;
  cursor: pointer;
}

.hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 5px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  min-width: 3in;
  max-width: 8in;
}

.remaining {
  text-align: center;
}

.virtual-keyboard-area {
  user-select: none;
  background-color: silver;
}

.virtual-keyboard {
  max-width: 550px;
  margin: auto;
  padding: 2px;
  border-radius: 5px;
  font-size: 28px;
  text-align: center;
}

.keyboard-row {
  display: flex;
  flex-direction: row;
  /* width: 100%; */
}

.keyboard-key {
  background-color: white;
  border: 1px solid #222222;
  border-radius: 5px;
  margin: 2px;
  cursor: pointer;
  flex: 1 1 0px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.keyboard-key.green {
  background-color: #3fee3f;
  color: black;
}

.keyboard-key.blue {
  background-color: #00bfff;
  color: black;
}

.keyboard-key.blue-and-green {
  background: linear-gradient(90deg, #00bfff 50%, #3fee3f 50%);
  color: black;
}

.keyboard-key.disabled {
  background-color: #ccc;
  color: #999;
  cursor: default;
}

.keyboard-key.normal {
  background-color: #caf3ca;
  color: black;
}

.titlerow {
  background-color: silver;
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 0.8;
}

.titlerow-left {
  display: flex;
  align-items: center;
}

.titlerow a {
  color: inherit;
  text-decoration: inherit;
}

.titlerow .title {
  color: white;
  text-align: left;
  font-weight: bold;
  font-size: 28px;
  text-shadow: 2px 2px 4px black;
  justify-content: left;
}

.titlerow .daily {
  font-size: 12px;
  color: #333;
}

.titlerow button {
  margin-left: 10px;
  margin-right: 10px;
  margin-top: 2px;
  margin-bottom: 2px;
}

.game-info {
  display: flex;
  justify-content: center;
  margin: 4px;
}

.game-number {
  color: #444;
  text-align: center;
  margin-left: 20px;
  margin-right: 20px;
}

.victory {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  max-width: 8in;
}

#snackbar {
  /* By Default, Hidden */
  visibility: hidden;
  left: 0;
  right: 0;
  margin-left: 15%;
  margin-right: 15%;

  min-width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 16px;
  position: fixed;
  z-index: 1;
  top: 30px;
}

.show-bar {
  visibility: visible !important;
}

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

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
}

.close-button {
  margin: 2px auto 0;
  padding: 5px 10px;
  border-radius: 5px;
  background-color: #000;
  color: #fff;
  cursor: pointer;
}

.close-button:hover {
  background-color: #fff;
  color: #000;
}

.help-page.show {
  display: block;
}

.setting label {
  display: flex;
}

input.apple-switch {
  position: relative;
  appearance: none;
  outline: none;
  min-width: 50px;
  width: 50px;
  height: 30px;
  background-color: #ffffff;
  border: 1px solid #d9dadc;
  border-radius: 50px;
  box-shadow: inset -20px 0 0 0 #ffffff;
  transition-duration: 200ms;
}

input.apple-switch:after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 26px;
  height: 26px;
  background-color: transparent;
  border-radius: 50%;
  box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.2);
}

input.apple-switch:checked {
  border-color: #4ed164;
  box-shadow: inset 20px 0 0 0 #4ed164;
}

input.apple-switch:checked:after {
  left: 20px;
  box-shadow: -2px 4px 3px rgba(0, 0, 0, 0.05);
}

.setting {
  /* Make a thin line around each setting */
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.setting label {
  margin-top: 10px;
  margin-bottom: 10px;
}

.setting label b {
  margin-left: 5px;
  margin-right: 10px;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.guess-letter.win {
  animation: pulse 0.25s ease-in-out 3;
}

.nogame {
  text-align: center;
  padding: 20px;
}
