@charset "UTF-8";
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-drag: none;
}

ul, ol, li {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

.btn,
button {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  border: none;
  outline: none;
  border-radius: 0.5rem;
  font-size: 1.5rem;
  padding: 1rem 1.5rem;
  font-weight: 500;
  transition: background-color 0.2s ease-in-out, opacity 0.2s ease-in-out;
  cursor: pointer;
}
.btn:disabled,
button:disabled {
  filter: grayscale(100%);
  opacity: 0.5;
  cursor: not-allowed;
}

.bg-primary, section#menu button, section#menu .menu-options button.selected,
.btn-primary,
section#home button,
.quiz > button {
  background: #118ab2;
  color: #E8EDEE;
}
.bg-success, button.symbol.correct, .quiz > button.correct,
.btn-success {
  background: #06d6a0;
  color: #E8EDEE;
}
.bg-danger, button.symbol.wrong, .quiz > button.wrong,
.btn-danger {
  background: #ef476f;
  color: #E8EDEE;
}
.bg-light,
.btn-light {
  background: #BBC9CE;
  color: #073b4c;
}
.bg-body, .phrase,
.btn-body {
  background: #E8EDEE;
  color: #073b4c;
}

.flag-before::before, .flag-after::after {
  display: inline-block;
  margin: 0;
  content: "";
  width: 1em;
  height: 0.75em;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  vertical-align: baseline;
}
.flag-before::before {
  margin-right: 0.375em;
}
.flag-before.flag-gr::before {
  background-image: url("/img/flags/gr.svg");
}
.flag-before.flag-jp::before {
  background-image: url("/img/flags/jp.svg");
}
.flag-after::after {
  margin-left: 0.375em;
}
.flag-after.flag-gr::after {
  background-image: url("/img/flags/gr.svg");
}
.flag-after.flag-jp::after {
  background-image: url("/img/flags/jp.svg");
}

html, body {
  background: #E8EDEE;
  color: #073b4c;
  overflow: hidden;
}

body::before {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 0.75rem;
  display: block;
  content: "ȿyllabary";
  font-weight: 600;
  font-size: 1.5rem;
  color: rgba(0, 0, 0, 0.125);
  transform: translate(-50%, 0);
}

body > main {
  width: 100vw;
  height: 100vh;
}

body > main > section {
  position: absolute;
  top: 0;
  bottom: auto;
  left: 0;
  right: auto;
  width: 100%;
  height: 100%;
  transition: opacity 0.28s ease-in-out;
  opacity: 0;
}
body > main > section.hidden {
  display: none !important;
}
body > main > section:not(.active), body > main > section.showing *, body > main > section.hiding * {
  pointer-events: none !important;
}
body > main > section.before-show, body > main > section.before-show *, body > main > section.before-hide, body > main > section.before-hide * {
  transition: none !important;
}
body > main > section.active {
  pointer-events: all;
}
body > main > section.active {
  opacity: 1;
}

body {
  font-family: "Trebuchet MS", Helvetica, sans-serif;
}

.audio-toggle {
  position: absolute;
  top: 0;
  bottom: auto;
  right: 0;
  left: auto;
  width: 3rem;
  height: 3rem;
  position: fixed;
  background: transparent url("/img/ui/icons/speaker.svg") no-repeat center;
  background-size: 66% 66%;
  z-index: 10;
}
.audio-toggle::after {
  position: absolute;
  top: calc(50% - 2px);
  left: 50%;
  display: block;
  content: "";
  width: 50%;
  height: 4px;
  background: #ef476f;
  transform: translate(-50%, 0) rotate(45deg);
  transition: opacity 0.2s ease-in-out;
  opacity: 0;
}
.audio-toggle.off::after {
  opacity: 1;
}

.back {
  position: absolute;
  top: 0;
  bottom: auto;
  left: 0;
  right: auto;
  width: 3rem;
  height: 3rem;
  position: fixed;
  background: transparent url("/img/ui/icons/chevron-left.svg") no-repeat center;
  background-size: 50% 50%;
  z-index: 10;
  transition: opacity 0.28s ease-in-out;
  opacity: 0;
}
.back:not(.active), .back.showing *, .back.hiding * {
  pointer-events: none !important;
}
.back.before-show, .back.before-show *, .back.before-hide, .back.before-hide * {
  transition: none !important;
}
.back.active {
  pointer-events: all;
}
.back.active {
  opacity: 1;
}

.quiz {
  position: absolute;
  top: 0;
  bottom: auto;
  left: 0;
  right: auto;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto auto;
  transition: opacity 0.28s ease-in-out;
  opacity: 0;
}
.quiz:not(.active), .quiz.showing *, .quiz.hiding * {
  pointer-events: none !important;
}
.quiz.before-show, .quiz.before-show *, .quiz.before-hide, .quiz.before-hide * {
  transition: none !important;
}
.quiz.active {
  pointer-events: all;
}
.quiz.active {
  opacity: 1;
}
.quiz--symbol-quiz .quiz__question {
  display: flex;
  justify-content: center;
  align-items: center;
}
.quiz--symbol-quiz .quiz__awnsers {
  padding: 1rem 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  grid-gap: 1rem;
  align-items: start;
}
.quiz--symbol-quiz .quiz__awnsers .symbol:nth-child(odd) {
  justify-self: end;
}
.quiz--symbol-quiz .quiz__awnsers .symbol:nth-child(even) {
  justify-self: start;
}
.quiz--word-quiz__question {
  display: grid;
}
.quiz--word-quiz__question .phrase {
  font-size: 2rem;
}
.quiz--word-quiz__awnser {
  display: flex;
  justify-content: start;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 1rem;
  min-height: 8rem;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.33);
}
.quiz--word-quiz__awnser .symbol {
  --symbol-size: .5;
}
.quiz--word-quiz__graphemes {
  text-align: center;
  min-height: 12rem;
  padding: 3rem 1rem;
}
.quiz--word-quiz__graphemes .symbol {
  --symbol-size: .5;
}
.quiz--word-quiz__graphemes.feedback {
  font-size: 2rem;
}
.quiz > button {
  border-radius: 0;
  width: 100%;
}
button.symbol {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0.25rem;
  background: #073b4c;
  color: #E8EDEE;
  font-weight: 500;
  padding: 0;
  vertical-align: top;
  cursor: pointer;
  --symbol-size: 1;
  width: calc(var(--symbol-size) * 6rem);
  height: calc(var(--symbol-size) * 7rem);
  font-size: calc(var(--symbol-size) * 3rem);
}
button.symbol.selected {
  background: #BBC9CE;
  color: #073b4c;
}
button.symbol-symbol.multigraph {
  font-size: calc(var(--symbol-size) * 2rem);
}
button.symbol-roman {
  font-size: calc(var(--symbol-size) * 2rem);
}
button.symbol-roman.long-text {
  font-size: calc(var(--symbol-size) * 1.25rem);
}
@media (min-width: 600px) {
  button.symbol {
    width: calc(var(--symbol-size) * 8rem);
    height: calc(var(--symbol-size) * 9rem);
    font-size: calc(var(--symbol-size) * 4rem);
  }
  button.symbol-symbol.multigraph {
    font-size: calc(var(--symbol-size) * 3rem);
  }
  button.symbol-roman {
    font-size: calc(var(--symbol-size) * 2.5rem);
  }
  button.symbol-roman.long-text {
    font-size: calc(var(--symbol-size) * 1.75rem);
  }
}
button.symbol.kanji.symbol-roman.symbol-roman {
  font-size: calc(var(--symbol-size) * 0.9rem);
  flex-direction: column;
}
button.symbol.kanji.symbol-roman.symbol-roman > span {
  position: relative;
  padding: 0.25rem;
  display: block;
  width: 100%;
}
button.symbol.kanji.symbol-roman.symbol-roman > span::after {
  content: "";
  display: block;
  width: 25%;
  height: 0.25rem;
  left: 37.5%;
  position: absolute;
  border-bottom: 1px solid rgba(255, 255, 255, 0.33);
}
button.symbol.kanji.symbol-roman.symbol-roman > span.kanji-english {
  font-size: calc(var(--symbol-size) * 0.75rem);
}
button.symbol.kanji.symbol-roman.symbol-roman > span.kanji-english::after {
  display: none;
}

section#home {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
section#home button {
  margin: 0.5rem;
}

section#menu {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
section#menu header > h2 {
  padding: 4rem 1rem 1rem;
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
section#menu .menu-options {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
section#menu .menu-options input {
  display: none;
}
section#menu .menu-options h3 {
  padding: 1rem 1rem 0.5rem;
  text-transform: uppercase;
  font-size: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
section#menu .menu-options ul ul {
  display: none;
}
section#menu .menu-options button {
  font-size: 1rem;
  font-weight: 400;
  background: transparent;
  color: #073b4c;
  text-align: left;
  position: relative;
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
section#menu .menu-options button .name {
  display: inline-block;
  font-weight: 600;
}
section#menu .menu-options button .description {
  margin-left: 0.375rem;
  font-size: 0.75em;
  display: inline-block;
  font-style: italic;
}
section#menu .menu-options button.selected + ul {
  display: block;
}
section#menu .menu-options button.selected::after {
  width: 1.25rem;
  height: 1.25rem;
  position: absolute;
  top: 0;
  bottom: auto;
  right: 0;
  left: auto;
  margin: 0.675rem 0.5rem 0 0;
  content: "";
  display: inline-block;
  background: transparent url("/img/ui/icons/checkmark.svg") no-repeat center;
  background-size: contain;
}
section#menu .menu-options ul ul button {
  padding-left: 2.375rem;
}
section#menu .menu-options ul ul button .name {
  font-weight: 400;
}
section#menu button {
  border-radius: 0;
}

section#text-practice {
  padding: 4.5rem 1rem 2rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
section#text-practice .word {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}
section#text-practice .word.highlight {
  background-color: rgba(17, 138, 178, 0.2);
}
section#text-practice .tooltip {
  position: absolute;
  top: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  box-shadow: 0 0 0.375rem rgba(0, 0, 0, 0.5);
}

/*# sourceMappingURL=main.css.map */
