html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background: #000000;
  overflow: hidden;
  font-family: 'Roboto', sans-serif;
  margin: 0px;
}

body.front img.front-image {
  padding-bottom: 30px;
}

div#page {
  width: 100%;
  height: 100%;
  padding: 0px;
  margin: 0px;
  background: white;
  display: flex;
}

div#search-column {
  height: 100%;
  background: #e0e0e0;
  flex: 200px;
  min-width: 250px;
}

div#search-column a {
  color: white;
}

div#search-entry {
  position: relative;
  height: 29px;
  width: calc(100% - 10px);
  background: #a0a0a0;
  border-left: 10px solid #c0c0c0;
}

div#search-entry input[type="text"] {
  position: absolute;
  left: 0px;
  top: 0px;
  background: #f0f0f0;
  border: none;
  height: 9px;
  width: calc(100% - 20px);
  padding: 10px;
  border-radius: 0;
}

div#submit {
  position: absolute;
  right: 0px;
  top: 0px;
  width: 0; 
  height: 0; 
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  
  border-left: 20px solid #f0f0f0;

  display: inline-block;
  background: #707070;
  cursor: pointer;
}

div#search-results {
  width: 100%;
  height: calc(100% - 40px);
  border-bottom: 10px;
  background: #909090;
  overflow-y: scroll;
  scrollbar-color: #e0e0e0 #c0c0c0;
  scroll-behavior: smooth;
}

div#data {
  height: 100%;
  width: 80%;
  background: #d0d0d0;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  position: relative;
}

div#idata {
  vertical-align: middle;
}

div.search-item {
  background: #b0b0b0;
  border-top: 10px solid #909090;
  padding: 10px;
  cursor: pointer;
}

div.search-item span.title {
  display: block;
  font-weight: bold;
  margin-top: 1ex;
}

div.search-item span.mark {
  background: #f0f000;
  margin: 1px;
}

div.page {
  display: inline-block;
  vertical-align: middle;
  margin-left: 5px;
  margin-right: 5px;
  position: relative;
  cursor: pointer;
}

div.page[data-selected="true"] {
  cursor: zoom-in;
}

div.mark {
  background: #f00;
  margin: 1px;
  position: absolute;
  opacity: 0.7;
  pointer-events: none;
  mix-blend-mode: difference;
}

div#explanation {
  margin: 10px;
  color: white;
}

div#idata table td {
  padding: 5px;
  text-align: center;
  vertical-align: center;
}

div#idata table {
  border: 10px solid #909090;
  padding: 8px;
}

.lightbox {
  left: 0px;
  top: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  opacity: 0.9;
  position: fixed;
  color: white;
  font-weight: bold;
  font-size: 30px;
}

div.change-mag {
  text-align: center;
  /* Decrease font size based on height of the screen. */
  font-size: 3.2vh;
  columns: 2;
}

div.change-mag-ALL {
  font-size: 2.5vh;
  columns: 5;
}

div.change-mag-TOUT {
  font-size: 2.5vh;
  columns: 6;
}

div.change-mag-FAN, div.change-mag-MAG {
  font-size: 2.5vh;
  columns: 3;
}

div.change-mag a {
  color: white;
  text-decoration: none;
}

input:focus {
  outline: none;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #c0c0c0;
}

::-webkit-scrollbar-thumb {
  background: #e0e0e0;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

div.more-wrapper {
  height: 100px;
  min-width: 64px;
  display: inline-block;
  vertical-align: middle;
  margin: 5px;
  position: relative;
}

div.more {
  position: absolute;
  width: 0; 
  height: 0; 
  border-top: 50px solid transparent;
  border-bottom: 50px solid transparent;
  
  border-left: 20px solid #f0f0f0;

  display: inline-block;
  background: transparent;
  cursor: pointer;
  opacity: 0.7;
}

div.next-pages, div.prev-pages {
  min-width: 20px;
}

div.next-pages .more {
  border-left: 20px solid #404040;
  cursor: pointer;
}

div.prev-pages .more {
  border-right: 20px solid #404040;
  border-left: 0px;
  cursor: pointer;
}

div.more-wrapper img {
  z-index: 1;
  height: 120px;
  position: absolute;
  top: 0;
  left: 0;
}

.selected {
  background: #808080 !important;
}

body.front {
  padding-top: 30px;
  background: #808080;
  display: grid;
  align-items: center;
  justify-content: center;
  min-width: 100%;
  min-height: 100%;
  overflow-y: scroll;
}

body.front a {
  color: black;
  decoration: none;
}

body.front > div {
  vertical-align: middle;
  width: 100%;
}

div#front-wrap {
  text-align: center;
}

table.front-text {
  width: 100%;
}

table.front-text td {
  display: inline-block;
  width: 40%;
  vertical-align: top;
}

img#katalpa {
  position: absolute;
}

div.more-cover {
  height: 120px;
  position: absolute;
  bottom: 0px;
  display: inline-block;
  vertical-align: middle;
  margin: 10px;
}

div.more-cover img {
  height: 120px;
}


@media only screen and (max-width: 760px) {
  div#search-column {
    flex: 100%;
  }

  div#idata {
    display: none;
  }

  div#data {
    display: none;
  }

  div#search-entry input[type="text"] {
    font-size: 16px;
  }

  body.front img {
    width: 100%;
  }

  .next-pages {
    position: absolute !important;
    right: 0px;
    top: calc(50% - 60px);
  }
  .prev-pages {
    position: absolute !important;
    left: 0px;
    top: calc(50% - 60px);
  }

  div#search-entry {
    border-left: 40px solid #c0c0c0;
  }

  div#search-entry {
    width: calc(100% - 40px);
  }
  div#search-entry input[type="text"] {
    width: calc(100% - 40px);
  }
  img#menu {
    position: absolute;
    top: 5px !important;
    left: -30px;
    width: 20px;
  }
}

div.mpage {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background: #a0a0a0;
}

div.mpage-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

div.ipage {
  display: inline-block;
  position: relative;
}

#closeimg {
  width: 50px;
  height: 50px;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

img#menu {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  cursor: pointer;
}

img#read-page {
  position: absolute;
  top: 12px;
  right: 30px;
  width: 18px;
  cursor: pointer;
}

img#exclude-img, img#include-img {
  width: 20px;
  cursor: pointer;
}

#include-wrap {
  position: absolute;
  top: 10px;
  right: 70px;
  text-align: right;
}

#exclude-wrap {
  position: absolute;
  top: 10px;
  right: 50px;
  text-align: right;
}

img#language-img {
  width: 15px;
  cursor: pointer;
}

#language-wrap {
  position: absolute;
  top: 12px;
  right: 93px;
  text-align: right;
}

#exclude-list, #include-list, #language-list {
  text-align: left;
  display: none;
  background: #c0c0c0;
  padding: 15px;
  padding-bottom: 25px;
  border: 10px solid #606060;
  max-height: calc(100vh - 150px);
  overflow-y: scroll;
}

#exclude-title, #include-title, #language-title {
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 10px;
}



.lds-spinner {
  color: official;
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-spinner div {
  transform-origin: 40px 40px;
  animation: lds-spinner 1.2s linear infinite;
}
.lds-spinner div:after {
  content: " ";
  display: block;
  position: absolute;
  top: 3px;
  left: 37px;
  width: 6px;
  height: 18px;
  border-radius: 20%;
  background: #fff;
}
.lds-spinner div:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: -1.1s;
}
.lds-spinner div:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -1s;
}
.lds-spinner div:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.9s;
}
.lds-spinner div:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.8s;
}
.lds-spinner div:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.7s;
}
.lds-spinner div:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.6s;
}
.lds-spinner div:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.5s;
}
.lds-spinner div:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.4s;
}
.lds-spinner div:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.3s;
}
.lds-spinner div:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.2s;
}
.lds-spinner div:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.1s;
}
.lds-spinner div:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: 0s;
}
@keyframes lds-spinner {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.issue-numbers {
  margin: auto;
  max-width: 50%;
  font-size: 2.9vh;
}

div.complete {
  background-color: #404040;
}

div.page-text {
  height: 80vh;
  font-size: 12pt;
  overflow-y: scroll;
  padding: 40px;
  position: relative;
  max-width: 800px;
}

img.close-lightbox {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  cursor: pointer;
}

img#translate {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  padding: 5px;
  background-color: #a0a0a0;
  cursor: pointer;
}
