* {
  box-sizing: border-box;
}

ul {
  list-style-type: none;
}

:root {
  --main-bg-color: white;
  --main-font-color: black;

  --main-bg-search-color: #242330;
  --main-bg-search-font-color: #fdffea;

  --charlist-bg-color: #fefff7;
}

body {
  margin: 0px;
  font-family: monospace;
}

#char-list::-webkit-scrollbar {
  width: 12px;
  display: none!important;
}

#char, #title, main{
  display: flex;
  justify-content: center;
  align-items: center;
}

#title {
  font-size: 50px;
  margin-left: 250px;
}

#main {
  display: flex;
  height: 100%;
  padding: 5px;
}

#definition {
  text-align: center;
  font-size: 19px;
}

#char-list {
  display: grid;
  min-width: 150px;
  background-color: var(--charlist-bg-color);
  grid-template-columns: repeat(3, 50px);
  overflow: auto;
  cursor: pointer;
  font-family: 'Ma Shan Zheng', cursive;
}

.zh-char {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 22px;
  color: black;
}

#char-list > .char {
  position: relative;
  display: flex;
  justify-content: center;
  font-size: 34px;
}

#char-list > .char > .freq{
  position: aboslute;
  font-size: 7px;
}

.active {
  color: #ff2880;
}

.stroke-quiz {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  width: 100%;
}

.char-wrapper {
  grid-column: 1 / 7;
}

.examples {
  height: 100%;
  max-height: 1000px;
  grid-column: 7 / 11;
  overflow: scroll; 
}

#counter {
  font-size: 80px;
  place-self: flex-start;
  border: 2px solid v#262a4e;
  font-size: 20px;
  padding: 15px;
  border-radius: 10px;
  height: 100%;
}

@media screen and (max-width: 1200px) {
  #counter {
    display: none;
  }
}

#examples {
  height: 100vh;
  overflow: auto;
}

.example {
  display: flex;
  flex-direction: column;
  margin: 10px;
  font-size: 16px;
}

.clickable {
  cursor: pointer;
}

.header {
  display: flex;
  justify-content: space-around;
  align-items: center;;
}

.fade {
  transition: opacity .05s linear;
}

.searchbar {
  height: 100vh;
  width: 100vw;
  background: #00000096;
  position: absolute;
  top: 0;
  display: flex;
  justify-content: center;;
  /* align-items: center;; */
}

.searchbar .overlay {
  height: 100vh;
  width: 100vw;
  background: 6;;
  position: absolute;
}

.searchbar .input-area {
  display: flex;;
  max-height: 50px;
  min-width: 800px;
  position: relative;
  top: 100px;
}

.input-area input {
  border-radius: 5px 0px 0px 0px;
  max-height: 50px;
  min-width: 800px;
  outline: none;
  border: none;
  padding: 10px;
}

.input-area .voice-button {

  position: relative;
  height: 50px;
  width: 50px;
}

.input-area button {
  border-radius: 0px 5px 0px 0px;
  height: 50px;
  width: 50px;
  border: none;
  padding: 0px;
}
.input-area .btn {
  background-color: rgb(255 90 90);
  padding: 0px;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  border: 1px solid #ffffff;
  position: absolute;
  left: calc(50% - 10px);
  top: calc(50% - 10px);
}

.searchbar .search-results {
  height: 100%;
  /* background: #e7e4e4; */
  color: var(--main-bg-search-font-color);
  background: var(--main-bg-search-color);
  position: relative;
  top: 100px;
  /* padding: 25px; */
  max-width: 850px;
  overflow: hidden;
}

.search-area {
  overflow: hidden;
}

.search-area .zh-char {
  color: white;
}

.search-area .info-area {
  margin-left: 40px;
}

.char-definition-result {
  display: flex;;  
  overflow: scroll;;
  padding: 25px;
}

.char-definition-result .char {
  font-size: 130px;
  cursor: pointer;
}

.char-definition-result .rank {
  text-align: center;
}


/* .char-definition-result .examples { } */

.hide {
  display: none;;
}

.examples-hit {
  width: 100%;
  max-width: 600px;
}

.examples-hit li {
  padding: 10px;
}

.hsk-rank {
  display: flex;
  text-transform: uppercase;
  justify-content: absolute;
  background: black;
  width: 100px;
  height: 100px;
  top: 0;
  justify-content: cnter;
  left: calc(100% - 100px);
  position: absolute;
  justify-content: cener;
  align-items: center;
  justify-content: center;
  flex-flow: column;
  border: 1px solid;
}

.hsk-rank .rank {
  font-size: 30px;
}

.hanziwriter-page { }

.page { 
  display: flex;
  height: 100vh;
  width: 100vw;
}