/* Указываем box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Убираем внутренние отступы */
ul[class],
ol[class] {
  padding: 0;
}

/* Убираем внешние отступы */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

/* Выставляем основные настройки по-умолчанию для body */
body {
  min-height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* Удаляем стандартную стилизацию для всех ul и il, у которых есть атрибут class*/
ul[class],
ol[class] {
  list-style: none;
}

ul,
ol,
dd {
  list-style: decimal;
  list-style-type: decimal;
}
/* Элементы a, у которых нет класса, сбрасываем до дефолтных стилей */
/* a:not([class]) {
  text-decoration-skip-ink: auto;
} */

/* Упрощаем работу с изображениями */
img {
  max-width: 100%;
  display: block;
}

/* Наследуем шрифты для инпутов и кнопок */
input,
button,
textarea,
select {
  font: inherit;
}

:root {
  --font-family: Arial, Helvetica, sans-serif;
  --main-color: #007bff;
  --main-color-dark: #005fc5;
  --second-color: #83bfff;
  --pink-color: #d800b4;
  --third-color: #5dabff;
  --gray-color: #f9f9f9;
  --background-color: #ffffff;
}

body {
  background-color: var(--background-color);
  color: #333;
  font-family: var(--font-family);
}

/* Make clicks pass-through */
#nprogress {
  pointer-events: none;
}

#nprogress .bar {
  background: var(--main-color);
  position: fixed;
  z-index: 1031;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
}

/* Fancy blur effect */
#nprogress .peg {
  display: block;
  position: absolute;
  right: 0px;
  width: 100px;
  height: 100%;
  box-shadow: 0 0 10px #29d, 0 0 5px #29d;
  opacity: 1;
  -webkit-transform: rotate(3deg) translate(0px, -4px);
  -ms-transform: rotate(3deg) translate(0px, -4px);
  transform: rotate(3deg) translate(0px, -4px);
}

/* Remove these to get rid of the spinner */
#nprogress .spinner {
  display: block;
  position: fixed;
  z-index: 1031;
  top: 15px;
  right: 15px;
}

#nprogress .spinner-icon {
  width: 18px;
  height: 18px;
  box-sizing: border-box;

  border: solid 2px transparent;
  border-top-color: #29d;
  border-left-color: #29d;
  border-radius: 50%;

  -webkit-animation: nprogress-spinner 400ms linear infinite;
  animation: nprogress-spinner 400ms linear infinite;
}

.nprogress-custom-parent {
  overflow: hidden;
  position: relative;
}

.nprogress-custom-parent #nprogress .spinner,
.nprogress-custom-parent #nprogress .bar {
  position: absolute;
}

@-webkit-keyframes nprogress-spinner {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}
@keyframes nprogress-spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

a {
  text-decoration: none;
  color: var(--main-color);
}

a:visited {
  text-decoration: underline;
}

#nprogress .bar {
  height: 2px !important;
}

.featured-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.pagination {
  display: flex;
  flex-wrap: nowrap;
  overflow: auto;
}

.pagination a {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background-color: var(--gray-color);
}

.pagination a.active {
  background-color: var(--main-color);
  color: white;
  border: 1px solid gray;
}

.pagination a:hover:not(.active) {
  background-color: #ddd;
}

a:hover {
  color: #333;
}

section {
  padding: 2rem 0;
}

.page-content p {
  padding: 0 2rem;
}

li a, 
dt a {
  display: block;
  padding: .5rem;
  font-size: 1.2rem;
}

dt,
dd {
  display: block;
}

a.author_name, span.author_name {
  color: #333;
  font-size: 1rem;
}

.books-list li,
.books-list dt {
  display: flex;
  align-items: center;
  padding-left: 1rem;
}

.books-list li span,
.books-list dt span {
  display: inline-block;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

[name="resize-outline"]{
  cursor: pointer;
  color: var(--main-color);
}

.page h1 {
  font-size: 1rem;
  position: absolute;
  top: 0;
  right: 10px;
}

.page h1 span {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  position: absolute;
  top: 1.2rem;
  right: 0;
}

.page h1 a {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

@media screen and (max-width: 1000px) {
  .page h1 {
    display: inline !important;
    top: 0;
    left: 0.3rem;
  }
  
  .page h1 span {
    top: 1.2rem;
    display: inline;
    left: 0rem;
  }

  summary {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
  
  summary .author_name {
    display: block;
    margin: 1rem;
    margin-left: 1.3rem;
    margin-bottom: 0;
  }

}
summary .author_name::before {
  content: "- "
}
/* 
.page h1 span:before{
  content: "-";
} */

.page div {
  font-size: 1.3rem;
}

.page div p:first-child {
  color: var(--main-color);
}

.page div p:last-child {
  padding-bottom: 1rem;
}

html,
body,
#__next,
main {
  height: 100%;
}

.btn {
  box-shadow: 0 1px 10px rgba(123, 123, 123, 0.7);
  cursor: pointer;
  padding: 4px 12px;
  text-align: center;
  display: inline-block;
  border-radius: 2px;
  color:white;
  background-color: var(--main-color);
}

.btn:hover {
  border-radius: 5px;
}

.page p[data-id] {
  cursor: pointer;
  color: var(--main-color);
  font-size: 1.3rem;
  margin-top: 1rem;
}

.page p[data-id]:hover, 
.specker-hover {
  background-color: var(--gray-color);
}

.specker-hover {
  box-shadow: 0 5px 9px -6px #acacac;
}

b {
  font-weight: normal;
  /* color: var(--pink-color); */
}

[data-tooltip] {
  position: relative; /* Относительное позиционирование */ 
  text-decoration-line: underline;
  text-decoration-color: var(--main-color);
  text-decoration-thickness: 1px;
}

[data-tooltip]::after {
  content: attr(data-tooltip); /* Выводим текст */
  position: absolute; /* Абсолютное позиционирование */
  left: 0; top: 0;
  background: var(--main-color); /* Синий цвет фона */
  color: #fff; /* Цвет текста */
  padding: 0.5em; /* Поля вокруг текста */
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5); /* Параметры тени */
  pointer-events: none; /* Подсказка */
  opacity: 0; /* Подсказка невидима */
  transition: .1s; /* Время появления подсказки */
  z-index: 12;  
  top: 2rem;
  border-radius: 5px;
} 

[data-tooltip]:hover::after {
  top: 2rem; 
  z-index: 14;
  opacity: 1; /* Показываем подсказку */
}

/* details {
  user-select: none;
} */


:focus {
  outline: none;
}

details div {
  padding: 1rem;
}

.dropbtn {
  background-color: var(--main-color);
  color: white;
  padding: 0.5rem 1.6rem;
  font-size: 16px;
  border: none;
  cursor: pointer;
  outline: none;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: relative;
  left: 0;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  color: var(--main-color);
  padding: 0.5rem 1.6rem;
  text-decoration: none;
  display: block;
  cursor: pointer;
  font-style: normal;
  text-transform: capitalize;
}

.dropdown-content a:hover {
  color: #333;
}

.dropdown-content {
  flex-wrap: wrap;
  flex-direction: row;
}

.dropdown-content, details div{
  background-color: var(--gray-color);
}
input[type=range] {
  -webkit-appearance: none;
  margin: 10px 0;
  width: 100%;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 10px;
  cursor: pointer;
  box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
  background: var(--main-color);
  border-radius: 25px;
  border: 0px solid #000101;
}
input[type=range]::-webkit-slider-thumb {
  box-shadow: 0 1px 2px gray, 0 1px 2px gray;
  border: 1px solid gray;
  height: 15px;
  width: 30px;
  border-radius: 7px;
  background: white;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -3.6px;
}
input[type=range]::-moz-range-track {
  width: 100%;
  height: 10px;
  cursor: pointer;
  box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
  background: var(--main-color);
  border-radius: 25px;
  border: 0px solid #000101;
}
input[type=range]::-moz-range-thumb {
  box-shadow: 0 1px 2px gray, 0 1px 2px gray;
  border: 0px solid #000000;
  height: 15px;
  width: 30px;
  border-radius: 7px;
  background: white;
  cursor: pointer;
}

option:checked { 
  color: white;
  cursor: pointer;
  background-color: var(--main-color); 
}

/* b[data-word] {
  text-shadow: 0 1px 0 #555;
} */

details summary {
  padding: 15px 0;
}
details {
  box-shadow: 0 1px 3px rgb(224, 224, 224);
  
}
summary{
  cursor: pointer;
  padding: 1rem;
  color: var(--main-color);
  font-weight: bold;
}

summary::marker,
summary::-webkit-details-marker {
  color: var(--main-color);
  font-size: .8rem;
  padding-right: .5rem;
  margin-top: -5px;
}

/* .book-tags span{
  padding: 10px 0;
  display: block;
  border-bottom: 1px solid #999;
}

.book-tags span:nth-child(1) {
  border-top: 1px solid #999;
} */

.pm-1 {
  padding: 1rem !important;
  margin: 1rem !important;
}

.pm-0 {
  padding: 0 !important;
  margin: 0 !important;

}

header h1 span, header h1 a {
  cursor: pointer;
  font-size: 1.1rem;
}

header h1 span {
  margin-top: .2rem;
}

.icon-svg:active {
  background-color: #83bfff;
}

header h1 span {
  display: inline;
}
img.cover {
  float: left;
  padding: 1rem;
  width: 158px;
  height: 222px;
}
.clearfix { clear: both; }

#container-58245ab0890bebc662121e28a4b42712
.container-58245ab0890bebc662121e28a4b42712__stand {
display: flex !important;
flex-wrap: nowrap !important;
flex-direction: row !important;
background-color: #f9f9f9 !important;
}

@media screen and (max-width: 700px) {
#container-58245ab0890bebc662121e28a4b42712
  .container-58245ab0890bebc662121e28a4b42712__stand
  > div:nth-child(even) {
  display: none !important;
}
}

.page-content {
  padding-top: 0 !important;
}

#iframe-ads {
  box-sizing: border-box;
  box-shadow: 0 1px 10px 2px rgba(192, 192, 192, 0.527);
  margin-top: 10px;
  z-index: 4444;
  height: 60px;
  width: 100%;
}