@charset "UTF-8";
:root {
  --bg: #333;
  --bg2: #404040;
  --bg3: #666666;
  --color: #cccccc;
  --color2: #dbdbdb;
  --link-color: #8e8e8e;
  --link-visited-color: #b0b0b0;
  --link-hover-color: #e7e7e7;
  --border-color: #cccccc;
  --border-color2: #8e8e8e;
  --border-color3: #757575;
  --nav-hotkeys-color: #707070;
  --body-bg-image: url(/img/styles/dark/back.webp);
  --header-bg-image: url(/img/styles/dark/menu_bg.webp);
  --header-bg-color: transparent;
  --header-border-bottom: #8e8e8e;
  --menu-color: #fff;
  --menu-text-shadow: #000 2px 2px 5px;
  --content-bg: rgba(0, 0, 0, 0.2);
  --sidebar-bg: rgba(0, 0, 0, 0.3);
  --nav-path-bg: rgba(0, 0, 0, 0.3);
  --user-panel-bg: #404040;
  --navigation-bg: #404040;
  --caption-bg: #666666;
  --thing-separator: url(/img/styles/dark/things_separator.webp);
  --notes-separator: url(/img/styles/dark/separator.webp);
  --table-header-bg: #666;
  --calendar-header-bg: #999;
  --calendar-header-color: #fff;
  --calendar-today-bg: #494949;
  --oglav-bg: rgba(51, 51, 51, 0.9);
  --current-note-color: #ff0000;
}

[data-theme=light] {
  --bg: #F8F8F8;
  --bg2: #ebebeb;
  --bg3: #dedede;
  --color: #000;
  --color2: #0f0f0f;
  --link-color: #000;
  --link-visited-color: #222222;
  --link-hover-color: #595959;
  --border-color: #acacac;
  --border-color2: #e9e9e9;
  --border-color3: #fff;
  --nav-hotkeys-color: #616161;
  --body-bg-image: url(/img/styles/light/back.webp);
  --header-bg-image: none;
  --header-bg-color: #f3f3f3;
  --header-border-bottom: #acacac;
  --menu-color: #333;
  --menu-text-shadow: none;
  --content-bg: #fbfbfb;
  --sidebar-bg: #fbfbfb;
  --nav-path-bg: #efefef;
  --user-panel-bg: #ebebeb;
  --navigation-bg: #eee;
  --caption-bg: #eee;
  --thing-separator: url(/img/styles/light/things_separator.webp);
  --notes-separator: url(/img/styles/light/separator.webp);
  --table-header-bg: transparent;
  --calendar-header-bg: #eee;
  --calendar-header-color: #000;
  --calendar-today-bg: #ccc;
  --oglav-bg: rgba(255, 255, 255, 0.9);
  --current-note-color: red;
}

#popups .fade {
  position: fixed;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  transition: background-color 0.5s ease-in-out;
}
#popups .fade.faded {
  background-color: rgba(0, 0, 0, 0.3);
}

@keyframes current_note_index {
  0% {
    color: var(--color);
  }
  50% {
    color: var(--current-note-color);
  }
  100% {
    color: var(--color);
  }
}
body {
  background: var(--body-bg-image) var(--bg);
  color: var(--color);
  font-size: 0.9em;
  margin: 0;
  padding: 0;
  z-index: 10;
}
#menu_toggle {
  display: none;
}
body > header {
  align-items: center;
  background: var(--header-bg-image) var(--header-bg-color);
  border: 1px solid var(--border-color);
  border-bottom-color: var(--header-border-bottom);
  border-radius: 3px;
  display: flex;
  height: 50px;
  position: relative;
  z-index: 10;
}
body > header #menu {
  font-family: 'Caveat', cursive;
  font-size: 1.7em;
  text-shadow: var(--menu-text-shadow);
}

body > header #menu > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0 20px;
  padding: 0;
}
body > header #menu > ul a {
  color: var(--menu-color);
  text-decoration: none;
}

body > header #menu > ul li.selected {
  text-shadow: #999 1px 1px 5px;
}

@media screen and (max-width: 799px) {
  body > header {
    justify-content: space-between;
    overflow: visible;
  }
  #menu_toggle {
    display: block;
    background: none;
    border: none;
    color: var(--menu-color);
    cursor: pointer;
    flex-shrink: 0;
    font-size: 1.5em;
    height: 40px;
    line-height: 40px;
    margin: 0 0 0 5px;
    padding: 0 8px;
    text-shadow: var(--menu-text-shadow);
  }
  body > header #menu {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 4px;
    right: 4px;
    background: var(--bg2);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 3px 3px;
    padding: 5px 0;
    z-index: 100;
  }
  body > header.menu_open #menu {
    display: block;
  }
  body > header #menu > ul {
    gap: 5px 10px;
    margin: 0 12px;
  }
}
@media screen and (min-width: 800px) and (hover: hover) and (pointer: fine) {
  body > header #menu > ul li:hover {
    text-shadow: #999 1px 1px 1px;
  }
}
body > header #user_panel {
  background-color: var(--user-panel-bg);
  border: 1px solid var(--border-color3);
  border-radius: 3px;
  height: 34px;
  margin: 5px 5px 5px auto;
  overflow: hidden;
  padding: 2px 0 2px 5px;
  width: 134px;
}
body nav.path {
  background-color: var(--nav-path-bg);
  border: 1px solid var(--border-color);
  border-bottom: 0;
  border-top: 0;
  clear: both;
  font-size: 0.9em;
  height: 1.15em;
  margin: 0 5px -1px;
  overflow: hidden;
  padding: 1px 0 2px 5px;
  z-index: 5;
}
body nav.path a {
  color: var(--color);
  text-decoration: none;
}

body nav.path a.root {
  color: var(--link-hover-color);
}
body nav.path .extra {
  float: right;
  padding-right: 5px;
}
body nav.path .extra a, body nav.path .extra span {
  margin-left: 5px;
  font-style: oblique;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  body nav.path .extra a:hover, body nav.path .extra span:hover {
    animation: current_note_index 1.5s infinite ease-in;
    color: var(--current-note-color);
  }
}
body #left {
  margin: 1px 1px 2px 0;
}
body #left ul li q, body #left ul li > a {
  display: block;
}
body #left ul li time {
  font-size: 0.7em;
}
body #left {
  background-color: var(--sidebar-bg);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  padding: 2px;
  text-align: center;
  z-index: 10;
}
body #left ul {
  margin: 0;
  margin-bottom: 6px;
  padding-left: 0;
}
body #left ul li {
  margin-left: 0;
  list-style: none;
  margin-top: 6px;
}
body #left ul li time {
  display: block;
}
body #left .caption {
  background-color: var(--caption-bg);
  border-bottom: 2px solid var(--border-color2);
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  color: var(--color2);
  display: block;
  margin: 0 0 2px;
  padding-bottom: 1px;
}
body #left {
  display: none;
  order: 1;
}
body #right {
  margin: 1px 0 2px 1px;
}
body #right ul li time {
  font-size: 0.9em;
}
body #right {
  background-color: var(--sidebar-bg);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  padding: 2px;
  text-align: center;
  z-index: 10;
}
body #right ul {
  margin: 0;
  margin-bottom: 6px;
  padding-left: 0;
}
body #right ul li {
  margin-left: 0;
  list-style: none;
  margin-top: 6px;
}
body #right ul li time {
  display: block;
}
body #right .caption {
  background-color: var(--caption-bg);
  border-bottom: 2px solid var(--border-color2);
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  color: var(--color2);
  display: block;
  margin: 0 0 2px;
  padding-bottom: 1px;
}
body #right {
  display: none;
  order: 3;
}
@media screen and (min-width: 800px) {
  body #left, body #right {
    display: initial;
  }
}
@media screen and (min-width: 800px) {
  body #content-wrapper {
    align-items: start;
    display: grid;
    grid-template-columns: 150px 1fr 150px;
  }
}
body #content {
  background-color: var(--content-bg);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  font-size: 1.15em;
  margin-top: 1px;
  order: 2;
  overflow: hidden;
  padding: 5px 5px 0;
  z-index: 10;
}
body #content .caption {
  background-color: var(--caption-bg);
  border-bottom: 2px solid var(--border-color2);
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  font-size: 1.3em;
  font-weight: normal;
  margin: -3px -3px 15px;
  padding: 3px 3px 5px 10px;
}
body #content .caption a {
  color: var(--color);
  text-decoration: none;
}

body #content .caption h1 {
  display: inline;
  font-size: 1em;
  font-weight: normal;
  margin: 0;
  clear: none;
}
body #content .caption .alternative {
  float: right;
  font-size: 0.8em;
  margin: 2px 2px 0;
}
@media (hover: hover) and (pointer: fine) {
  body #content .caption .alternative:hover::before {
    color: var(--nav-hotkeys-color);
    content: attr(data-hotkey);
    margin-right: 0.3em;
  }
}
body #content .navigation {
  background-color: var(--navigation-bg);
  border: 1px solid var(--border-color);
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  font-size: 0.85em;
  margin: 50px -6px -3px;
  padding: 2px 3px 2px;
}
body #content .navigation a {
  color: var(--color);
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  body #content .navigation .left:hover::after, body #content .navigation .up:hover::after {
    color: var(--nav-hotkeys-color);
    content: attr(data-hotkey);
    margin-left: 0.3em;
  }
}
body #content .navigation .left {
  display: block;
  float: left;
  margin-left: 4px;
  overflow: hidden;
}
body #content .navigation .right {
  display: block;
  float: right;
  margin-right: 4px;
  overflow: hidden;
}
@media (hover: hover) and (pointer: fine) {
  body #content .navigation .right:hover::before {
    color: var(--nav-hotkeys-color);
    content: attr(data-hotkey);
    margin-right: 0.3em;
  }
}
body #content .navigation .right-wo {
  display: block;
  float: right;
  margin-right: 4px;
  overflow: hidden;
}
body #content .navigation .up {
  display: block;
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
  padding-bottom: 2px;
  text-align: center;
}
body #content .thing {
  display: table;
  margin-left: auto;
  margin-right: auto;
}
body #content .thing .title {
  font-size: 1.3em;
  margin-bottom: 15px;
  margin-top: 20px;
}
body #content .thing .title h2 {
  font-size: 1em;
  font-weight: normal;
  text-align: center;
}
body #content .thing .title h2 a {
  color: var(--color);
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  body #content .thing .title h2 a:hover {
    color: var(--color);
  }
}
body #content .thing .text_verse, body #content .thing .text_tlya {
  line-height: 1.3em;
}
body #content .thing .text_verse pre, body #content .thing .text_tlya pre {
  font: inherit;
}
body #content .thing .text_verse h3, body #content .thing .text_tlya h3 {
  text-align: center;
  font-size: 1em;
  font-weight: bold;
  margin-top: 3.2em;
  margin-bottom: 1.7em;
}
body #content .thing .text_verse .center, body #content .thing .text_tlya .center {
  margin: 30px 0 15px;
  text-align: center;
}
body #content .thing .text_verse .center:first-child, body #content .thing .text_tlya .center:first-child {
  margin: 0 0 15px;
}
body #content .thing .text_verse .epigraph, body #content .thing .text_tlya .epigraph {
  display: block;
  font-size: 0.85em;
  font-style: italic;
  line-height: 1.2em;
  margin-bottom: 1.2em;
  text-align: right;
}
body #content .thing .text_verse .epigraph cite, body #content .thing .text_tlya .epigraph cite {
  font-style: normal;
}
body #content .thing .text_verse .note_index, body #content .thing .text_tlya .note_index {
  font-size: 0.7em;
  margin-left: 3px;
  vertical-align: super;
  color: var(--color);
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  body #content .thing .text_verse .note_index:hover, body #content .thing .text_tlya .note_index:hover {
    color: var(--color);
  }
}
body #content .thing .text_verse .note_index:target, body #content .thing .text_tlya .note_index:target {
  animation: current_note_index 1.5s infinite ease-in;
  color: var(--current-note-color);
  font-weight: 700;
  text-decoration: blink;
}
body #content .thing .text_tlya {
  text-align: center;
}
body #content .thing .text_proze {
  max-width: 720px;
  padding-left: 1.2em;
  padding-right: 1.2em;
}
body #content .thing .text_proze pre {
  font: inherit;
}
body #content .thing .text_proze h3 {
  text-align: center;
  font-size: 1em;
  font-weight: bold;
  margin-top: 3.2em;
  margin-bottom: 1.7em;
}
body #content .thing .text_proze .center {
  margin: 30px 0 15px;
  text-align: center;
}
body #content .thing .text_proze .center:first-child {
  margin: 0 0 15px;
}
body #content .thing .text_proze .epigraph {
  display: block;
  font-size: 0.85em;
  font-style: italic;
  line-height: 1.2em;
  margin-bottom: 1.2em;
  text-align: right;
}
body #content .thing .text_proze .epigraph cite {
  font-style: normal;
}
body #content .thing .text_proze .note_index {
  font-size: 0.7em;
  margin-left: 3px;
  vertical-align: super;
  color: var(--color);
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  body #content .thing .text_proze .note_index:hover {
    color: var(--color);
  }
}
body #content .thing .text_proze .note_index:target {
  animation: current_note_index 1.5s infinite ease-in;
  color: var(--current-note-color);
  font-weight: 700;
  text-decoration: blink;
}
body #content .thing .text_proze p {
  line-height: 1.5em;
  margin: 0;
  margin-top: 0.45em;
  text-align: justify;
  text-indent: 3em;
}
body #content .thing .notes {
  background: var(--notes-separator) no-repeat;
  font-size: 0.8em;
  margin: 5px 0 0;
  padding: 5px 0 0 5px;
}
body #content .thing .notes .note .index {
  display: block;
  float: left;
  font-size: 0.9em;
  position: relative;
  text-align: right;
  top: -0.4em;
  vertical-align: baseline;
  width: 20px;
}
body #content .thing .notes .note a.index {
  color: var(--color);
  text-decoration: none;
}

body #content .thing .notes .note a.index:target {
  animation: current_note_index 1.5s infinite ease-in;
  color: var(--current-note-color);
  font-weight: 700;
  text-decoration: blink;
}
body #content .thing .notes .note .text {
  display: block;
  padding-left: 22px;
}
body #content .thing .date {
  font-size: 0.9em;
  font-style: italic;
  margin-bottom: 2px;
  margin-top: 10px;
  text-align: right;
}
body #content .thing .votes {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.65em;
  text-align: right;
}
body #content .thing .votes span {
  cursor: pointer;
}
body #content .thing .votes span.plus {
  color: limegreen;
}
body #content .thing .votes span.minus {
  color: red;
}
body #content .thing .info {
  margin-top: 1.5em;
}
body #content .thing + .thing {
  background: var(--thing-separator) center top no-repeat;
  margin-top: 40px;
  padding-top: 20px;
}
body #content .section {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
body #content .totd-block {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
body #content .totd-block .thing {
  margin-left: 0;
  margin-right: 0;
}
body #content .totd-block.js-carousel .totd-item {
  display: none;
}
body #content .totd-block.js-carousel .totd-item.active {
  display: block;
  view-transition-name: totd-item;
}
body #content .thing-section-ref {
  font-size: 0.875em;
  font-style: italic;
  text-align: right;
  margin-top: 10px;
}
body #content .caption .totd-nav {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  float: right;
  margin: 3px 2px 0;
  font-size: 0.85em;
  line-height: 1;
}
body #content .caption .totd-nav button {
  background: none;
  border: none;
  color: var(--color);
  cursor: pointer;
  font-size: 1em;
  line-height: 1;
  padding: 0 1px;
  vertical-align: baseline;
}
body #content .caption .totd-nav button:disabled {
  opacity: 0.25;
  cursor: default;
}
body #content .caption .totd-nav .totd-counter {
  color: var(--color2);
  min-width: 2em;
  text-align: center;
}
@keyframes totd-slide-out-left {
  to { transform: translateX(-30%); opacity: 0; }
}
@keyframes totd-slide-in-right {
  from { transform: translateX(30%); opacity: 0; }
}
@keyframes totd-slide-out-right {
  to { transform: translateX(30%); opacity: 0; }
}
@keyframes totd-slide-in-left {
  from { transform: translateX(-30%); opacity: 0; }
}
:root[data-carousel-direction="forward"]::view-transition-old(totd-item) {
  animation-name: totd-slide-out-left;
}
:root[data-carousel-direction="forward"]::view-transition-new(totd-item) {
  animation-name: totd-slide-in-right;
}
:root[data-carousel-direction="backward"]::view-transition-old(totd-item) {
  animation-name: totd-slide-out-right;
}
:root[data-carousel-direction="backward"]::view-transition-new(totd-item) {
  animation-name: totd-slide-in-left;
}

body #content table.sections, body #content table.things {
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
  width: 100%;
}
body #content table.sections thead tr, body #content table.things thead tr {
  background-color: var(--table-header-bg);
  font-size: 1.2em;
}
body #content table.sections thead tr th, body #content table.things thead tr th {
  border-bottom: 1px solid var(--border-color);
  font-weight: normal;
}
body #content table.sections thead tr th:first-child, body #content table.things thead tr th:first-child {
  border-top-left-radius: 3px;
  padding: 3px 0 1px 5px;
  text-align: left;
}
body #content table.sections thead tr th:last-child, body #content table.things thead tr th:last-child {
  border-top-right-radius: 3px;
  padding: 3px 0 1px;
  width: 100px;
}
body #content table.sections tbody tr td, body #content table.things tbody tr td {
  padding: 2px 5px 0;
}
body #content table.sections tbody tr:first-child td, body #content table.things tbody tr:first-child td {
  padding-top: 8px;
}
body #content table.sections tbody tr td:last-child, body #content table.things tbody tr td:last-child {
  text-align: center;
  width: 100px;
}
body #content table.sections thead tr th:only-child, body #content table.things thead tr th:only-child {
  border-top-right-radius: 3px;
  padding: 3px 0 1px 5px;
  width: auto;
}
body #content table.sections tbody tr td:only-child, body #content table.things tbody tr td:only-child {
  text-align: left;
  width: auto;
}
body #content table.things tbody tr td:last-child span {
  font-size: 0.8em;
}
body form#login_form, body form#registration_form {
  margin-left: auto;
  margin-right: auto;
  width: 380px;
}
body form#login_form fieldset, body form#registration_form fieldset {
  border: 0;
}
body form#login_form fieldset div:after, body form#registration_form fieldset div:after {
  clear: both;
  content: " ";
  display: block;
  height: 0;
}
body form#login_form fieldset div label, body form#registration_form fieldset div label {
  float: left;
  padding: 5px 0;
}
body form#login_form fieldset div input:not([type=submit]), body form#registration_form fieldset div input:not([type=submit]) {
  border-radius: 5px;
  float: right;
  transition: ease 0.2s;
  width: 60%;
}
body form#login_form fieldset div input[type=submit], body form#registration_form fieldset div input[type=submit] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
body form#login_form fieldset div.error, body form#registration_form fieldset div.error {
  background-color: rgba(255, 0, 0, 0.1);
  border: 1px solid red;
  color: red;
  border-radius: 5px;
  margin-bottom: 5px;
  padding: 5px;
  text-align: center;
}
body form#login_form fieldset div.info, body form#registration_form fieldset div.info {
  background-color: rgba(0, 255, 0, 0.1);
  border: 1px solid green;
  color: green;
}
body form#registration_form.success {
  background-color: rgba(0, 255, 0, 0.1);
  border: 1px solid green;
  border-radius: 5px;
  color: green;
  margin-bottom: 5px;
  padding: 5px;
  text-align: center;
}
body footer {
  clear: both;
  font-size: 0.8em;
  margin: 7px 0 0 0;
  z-index: 9;
}
body footer #copy {
  margin: 0 auto;
  text-align: center;
}
body a {
  color: var(--link-color);
  transition: 0.2s;
}
body a:link {
  text-decoration: none;
}
body a:visited {
  color: var(--link-visited-color);
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  body a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
  }
}
body h1 {
  font-size: 1.3em;
}
body h2 {
  font-size: 1.1em;
}
body q {
  quotes: «»;
}
body q.latin {
  quotes: "";
}
body q > q {
  quotes: „";
}
body q > q > q {
  quotes: "„;
}
body p {
  margin: 0;
}
body .calendar {
  border: var(--bg3) 1px solid;
  border-radius: 3px;
  border-spacing: 0;
  font-size: 0.9em;
  margin-top: 7px;
  padding: 3px;
  text-align: center;
  width: 150px;
}
body .calendar a {
  color: #A00;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  body .calendar a:hover {
    color: #E00;
    text-decoration: underline;
  }
}
body .calendar thead td {
  background: var(--calendar-header-bg);
  border-bottom: #666 1px solid;
  color: var(--calendar-header-color);
  padding-top: 2px;
  text-align: center;
  text-transform: uppercase;
}
body .calendar thead td a {
  color: var(--calendar-header-color);
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  body .calendar thead td a:hover {
    color: var(--calendar-header-color);
    text-decoration: underline;
  }
}
body .calendar .cell {
  background: var(--bg);
  border-bottom: #666 1px solid;
  padding-left: 3px;
  padding-right: 3px;
  text-align: right;
}
body .calendar .cell.empty {
  background: none;
}
body .calendar .cell.today {
  background: var(--calendar-today-bg);
}
body .calendar tr:last-child .cell {
  border-bottom: 0;
}
body .roman {
  text-decoration: overline underline;
}
@media (hover: hover) and (pointer: fine) {
  body .yo:hover {
    visibility: hidden;
  }
}

.clearfix:after {
  content: " ";
  display: block;
  height: 0;
  clear: both;
}

.oglav {
  overflow: hidden;
  width: 170px;
  position: fixed;
  height: 70vh;
  top: 25%;
  left: 0;
  padding: 2px;
  margin: 0;
  font-size: 0.9em;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  border: 1px solid #ccc;
  border-left: 1px solid var(--oglav-bg);
  background: var(--oglav-bg);
  transition: ease 0.2s;
  transform: translateX(-80%);
  z-index: 1000;
}
.oglav_exposed {
  transform: translateX(0);
}
.oglav__list {
  margin: 0;
  padding: 0;
  overflow-y: scroll;
  height: 96%;
}
.oglav__item {
  margin-top: 5px;
}
.oglav__link {
  cursor: pointer;
}
.oglav__caption {
  background-color: var(--caption-bg);
  border-bottom: 2px solid var(--border-color2);
  border-top-right-radius: 2px;
  color: var(--color2);
  display: block;
  margin: 0 0 2px;
  padding-bottom: 1px;
}

.news time {
  display: block;
  margin-top: 15px;
  text-align: center;
}

main {
  display: block;
}
