/* Global */
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  width: 940px;
  /* this is to prevent the top box from going over, semi-redundant to below */
}
#content {
  width: 940px;
}
button {
  color: white;
  font-size: 1.2em;
}
hr.worksheet-separator {
  border-top: 1px dashed #000;
}
.print-page {
  background-color: blue;
}
#disable-all-kanji {
  background-color: red;
}
#enable-all-kanji {
  background-color: green;
}
.kanji-summary {
  font-size: 2em;
}
#kanji-selection-box {
  border: black solid 1px;
}
a:hover {
  cursor: pointer;
}
a.kanji-summary:hover {
  color: red;
}
a.print-disabled:hover {
  opacity: 1;
  color: green;
}
.print-disabled {
  opacity: 0.2;
}
@font-face {
  font-family: StrokeOrder;
  src: url('/fonts/KanjiStrokeOrders.ttf');
}
@font-face {
  font-family: Mitimasu;
  src: url('/fonts/mitimasu.ttf');
}
#selectorTemplate,
#kanjiTemplate {
  display: none;
}
/* Layout */
#container h1 {
  margin: 0;
}
#container {
  padding: 15px 0 0 15px;
}
/* Kanji Search */
.settings {
  width: 100%;
  float: left;
  border-bottom: 1px solid #000;
  padding: 0 0 10px 0;
  margin: 0 0 10px 0;
}
.kanjiSearch {
  float: right;
}
.kanjiSubmit {
  float: right;
}
.inputWaniKaniUser {
  width: 75%;
}
.kanjiStrokes {
  float: left;
}
.waniKaniContent {
  font-size: 13px;
}
.kanjiStrokes .strokeToggle {
  height: 15px;
  width: 15px;
  content: '';
  display: inline-block;
  background-color: #fff;
  border-radius: 15px;
  border: 1px solid #000;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px #fff;
}
.kanjiStrokes .strokeToggle.selected {
  background-color: pink;
}
/*Kanji Selector */
#kanjiSelectionBox {
  position: fixed;
  height: 100%;
  width: 25%;
  right: 0;
  top: 0;
  padding: 15px;
  border-left: 1px solid #000;
  background: rgba(255, 255, 255, 0.8);
  overflow: scroll;
}
#kanjiSelectionBox .kanji-box {
  margin-bottom: 5px;
  width: 25px;
  height: 25px;
  font-size: 20px;
  box-sizing: border-box;
  display: inline-block;
  text-align: center;
}
#kanjiSelectionBox .kanji-box.selected {
  color: #f00;
}
#kanjiSelectionBox .category {
  font-size: 18px;
  margin-top: 0;
  padding-bottom: 5px;
  border-bottom: 1px solid #000;
}
#kanjiSelectionBox .category-content {
  transition-property: all;
  transition-duration: 1s;
  height: 0;
  overflow: hidden;
}
#kanjiSelectionBox .category-content.expand {
  height: 290px;
  overflow: scroll;
}
#kanjiSelectionBox .categoryBox {
  margin-bottom: 15px;
}
#kanjiSelectionBox h3 {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 12px;
}
#content .kanji-box {
  color: rgba(0, 0, 0, 0.15);
}
#content .kanji-box-dark {
  color: #000000;
}
/*
#content .kanji-box:nth-child(n+5) {
  color: white;
}
*/
.kanji-row {
  /* max-width: 980px; */
  /* max-width: 1200px; */
  float: left;
}
.kanji-term,
.kanji-definition {
  display: inline-block;
}
.kanji-term {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 12px;
}
.kanji-definition {
  margin: 0 30px 0 10px;
  text-transform: capitalize;
}
#content.handwriting .kanji-box {
  font-family: Mitimasu;
  font-size: 85px;
  line-height: 95px;
}
#content.stroke-order .kanji-box {
  font-family: StrokeOrder;
  font-size: 80px;
}
#content .kanji-box {
  margin: 0 5px 5px 0;
  width: 96px;
  height: 96px;
  border: 1px solid #000;
  box-sizing: border-box;
  float: left;
  font-size: 65px;
  text-align: center;
}
#content .kanji-box-small {
  width: 45px;
  height: 45px;
  font-size: 40px !important;
  line-height: 1.1em !important;
}
.author {
  position: absolute;
  right: 15px;
  bottom: 35px;
  font-size: 12px;
  z-index: 0;
  background: #fff;
}
.author a {
  color: #E667AF;
}
.author a:hover {
  color: #000;
}
@media print {
  /*
  .kanji-row {
    width: 100%;
    page-break-inside: avoid;
  }
  */
  #content {
    /* width: 980px; */
    float: left;
  }
  #kanjiSelectionBox {
    display: none;
  }
  .no-print {
    display: none;
  }
}
