/* src/app.less */
html,
html.light {
  --bgColor: white;
  --popupBgColor: white;
  --textColor: #303030;
  --gridLetterColor: white;
  --toastBgColor: #303030;
  --toastTextColor: white;
  --frameUnfilled: #c0c0c0;
  --frameLight: #e0e0e0;
  --frameStrong: #707375;
  --hitColor: #679e72;
  --hitColorHover: #96bc9d;
  --nearColor: #c25661;
  --nearColorHover: #d2838b;
  --missColor: #707375;
  --missColorHover: #97999b;
  --keyColor: #e0e0e0;
  --keyColorHover: #ededed;
}
html.dark {
  --bgColor: #121314;
  --popupBgColor: #242526;
  --textColor: #d8dadc;
  --gridLetterColor: #ededed;
  --toastBgColor: #c0c0c0;
  --toastTextColor: black;
  --frameUnfilled: #505050;
  --frameLight: #707375;
  --frameStrong: #e0e0e0;
  --hitColorHover: #568660;
  --nearColorHover: #b03f4b;
  --missColor: #393b3c;
  --missColorHover: #2f3031;
  --keyColor: #707375;
  --keyColorHover: #57595b;
}
html.contrast,
html.contrast.light {
  --hitColor: #dba239;
  --hitColorHover: #e7c07a;
  --nearColor: #689ddf;
  --nearColorHover: #9abeea;
}
html.contrast.dark {
  --hitColorHover: #a9781f;
  --nearColorHover: #4687d8;
}
@media (prefers-color-scheme: dark) {
  html {
    --bgColor: #121314;
    --popupBgColor: #242526;
    --textColor: #d8dadc;
    --gridLetterColor: #ededed;
    --toastBgColor: #c0c0c0;
    --toastTextColor: black;
    --frameUnfilled: #505050;
    --frameLight: #707375;
    --frameStrong: #e0e0e0;
    --hitColorHover: #568660;
    --nearColorHover: #b03f4b;
    --missColor: #393b3c;
    --missColorHover: #2f3031;
    --keyColor: #707375;
    --keyColorHover: #57595b;
  }
  html.contrast {
    --hitColorHover: #a9781f;
    --nearColorHover: #4687d8;
  }
}
*,
*:before,
*:after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  overflow: hidden;
}
body {
  margin: 0;
  display: flex;
  justify-content: center;
  font-family:
    "Segoe UI",
    "San Francisco",
    "Helvetica Neue",
    sans-serif;
  font-size: 18px;
  color: var(--textColor);
  background-color: var(--bgColor);
}
html.dark a {
  color: #689ddf;
}
main {
  position: relative;
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-content: stretch;
}
main header {
  border-bottom: 1pt solid var(--frameLight);
  height: 90px;
  overflow-y: hidden;
}
main header button {
  display: block;
  position: absolute;
  cursor: pointer;
  width: 24px;
  height: 24px;
  text-align: center;
}
main header button svg {
  display: inline-block;
}
main header button svg path {
  fill: var(--frameStrong);
}
main header button.circled {
  border: 1.5px solid var(--frameStrong);
  color: var(--frameStrong);
  border-radius: 12px;
  font-size: 14px;
  font-weight: bold;
}
main header button.circled svg {
  width: 13px;
  height: 13px;
  margin: 3px 0 0 -2px;
}
main header #showInfo {
  right: 15px;
  top: 15px;
}
main header #showStatus {
  display: none;
  left: 15px;
  top: 15px;
}
main header #showStatus.visible {
  display: block;
}
main header #showSettings {
  right: 48px;
  top: 15px;
}
main h1,
main h2 {
  font-family: inherit;
  margin: 0;
  text-align: center;
  font-weight: bold;
}
main h1 {
  font-size: 36px;
  text-transform: uppercase;
}
main h2 {
  font-size: 27px;
  margin-top: -5px;
}
main > section {
  width: 100%;
}
#grid {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-content: stretch;
  visibility: hidden;
}
#grid .row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-content: stretch;
  height: 16.6%;
  max-height: 54px;
  padding: 4px;
}
#grid .tile {
  height: 100%;
  border: 1pt solid var(--frameUnfilled);
  text-transform: uppercase;
  font-weight: bold;
  text-align: center;
  padding-top: 3px;
  margin: 4px;
  font-size: 1px;
  overflow: hidden;
}
#grid .tile span {
  display: block;
  height: 0;
  overflow: visible;
}
#grid .tile.filled {
  border-color: var(--frameStrong);
}
#grid .tile.miss,
#grid .tile.hit,
#grid .tile.near {
  transition: background-color 800ms ease-out;
}
#grid .tile.miss {
  background-color: var(--missColor);
  border-color: var(--missColor);
  color: var(--gridLetterColor);
}
#grid .tile.hit {
  background-color: var(--hitColor);
  border-color: var(--hitColor);
  color: var(--gridLetterColor);
}
#grid .tile.near {
  background-color: var(--nearColor);
  border-color: var(--nearColor);
  color: var(--gridLetterColor);
}
#spacer {
  height: 5px;
  flex: 0 0;
}
#keyboard {
  font-size: 18px;
  flex: 0 0;
}
#keyboard .row {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-content: stretch;
  height: 50.5px;
}
#keyboard .spacer {
  font-size: 0.1px;
  flex-grow: 1;
}
#keyboard .key {
  flex-grow: 0;
  padding: 0.5em 0.3em;
  border-radius: 4px;
  margin: 0 4px 8px 4px;
  width: 8vw;
  max-width: 2em;
  cursor: default;
  user-select: none;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
  background-color: var(--keyColor);
  transition: background-color 300ms ease-out;
}
#keyboard .key.enter,
#keyboard .key.back {
  width: 12vw;
  max-width: 4em;
}
#keyboard .key.enter {
  font-size: 0.7em;
  padding-top: 1.1em;
}
#keyboard .key:hover {
  background-color: var(--keyColorHover);
}
#keyboard .key.miss {
  background-color: var(--missColor);
  color: var(--textColor);
}
#keyboard .key.miss:hover {
  background-color: var(--missColorHover);
}
#keyboard .key.hit {
  background-color: var(--hitColor);
  color: var(--textColor);
}
#keyboard .key.hit:hover {
  background-color: var(--hitColorHover);
}
#keyboard .key.near {
  background-color: var(--nearColor);
  color: var(--textColor);
}
#keyboard .key.near:hover {
  background-color: var(--nearColorHover);
}
#keyboard .key.pressed,
#keyboard .key.pressed:hover {
  background-color: var(--missColorHover);
  transition: none;
}
@media (hover: none) and (pointer: coarse) {
  #keyboard .key:hover {
    background-color: var(--keyColor);
  }
  #keyboard .key.miss:hover {
    background-color: var(--missColor);
  }
  #keyboard .key.hit:hover {
    background-color: var(--hitColor);
  }
  #keyboard .key.near:hover {
    background-color: var(--nearColor);
  }
}
@media screen and (max-width: 450px) {
  main header {
    height: 57px;
    padding-top: 3px;
  }
  main header h1 {
    font-size: 23.4px;
  }
  main header h2 {
    font-size: 16.2px;
    margin-top: 0;
  }
  #keyboard .key {
    margin: 1.5px;
    padding: 0.7em 0.5em;
    font-size: calc(10px + 2vw);
    width: 9vw;
  }
  #keyboard .key.enter {
    width: 5em;
    max-width: none;
    font-size: calc(4px + 2vw);
  }
  #keyboard .key.enter {
    padding-top: 1.5em;
  }
}
@media screen and (max-width: 350px) {
  main header #showInfo {
    right: 8px;
    top: 12px;
  }
  main header #showStatus {
    left: 8px;
    top: 12px;
  }
  main header #showSettings {
    right: 38px;
    top: 12px;
  }
}
aside {
  z-index: 3;
  position: absolute;
  top: 130px;
  left: 50%;
  margin-left: -40%;
  width: 80%;
  background-color: var(--toastBgColor);
  color: var(--toastTextColor);
  text-align: center;
  white-space: pre-wrap;
  padding: 10px 10px;
  border-radius: 8px;
  display: none;
}
aside.visible {
  display: block;
}
button {
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  background: none;
  font-family: sans-serif;
  font-size: inherit;
  color: inherit;
  padding: 0;
  margin: 0;
}
a {
  text-decoration: none;
}
hr {
  border: none;
  height: 1px;
  background-color: var(--frameLight);
}
article {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow-y: auto;
  padding: 30px 20px 30px 20px;
}
article.visible {
  display: block;
}
article > section {
  display: none;
  max-width: 470px;
  margin: 0 auto;
  box-shadow: 0px 0px 10px #c7c7c7;
  border-radius: 5px;
  position: relative;
  background-color: var(--popupBgColor);
  padding: 10px 15px;
  font-size: 14.4px;
}
article > section.visible {
  display: block;
}
.dark article > section {
  box-shadow: none;
}
article > section button.close {
  display: block;
  position: absolute;
  right: 16px;
  top: 8px;
  cursor: pointer;
  color: var(--frameStrong);
  font-weight: bold;
  font-size: 18px;
}
article > section h2 {
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  text-align: left;
}
article > section h3 {
  font-size: 14.4px;
  font-weight: bold;
  margin: 0 0 5px 0;
}
article > section span.letter {
  display: inline-block;
  margin-right: 4px;
  padding-top: 3px;
  border: 1pt solid var(--frameStrong);
  width: 28px;
  height: 28px;
  text-align: center;
  font-weight: bold;
}
article > section span.letter.miss {
  background-color: var(--missColor);
  color: var(--textColor);
}
article > section span.letter.hit {
  background-color: var(--hitColor);
  color: var(--textColor);
}
article > section span.letter.near {
  background-color: var(--nearColor);
  color: var(--textColor);
}
article > section span.right {
  display: inline-block;
  float: right;
}
#settingsPopup div.setting {
  margin: 20px 0;
}
#settingsPopup h3 {
  position: relative;
}
#settingsPopup .darkLightSelector {
  position: absolute;
  right: 0;
  top: -3px;
  height: 22px;
  width: 44px;
  background-color: black;
  border: 1px black;
  border-radius: 22px;
  cursor: pointer;
  user-select: none;
}
#settingsPopup .darkLightSelector span,
#settingsPopup .darkLightSelector img {
  display: block;
  position: absolute;
  top: 1px;
}
#settingsPopup .darkLightSelector img {
  width: 16px;
  height: 16px;
}
#settingsPopup .darkLightSelector .thumb {
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 20px;
  transition: left 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
}
#settingsPopup .darkLightSelector .moon {
  left: 3px;
  top: 2px;
}
#settingsPopup .darkLightSelector .sun {
  right: 4px;
  top: 3px;
}
#settingsPopup .darkLightSelector.lightMode .thumb {
  left: 1px;
}
#settingsPopup .darkLightSelector.darkMode .thumb {
  left: 23px;
}
#settingsPopup p.settingNote {
  margin: 0 0 10px 0;
  font-style: italic;
}
#settingsPopup label {
  display: block;
  margin-bottom: 4px;
}
#settingsPopup input[type=radio] {
  display: none;
}
#settingsPopup input[type=radio] + *::before {
  content: "";
  display: inline-block;
  vertical-align: bottom;
  width: 0.9rem;
  height: 0.9rem;
  margin-right: 0.3rem;
  border-radius: 50%;
  border: 1pt solid currentColor;
  transform: translateY(-0.15rem);
}
#settingsPopup input[type=radio]:checked + * {
  color: currentColor;
}
#settingsPopup input[type=radio]:checked + *::before {
  background:
    radial-gradient(
      currentColor 0%,
      currentColor 40%,
      transparent 50%,
      transparent);
}
#settingsPopup span.green {
  color: #679e72;
}
#settingsPopup span.red {
  color: #c25661;
}
#settingsPopup span.orange {
  color: #dba239;
}
#settingsPopup span.blue {
  color: #689ddf;
}
#statusPopup #timeLeft {
  font-size: 36px;
}
#statusPopup #shareGeneral {
  position: relative;
  padding: 10px 0 13px 0;
  width: 250px;
  border-radius: 4px;
  background-color: var(--hitColor);
  color: white;
  text-align: center;
  cursor: default;
  user-select: none;
  font-size: 22px;
  text-transform: uppercase;
}
#statusPopup #shareGeneral:hover {
  background-color: var(--hitColorHover);
}
#statusPopup #shareGeneral svg {
  width: 24px;
  height: 24px;
  display: block;
  position: absolute;
  right: 12px;
  top: 12px;
}
#statusPopup #shareGeneral svg path {
  fill: white;
}
#statusPopup #shareGeneral #sharePreview {
  width: 35px;
  height: 100%;
  position: absolute;
  left: 12px;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#statusPopup #shareGeneral #sharePreview span {
  display: block;
  font-size: 4px;
  white-space: pre-wrap;
  line-height: 1.5;
  border: 1px solid white;
  padding: 1px;
}
/*# sourceMappingURL=app.css.map */
