@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&family=Kanit:wght@400;500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Manrope&display=swap");
* {
  padding: 0;
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: #ffffffff;
}

.hidden {
  display: none;
}

i {
  font-weight: 900;
  color: #dee4e7;
}

button,
select {
  border-radius: 2rem;
  background-color: #222222;
  border: 0.12rem solid #dee4e7;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  color: #ffffffff;
  -webkit-transition: background-color 200ms;
  transition: background-color 200ms;
  text-align: center;
  cursor: pointer;
}

button:active,
select:active {
  -webkit-animation-name: click;
          animation-name: click;
  -webkit-animation-duration: 200ms;
          animation-duration: 200ms;
}

@-webkit-keyframes click {
  0% {
    background-color: #222222;
    color: #ffffffff;
  }
  50% {
    background-color: #dee4e7;
    color: #222222;
  }
  100% {
    background-color: #222222;
    color: #ffffffff;
  }
}

@keyframes click {
  0% {
    background-color: #222222;
    color: #ffffffff;
  }
  50% {
    background-color: #dee4e7;
    color: #222222;
  }
  100% {
    background-color: #222222;
    color: #ffffffff;
  }
}

body {
  background-color: #222222;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  height: 100vh;
  max-width: 100vw;
}

.container {
  width: 22.5rem;
  background-color: #2a3237;
  -webkit-box-shadow: 0 0 3rem rgba(0, 0, 0, 0.414);
          box-shadow: 0 0 3rem rgba(0, 0, 0, 0.414);
  -ms-flex-preferred-size: 100vh;
      flex-basis: 100vh;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
}

.container .error-message {
  width: 20rem;
  height: 5rem;
  position: fixed;
  left: 50%;
  margin-left: -11rem;
  top: 1rem;
  border-radius: 1rem;
  padding: 1rem;
  z-index: 20;
  -webkit-transform: translateY(-8rem);
          transform: translateY(-8rem);
  -webkit-transition: -webkit-transform 200ms ease;
  transition: -webkit-transform 200ms ease;
  transition: transform 200ms ease;
  transition: transform 200ms ease, -webkit-transform 200ms ease;
  overflow: hidden;
  background-color: #3e6274;
}

.container .error-message h2 {
  color: #dee4e7;
  font-size: 1.5rem;
}

.container .error-message p {
  opacity: .5;
}

.container .error-message.in-error {
  -webkit-transform: translateY(0);
          transform: translateY(0);
}

.container .error-message.in-error::after {
  height: .5rem;
  position: absolute;
  width: 22rem;
  content: '';
  background-color: #dee4e7;
  left: 0;
  bottom: 0;
  -webkit-animation-name: loading;
          animation-name: loading;
  -webkit-animation-duration: 2s;
          animation-duration: 2s;
  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
}

@-webkit-keyframes loading {
  from {
    width: 0;
  }
  to {
    width: 22rem;
  }
}

@keyframes loading {
  from {
    width: 0;
  }
  to {
    width: 22rem;
  }
}

.container nav {
  height: 3.5rem;
  background-color: transparent;
  line-height: 3.5rem;
  padding-inline: .75rem;
  font-weight: 500;
  letter-spacing: .125rem;
  -webkit-box-shadow: 0 0 2rem #222222;
          box-shadow: 0 0 2rem #222222;
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
}

.container nav h1 {
  font-size: 1.25rem;
}

.container nav img {
  margin-right: .5rem;
  max-height: 3.5rem;
}

.container main {
  padding-block: 1rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  height: 100%;
}

.container main section {
  background-color: #222222;
  border-radius: .75rem;
  min-height: 1rem;
  position: relative;
}

.container main section.output-view {
  aspect-ratio: 3 / 2;
  margin-inline: 1rem;
  margin-bottom: 1rem;
  max-width: calc(100% - 2rem);
  word-break: break-all;
}

.container main section.input-view {
  border-radius: 0;
  height: 3.25rem;
  margin-bottom: 1rem;
}

.container main section.input-view::before {
  left: 1.75rem;
}

.container main section.input-methods {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 22rem;
          flex: 1 1 22rem;
  max-height: 22rem;
  margin-inline: 1rem;
}

.container main h3 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 .7rem;
          flex: 0 0 .7rem;
  font-size: .7rem;
  padding-inline: 1.75rem;
  margin-bottom: .2rem;
  letter-spacing: .3rem;
}

section.input-methods {
  font-family: 'Orbitron', sans-serif;
  display: -ms-grid;
  display: grid;
  padding: .5rem;
  gap: .2rem;
      grid-template-areas: "A A B B" "y y z z" "a b c d" "e f g h" "i j k l" "m n o p" "q r s t" "u v w x";
}

section.input-methods button,
section.input-methods select {
  min-width: 4.5rem;
  max-height: 2.5rem;
  height: 2.5rem;
}

section.input-methods button {
  aspect-ratio: 4.5 / 2.5;
  font-size: 1.2rem;
}

section.input-methods button[data-value="1"] {
  -ms-grid-row: 5;
  -ms-grid-column: 1;
  grid-area: i;
}

section.input-methods button[data-value="2"] {
  -ms-grid-row: 5;
  -ms-grid-column: 2;
  grid-area: j;
}

section.input-methods button[data-value="3"] {
  -ms-grid-row: 5;
  -ms-grid-column: 3;
  grid-area: k;
}

section.input-methods button[data-value="4"] {
  -ms-grid-row: 4;
  -ms-grid-column: 1;
  grid-area: e;
}

section.input-methods button[data-value="5"] {
  -ms-grid-row: 4;
  -ms-grid-column: 2;
  grid-area: f;
}

section.input-methods button[data-value="6"] {
  -ms-grid-row: 4;
  -ms-grid-column: 3;
  grid-area: g;
}

section.input-methods button[data-value="7"] {
  -ms-grid-row: 3;
  -ms-grid-column: 1;
  grid-area: a;
}

section.input-methods button[data-value="8"] {
  -ms-grid-row: 3;
  -ms-grid-column: 2;
  grid-area: b;
}

section.input-methods button[data-value="9"] {
  -ms-grid-row: 3;
  -ms-grid-column: 3;
  grid-area: c;
}

section.input-methods button[data-value="0"] {
  -ms-grid-row: 6;
  -ms-grid-column: 2;
  grid-area: n;
}

section.input-methods button[data-value="+"] {
  -ms-grid-row: 3;
  -ms-grid-column: 4;
  grid-area: d;
}

section.input-methods button[data-value="-"] {
  -ms-grid-row: 4;
  -ms-grid-column: 4;
  grid-area: h;
}

section.input-methods button[data-value="•"] {
  -ms-grid-row: 5;
  -ms-grid-column: 4;
  grid-area: l;
}

section.input-methods button[data-value="÷"] {
  -ms-grid-row: 6;
  -ms-grid-column: 4;
  grid-area: p;
}

section.input-methods button[data-value="="] {
  -ms-grid-row: 7;
  -ms-grid-column: 2;
  grid-area: r;
}

section.input-methods button[data-value="÷"] {
  -ms-grid-row: 6;
  -ms-grid-column: 4;
  grid-area: p;
}

section.input-methods button[data-value="^"] {
  -ms-grid-row: 8;
  -ms-grid-column: 1;
  grid-area: u;
}

section.input-methods button[data-value="√"] {
  -ms-grid-row: 8;
  -ms-grid-column: 2;
  grid-area: v;
}

section.input-methods button[data-value="/"] {
  -ms-grid-row: 8;
  -ms-grid-column: 4;
  grid-area: x;
}

section.input-methods button[data-value="("] {
  -ms-grid-row: 7;
  -ms-grid-column: 1;
  grid-area: q;
}

section.input-methods button[data-value=")"] {
  -ms-grid-row: 7;
  -ms-grid-column: 3;
  grid-area: s;
}

section.input-methods button[data-value="DEL"] {
  -ms-grid-row: 6;
  -ms-grid-column: 1;
  grid-area: m;
}

section.input-methods button[data-value="AC"] {
  -ms-grid-row: 6;
  -ms-grid-column: 3;
  grid-area: o;
}

section.input-methods button[data-value="SIGN"] {
  -ms-grid-row: 8;
  -ms-grid-column: 3;
  grid-area: w;
}

section.input-methods button[data-value="DECIMAL"] {
  -ms-grid-row: 7;
  -ms-grid-column: 4;
  grid-area: t;
}

section.input-methods select > option:first-child,
section.input-methods select option:checked {
  display: none;
}

section.input-methods select[data-type="function"] {
  -ms-grid-row: 2;
  -ms-grid-column: 1;
  -ms-grid-column-span: 2;
  grid-area: y;
}

section.input-methods select[data-type="constant"] {
  -ms-grid-row: 2;
  -ms-grid-column: 3;
  -ms-grid-column-span: 2;
  grid-area: z;
}

section.input-methods select[data-type="notation"] {
  -ms-grid-row: 1;
  -ms-grid-column: 1;
  -ms-grid-column-span: 2;
  grid-area: A;
}

section.input-methods select[data-type="templates"] {
  -ms-grid-row: 1;
  -ms-grid-column: 3;
  -ms-grid-column-span: 2;
  grid-area: B;
}

section.input-view {
  font-family: 'IBM Plex Mono', monospace;
  scroll-behavior: smooth;
  scrollbar-color: #dee4e7;
  line-height: 3rem;
  overflow-x: scroll;
  padding-inline: 1.75rem;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 8fr 1fr;
      grid-template-columns: 8fr 1fr;
}

section.input-view button {
  margin-block: .375rem;
  margin-inline: .5rem;
  height: 2.5rem;
  border-radius: .75rem;
  aspect-ratio: 5 / 4;
  -webkit-box-shadow: 0.375rem 0 2rem #222222;
          box-shadow: 0.375rem 0 2rem #222222;
}

section.input-view span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.25rem;
  letter-spacing: .3rem;
  max-width: 19.8rem;
  max-height: 3.25rem;
  overflow: inherit;
  display: inline;
  scroll-behavior: smooth;
  white-space: nowrap;
}

section.output-view {
  display: -ms-grid;
  display: grid;
  -ms-grid-rows: 4fr 1fr;
      grid-template-rows: 4fr 1fr;
  place-items: center;
  padding: .5rem;
}

section.output-view div {
  height: 100%;
  width: 100%;
}

section.output-view div p {
  width: calc(100% - 2rem);
  padding-left: 2rem;
  white-space: pre-wrap;
  word-break: keep-all;
}

section.output-view div p.solution {
  letter-spacing: .2rem;
  word-break: keep-all;
  overflow-wrap: break-word;
}

section.output-view div p.solution span > var {
  display: inline;
}

section.output-view div p.solution span:last-of-type {
  color: #dee4e7;
}

section.output-view div p.solution span:last-of-type > * {
  color: #dee4e7;
}

section.output-view div canvas {
  background-color: transparent;
  width: 60%;
  outline: #2a3237 solid 0.2rem;
  position: relative;
  left: 20%;
}

section.output-view .output {
  overflow: scroll;
}

section.output-view .control {
  display: -ms-grid;
  display: grid;
  place-items: center;
  -ms-grid-columns: 1fr 4rem 4rem 1fr;
      grid-template-columns: 1fr 4rem 4rem 1fr;
  position: relative;
  gap: .5rem;
}

section.output-view .control button {
  aspect-ratio: 2 / 1;
  height: 2rem;
}

section.output-view .control button[data-value="SPEAK_TRANSLATION"] {
  -ms-grid-column: 2;
  grid-column: 2;
}

section.output-view .control button[data-value="SPEAK_SOLUTION"] {
  -ms-grid-column: 3;
  grid-column: 3;
}

section.output-view .control div.dictation-toggle {
  position: absolute;
  width: 6rem;
  height: 2.125rem;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: .5rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  right: 0;
  bottom: -2.7275rem;
  background-color: transparent;
}

section.output-view .control div.dictation-toggle input[type="checkbox"] {
  background-color: transparent;
}

section.output-view .control div.dictation-toggle input[type="checkbox"]:checked {
  accent-color: #dee4e7;
}
/*# sourceMappingURL=style.css.map */