@font-face {
  font-family: "Sarabun";
  src: url(../../../../../../fonts/Sarabun/Sarabun-Regular.ttf);
}
@font-face {
  font-family: "Kanit";
  src: url(../../../../../../fonts/Kanit/Kanit-Light.ttf);
}
@font-face {
  font-family: "Prompt";
  src: url(../../../../../../fonts/Prompt/Prompt-Regular.ttf);
}
@font-face {
  font-family: "PlexSans";
  src: url(../../../../../../fonts/IBM_Plex_Sans_Thai/IBMPlexSansThai-Medium.ttf);
}
@font-face {
  font-family: "NotoSansThai";
  src: url(../../../../../../fonts/NotoSansThai/NotoSansThai-Light.ttf);
}
@font-face {
  font-family: "Fraunces";
  src: url(../../../../../../fonts/Fraunces_72pt/Fraunces_72pt-SemiBold.ttf);
}
body {
  font-family: Sarabun;
  font-size: 16px;
  background-color: #333333;
}

*, *:before, *:after {
  box-sizing: border-box;
}

*, *:before, *:after {
  margin: 0;
  padding: 0;
}

#searchForm {
  margin-top: 30px;
  display: block;
  display: flex;
  flex-direction: column;
  align-content: center;
}

#searchButtons {
  display: inline-block;
  display: flex;
  gap: 24px;
  justify-content: center;
}

#allWords {
  font-size: 2rem;
  padding: 0.5rem 1rem 0.5rem 1rem;
  text-align: center;
  white-space: nowrap;
  border: none;
  border-radius: 13px;
  color: hsl(0, 0%, 0%);
  background-image: linear-gradient(hsl(316, 100%, 87%), #ffd7f4 15%, hsl(316, 100%, 87%) 75%);
  box-shadow: inset 0 0 1rem #ff38ca;
  border: 1px solid white;
}

#allWords:hover {
  background-image: linear-gradient(hsl(316, 100%, 81%) 15%, #ffc5ef 75%, hsl(316, 100%, 81%));
}

.subset {
  font-size: 2rem;
  padding: 0.5rem 1rem 0.5rem 1rem;
  text-align: center;
  white-space: nowrap;
  color: hsl(0, 0%, 0%);
  border-radius: 0 13px 13px 0;
  background-image: linear-gradient(hsl(261, 100%, 89%), #e9ddff 15%, hsl(261, 100%, 89%) 75%);
  box-shadow: inset 0 0 1rem #823fff;
  border: 1px solid white;
}

.subset:hover {
  background-image: linear-gradient(hsl(261, 100%, 83%) 15%, #ddcbff 75%, hsl(261, 100%, 83%));
}

.findWordsDiv {
  display: flex;
}

#wordInput {
  font-size: 2rem;
  padding: 0.5rem 1rem 0.5rem 1rem;
  width: 40vw;
  text-align: center;
  border: none;
  border-radius: 13px 0 0 13px;
}

#wordInput:focus {
  outline: none;
}

#foundButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 1rem;
}

#foundButtons button {
  white-space: nowrap;
  font-size: 1.5rem;
  padding: 0.25rem 0.75rem 0.25rem 0.75rem;
  border: none;
  border-radius: 13px;
  color: black;
  background-image: linear-gradient(hsl(0, 0%, 86%), #eaeaea 15%, hsl(0, 0%, 86%) 75%);
  box-shadow: inset 0 0 1rem #9a9a9a;
  border: 1px solid white;
}

#foundButtons button:hover {
  background-image: linear-gradient(hsl(0, 0%, 86%) 15%, #eaeaea 75%, hsl(0, 0%, 86%));
}

#wordCount {
  top: 1rem;
  font-size: 2rem;
  text-align: center;
  color: #5c5c5c;
}

#flashCard {
  position: absolute;
  top: 5rem;
  display: flex;
  justify-content: center;
  background-color: #333333;
  width: 100%;
}

#flashCardContent {
  display: none;
  width: 100%;
  text-align: center;
}

#correctLetters {
  font-size: 4rem;
  line-height: 8rem;
  height: 8rem;
  color: #999999;
  background-color: #4d4d4d;
  letter-spacing: 0.05rem;
  padding-top: 0.5rem;
  padding-bottom: 2rem;
}

#correctLetters.correct {
  color: hsl(112, 100%, 50%);
}

#phonetic {
  font-size: 2rem;
  line-height: 3rem;
  padding: 0rem 0rem 1rem 0rem;
  background-color: #4d4d4d;
  color: hsl(112, 100%, 50%);
}

#textEntry {
  font-size: 4rem;
  line-height: 8rem;
  height: 8rem;
  background-color: gray;
  text-align: center;
  width: 100%;
  border: none;
  letter-spacing: -0.05rem;
}

#textEntry:focus {
  outline: none;
}

#definition {
  font-family: sans-serif;
  color: hsl(44, 100%, 76%);
  background-color: black;
  font-size: 2rem;
  line-height: 4rem;
}

.controlBar {
  position: absolute;
  bottom: 0;
  display: flex;
  width: 100%;
  height: 8rem;
  border-top: 3px solid white;
  border-bottom: 3px solid white;
}

.controlBar button {
  position: relative;
  flex-grow: 1;
  font-size: 4rem;
  color: white;
  white-space: nowrap;
  border: none;
  border-right: 3px solid white;
}

button.solve, button.hint {
  padding: 1.5rem 1vw 1.5rem 1vw;
  background-color: hsl(0, 0%, 70%);
  flex-basis: 6rem;
  font-size: 3rem;
}

#hint {
  border-right: none;
}

button.reset {
  background-color: rgb(255, 0, 176);
}

button.equal {
  background-color: rgb(2, 152, 69);
}

button.increment {
  background-color: green;
}

button.equal:after {
  position: absolute;
  display: block;
  bottom: 0;
  right: 0;
  font-family: monospace;
  font-size: 16px;
  line-height: 24px;
  border-top: 1px solid white;
  border-left: 1px solid white;
  padding: 0px 6px 0px 6px;
  border-top-left-radius: 5px;
  content: "4";
}

button.reset:after {
  position: absolute;
  display: block;
  bottom: 0;
  right: 0;
  font-family: monospace;
  font-size: 16px;
  line-height: 24px;
  border-top: 1px solid white;
  border-left: 1px solid white;
  padding: 0px 6px 0px 6px;
  border-top-left-radius: 5px;
  content: "6";
}

button.hint:after {
  position: absolute;
  display: block;
  bottom: 0;
  right: 0;
  font-family: monospace;
  font-size: 16px;
  line-height: 24px;
  border-top: 1px solid white;
  border-left: 1px solid white;
  padding: 0px 6px 0px 6px;
  border-top-left-radius: 5px;
  content: "3";
}

button.solve:after {
  position: absolute;
  display: block;
  bottom: 0;
  right: 0;
  font-family: monospace;
  font-size: 16px;
  line-height: 24px;
  border-top: 1px solid white;
  border-left: 1px solid white;
  padding: 0px 6px 0px 6px;
  border-top-left-radius: 5px;
  content: "1";
}

@media (-webkit-device-pixel-ratio: 3) {
  .controlBar {
    height: 10rem;
    bottom: 648px;
  }
  .cb2 {
    display: block;
    bottom: 5rem;
  }
  .controlBar button {
    font-size: 4rem;
  }
}