:root {
  --bl: #1f1f20;
  --wh: #fefffe;
  --whiteOnRed: #a13939;
  --footer: var(--bl);
}

.dark {
  /* color: var(--wh);
  background-color: var(--bl); */
  --bl: #fefffe;
  --wh: #1f1f20;
  --whiteOnRed: #ea3d3d;
  --footer: #c9c9c9;
}

body {
  transition: ease-in-out 0.5s;
  padding-bottom: calc(25px + 1rem);
  font-size: calc(12px + 0.4vw);
  font-family: Roboto, "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  background-color: var(--wh);
  color: var(--bl);
}

h1.content_header {
  font-weight: 700;
  font-size: 3em;
  text-align: center;
  margin-bottom: 0.25em;
}

.ym-advanced-informer {
  margin: 0 10px;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Raleway", Geneva, Verdana, sans-serif;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

p {
  line-height: 1.8em;
  /* margin-top: 1.4rem; */
}

a {
  color: #10893f;
  text-decoration: none;
}

a:hover {
  color: #95ea9a;
}

ul,
ol {
  margin: 1rem 0;
}
li {
  margin: 0 0 1rem 0;
  color: #25324c;
}

.container {
  margin: 0 auto;
  position: relative;
  max-width: 50vw;
  padding-bottom: 1.2rem;
}

.content_footer {
  position: fixed;
  bottom: 0%;
  left: 0;
  right: 0;
  padding: 0.5rem 1rem;
  background-color: var(--footer);
}

code {
  font-size: 14px;
  font-family: "Roboto Mono", monospace;
  overflow: scroll;
  color: #f8f8f2;
}

blockquote {
  border-left: #8f8f8f 5px solid;
  padding-left: 1rem;
  margin: 1rem 0.5rem;
  font-style: italic;
}

code.language-plaintext {
  color: inherit;
}
pre {
  overflow: auto;
}

img {
  display: block;
  width: 80%;
  margin: 0 auto;
}

pre.highlight {
  border-radius: 5px;
  padding: 1rem;
}

.content_footer p {
  margin: 0;
  font-size: 14px;
  color: var(--wh);
}

.content_tag-list {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  margin: 0.25rem 0 3rem;
}
.tag-list_item {
  padding: 2px 1rem;
  color: var(--whiteOnRed);
  background: rgba(205, 57, 57, 50%);
  border-radius: 30px;
  margin: 0.5rem 1rem;
}

/* Buttons */
.bttn-home {
  position: fixed;
  right: 15px;
  bottom: 15px;
  width: 70px;
  height: 70px;
  cursor: pointer;
}
.bttn-home:hover {
  transition: ease-in-out 0.5s;
  transform: rotate(360deg);
}

.bttn-up {
  position: fixed;
  display: none;
  right: 15px;
  bottom: 100px;
  width: 70px;
  height: 70px;
  cursor: pointer;
}

.bttn-up:hover {
  transition: ease-in-out 0.7s;
  transform: rotateY(360deg);
}

.bttn-moon {
  position: fixed;
  right: 100px;
  bottom: 15px;
  width: 70px;
  height: 70px;
  cursor: pointer;
}

@media only screen and (max-width: 769px) {
  .container {
    max-width: 80vw;
  }
}

/* TOC */
ul.section-nav {
  position: relative;
  list-style-type: none;
  background-color: #161414;
  color: #f7f7f7;
  border-radius: 10px;
  padding: 30px 50px;
}
ul.section-nav ul {
  list-style-type: none;
}
ul.section-nav::before {
  content: "Оглавление";
  font-size: 2rem;
  text-align: center;
  display: block;
  margin-bottom: 1rem;
}

table {
  width: 100%;
}

table,
th,
td {
  border: 1px solid black;
}

td {
  font-family: "Roboto Mono", monospace;
}

/** Adaptive */
@media only screen and (max-width: 720px) {
  .bttn-up {
    display: none !important;
  }
  .bttn-home {
    display: none !important;
  }
  .bttn-moon {
    display: none !important;
  }
}
