/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
}
main {
  display: block;
}
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
pre {
  font-family: monospace, monospace;
  font-size: 1em;
}
a {
  background-color: transparent;
}
abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}
b,
strong {
  font-weight: bolder;
}
code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}
small {
  font-size: 80%;
}
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
img {
  border-style: none;
}
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}
fieldset {
  padding: 0.35em 0.75em 0.625em;
}
legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}
progress {
  vertical-align: baseline;
}
textarea {
  overflow: auto;
}
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}
[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}
details {
  display: block;
}
summary {
  display: list-item;
}
template {
  display: none;
}
[hidden] {
  display: none;
}
.btn-group {
  font-size: 0;
}
.btn-group > .btn,
.btn-group > a,
.btn-group > button,
.btn-group > input,
.btn-group > form {
  font-size: 1rem;
}
.btn {
  display: inline-block;
  vertical-align: middle;
  font-weight: 700;
  cursor: pointer;
  padding: 0 12px;
  color: var(--text-bright);
  border: 0;
  border-radius: 3px;
  outline: 0;
  font-size: 100%;
  height: 40px;
  line-height: 40px;
  margin: 3px;
  -webkit-font-smoothing: antialiased;
}
.btn:hover {
  color: var(--text-bright);
  background: var(--accent-hover);
}
.btn.btn-unstyled {
  font-weight: 400;
  line-height: 1;
  height: auto;
  color: inherit;
  padding: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  border: none;
}
.btn.btn-thin {
  font-weight: 400;
  height: auto;
  line-height: 1;
  margin-top: 5px;
  margin-bottom: 10px;
  padding: 5px 6px;
}
.btn.btn-primary {
  background-color: var(--accent);
  color: #fff;
}
.btn.btn-primary:hover,
.btn.btn-primary:active,
.btn.btn-primary:focus {
  color: #fff;
  background: var(--accent-hover);
}
.btn.btn-primary.disabled,
.btn.btn-primary:disabled {
  cursor: default;
  opacity: 0.6;
}
.btn.btn-secondary {
  background-color: var(--bg-elevated);
}
.btn.btn-secondary:hover,
.btn.btn-secondary:active,
.btn.btn-secondary:focus {
  background: var(--bg-input);
}
.btn.btn-secondary.disabled,
.btn.btn-secondary:disabled {
  cursor: default;
  opacity: 0.6;
}
.btn.btn-square {
  width: 40px;
  height: 40px;
  margin: 5px;
  vertical-align: middle;
}
.edit {
  font-size: 15px;
  padding: 2px 5px;
  vertical-align: middle;
  color: var(--text-bright);
  border-radius: 3px;
  background: var(--bg-elevated);
}
.edit:hover {
  color: var(--text-bright);
  background: var(--bg-input);
}
.btn-disabled {
  opacity: 0.5;
}
.tooltip {
  display: inline-block;
  position: relative;
  border-bottom: 1px dotted var(--text-muted);
  text-align: left;
}
.tooltip .top {
  min-width: 150px;
  top: -20px;
  left: 50%;
  transform: translate(-50%, -100%);
  padding: 8px;
  color: var(--text-primary);
  background-color: var(--bg-elevated);
  font-weight: 400;
  font-size: 13px;
  border-radius: 8px;
  position: absolute;
  z-index: 99999999;
  box-sizing: border-box;
  box-shadow: 0 1px 8px var(--shadow);
  display: none;
  line-height: 17px;
}
.tooltip:hover {
  opacity: 1;
}
.tooltip:hover .top {
  display: block;
}
.tooltip .top i {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -12px;
  width: 24px;
  height: 12px;
  overflow: hidden;
}
.tooltip .top i:after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  background-color: var(--bg-elevated);
  box-shadow: 0 1px 8px var(--shadow);
}
.search {
  padding-right: 40px;
  position: relative;
}
.search input {
  -webkit-appearance: none;
  display: inline-block;
  border-radius: 3px;
  padding: 0 0.1em 0 1em;
  font-size: 1em;
  height: 40px;
  border: 0;
  vertical-align: top;
}
.search input:not(:focus)::placeholder {
  color: transparent;
}
.search input::placeholder {
  opacity: 0.4;
  font-style: italic;
}
.search input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  width: 100%;
  height: 40px;
  border: 0;
  vertical-align: top;
  margin-top: 5px;
}
.search .btn.btn-square {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-right: -40px;
  margin-left: 0;
}
nav .username {
  max-width: max(80px, min(250px, 22vw - 100px));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: top;
  margin-left: 8px;
}
nav {
  position: relative;
  min-height: 50px;
  background: var(--nav-bg);
  padding-left: 76px;
}
nav a,
nav a:hover {
  color: var(--nav-text);
}
nav .btn {
  margin: 5px;
}
nav .logo {
  float: left;
  display: inline-block;
  height: 50px;
  padding: 10px;
  margin-left: -71px;
}
nav .logo:hover {
  background-color: var(--nav-hover);
}
nav .search {
  float: left;
  display: inline-block;
}
nav .menu {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}
nav .menu.left {
  float: left;
}
nav .menu.right {
  float: right;
}
nav .menu li {
  display: inline-block;
}
nav .menu li a {
  display: inline-block;
  padding-left: 10px;
  padding-right: 10px;
  height: 50px;
  line-height: 50px;
}
nav .menu li .nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  vertical-align: middle;
  object-fit: cover;
  margin-right: 5px;
}
nav .menu li:hover > a {
  background-color: var(--nav-hover);
}
nav .menu li.active > a {
  background-color: var(--accent);
  color: #fff;
}
nav .menu li.active > a:hover {
  background-color: var(--accent-hover);
}
nav .menu li img {
  vertical-align: middle;
  border-radius: 100%;
}
nav .menu li.menu-sign-in > a {
  background-color: var(--nav-hover);
}
nav .menu li.menu-sign-in > a:hover {
  background-color: var(--bg-input);
}
nav .menu li.menu-register > a {
  background-color: var(--accent);
}
nav .menu li.menu-register > a:hover {
  background-color: var(--accent-hover);
}
nav #hamburger {
  float: right;
  margin-right: -56px;
}
nav #hamburger .line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 1px;
  margin-top: 5px;
  margin-bottom: 5px;
}
@media (max-width: 75em) {
  nav .username {
    max-width: 200px;
  }
}
@media (max-width: 65em) {
  nav .username {
    max-width: 50px;
  }
}
@media (max-width: 644px) {
  nav .username {
    max-width: 250px;
  }
}
@media (min-width: 1430px) {
  nav form {
    margin-right: 10px;
    width: 25%;
  }
  nav #hamburger,
  nav .menu .dropdown {
    display: none;
  }
}
@media (min-width: 645px) and (not (min-width: 1430px)) {
  nav form {
    width: 35%;
  }
  nav .menu .desktop {
    display: none;
  }
  nav .menu .dropdown-menu {
    display: none;
  }
  nav #hamburger {
    display: none;
  }
  nav .dropdown {
    position: relative;
  }
  nav .dropdown .dropdown-menu.open {
    display: inline-block;
    position: absolute;
    left: 0;
    top: 100%;
    border-radius: 3px;
    padding-left: 0;
    text-align: left;
    background-color: var(--nav-hover);
    z-index: 3;
    box-shadow: 0 0 30px var(--shadow);
  }
  nav .dropdown .dropdown-menu.open:before {
    position: absolute;
    content: "";
    pointer-events: none;
    bottom: 100%;
    left: 15px;
    border-color: transparent transparent var(--nav-hover) transparent;
    border-style: solid;
    border-width: 10px 10px 10px 10px;
    height: 0px;
    width: 0px;
  }
  nav .dropdown .dropdown-menu.open li {
    width: 100%;
  }
  nav .dropdown .dropdown-menu.open li a {
    line-height: 2;
    height: auto;
    width: 100%;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  nav .dropdown .dropdown-menu.open li a:hover {
    filter: brightness(1.3);
  }
  nav .dropdown .dropdown-menu.open li:first-of-type a {
    border-top-right-radius: 3px;
    border-top-left-radius: 3px;
  }
  nav .dropdown .dropdown-menu.open li:last-of-type a {
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
  }
}
@media (max-width: 644px) {
  nav {
    padding-right: 76px;
  }
  nav form {
    width: 100%;
  }
  nav .collapse {
    display: block;
    width: 100%;
    overflow: hidden;
    max-height: 0px;
    transition: max-height 0.5s;
  }
  nav .collapse.open {
    max-height: 800px;
  }
  nav .collapse .menu.left,
  nav .collapse .menu.right {
    float: none;
  }
  nav .collapse .menu .dropdown {
    display: none;
  }
  nav .collapse .menu li {
    display: block;
  }
  nav .collapse .menu li a {
    width: 100%;
    height: 48px;
    line-height: 48px;
  }
}
#settings-container {
  text-align: left;
}
#settings-container input[type="text"],
#settings-container input[type="email"],
#settings-container input[type="password"] {
  width: 100%;
  height: 30px;
  padding-left: 10px;
  border-radius: 3px;
}
#settings-container h1 {
  text-align: center;
}
#settings-container form {
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
}
#user-container {
  overflow: auto;
}
@media (min-width: 600px) {
  .user-info {
    text-align: left;
    float: left;
  }
  .bigavatar {
    float: left;
    margin: 2em;
  }
  .bigavatar img {
    border-radius: 0.7em;
  }
}
.form-group {
  margin: 15px 0;
}
label {
  display: block;
  font-weight: 700;
  text-align: justify;
  white-space: nowrap;
}
.thumb-container {
  text-align: center;
}
.thumb-container img {
  margin-top: 2px;
  margin-right: 2px;
  margin-left: 2px;
}
.blacklisted-tag {
  text-decoration: line-through;
}
.blacklisted.gallery {
  opacity: 0.1;
  -webkit-filter: blur(5px);
  filter: blur(5px);
  will-change: filter;
}
.blacklisted.gallery:hover {
  opacity: 0.2;
  -webkit-filter: blur(0px);
  filter: blur(0px);
}
.blacklisted.tag {
  opacity: 0.5;
  text-decoration: line-through;
}
#cover img,
.gallerythumb img {
  border-radius: 0.3em;
  background-color: #1f1f1f;
  color: transparent;
}
.gallery,
.thumb-container,
.gallery-favorite {
  display: inline-block;
  vertical-align: top;
}
.gallery img,
.thumb-container img,
.gallery-favorite img {
  display: block;
  border-top-left-radius: 0.3em;
  border-top-right-radius: 0.3em;
  max-width: 100%;
  height: auto;
  background-color: #1f1f1f;
  color: transparent;
}
@media screen and (min-width: 980px) {
  .gallery,
  .thumb-container,
  .gallery-favorite {
    width: 19%;
    margin: 3px;
  }
}
@media screen and (max-width: 979px) {
  .gallery,
  .thumb-container,
  .gallery-favorite {
    width: 24%;
    margin: 2px;
  }
}
@media screen and (max-width: 772px) {
  .gallery,
  .thumb-container,
  .gallery-favorite {
    width: 32%;
    margin: 1.5px;
  }
}
@media screen and (max-width: 500px) {
  .gallery,
  .thumb-container,
  .gallery-favorite {
    width: 49%;
    margin: 0.5px;
  }
}
.gallery a,
.gallery-favorite a {
  display: block;
}
.gallery a img,
.gallery-favorite a img {
  position: absolute;
}
.caption {
  line-height: 15px;
  left: 0;
  right: 0;
  top: 100%;
  position: absolute;
  z-index: 10;
  overflow: hidden;
  width: 100%;
  max-height: 34px;
  padding: 3px;
  background-color: var(--bg-elevated);
  font-weight: 700;
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  border-bottom-left-radius: 0.3em;
  border-bottom-right-radius: 0.3em;
}
.gallery {
  position: relative;
  margin-bottom: 3em;
}
.gallery:hover .caption {
  max-height: 100%;
  box-shadow: 0 10px 20px var(--shadow);
}
.gallery-favorite .btn {
  margin-top: 20px;
}
.gallery-favorite .gallery {
  width: 100%;
}
.gallery.lang-jp .caption:before,
.gallery.lang-gb .caption:before,
.gallery.lang-cn .caption:before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  float: left;
  z-index: 2;
  background-size: contain;
  background-repeat: no-repeat;
  width: 24px;
  height: 16px;
}
.gallery.lang-jp .caption:before {
  background-image: url(../../../flags/jp.svg);
}
.gallery.lang-gb .caption:before {
  background-image: url(../../../flags/gb.svg);
}
.gallery.lang-cn .caption:before {
  background-image: url(../../../flags/cn.svg);
}
.gallery-edit {
  text-align: left;
  overflow: auto;
}
.gallery-edit .gallery {
  float: left;
}
.gallery-edit .tag-container {
  display: inline-block;
}
#page-container {
  margin-bottom: 5px;
  padding-left: 0;
  padding-right: 0;
}
@media (max-width: 768px) {
  #page-container img {
    width: 100%;
    height: auto;
  }
}
@media (min-width: 769px) {
  #page-container img {
    max-width: 100%;
    height: auto;
  }
}
#page-container .pagination {
  margin-bottom: 5px;
  margin-top: 5px;
}
#page-container .pagination .page,
#page-container .pagination .next,
#page-container .pagination .first,
#page-container .pagination .last,
#page-container .pagination .previous {
  font-size: 17px;
  margin-bottom: 10px;
  margin-top: 10px;
}
@media (min-width: 397px) {
  #page-container .pagination .page,
  #page-container .pagination .next,
  #page-container .pagination .first,
  #page-container .pagination .last,
  #page-container .pagination .previous {
    margin-right: 20px;
    margin-left: 20px;
  }
}
#page-container .page-number .current,
#page-container .page-number .num-pages {
  font-weight: 600;
}
html.reader,
html.reader body,
html.reader #app,
html.reader #content {
  height: 100%;
}
html.reader body {
  padding-top: 50px;
}
html.reader #content {
  margin-top: 0;
}
html.reader nav {
  margin-top: -50px;
}
html.reader.nav-hidden body {
  padding-top: 0;
}
html.reader.nav-hidden nav {
  display: none;
}
html.reader .advertisement.advertisement {
  margin: 0;
  padding: 20px 0;
  background-color: var(--bg-highlight);
  max-width: 100%;
  border-radius: 0;
}
html.reader .reader-bar {
  background-color: var(--nav-bg);
  color: var(--nav-text);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
html.reader .reader-bar > * {
  display: flex-item;
}
html.reader .reader-bar a,
html.reader .reader-bar button,
html.reader .reader-bar .box {
  color: #fff;
  line-height: 20px;
  padding: 10px !important;
  min-width: 40px;
  min-height: 100%;
  border-radius: 0;
}
html.reader .reader-bar a:hover,
html.reader .reader-bar button:hover {
  background-color: var(--nav-hover);
}
html.reader .reader-bar .reader-buttons-left {
  display: flex;
  align-self: flex-start;
}
html.reader .reader-bar .reader-pagination {
  display: flex;
  align-self: flex-center;
  position: absolute;
  left: 50%;
  transform: translate(-50%);
}
html.reader .reader-bar .reader-pagination .page-number {
  vertical-align: top;
  white-space: nowrap;
}
html.reader .reader-bar .reader-pagination .page-number .current,
html.reader .reader-bar .reader-pagination .page-number .num-pages {
  font-weight: 700;
}
@media screen and (max-width: 310px) {
  html.reader .reader-bar .reader-pagination .first,
  html.reader .reader-bar .reader-pagination .last {
    display: none;
  }
}
html.reader .reader-bar .reader-buttons-right {
  display: flex;
  align-self: flex-end;
}
html.reader .reader-bar .reader-buttons-right .zoom-buttons {
  display: flex;
}
html.reader .reader-bar .reader-buttons-right .zoom-buttons .zoom-level {
  font-size: 0.9em;
  -webkit-user-select: none;
  user-select: none;
}
@media screen and (max-width: 640px) {
  html.reader .reader-bar .reader-buttons-right .zoom-buttons .zoom-level {
    display: none;
  }
}
@media screen and (max-width: 550px) {
  html.reader .reader-bar .reader-buttons-right .zoom-buttons {
    display: none;
  }
}
html.reader #image-container {
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}
html.reader #image-container img {
  background-color: var(--bg-primary);
}
html.reader #image-container {
  text-align: center;
  height: 100%;
  outline: 0;
  overflow-x: auto;
  overflow-y: visible;
  max-width: 100%;
}
html.reader #image-container img {
  vertical-align: bottom;
  height: auto;
  max-width: 100%;
  -webkit-user-select: none;
  user-select: none;
}
html.reader #image-container {
  height: auto;
  min-height: 300px;
}
html.reader #image-container.fit-horizontal {
  height: auto;
}
html.reader #image-container.fit-horizontal.zoom-100 img {
  max-width: 100%;
}
html.reader #image-container.fit-horizontal.zoom-120 img {
  max-width: 120%;
}
html.reader #image-container.fit-horizontal.zoom-140 img {
  max-width: 140%;
}
html.reader #image-container.fit-horizontal.zoom-160 img {
  max-width: 160%;
}
html.reader #image-container.fit-horizontal.zoom-180 img {
  max-width: 180%;
}
html.reader #image-container.fit-horizontal.zoom-200 img {
  max-width: 200%;
}
html.reader #image-container.fit-horizontal.zoom-220 img {
  max-width: 220%;
}
html.reader #image-container.fit-horizontal.zoom-240 img {
  max-width: 240%;
}
html.reader #image-container.fit-horizontal.zoom-260 img {
  max-width: 260%;
}
html.reader #image-container.fit-horizontal.zoom-280 img {
  max-width: 280%;
}
html.reader #image-container.fit-horizontal.zoom-300 img {
  max-width: 300%;
}
html.reader #image-container.fit-both {
  height: calc(100% + 20px);
}
html.reader #image-container.fit-both img {
  max-height: 100%;
  width: auto;
}
html.reader #page-number {
  -webkit-appearance: none;
  display: inline-block;
  border-radius: 3px;
  padding: 0 0.1em 0 1em;
  font-size: 1em;
  height: 40px;
  border: 0;
  vertical-align: top;
}
html.reader #reader-settings {
  padding: 20px;
  text-align: left;
}
html.reader #reader-settings h2 {
  text-align: center;
}
html.reader #reader-settings label {
  clear: both;
}
html.reader #reader-settings label .control {
  float: right;
}
html.reader #reader-settings label,
html.reader #reader-settings input,
html.reader #reader-settings select {
  font-size: 16px;
}
html:has(#app.theme-blue) {
  background-color: #202a34;
}
body:has(#app.theme-blue) {
  background-color: #202a34;
}
#app.theme-blue {
  --bg-page: rgb(32.2636363636, 42.25, 52.2363636364);
  --bg-primary: #2a3744;
  --bg-raised: #2a3744;
  --bg-elevated: rgb(71.2090909091, 93.25, 115.2909090909);
  --bg-input: rgb(61.4727272727, 80.5, 99.5272727273);
  --bg-hover: rgb(75.1036363636, 98.35, 121.5963636364);
  --bg-highlight: rgb(51.7363636364, 67.75, 83.7636363636);
  --text-primary: #d9d9d9;
  --text-secondary: #8899aa;
  --text-muted: rgb(149.6, 169.75, 189.9);
  --text-bright: white;
  --border: rgb(71.2090909091, 93.25, 115.2909090909);
  --border-strong: rgb(80.9454545455, 106, 131.0545454545);
  --input-border: none;
  --accent: #ed2553;
  --accent-hover: #ee4972;
  --accent-dark: #c0392b;
  --error: #f87171;
  --success: #4ade80;
  --warning: #facc15;
  --nav-bg: #2a3744;
  --nav-text: #d9d9d9;
  --nav-hover: rgb(61.4727272727, 80.5, 99.5272727273);
  --overlay: rgba(0, 0, 0, 0.7);
  --shadow: rgba(0, 0, 0, 0.5);
}
html:has(#app.theme-black) {
  background-color: #0d0d0d;
}
body:has(#app.theme-black) {
  background-color: #0d0d0d;
  --bg-page: hsl(0, 0%, 5%);
  --bg-primary: hsl(0, 0%, 10%);
  --bg-raised: hsl(0, 0%, 12%);
  --bg-elevated: hsl(0, 0%, 22%);
  --bg-input: hsl(0, 0%, 30%);
  --bg-hover: hsl(0, 0%, 38%);
  --bg-highlight: hsl(0, 0%, 15%);
  --text-primary: #d9d9d9;
  --text-secondary: hsl(0, 0%, 60%);
  --text-muted: hsl(0, 0%, 50%);
  --text-bright: white;
  --border: hsl(0, 0%, 20%);
  --border-strong: hsl(0, 0%, 25%);
  --input-border: none;
  --accent: #ed2553;
  --accent-hover: #ee4972;
  --accent-dark: #c0392b;
  --error: #f87171;
  --success: #4ade80;
  --warning: #facc15;
  --nav-bg: hsl(0, 0%, 12%);
  --nav-text: #d9d9d9;
  --nav-hover: hsl(0, 0%, 22%);
  --overlay: rgba(0, 0, 0, 0.7);
  --shadow: rgba(0, 0, 0, 0.5);
}
#app.theme-black {
  --bg-page: hsl(0, 0%, 5%);
  --bg-primary: hsl(0, 0%, 10%);
  --bg-raised: hsl(0, 0%, 12%);
  --bg-elevated: hsl(0, 0%, 22%);
  --bg-input: hsl(0, 0%, 30%);
  --bg-hover: hsl(0, 0%, 38%);
  --bg-highlight: hsl(0, 0%, 15%);
  --text-primary: #d9d9d9;
  --text-secondary: hsl(0, 0%, 60%);
  --text-muted: hsl(0, 0%, 50%);
  --text-bright: white;
  --border: hsl(0, 0%, 20%);
  --border-strong: hsl(0, 0%, 25%);
  --input-border: none;
  --accent: #ed2553;
  --accent-hover: #ee4972;
  --accent-dark: #c0392b;
  --error: #f87171;
  --success: #4ade80;
  --warning: #facc15;
  --nav-bg: hsl(0, 0%, 12%);
  --nav-text: #d9d9d9;
  --nav-hover: hsl(0, 0%, 22%);
  --overlay: rgba(0, 0, 0, 0.7);
  --shadow: rgba(0, 0, 0, 0.5);
}
html:has(#app.theme-light) {
  background-color: #fff;
}
body:has(#app.theme-light) {
  background-color: #fff;
}
#app.theme-light {
  --bg-page: #ffffff;
  --bg-primary: #ecf0f1;
  --bg-raised: #ecf0f1;
  --bg-elevated: #c0c8cd;
  --bg-input: #f5f7f8;
  --bg-hover: #d5dce0;
  --bg-highlight: #d0d8dc;
  --text-primary: #34495e;
  --text-secondary: #7f8c8d;
  --text-muted: #95a5a6;
  --text-bright: #2c3e50;
  --border: #bdc3c7;
  --border-strong: #95a5a6;
  --input-border: 1px solid #bdc3c7;
  --nav-bg: #2a3744;
  --nav-text: #d9d9d9;
  --nav-hover: rgb(61.4727272727, 80.5, 99.5272727273);
  --accent: #ed2553;
  --accent-hover: #ee4972;
  --accent-dark: #c0392b;
  --error: #e74c3c;
  --success: #27ae60;
  --warning: #f39c12;
  --overlay: rgba(0, 0, 0, 0.5);
  --shadow: rgba(0, 0, 0, 0.15);
}
html {
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}
body,
html {
  font-family:
    Noto Sans,
    sans-serif;
  font-size: 14px;
  line-height: 1.42857143;
  height: 100%;
  margin: 0;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
input,
button,
textarea {
  font-family:
    Noto Sans,
    sans-serif;
}
#app {
  min-height: 100vh;
  color: var(--text-primary);
  background-color: var(--bg-page);
}
@supports (-webkit-touch-callout: none) {
  input,
  select,
  textarea {
    font-size: 16px;
  }
}
a {
  text-decoration: none;
  color: var(--text-primary);
}
a:hover {
  text-decoration: none;
}
a .count {
  color: var(--text-muted);
}
a.bold {
  font-weight: 700;
}
code {
  color: var(--accent);
  border: 1px solid var(--border);
  background-color: var(--bg-highlight);
}
textarea {
  resize: none;
}
blockquote {
  border: 0;
}
form.inline {
  display: inline;
}
time {
  font-variant-numeric: tabular-nums;
}
.container {
  display: block;
  clear: both;
  margin: 10px auto;
  padding: 10px;
}
@media screen and (orientation: landscape) {
  .container {
    padding-left: calc(5px + constant(safe-area-inset-left));
    padding-right: calc(5px + constant(safe-area-inset-right));
  }
}
.container {
  border-radius: 5px;
  background-color: var(--bg-raised);
}
.container.left {
  text-align: left;
}
.container.right {
  text-align: right;
}
.container.padded {
  padding: 3em;
}
.container {
  width: 100%;
  max-width: 1200px;
}
@media screen and (max-width: 1200px) {
  .container {
    border-radius: 0;
  }
}
.container.advertisement.advertisement {
  overflow: hidden;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 15px;
  text-align: center;
  min-height: 90px;
}
.container.advertisement.advertisement div[id^="ts_ad_native"] {
  margin-left: auto;
  margin-right: auto;
}
.tag {
  color: var(--text-primary);
  font-size: 1em;
  vertical-align: middle;
  display: inline-flex;
  margin: 0.13em;
  flex-direction: row;
  justify-content: center;
}
.tag > :first-child {
  border-top-left-radius: 0.3em;
  border-bottom-left-radius: 0.3em;
}
.tag > :last-child {
  border-top-right-radius: 0.3em;
  border-bottom-right-radius: 0.3em;
}
.tag .name,
.tag .count {
  display: flex;
  padding: 0.13em 0.39em;
  align-items: center;
}
.tag .name {
  background: var(--bg-input);
}
.tag .count {
  font-size: 0.9em;
  color: var(--text-primary);
  font-weight: 400;
  padding: 0.13em 0.26em;
  background: var(--border);
}
.tag:hover {
  filter: brightness(1.3);
}
.sort {
  margin-top: -15px;
}
.sort:before {
  content: "";
  display: block;
  clear: both;
  margin-top: 1em;
}
.sort {
  font-size: 20px;
}
@media screen and (max-width: 550px) {
  .sort {
    font-size: 16px;
  }
}
.sort .sort-type {
  overflow: hidden;
  display: inline-block;
  border-radius: 5px;
  margin: 10px;
  background-color: var(--bg-primary);
}
.sort .sort-type > a,
.sort .sort-type > .sort-name {
  display: inline-block;
  padding: 0.5em;
}
.sort .sort-type > a:hover {
  background-color: var(--border);
}
.sort .sort-type > a.current {
  font-weight: 700;
  background-color: var(--bg-highlight);
}
.sort + .container {
  margin-top: 0;
}
#info {
  height: auto;
  padding: 10px;
  text-align: left;
}
#info .title .pretty {
  color: var(--text-bright);
}
#info .title .before,
#info .title .after {
  color: var(--text-secondary);
}
#info h1 {
  font-size: 20px;
}
#info h2 {
  font-size: 17px;
  margin-top: 10px;
  margin-bottom: 20px;
}
#info #gallery_id {
  font-size: 15px;
  cursor: pointer;
}
#info #gallery_id .hash {
  color: var(--text-secondary);
}
#info .field-name {
  font-weight: 700;
}
#info .buttons {
  margin-top: 30px;
}
#info .buttons .btn {
  min-width: 120px;
  text-align: center;
  margin-left: 0;
  margin-right: 5px;
  margin-bottom: 10px;
}
#info a {
  font-weight: 700;
}
#bigcontainer {
  margin-bottom: 15px;
  padding: 30px 20px;
}
#bigcontainer form {
  display: inline-block;
}
@media screen and (min-width: 768px) {
  #bigcontainer #cover,
  #bigcontainer #info-block {
    display: inline-block;
    width: 48%;
    vertical-align: top;
  }
}
@media screen and (max-width: 500px) {
  #bigcontainer #cover,
  #bigcontainer #info-block {
    width: 100%;
    margin: 0.5px;
  }
}
#bigcontainer #cover img,
#bigcontainer #info-block img {
  max-width: 100%;
}
.fa-heart,
.fa-heart-o {
  margin: 2px;
}
.lazyload {
  background-color: var(--bg-highlight);
}
.lazyload-loading {
  background: var(--bg-elevated);
}
#thumbnail-container {
  margin-bottom: 25px;
  padding: 15px;
  text-align: left;
  background-color: var(--bg-raised);
}
@media screen and (max-width: 980px) {
  #thumbnail-container {
    padding: 10px 5px 5px;
    border-radius: 0;
  }
}
@media screen and (max-width: 980px) and (orientation: landscape) {
  #thumbnail-container {
    padding-left: constant(safe-area-inset-left);
    padding-right: constant(safe-area-inset-right);
  }
}
#thumbnail-container .lazyload {
  background-color: var(--bg-highlight);
}
#thumbnail-container .lazyload-loading {
  background-color: var(--bg-elevated);
}
#thumbnail-container .gallerythumb {
  display: inline-block;
  margin-bottom: 3px;
  vertical-align: middle;
}
#thumbnail-container .gallerythumb a {
  display: inline-block;
}
#thumbnail-container .gallerythumb img:hover {
  -webkit-filter: brightness(110%);
  -moz-filter: brightness(110%);
}
#thumbnail-container.clip-height .thumbs {
  overflow: hidden;
  position: relative;
}
#thumbnail-container.clip-height .thumbs:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  z-index: 20;
  box-shadow: 0 0 40px 80px var(--bg-raised);
}
#related-container {
  margin-bottom: 25px;
  padding-bottom: 20px;
}
#comment-post-container textarea {
  width: 85%;
  height: 90px;
  margin-bottom: 5px;
  padding: 10px;
  border: 0;
  border-radius: 3px;
  outline: 0;
  -webkit-appearance: none;
}
#comment-container {
  padding: 20px;
}
#favcontainer {
  padding: 10px 10px 40px;
}
.avatar {
  display: inline-block;
  position: relative;
  width: 50px;
  height: 50px;
  overflow: hidden;
  margin-right: 10px;
  border-radius: 100%;
}
.avatar img {
  object-fit: cover;
  object-position: 50% 50%;
  width: 100%;
  height: 100%;
}
.avatar .username {
  display: inline-block;
  vertical-align: middle;
}
#favorites-search-bar {
  width: 200px;
  height: 35px;
  padding: 10px;
  border: 0;
  border-radius: 3px;
  outline: 0;
  outline-width: 0;
  outline-style: none;
  background-color: var(--bg-input);
  -webkit-appearance: none;
}
#favorites-search-form {
  margin-bottom: 20px;
}
#favorites-search input {
  background-color: var(--bg-input);
}
#favorites-search {
  display: inline-block;
}
#favorites-search-button {
  width: 40px;
  height: 35px;
}
#favorites-random-button {
  margin-left: -15px;
}
.remove-button {
  margin-top: 5px;
  margin-bottom: 10px;
  background-color: var(--border);
}
.remove-button:hover {
  text-decoration: none;
  background-color: var(--border-strong);
}
.removed {
  opacity: 0.5;
}
#tag-container {
  padding-bottom: 5px;
  -webkit-columns: 170px;
  -moz-columns: 170px;
  -ms-columns: 170px;
  -o-columns: 170px;
  columns: 170px;
  column-rule: 1px solid var(--border);
}
#tag-container .tag {
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
  column-break-inside: avoid;
  page-break-inside: avoid;
  display: flex;
  margin-right: 1em;
  margin-left: 1em;
  margin-bottom: 0.2em;
}
#tag-container .tag .name {
  flex: 1;
}
#tag-container .tag .count {
  min-width: 2.5em;
  justify-content: flex-end;
}
#tag-container section {
  border: 1px solid transparent;
  border-radius: 5px;
}
#tag-container section:first-of-type h2 {
  margin-top: 0;
}
#tag-container section:target {
  border-color: var(--border-strong);
  background-color: var(--bg-highlight);
}
input,
input:focus {
  -webkit-transition: none;
  -moz-transition: none;
  transition: none;
  border: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  outline: none;
}
input:not([type="file"]):not([type="checkbox"]),
#favorites-search input,
textarea,
select {
  background: var(--bg-input);
  border: var(--input-border);
  color: var(--text-primary);
}
input:not([type="file"]):not([type="checkbox"]):hover,
#favorites-search input:hover,
textarea:hover,
select:hover {
  background: var(--bg-hover);
}
div.form-control {
  border: none;
  background-color: transparent;
}
.container.error h1 {
  font-size: 50px;
}
.container.error blockquote {
  font-size: 25px;
  font-style: italic;
}
.container.error img {
  max-width: 100%;
}
.nobold {
  font-weight: 400;
}
.hidden {
  display: none !important;
}
.invisible {
  z-index: -1;
  visibility: hidden;
}
#favorites-search {
  padding-left: 20px;
  padding-right: 60px;
  margin-left: auto;
  margin-right: auto;
  max-width: 300px;
}
.announcement {
  margin: 0 0 20px;
  padding: 12px 20px;
  font-size: 1em;
  font-weight: 500;
  text-align: center;
  background: var(--accent-dark);
  color: #fff;
  border-bottom: 2px solid var(--accent);
}
.announcement a[href] {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
}
#errors {
  text-align: center;
  list-style-type: none;
  padding-left: 0;
  color: var(--error);
}
select {
  font-weight: 400;
}
.color-icon {
  color: var(--accent);
}
.toast.svelte-1fk2ial {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%);
  z-index: 9999;
  padding: 12px 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  max-width: 500px;
  width: calc(100% - 32px);
  box-shadow: 0 4px 12px #0000004d;
  animation: svelte-1fk2ial-toast-in 0.2s ease-out;
}
.toast-info.svelte-1fk2ial {
  background: #19334d;
  color: #a3ccf5;
  border: 1px solid hsl(210, 40%, 30%);
}
.toast-error.svelte-1fk2ial {
  background: #401c1c;
  color: #f87171;
  border: 1px solid hsl(0, 40%, 28%);
}
.toast-warning.svelte-1fk2ial {
  background: #450816;
  color: #fff;
  border: 1px solid hsl(346, 60%, 25%);
}
.toast-message.svelte-1fk2ial {
  flex: 1;
}
.toast-dismiss.svelte-1fk2ial {
  background: none;
  border: none;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.6;
  padding: 0 4px;
}
.toast-dismiss.svelte-1fk2ial:hover {
  opacity: 1;
}
@keyframes svelte-1fk2ial-toast-in {
  0% {
    opacity: 0;
    transform: translate(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%) translateY(0);
  }
}
