body {
  background-color: #BBB;
}

span.perms {
  cursor: pointer;
}

tr.toggle th {
  cursor: pointer;
}

tr.toggle th:hover {
  color: #FF0 !important;
}

tr.toggle table {
  display: none;
}

.rtp_progcontainer {
  margin: 0 auto;
}

.rtp_progressbar {
  width: 500px;
  border: 1px solid #000;
  padding: 5px;
  margin: 0 auto;
  text-align: left;
  background-color: #FFF;
}

.rtp_progressbar div {
  background-color: #0A0;
  height: 20px;
}

.rtp_progcontainer h1 {
  font-size: 1.5em;
  color: #00F;
}

.manga-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
  padding: 20px;
  max-width: 1400px;
  align-items: flex-start;
}

.manga {
  flex: 1 0 200px;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  cursor: pointer;
}

.manga img.cover {
  height: 300px;
  width: auto;
  display: block;
  border: 1px solid #000;
  -moz-box-shadow: 2px 6px 4px #000;
  -webkit-box-shadow: 2px 6px 4px #000;
  box-shadow: 2px 6px 4px #000;
}

.manga span {
  text-align: center;
  margin-top: 10px;
  max-width: 100%;
  word-wrap: break-word;
}

.cover-wrapper {
  position: relative;
  display: inline-block;
}

.favorited {
  position: absolute;
  top: 16px;
  right: 5px;
  width: 30px;
  height: 35px;
  z-index: 2;
}

.manga-tools {
  max-width: 1400px;
  margin: 0 auto;
}

table.light td {
  background-color: #C0FFC0 !important;
}

.mangaheader-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  border: 1px solid #000;
  max-width: 900px;
  word-wrap: break-word;
  background-color: #C0FFC0;
  padding: 10px 10px 25px 10px;
}

.mangaheader-image-container {
  flex: 0 0 auto;
  margin-right: 20px;
}

.mangaheader-image-container img {
  width: 225px;
  height: auto;
  display: block;
}

.mangaheader-text-container {
  flex: 1 1 auto;
  min-width: 200px;
  max-width: calc(100% - 250px);
  text-align: left;
  word-wrap: break-word;
}

.mangaheader-text-container h3 {
  color: #00F;
  font-size: 1.5em;
  margin-bottom: 0px;
}

.selected {
  background-color: #C0C0FF;
}

.chapter-tab-content .nounread {
  padding: 50px 10px; 
  color: #C0FFFF; 
  font-size: 1.5em; 
  font-weight: bold; 
  font-style: italic; 
  text-align: center; 
  text-shadow: -1px -1px 0 black, 
                1px -1px 0 black,
                -1px  1px 0 black,
                1px  1px 0 black;
}

.favorite img {
  border: 5px solid #F00 !important;
}

.manga-main img {
  border: 1px solid #000;
  -moz-box-shadow: 2px 6px 4px #000;
  -webkit-box-shadow: 2px 6px 4px #000;
  box-shadow: 2px 6px 4px #000;
}

.divider {
  color: #AAA;
}

.genreclick {
  cursor: pointer;
}

.searchoverlay {
  display: none;
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.searchbox {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.alphafilter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px;
  max-width: 98%;
  margin: 0 auto;
  border: 2px solid #337FCD;
  z-index: 1;
}

.alphafilter > div {
  background: #DDD;
  display: inline-block;
  padding: 10px;
  margin: 5px;
  width: 40px;
  flex: 1 1 auto;
  max-width: 50px;
  cursor: pointer;
}

.alphafilter div:hover {
  background-color: #FFF;
}

.mark {
  color: #000;
}

.marking_buttons {
  display: none;
}

.chapter-container {
  max-width: 922px;
  margin: 20px auto 0 auto;
  font-family: sans-serif;
  background-color: #C0FFC0;
}

.tab-header {
  display: flex;
  border-bottom: 2px solid #ccc;
  margin-bottom: 10px;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  cursor: pointer;
  font-weight: bold;
  background: #ddd;
  border: 1px solid #ccc;
  border-bottom: none;
}

.tab.active {
  background: #fff;
  border-bottom: 2px solid #fff;
}

.chapter-list {
  max-height: 60vh;
  overflow-y: auto;
  position: relative;
}

.chapter-tab-content {
  display: block;
  font-size: 2em;
  text-align: left;
}

.chapter-tab-content.hidden {
  display: none;
}

.chapter-row {
  padding: 10px 0px 10px 10px;
}

.chapter-row input {
  margin-right: 20px;
}

.chapter-row span {
  cursor: pointer;
}

.chapter-row:last-child {
  border-bottom: none;
}
.chapter span:hover {
  background-color: transparent;
}

.chapter span:hover::before {
  content: '';
  position: absolute;
  inset: 0;
}

.chapter span:hover {
  cursor: pointer;
}

.chapter span:hover {
  background-color: inherit;
}

.chapter-row:hover {
  background-color: #e0ffe0;
}

.mangaheader-wrapper {
  position: relative;
  display: inline-block;
}

.favorite-bookmark {
  position: absolute;
  top: 1px;
  right: 10px;
  width: 30px;
  height: 35px;
  z-index: 10;
}

.searchContainer {
  margin-top: 25px;
  border: 1px solid #000;
  background-color: #C0C0FF;
  padding: 20px 50px;
  -moz-box-shadow: 2px 6px 4px #000;
  -webkit-box-shadow: 2px 6px 4px #000;
  box-shadow: 2px 6px 4px #000;
  max-width: 400px;
  display: none;
}

.searchContainer input[type="text"] {
  font-size: 1.5em;
}

.markbtn {
  cursor: pointer;
}

.mobileonly {
  display: none;
}

.dropdown-content a {
  cursor: pointer;
}

.alpharoot {
  cursor: pointer;
}

.alpha-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #AAA;
}

@media (max-width: 600px) {
  .alphafilter div {
    width: 30px;
    max-width: 40px;
  }
  
  .mobileonly {
    display: block;
  }
}

@media (max-width: 805px) {
  .mangaheader-container {
    flex-direction: column;
  }

  .mangaheader-image-container {
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .mangaheader-text-container {
    max-width: 100%;
  }
}

@media (max-width: 805px) {
  .mangaheader-text-container {
    max-width: 100%;
  }
  
  .marking_buttons {
    display: block;
  }
}
