body {
  background-color: #6d3e2f;
  word-wrap: break-word;
}

#page {
  background-color: white;
  overflow-x: hidden;
}

#header {
  flex-wrap: nowrap;
  background: #6d3e2f url("../images/theme/chocolate-piece.jpg");
  height: 58px;
}
@media (max-width: 767.98px) {
  #header {
    background-position: 56px 0;
  }
}

#header-menu-hamburger {
  padding: 11px 10px;
  vertical-align: top;
  background-image: url("../images/theme/chocolate-piece.jpg");
  background-size: 100% 100%;
}

#navigation {
  color: white;
  background-color: #6d3e2f;
  display: none;
}
@media (min-width: 768px) {
  #navigation {
    display: flex;
  }
}

#main {
  margin-top: 10px;
  margin-bottom: 10px;
  padding-left: 4px;
  padding-right: 4px;
  width: calc(100% + 2 * 15px);
}
@media (min-width: 768px) {
  #main {
    padding-left: 16px;
    padding-right: 16px;
  }
}

#left {
  margin: 20px 40px 20px 0;
}

#right {
  margin: 20px 0 20px 40px;
}

#ad-left, #ad-right {
  width: 180px;
  height: 600px;
}

#middle {
  width: 100%;
}
@media (min-width: 992px) {
  #middle {
    width: calc(100% - calc(180px + 40px));
  }
}
@media (min-width: 1200px) {
  #middle {
    width: calc(100% - calc(180px + 40px) - calc(180px + 40px));
  }
}

#ad-top, #ad-middle {
  min-height: 100vw;
}
@media (min-width: 488px) {
  #ad-top, #ad-middle {
    min-height: 100px;
  }
}
@media (min-width: 736px) {
  #ad-top, #ad-middle {
    min-height: 90px;
  }
}

#ad-bottom {
  min-height: 100vw;
}
@media (min-width: 488px) {
  #ad-bottom {
    min-height: 280px;
  }
}

#ad-top, #ad-middle, #ad-bottom {
  text-align: center;
  overflow: hidden;
}

#content {
  width: 100%;
  min-height: 400px;
}

.most-block {
  border-radius: 8px;
  border: 2px solid #6d3e2f;
  border-top-width: 30px;
  margin: 10px 0;
}
.most-block .view-header {
  position: relative;
  top: -25px;
}
.most-block .view-header .most-block-title {
  margin-left: 20px;
  color: white;
  font-size: 16px;
  font-weight: bold;
}
.most-block .view-header .most-block-more {
  margin-right: 20px;
  color: white;
  font-weight: bold;
}
.most-block .view-header .most-block-more a {
  color: #E6E48B;
}
.most-block .view-header .most-block-more a:active, .most-block .view-header .most-block-more a:visited {
  color: #C5C47B;
}
.most-block .view-header .most-block-more a:hover {
  color: #ffffff;
}
.most-block .view-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, 110px);
  grid-template-rows: repeat(2, auto); /* Define 2 explicit rows */
  grid-auto-rows: 0; /* Hide any additional implicit rows */
  overflow: hidden; /* Ensure clipping */
}

.no-word-sets {
  padding: 0 0 20px 20px;
}

.thumbnailSet {
  width: 110px;
  padding: 0 4px 10px;
  text-align: center;
}
.thumbnailSet.calculating {
  opacity: 0;
  visibility: hidden;
}
.thumbnailSet.visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.1s;
}
.thumbnailSet.hidden {
  opacity: 0;
  visibility: hidden;
}

.word-set-title a {
  font-size: 14px;
}

.word-set-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 2px;
}

.word-set-badge {
  font-size: 10px;
  padding: 0 2px;
  border-radius: 5px;
  line-height: 12px;
  margin: 0 2px;
}

.word-set-draft {
  background-color: #80ff80;
}

.word-set-private,
.word-set-unlisted {
  background-color: #80ffff;
}

.word-set-reviewing {
  background-color: #ffbebe;
}

.word-set-incomplete {
  background-color: #ff8080;
}

.word-set-new {
  background-color: #ffff00;
}

.word-set-updated {
  background-color: #00ff00;
}

.word-set-promote {
  background-color: #ffcc00;
}

#pre-footer {
  background: #6d3e2f;
}
#pre-footer ul {
  margin: 5px 0;
  padding: 0;
}
#pre-footer ul li {
  display: inline-flex;
  font-size: 1.25em;
  margin: 0 15px;
}
#pre-footer ul li a {
  color: #E6E48B;
  text-decoration: underline;
}
#pre-footer ul li a:hover {
  color: white;
}
#pre-footer ul li a:visited {
  color: #c5c47b;
}

#footer {
  background: #6d3e2f url("../images/theme/chocolate-piece.jpg");
  padding: 10px 0;
  height: 232px;
}

.unselectable {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.page-title {
  font-size: 2.5rem;
}

.item-title {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.chocolate-button, .chocolate-button-normal {
  padding: 10px;
  background-image: url("../images/theme/chocolate-piece.jpg");
  background-size: 100% 100%;
  color: white;
  white-space: nowrap;
}
.chocolate-button:hover, .chocolate-button-normal:hover {
  color: white;
  background-color: #552211;
  border-color: #552211;
  box-shadow: inset 0 0 100px 100px rgba(255, 255, 255, 0.1);
}
.chocolate-button:focus, .chocolate-button-normal:focus {
  color: white;
  background-color: #552211;
  border-color: #552211;
  box-shadow: 0 0 0 0.2rem rgba(109, 62, 47, 0.5);
}

.chocolate-button-normal {
  padding: 10px 16px;
  margin: 5px;
  height: 2.8em;
}

.btn-brown {
  background-color: #6d3e2f;
  border-color: #6d3e2f;
  color: white;
}
.btn-brown:hover {
  color: white;
  background-color: #552211;
  border-color: #552211;
}
.btn-brown:focus {
  color: white;
  background-color: #552211;
  border-color: #552211;
  box-shadow: 0 0 0 0.2rem rgba(109, 62, 47, 0.5);
}

#home-button {
  line-height: 0;
}

.navItem {
  margin: 6px 10px;
}

.navTitle {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  word-break: keep-all;
}

.navDropdown {
  margin-left: 7px;
  height: 26px;
  padding: 0 5px;
  font-size: 14px;
}

#search {
  width: auto;
}

#search-input {
  width: 150px;
  height: 26px;
  padding: 4px 6px;
  margin: 0;
  font-size: 14px;
  line-height: 16px;
}

#search-icon {
  margin: 0;
  padding: 0;
  width: 26px;
  height: 26px;
  color: transparent;
  border-top: solid 2px #552211;
  border-right: solid 2px #3e160e;
  border-bottom: solid 2px #3e160e;
  border-left: solid 2px #552211;
  background-image: url("../images/theme/magnifier-26x26.png");
  background-size: 20px 20px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: 1px 1px;
}

.banner {
  margin: 0 10px;
}

.bannerBase, .weibo-banner, .twitter-banner, .facebook-banner {
  width: 144px;
  height: 44px;
}

.facebook-banner {
  background: url("../images/theme/facebook-twitter.jpg") no-repeat 0 0;
}

.twitter-banner {
  background: url("../images/theme/facebook-twitter.jpg") no-repeat 0 -50px;
}

.weibo-banner {
  background: url("../images/theme/weibo.jpg") no-repeat 0 0;
}

#copyright-info {
  font-size: 12px;
  font-weight: bold;
  color: white;
  margin-top: 15px;
}

.table-1, .translations {
  border-bottom: 2px solid #dee2e6;
  margin: 20px 0;
}
.table-1 .row, .translations .row {
  border-top: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
}
.table-1 .header, .translations .header {
  border-top: 2px solid #dee2e6;
  border-bottom: 2px solid #dee2e6;
  font-weight: bold;
}
.table-1 .key, .translations .key, .table-1 .col, .translations .col {
  padding: 0.75rem;
}

.translations .directory-content {
  transition: height 0.15s;
}
.translations .existingKey {
  transition: height 0.15s;
}

#category-selector {
  position: relative;
}

#category-hit-thief {
  z-index: 10;
  height: 26px;
  width: 100%;
  position: absolute;
  top: 0px;
  left: 0px;
  border: 1px solid transparent;
  margin-left: 7px;
}

#category-extended-holder {
  display: flex;
  justify-content: center;
}

#category-extended {
  background-color: #6d3e2f;
  padding: 5px 0;
  border-radius: 5px;
  text-align: center;
  position: absolute;
  z-index: 10;
  border: 1px white solid;
  display: none;
  flex-wrap: wrap;
  justify-content: center;
}
#category-extended a {
  color: #E6E48B;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  height: 20px;
}
#category-extended a:hover, #category-extended a:focus {
  text-decoration: underline;
}
#category-extended .category-group {
  /* A simple method to get navigation links to appear in one line. */
  border-style: none;
  padding: 0 10px;
}
#category-extended .category-group .category-group-title {
  color: white;
  font-size: 18px;
  font-weight: bold;
  background-image: url("../images/theme/chocolate-piece.jpg");
  background-size: 100% 100%;
  border-radius: 5px;
  padding: 2px 10px 4px;
}
#category-extended .category-group .category-group-content {
  margin: 0;
  padding: 0;
  line-height: 25px;
}
#category-extended .category-group .category-group-content .category {
  border-style: none;
  padding: 0 10px;
}

#edit-thumbnail-image-outer {
  width: 100px;
  height: 80px;
  margin-bottom: 10px;
  text-align: center;
}

#edit-thumbnail-prompt {
  padding: 0.375rem 0.75rem;
  color: red;
}

.auth-container {
  width: 400px;
  margin: 20px auto;
  padding: 20px;
  border-radius: 10px;
  background-color: wheat;
}

#password-strength {
  margin-top: 5px;
  height: 20px;
  width: 50%;
  display: block;
  background-color: #ccc;
}

#password-strength span {
  display: block;
  height: 20px;
  border-radius: 2px;
  transition: all 500ms ease;
}

.strength-0 span {
  background-color: red;
  width: 5%;
}

.strength-1 span {
  background-color: orangered;
  width: 25%;
}

.strength-2 span {
  background-color: orange;
  width: 50%;
}

.strength-3 span {
  background-color: yellowgreen;
  width: 75%;
}

.strength-4 span {
  background-color: green;
  width: 100%;
}

#password-strength-description {
  margin-top: 5px;
  width: 50%;
  height: 20px;
  text-align: right;
}

.item-control {
  background-color: #6d3e2f;
  padding: 5px;
  margin: 5px;
  display: inline-flex;
}

/* Tooltip container */
.lc-tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
  /* Tooltip text */
  /* Show the tooltip text when you mouse over the tooltip container */
}
.lc-tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  border: solid 1px black;
  /* Position the tooltip text - see examples below! */
  position: absolute;
  z-index: 1;
}
.lc-tooltip .tooltip-right {
  top: -5px;
  left: 125%;
}
.lc-tooltip .tooltip-right:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -5px;
  border-width: 10px;
  border-style: solid;
  border-color: transparent black transparent transparent;
}
.lc-tooltip:hover .tooltiptext {
  visibility: visible;
}

.favorite {
  margin: 10px 5px 10px 0;
  background-position: left center; /* LTR */
  background-repeat: no-repeat;
  border: none;
  width: 36px;
  height: 28px;
}

.unfavored {
  background-image: url("../images/theme/gray-heart.svg");
}

.favored {
  background-image: url("../images/theme/red-heart.svg");
}

.locale-description,
.locale-translation {
  white-space: pre-wrap;
}

.google-translation-button {
  margin: 0px;
  padding: 0.25rem 0.5rem;
  border: 1px solid;
  border-radius: 0.2rem;
  cursor: pointer;
  img-width: 16px;
  img-height: 16px;
  width: 32px;
  height: 32px;
}