.rounder-borders {
  border-radius: 5px;
}
@media (max-width: 719px) {
  .mobile-flex-column {
    flex-direction: column;
  }
}
a.no-decoration {
  text-decoration: none;
}
a.black {
  color: #000000;
}
a.hover-red:hover {
  color: #BF0B0F;
}
a.hover-bold:hover {
  font-weight: bold;
}
a.hover-noline:hover {
  text-decoration: none;
}
a.fade-in {
  opacity: 0.6;
  transition: all 0.3s;
}
a.fade-in:hover {
  opacity: 1;
}
.relative {
  position: relative;
}
.fl-l {
  float: left;
}
.fl-r {
  float: right;
}
.smaller {
  font-size: 85%;
}
.uppercase {
  text-transform: uppercase;
}
.block {
  display: block;
}
.flex {
  display: flex;
}
.none {
  display: none;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.gradient-bg {
  background: linear-gradient(#FCFCFC, #EEEEEE);
}
.red {
  color: #BF0B0F;
}
.bold {
  font-weight: bold;
}
.normal {
  font-weight: normal;
}
.italic {
  font-style: italic;
}
.clearfix::after {
  content: " ";
  display: block;
  height: 0;
  clear: both;
}
.red-underline,
.black-underline {
  position: relative;
}
.red-underline::after,
.black-underline::after {
  position: absolute;
  content: "";
  left: 0px;
  bottom: 0px;
  height: 1px;
  width: 0px;
  transition: width 0.3s;
}
.red-underline:hover::after,
.black-underline:hover::after {
  width: 100%;
}
.red-underline::after {
  background-color: #BF0B0F;
}
.black-underline::after {
  background-color: #000000;
}
.fade-in {
  opacity: 0.6;
  transition: opacity 0.3s;
}
.fade-in:hover {
  opacity: 1;
}
.zoom:hover img {
  transform: scale(1.1);
  transition: all 0.3s;
}
.v-align-middle {
  vertical-align: middle;
}
textarea,
.textarea {
  background: #FCFCFC;
  min-height: 4em;
  resize: vertical;
  border-radius: 5px;
  border: 1px solid #CCCCCC;
  padding: 10px;
  font-size: 14px;
  line-height: 1.5em;
  transition: border-color 0.3s;
}
@media (max-width: 719px) {
  textarea,
  .textarea {
    font-size: 16px;
  }
}
textarea:focus,
.textarea:focus {
  border-color: #000000;
}
.mb-20 {
  margin-bottom: 20px !important;
}
.mt-20 {
  margin-top: 20px !important;
}
.mb-10 {
  margin-bottom: 10px !important;
}
.mt-10 {
  margin-top: 10px !important;
}
.h-100 {
  height: 100%;
}
.button {
  border: 1px solid #CCCCCC;
  border-radius: 5px;
  min-width: 135px;
  height: 40px;
  padding: 10px;
  cursor: pointer;
  margin: 5px auto;
  outline: none;
  color: #000000;
}
.button::-moz-focus-inner {
  border: 0;
}
.button:hover,
.button.active {
  border-color: #646464;
  background: #FCFCFC;
}
@media (min-width: 720px) {
  .mobile-only {
    display: none;
  }
}
@media (max-width: 357px) {
  .desktop-only {
    display: none;
  }
}
@media (max-width: 719px) {
  .desktop-only {
    display: none;
  }
}
#api-search-form {
  position: relative;
}
@media (min-width: 720px) {
  #api-search-form {
    max-width: 300px;
    margin: 40px auto 20px auto;
  }
}
@media (max-width: 719px) {
  #api-search-form {
    margin: 40px 20px 20px 20px;
  }
}
#api-search-form input[name=search] {
  width: 100%;
  border: 1px solid #CCCCCC;
  font-size: 16px;
  padding: 10px;
  border-radius: 5px;
  transition: border-color 0.3s;
  height: 40px;
}
#api-search-form input[name=search]:focus {
  border-color: #A9DEFF;
  outline: none;
}
#api-search-form button[type=submit] {
  position: absolute;
  top: 1px;
  right: 1px;
  background: url('../images/search.png') 50% 50% no-repeat #E5ECF9;
  background-size: 20px;
  width: 44px;
  height: 38px;
  border: none;
  border-left: 1px solid #CCCCCC;
  border-radius: 0px 5px 5px 0px;
  cursor: pointer;
}
#api-search-autofill {
  display: none;
  text-align: left;
  background-color: #E5ECF9;
  max-height: 200px;
  overflow-y: auto;
  border-radius: 0px 0px 5px 5px;
  border: 1px solid #CCCCCC;
  border-top: 0;
  width: 100%;
  z-index: 1;
}
@media (min-width: 720px) {
  #api-search-autofill {
    max-width: 300px;
    position: absolute;
  }
}
#api-search-autofill a {
  display: block;
  text-decoration: none;
  padding: 5px;
  color: #242424;
}
#api-search-autofill a:not(:first-child) {
  border-top: 1px solid rgba(252, 252, 252, 0.75);
}
#api-search-autofill a:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
#api-search-autofill a.active {
  color: blue;
  background-color: rgba(252, 252, 252, 0.2);
}
#api-result {
  width: 100%;
  max-width: 600px;
  margin: 0px auto;
}
#api-result .row {
  margin: 20px;
}
@media (min-width: 720px) {
  #api-result .row {
    margin-top: 60px;
  }
}
@media (max-width: 719px) {
  #api-result .row {
    margin-top: 30px;
  }
}
#api-result .row .row-title {
  font-size: 1.5em;
  padding: 10px 20px;
}
#api-result .row .row-content {
  padding: 20px;
}
#api-result .row .row-content ol li {
  margin: 10px auto;
}
.form {
  display: table;
  width: 100%;
}
.form .input-group.has-error label {
  color: #BF0B0F;
}
.form .input-group.has-error .input-default {
  border-color: #BF0B0F;
}
.form label,
.form .input-wrapper {
  padding: 10px;
}
.form .input-default {
  font-size: 16px;
  padding: 7px 5px;
  border: 1px solid #242424;
  width: 100%;
}
.submit-wrapper {
  margin: 40px 0px 20px 0px;
}
.submit-wrapper button[type="submit"] {
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 10px 30px;
  font-weight: bold;
  border: 2px solid #242424;
}
@media (min-width: 720px) {
  .input-group {
    display: table-row;
  }
  .input-group > label {
    display: table-cell;
    width: 45%;
  }
  .input-group > .input-wrapper {
    display: table-cell;
  }
  .input-group .input-default {
    max-width: 250px;
  }
}
@media (max-width: 719px) {
  .form {
    width: 80%;
    margin: 0px auto;
  }
  .input-group > .input-wrapper {
    text-align: left;
    margin-bottom: 20px;
  }
}
#login {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  z-index: 2;
}
#login .exit {
  position: absolute;
  top: 10px;
  right: 10px;
  transform: translateY(-10px);
  padding: 10px;
  cursor: pointer;
  font-weight: bold;
  text-transform: capitalize;
}
#login .login-form-wrapper {
  position: relative;
  top: 20%;
  transform: translateY(-20%);
}
.filter-box,
.analysis-box {
  text-align: left;
  background-color: #E5ECF9;
  padding: 10px;
  margin-bottom: 20px;
  font-size: 0.9em;
}
@media (max-width: 719px) {
  .filter-box,
  .analysis-box {
    position: fixed;
    top: 50vh;
    transform: translateY(-50%);
    right: -260px;
    width: 260px;
    z-index: 2;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.4);
    transition: right 0.3s;
  }
  .filter-box.open,
  .analysis-box.open {
    right: 0px;
  }
}
.filter-box .toggler,
.analysis-box .toggler {
  background-color: #E5ECF9;
  position: absolute;
  top: 50%;
  left: -30px;
  transform: rotate(-90deg) translateX(-50%);
  transform-origin: 0 0;
  padding: 7px 15px;
  font-weight: bold;
  border-radius: 5px 5px 0px 0px;
  cursor: pointer;
  white-space: pre;
  box-shadow: -3px -3px 3px 0px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  color: darkblue;
  letter-spacing: 2px;
}
@media (min-width: 720px) {
  .filter-box .toggler,
  .analysis-box .toggler {
    display: none;
  }
}
.filter-box a,
.analysis-box a {
  text-decoration: none;
  color: darkblue;
}
.filter-box a.selected,
.analysis-box a.selected {
  font-weight: bold;
  color: #BF0B0F;
}
.filter-box > ul,
.analysis-box > ul {
  padding-left: 10px;
  list-style: none;
}
.filter-box > ul ul li,
.analysis-box > ul ul li {
  list-style: disc;
}
.filter-box ul li,
.analysis-box ul li {
  line-height: 1.4em;
}
.filter-box ul li.separated,
.analysis-box ul li.separated {
  border-bottom: 1px dotted gray;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.filter-box ul li ul > li:last-child,
.analysis-box ul li ul > li:last-child {
  margin-bottom: 10px;
}
.filter-box {
  padding: 20px;
}
.tags {
  width: 100%;
  min-height: 3em;
  font-size: 14px;
  padding: 2px;
  color: #CCCCCC;
  background-color: #FCFCFC;
  border: 1px solid #CCCCCC;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  border-radius: 5px;
}
.tags.focus {
  border-color: #000000;
}
.tags.readonly input[type="text"],
.tags.readonly .delete {
  display: none;
}
.tags .tag {
  min-height: 2.5em;
  display: flex;
  cursor: default;
  box-sizing: border-box;
  padding: 1px 8px;
  margin: 2px 2px;
  border-radius: 3px;
  background-color: #007aff;
  color: #FCFCFC;
  justify-content: center;
  align-items: center;
  max-width: calc(100% - 10px);
}
.tags .tag span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.tags .tag .delete {
  font-size: 1.4rem;
  margin-left: 5px;
  margin-top: -1px;
  cursor: pointer;
  transform: rotate(45deg);
  line-height: 0.8em;
}
.tags input[type="text"] {
  min-height: 2.5em;
  border: none;
  min-width: 3ch;
  width: 3ch;
  padding: 1px 3px;
  margin: 2px;
  outline: none;
  flex-grow: 1;
  background: transparent;
  order: 2;
}
@media (max-width: 719px) {
  .tags input[type="text"] {
    font-size: 16px;
  }
}
.tags input[type="text"].duplicated {
  background: rgba(191, 11, 15, 0.1) !important;
  color: #BF0B0F !important;
  border: 1px solid #BF0B0F;
  border-radius: 5px;
}
.breadcrumbs {
  color: #646464;
}
.breadcrumbs.desktop-only {
  position: absolute;
  left: 0.5cm;
  bottom: 15px;
}
.breadcrumbs.mobile-only {
  padding: 0px 20px 20px 20px;
}
.breadcrumbs.mobile-only .item {
  font-size: 15px;
}
.breadcrumbs a {
  color: #646464;
}
.breadcrumbs a:hover {
  text-decoration: none;
}
.breadcrumbs .item:not(:last-child):after {
  content: '»';
  display: inline-block;
  text-decoration: none;
  font-size: 12px;
  margin-left: 5px;
  vertical-align: top;
  position: relative;
  top: 2px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  height: 100%;
}
body {
  background-color: #FCFCFC;
}
@media (max-width: 719px) {
  body {
    padding-top: 110px;
  }
}
.flash-message {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.05);
  text-align: center;
}
.flash-message.success {
  background-color: rgba(231, 249, 229, 0.9);
  border: 1px solid #c1efbc;
}
.flash-message.error {
  background-color: rgba(191, 11, 15, 0.2);
  border: 1px solid #8f080b;
}
.full-container-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.body-wrapper {
  width: 100%;
  max-width: 1124px;
  margin: 0px auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.header {
  display: flex;
  align-items: stretch;
  /*background: url(../images/FeatureMKDictionary-trans.jpg) no-repeat @white;*/
  /*background-size: cover;*/
  background: #FCFCFC;
  box-shadow: 0px 6px 3px -3px rgba(0, 0, 0, 0.1);
}
@media (min-width: 720px) {
  .header {
    /*box-shadow: 10px 0px 10px 2px @white inset, -10px 0px 10px 2px @white inset;*/
    margin-bottom: 20px;
    position: relative;
    /*&:after {
            content: "";
            height: 1px;
            background: linear-gradient(90deg, transparent, @grey 15%, @grey 85%, transparent);
            position: absolute;
            bottom: 0px;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 1280px;
        }*/
  }
}
@media (max-width: 719px) {
  .header {
    height: 90px;
    padding: 0.2cm;
    position: fixed;
    top: 0px;
    width: 100%;
    z-index: 2;
  }
}
.header .logo {
  padding: 0.5cm 0.5cm 0.2cm 0.5cm;
  flex: 0 0 300px;
}
@media (max-width: 719px) {
  .header .logo {
    flex-basis: auto;
    padding: 0 0 0 10px;
    display: flex;
    align-items: center;
  }
}
@media (max-width: 719px) {
  .header .logo img {
    width: 90px;
  }
}
.header .title {
  display: flex;
  align-items: center;
  /*color: @white;
        text-shadow: 1px 1px 1px @black;*/
  width: 100%;
  padding: 0.5cm;
  position: relative;
}
.header .title .main {
  font-size: 20px;
}
@media (min-width: 720px) {
  .header .title .main {
    font-size: 30px;
  }
}
.header .auth {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #242424;
  z-index: 1;
}
@media (max-width: 719px) {
  .header .auth {
    top: 10px;
  }
}
.header .profile-nav {
  border: 1px solid gray;
  border-radius: 5px;
}
.header .profile-nav a {
  background-color: rgba(0, 0, 0, 0.05);
  display: block;
  padding: 5px 15px;
  text-decoration: none;
  color: black;
}
.body {
  flex-grow: 1;
  display: flex;
}
@media (max-width: 719px) {
  .body {
    flex-direction: column;
  }
}
.body.error {
  align-items: center;
}
@media (max-width: 719px) {
  .body.error {
    flex-direction: initial;
  }
}
.body .text {
  padding: 0px 0.7cm;
  line-height: 1.5em;
}
.body .text img {
  vertical-align: bottom;
}
.body .text blockquote {
  border-left: 4px solid #CCCCCC;
  padding-left: 10px;
}
.row {
  border-radius: 5px;
  background: #E5ECF9;
  margin: 20px;
  transition: background-color, box-shadow 0.3s;
  border: 1px solid transparent;
}
.row:first-child {
  margin-top: 0;
}
.row:last-child {
  margin-bottom: 0;
}
.row:hover {
  border-color: #CCCCCC;
  box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.05);
}
.row-title {
  background-color: #A9DEFF;
  padding: 8px;
  border-radius: 5px 5px 0 0;
  font-size: 15px;
  font-weight: bold;
}
.row-content {
  padding: 15px;
}
.row-content.digital-dictionary {
  display: table;
  table-layout: fixed;
  width: 100%;
}
.row-content.digital-dictionary a {
  display: table-cell;
  font-size: 14px;
}
.row-content.digital-dictionary a img {
  max-width: 50px;
  max-height: 50px;
  margin: 0px auto 10px auto;
}
@media (max-width: 719px) {
  .left-column {
    order: 2;
  }
}
@media (min-width: 720px) {
  .left-column {
    flex-grow: 1;
    flex-basis: 0%;
  }
}
.left-column .upper-part {
  /*flex: 1;*/
}
@media (max-width: 719px) {
  .left-column .upper-part {
    flex-direction: column;
  }
}
.left-column .upper-part .upper-left {
  position: relative;
  flex: 0 0 300px;
  border: 1px solid #CCCCCC;
  box-shadow: 0px 0px 10px inset rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
  border-radius: 5px;
  font-size: 14px;
}
.left-column .upper-part .upper-left .img {
  max-width: 150px;
  margin: 20px auto;
}
@media (max-width: 719px) {
  .left-column .upper-part .upper-left {
    flex: auto;
    margin: 20px;
  }
}
.lower-part {
  font-size: 0.9em;
  background: linear-gradient(rgba(229, 236, 249, 0.6), #E5ECF9);
  border: 1px solid #CCCCCC;
  margin: 20px 20px 0px 0px;
  padding: 20px;
  border-radius: 5px;
}
.lower-part p {
  margin: 5px auto;
}
.lower-part ul {
  margin: 10px auto;
}
@media (min-width: 720px) {
  .lower-part {
    max-height: 140px;
    overflow: auto;
  }
}
@media (max-width: 719px) {
  .lower-part {
    margin: 20px 20px 0px 20px;
  }
}
.lower-part a {
  color: #242424;
}
.lower-part a:hover {
  color: #BF0B0F;
  text-decoration: none;
}
.digital-resource a {
  display: inline-block;
  padding: 10px;
}
@media (min-width: 720px) {
  .digital-resource a {
    max-width: 215px;
  }
  .digital-resource a.wider {
    max-width: 225px;
  }
}
.digital-resource a img {
  max-height: 50px;
  vertical-align: middle;
  margin-bottom: 10px;
}
@media (max-width: 719px) {
  .digital-resource {
    flex-direction: column;
    align-items: center;
  }
  .digital-resource a {
    width: 90%;
    max-width: none;
    text-align: center;
    margin: 0px;
    padding: 15px;
  }
  .digital-resource a:not(:last-child) {
    border-bottom: 1px solid #CCCCCC;
  }
}
.digital-resource .solo-title {
  font-weight: bold;
  font-size: 22px;
  text-transform: uppercase;
  margin-bottom: 15px;
}
/* ads */
.right-column {
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: 300px;
  border-radius: 5px;
}
@media (max-width: 719px) {
  .right-column {
    order: 1;
    flex-basis: auto;
    /*padding: 10px;*/
  }
}
.right-column img:not(:last-child) {
  margin-bottom: 10px;
}
.right-column .amazon {
  padding: 20px 10px;
  border: 1px solid #CCCCCC;
  border-radius: 5px;
}
@media (max-width: 719px) {
  .right-column .amazon {
    margin: 0px 20px;
  }
}
@media (min-width: 720px) {
  .right-column .amazon {
    min-height: 142px;
  }
}
.right-column .amazon img {
  margin: 0px auto 20px auto;
}
.right-column .amazon span {
  position: relative;
}
.right-column .amazon span::after {
  position: absolute;
  content: "";
  left: 0px;
  bottom: 0px;
  height: 1px;
  width: 0px;
  transition: width 0.3s;
}
.right-column .amazon span:hover::after {
  width: 100%;
}
.right-column .amazon:hover span:after {
  width: 100%;
}
.right-column .square {
  margin: 20px 0px;
}
@media (max-width: 719px) {
  .right-column .square {
    margin: 20px 20px 0px 20px;
  }
}
.right-column .square img {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}
footer {
  padding: 0.3cm;
  border-top: 1px solid #CCCCCC;
  width: 100%;
  margin-top: 20px;
}
footer a {
  color: #242424;
  position: relative;
}
footer a::after {
  position: absolute;
  content: "";
  left: 0px;
  bottom: 0px;
  height: 1px;
  width: 0px;
  transition: width 0.3s;
}
footer a:hover::after {
  width: 100%;
}
.spellcheck {
  position: relative;
  padding: 20px;
}
@media (max-width: 719px) {
  .spellcheck {
    margin-top: 20px !important;
  }
}
@media (min-width: 720px) {
  .spellcheck {
    margin-left: 0px;
  }
}
.spellcheck .button-wrapper {
  display: flex;
  justify-content: space-between;
}
.spellcheck .button-wrapper .form-buttons-wrapper {
  text-align: right;
}
.spellcheck .button-wrapper .form-buttons-wrapper .button {
  padding-left: 0px;
}
.spellcheck .button-wrapper .form-buttons-wrapper .button .icon {
  width: 16px;
  vertical-align: middle;
}
.spellcheck .textarea {
  width: 100%;
  height: 200px;
  resize: none;
}
.spellcheck p {
  margin: 0px;
}
#text-processing-form.pending {
  background: url(../images/progress.gif) no-repeat 50% 30%;
}
#spellcheck-result {
  overflow: auto;
  overflow-wrap: anywhere;
  line-height: 1.7em;
  /* padding-bototm doesn't work well on firefox for overflown parents */
  /* use pseudo-element instead */
  padding-bottom: 0px;
}
#spellcheck-result:after {
  content: '';
  display: block;
  height: 15px;
}
#spellcheck-result a {
  text-decoration: none;
  padding: 2px 1px;
}
#spellcheck-result a.highlighted {
  color: #BF0B0F;
  text-decoration: none;
  border-bottom: 1px dotted #BF0B0F;
}
#spellcheck-result a:not(.highlighted) {
  color: #000000;
  transition: color 0.3s;
  border-bottom: 1px dotted #000000;
}
#spellcheck-result a:not(.highlighted):hover {
  color: darkblue;
  border-bottom: none;
}
#spellcheck-result a:not(.nonmatch) {
  cursor: help;
}
#spellcheck-result a.nonmatch {
  font-style: italic;
  cursor: not-allowed;
}
#spellcheck-result a.wait {
  cursor: progress;
}
.popup {
  display: none;
  border: 1px solid #CCCCCC;
  border-radius: 5px;
  background-color: #F7F7F7;
}
.popup.no-match {
  max-width: none;
  min-width: auto;
}
.popup.no-match > div {
  padding: 20px;
}
@media (max-width: 719px) {
  .popup {
    margin-top: 20px;
    position: relative;
  }
}
@media (min-width: 720px) {
  .popup {
    margin: 7px;
    min-width: 300px;
    max-width: 350px;
    max-height: 350px;
    box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.15);
    position: absolute;
    z-index: 1;
  }
  .popup:after,
  .popup:before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent #FCFCFC transparent;
    top: -20px;
    left: 10px;
  }
  .popup:before {
    z-index: 0;
    left: 9px;
    border-width: 11px;
    top: -22px;
  }
  .popup.no-match:before {
    border-bottom-color: #CCCCCC;
  }
  .popup.match:before {
    border-bottom-color: #CCCCCC;
  }
  .popup.match:after {
    border-bottom-color: #A9DEFF;
  }
}
.popup h2 {
  font-size: 16px;
  background-color: #A9DEFF;
  padding: 8px;
  border-radius: 5px 5px 0 0;
  font-weight: bold;
  margin: 0px;
  text-transform: uppercase;
}
.popup h2 .social {
  float: right;
}
.popup .tabs {
  position: absolute;
  top: 43px;
  left: -30px;
  border-radius: 5px 0px 0px 5px;
  border: 1px solid #CCCCCC;
  border-right: none;
  background: #EAEAEA;
}
.popup .tabs a {
  display: block;
  text-decoration: none;
  padding: 5px 10px;
  color: #aeaeae;
  outline: 0;
}
.popup .tabs a:first-child {
  border-top-left-radius: 5px;
}
.popup .tabs a:last-child {
  border-bottom-left-radius: 5px;
}
.popup .tabs a.active {
  color: #000000;
  background: #F7F7F7;
  font-weight: bold;
}
.popup .tabs a:not(.active) {
  box-shadow: -2px 0px 2px #CCCCCC inset;
}
.popup .meanings-wrapper {
  font-size: 12px;
  padding: 20px 20px 0px 20px;
  /*margin-bottom: 20px;*/
  max-height: 230px;
  overflow: auto;
}
.popup .meanings-wrapper .definition {
  margin-top: 20px;
}
.popup .meanings-wrapper .definition .meaning {
  font-weight: bold;
}
.popup .meanings-wrapper .more {
  display: block;
  margin: 20px 0px;
  font-style: italic;
  text-align: right;
}
.popup a {
  color: #000000;
  text-decoration: underline;
}
.popup a:hover {
  color: #BF0B0F;
  text-decoration: none;
}
#keyboard-button {
  min-width: 40px;
}
#keyboard-button img {
  margin: 0px;
  vertical-align: middle;
  position: relative;
  bottom: 3px;
}
#keyboard-button.disabled {
  cursor: disabled;
  background: #EAEAEA;
  border: 1px solid #CCCCCC;
}
#keyboard-button.disabled img {
  opacity: 0.4;
}
.keyboard-wrapper {
  z-index: 1;
}
@media (min-width: 720px) {
  .keyboard-wrapper {
    position: absolute;
    top: 10px;
    right: 10px;
  }
}
#keyboard {
  touch-action: manipulation;
  /* disable double tap zoom on ios */
  background: linear-gradient(rgba(252, 252, 252, 0.9), rgba(238, 238, 238, 0.85));
  box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.05);
  border: 1px solid #CCCCCC;
  display: flex;
  justify-content: space-between;
  max-width: 440px;
}
@media (min-width: 720px) {
  #keyboard {
    cursor: move;
    padding: 35px 20px 20px 20px;
  }
  #keyboard .column.wider {
    flex: 0 0 305px;
  }
}
@media (max-width: 719px) {
  #keyboard {
    padding: 35px 10px 10px 10px;
  }
}
#keyboard .key {
  -webkit-appearance: none;
  cursor: pointer;
  outline: 0;
  width: 30px;
  height: 30px;
  padding: 0;
  text-align: center;
  border: 1px solid #CCCCCC;
}
@media (min-width: 720px) {
  #keyboard .key {
    margin: 2px;
  }
}
@media (max-width: 719px) {
  #keyboard .key {
    margin: 1px;
  }
}
#keyboard .key.insert {
  background-color: #FCFCFC;
  transition: all 0.2s;
}
#keyboard .key.insert:hover {
  background-color: #efefef;
}
#keyboard .key.active {
  border: 1px solid #000000;
  background: #FCFCFC;
}
#keyboard .key.active.allcaps {
  font-weight: bold;
  text-decoration: underline;
  background: #A9DEFF;
}
#keyboard .key.space {
  display: block;
  width: 100%;
  margin-top: 10px;
}
#keyboard.uppercase .key:not(.space) {
  text-transform: uppercase;
}
#keyboard .keyboard-close {
  width: 20px;
  position: absolute;
  top: 5px;
  right: 5px;
  cursor: pointer;
  transition: transform 0.3s;
}
#keyboard .keyboard-close:hover {
  transform: rotate(360deg);
}
.error-page {
  width: 100%;
  text-align: center;
  position: relative;
  top: -2em;
}
.error-page .title {
  color: #009;
  font-size: 10em;
  font-weight: bold;
}
@media (max-width: 719px) {
  .error-page .title {
    font-size: 6em;
  }
}
.error-page p {
  font-size: 1.2em;
}
.grammar_err {
  background-color: #F8FFB6;
}
h1 {
  font-size: 1.5em;
}
.success-message {
  color: green;
  text-align: center;
  padding: 20px;
}

