*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
.layout {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1;
}
header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 3px 10px;
  background: #000000;
  border-bottom: 1px solid #848484;
}
.header-top {
  font-family: "Inter", sans-serif;
  color: #ffffff;
  grid-column: 2;
  justify-self: center;
}
.header-top h1 {
  font-size: 12px;
  letter-spacing: 7px;
}
.hdr {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
}

.hdr img {
  width: 20px;
  height: auto;
  display: block;
}
.header-bottom {
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  color: #ffffff;
  font-size: 10px;
  background-color: #000000;
}
.header-bottom a {
  color: #a7a7a7;
  text-decoration: none;
}
.header-bottom a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.header-bottom p {
  position: static;
  margin-left: 214px;
}
main {
  position: relative;
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: center;
  transition: background-color 0.3s ease;
  padding: 10px;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: stretch;
}
main p2 {
  font-size: 12px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}
main p {
  font-style: 15px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}
main.theme-everything {
  background-image: url("../images/bookshelf-main.png");
  background-color: #22274b;
}
main.theme-manga {
  background-image: url("../images/bookshelf-manga.png");
  background-color: #2b1d3a;
}
main.theme-anime {
  background-image: url("../images/bookshelf-anime.png");
  background-color: #1d3a35;
}
main.theme-movies {
  background-image: url("../images/bookshelf-movies.png");
  background-color: #a6463c;
}
main.theme-tv {
  background-image: url("../images/bookshelf-tv.png");
  background-color: #566c90;
}
main img {
  height: auto;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  text-align: center;
}
main ul {
  list-style: none;
  padding: 0;
  text-align: center;
}
main ul li {
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 10px;
}
.everything-links {
  display: none;
}
main.theme-everything .everything-links {
  display: block;
}
.category-link {
  background: none;
  border: none;
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 15px;
  color: #ffffff;
  cursor: pointer;
  padding: 4px 10px;
  transition: color 0.2s ease;
}
.category-link:hover {
  color: #d8b868;
}
#main-content {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 24px;
  background: #ffffff;
  color: #000000;
  overflow: auto;
  display: none;
  z-index: 1;
}
main.content-active {
  background-image: none;
  background-color: #ffffff;
}
#main-content.visible {
  display: block;
}
.content-topbar {
  background: #5c6f95;
  color: #ffffff;
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 10px;
}

#content-body {
  padding: 24px;
}

.entry-title {
  font-family: "Inter", sans-serif;
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid #dcdcdc;
}

.entry-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.entry-media {
  flex: 0 0 190px;
}

.entry-media img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #cfcfcf;
}

.entry-caption {
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 11px;
  color: #6b6b6b;
  margin-top: 4px;
  line-height: 1.4;
}

.entry-text {
  flex: 1;
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.9;
  color: #222222;
  max-width: 77%;
}

.entry-text a {
  color: #2f5cd0;
  text-decoration: none;
}

.entry-text a:hover {
  text-decoration: underline;
}

.sidebar {
  background: #ececec;
  width: 200px;
  flex-shrink: 0;
  padding: 8px;
}
.sidebar-left {
  background: #000000;
}
.sidebar-left p {
  color: #ffffff;
  text-decoration: none;
  font-family: "MS UI Gothic", sans-serif;
  font-size: 85%;
}
.sidebar-left h2 {
  color: #ffffff;
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 130%;
  padding-left: 20px;
}
.sidebar-left h2 a {
  color: #ffffff;
  text-decoration: none;
}
.sidebar-left h2 a:hover {
  color: #d8b868;
}

.sidebar-left h3 {
  color: #a7a7a7;
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 70%;
  padding-left: 80px;
  position: sticky;
  top: 95%;
}
.sidebar-left h3 a {
  color: #a7a7a7;
  text-decoration: none;
}
.sidebar-left h3 a:hover {
  color: #2f5cd0;
}
.buttons88x31 {
  display: flex;
  flex-direction: row;
  margin-top: 10px;
}
.buttons88x31 img {
  width: 88px;
  height: 31px;
  margin-bottom: 5px;
  padding: 2px;
}
.scrollbox {
  max-height: 420px;
  background: #ffffff;
}
.scrollbox ul {
  list-style: square;
  margin-bottom: 10px;
  margin-left: -40px;
  overflow: hidden;
  text-overflow: ellipsis;
}
#circle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

#circle img {
  display: inline-block;
  width: 20px;
  height: 20px;
}

#circle:hover {
  background: rgba(216, 184, 104, 0.15);
  border-color: #d8b868;
  color: #d8b868;
}

#circle:hover .menu {
  color: #d8b868;
}
#menu {
  position: relative;
  display: inline-block;
}
.category-menu {
  position: relative;
}
#menu {
  position: absolute;
  top: 20%;
  left: 105%;
  min-width: 160px;
  background: #000;
  border: 1px solid #848484;
  z-index: 10;
  color: #a7a7a7;
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-weight: bold;
  cursor: pointer;
}
#menu[hidden] {
  display: none;
}
#menu:not([hidden]) {
  display: block;
}

#menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#menu a {
  display: block;
  padding: 8px 12px;
  color: #fff;
  text-decoration: none;
}

#menu a:hover {
  color: #d8b868;
}
#errthing {
  border-bottom: 1px solid #a7a7a7;
}
.dropdown-content button.category-option:hover {
  background: rgba(216, 184, 104, 0.15);
  color: #d8b868;
}

button {
  display: block;
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  cursor: pointer;
  border: none;
  background: none;
  color: #d8b868;
  text-align: left;
  font-size: 20px;
  font-weight: bold;
  padding: 12px 16px;
  width: 100%;
}
button:hover {
  color: #a7a7a7;
}
.scrollbox button {
  color: #000;
  font-size: 10px;
  padding: 0px;
}
.scrollbox button:hover {
  border: outset;
}

.manga-content {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  padding: 24px;
  background: #fff;
  color: #000;
  overflow: auto;
}
.manga-content h2 {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.manga-content img {
  display: ruby;
  width: auto;
  max-width: 100%;
  height: auto;
}

.manga-content img.misc-img {
  width: 300px;
  height: auto;
}

.item-button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
}
.item-button:hover {
  cursor: pointer;
  border-bottom: 2px solid #848484;
  border-right: 2px solid #848484;
  border-top: 2px solid #848484;
}
.spoiler-text {
  background: #797979;
  color: transparent;
  cursor: help;
  user-select: none;
  transition:
    background 0.3s ease 0.2s,
    color 0.2s ease 0.25s;
  border-radius: 2px;
  padding: 0 2px;
}

.spoiler-text:focus {
  background: #e8e8e8;
  color: inherit;
}

.entry-image-row {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.entry-image-row img {
  max-width: 100%;
  height: auto;
}
