::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #500047;
}

::-webkit-scrollbar-thumb:hover {
    background: #de0061;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: "Montserrat";
    padding: 0;
    margin: auto;
    overflow: hidden;
}

.tingle-modal {
    user-select: none !important;
}

html, body {
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Chrome/Safari/Opera */
    -khtml-user-select: none;
    /* Konqueror */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer / Edge */
    user-select: none;
    /* Версия без префикса, в настоящее время не поддерживается ни одним браузером */
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}

/* Title page*/

.title-container {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: row;
}

.t1 {
    width: 5vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: space-around;
    background-color: #500047;
}

.t2 {
    width: 30vw;
    height: 100vh;
    background-color: #83005f;
}

.t22 {
    width: 30vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: space-between;
    background-color: #500047;
}

.t3 {
    width: 65vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: space-between;
    background-color: #500047;
}

#a-authors, #a-literature, #a-intro, #a-glossary, #a-oglavlenie1, #a-oglavlenie2, #a-oglavlenie3, #a-oglavlenie4, #a-test1, #a-test2, #a-test3, #a-test4 {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    white-space: nowrap;
    width: auto;
    transform: rotate(270deg);
}

#a-authors:hover, #a-literature:hover, #a-intro:hover, #a-glossary:hover, #a-oglavlenie1:hover, #a-oglavlenie2:hover, #a-oglavlenie3:hover, #a-oglavlenie4:hover, #a-test1:hover, #a-test2:hover, #a-test3:hover, #a-test4:hover {
    border-bottom: 3px solid white;
}

.test4:hover, .derek4:hover, .prezentacia4:hover, .derecter4:hover, .test1234:hover {
    border-bottom: 3px solid white;
}

.t2 span {
    /* width: 70vh;  */
    position: absolute;
    color: #FFFFFF;
    text-transform: uppercase;
    font-size: 7vh;
    transform: translate(-50%, -50%) rotate(270deg);
    left: 12vw;
    top: 50vh;
}

.t2 img {
    width: 30vw;
    height: 100vh;
    position: absolute;
    background-size: cover;
    justify-content: space-around;
}

.image-container {
    position: absolute;
    top: 15vh;
    bottom: 15vh;
    right: 0;
    width: 80vw;
    padding: 15vh;
    background-image: url('../img/back.jpg');
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: space-around;
    color: white;
}

#title-caption {
    text-transform: uppercase;
    font-size: 12vh;
    font-weight: bold;
    line-height: 1.2;
}

#title-add {
    font-size: 5vh;
    font-weight: bold;
}

.title-class {
    text-transform: uppercase;
    font-size: 20vh;
    font-weight: bold;
    transform: translate(-50%, -80%);
    color: white;
    position: absolute;
    /* z-index: 1; */
    text-align: center;
    bottom: 0;
    right: 10vw;
    line-height: 1;
}

.upper-strip {
    height: 15vh;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-content: center;
}

.upper-strip a {
    align-self: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}

.upper-strip a:hover {
    border-bottom: 3px solid white;
}

.upper-strip img {
    height: 5vh;
    width: 9vw;
    align-self: center;
}

.lower-strip {
    height: 15vh;
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
}

.quote-buttons {
    height: 100%;
    width: 7vw;
    font-weight: bold;
    font-size: 4vh;
    display: flex;
    flex-direction: column;
}

.quote-buttons a {
    height: 50%;
    width: 100%;
    color: white;
    padding: 0.7rem;
    text-decoration: none;
    text-align: center;
    background-color: #28005a;
}

.quote-buttons a:hover {
    background-color: #de0061;
    cursor: pointer;
}

.quote-text {
    padding: 1rem;
    width: 40vw;
    text-align: end;
    font-style: italic;
    color: white;
    line-height: 1.6;
    font-size: 1.5vh;
}

.nextprev a {
    text-decoration: none;
    display: inline-block;
    padding: 8px 40px;
    text-align: center;
}

.nextprev a:hover {
    background-color: #de0061;
    color: white;
}

.previous, .next {
    background-color: #28005a;
    color: white;
    display: flex;
    flex-direction: row;
}

.start-button {
    width: 16vh;
    height: 16vh;
    border-radius: 8vh;
    line-height: 16vh;
    text-align: center;
    vertical-align: middle;
    transform: translate(-50%, -50%);
    position: absolute;
    /* z-index: 1; */
    bottom: 0;
    right: 47vw;
    font-size: 5vh;
    color: #28005a;
    background-color: white;
    cursor: pointer;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

.start-button:hover {
    border: 2px solid #500047;
}

/* Content page*/

.content {
    position: absolute;
    left: 3vh;
    top: 3vh;
    cursor: pointer;
}

.content-item {
    border: solid 1px white;
    padding: 1vh;
    margin: 1vh;
}

.content-item a {
    text-decoration: none;
    color: black;
    font-size: 2vh;
    margin: 0 1rem;
}

.content-menu {
    position: absolute;
    width: 100%;
    bottom: 1vh;
    right: 40vh;
    font-weight: bold;
    text-align: center;
    padding: 0 10px;
    margin: 1vh;
    display: flex;
    flex-direction: row-reverse;
    margin: 0 auto;
}

.content-menu a {
    align-self: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}

.content-menu-item-1 .content-menu-item-2 .content-menu-item-3 {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    white-space: nowrap;
    width: auto;
}

.reference {
    display: none;
}

.reference~.story {
    display: none;
}

.reference+label {
    font-size: 25px;
    padding: 10px;
    color: #500047;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    background-color: #FF6666;
}

.reference:checked~.story {
    display: block;
    padding: 10px;
}

.panel {
    position: absolute;
    width: 98.6vw;
    top: 12vh;
    left: 0.7vw;
    bottom: 8vh;
    padding: 1rem;
    background-color: rgba(255, 255, 255, .95);
    border: solid 3px white;
    font-weight: bold;
    font-size: 2vh;
}

.panel .list-group-item {
    border-radius: 0;
    background-color: #28005a;
    color: white;
}

.panel .list-group-item:hover {
    opacity: 0.8;
}

.panel .list-group-item-action {
    border-radius: 0;
    background-color: #4e0271;
    color: white;
}

.panel .list-group-item-warning {
    border-radius: 0;
    background-color: #f0c30f;
    color: black;
}

.panel .list-group-horizontal .list-group-item {
    border-radius: 0;
}

.panel .list-group-horizontal .list-group-item-action {
    background-color: #4CAF50;
}

.panel .list-group-horizontal .list-group-item:not(:last-child) {
    margin-right: 1rem;
}

.panel a {
    text-decoration: none;
}

.content-scroll-pane {
    height: 77vh;
    overflow-y: scroll;
}

.lection-scroll-panel {
    width: 100%;
    height: 77vh;
    overflow-y: scroll;
    padding-right: 1rem;
}

.lection-content {
    text-align: justify;
    text-indent: 2rem;
    font-size: 2vh;
}

iframe {
    width: 80%;
    height: 80%;
    border: none;
    overflow-y: scroll;
    position: absolute;
    padding: 0;
    margin: 0;
}

.btn-home {
    position: absolute;
    width: 7vh;
    height: 7vh;
    top: 2vh;
    left: 2.5vh;
    background-image: url("../img/btnHome.png");
    background-size: 100% 100%;
    cursor: pointer;
    opacity: 0.9;
}

.btn-home .list-group-item:hover {
    opacity: 0.8;
}

.test-variant {
    margin-bottom: 1rem;
}

.test-variant button {
    width: 3rem;
    height: 3rem;
    margin-right: 1rem;
}

.soderzhanie {
    font-size: 5vh;
    color: #500047;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}

hr {
    border-top: 2px solid gray;
    margin-block-start: 1em;
    margin-block-end: 2em;
    opacity: .3;
}

.citata {
    color: #003366;
    font-style: italic;
    border: 1px solid #FFFF99;
    border-radius: 10px;
    background-color: #f5f57a80;
    padding: 10px 30px 0 10px;
    font-size: 16px;
    text-align: right;
}

.avtor {
    color: #020e35;
    font-size: 16px;
    font-style: italic;
    text-align: right;
}

.text {
    color: #000000;
    text-indent: 40px;
    font-size: 16px;
    font-style: normal;
    text-align: justify;
    font-weight: lighter;
    padding: 0px 10px;
}

.nazvanie1 {
    font-size: 18px;
    color: #990033;
    text-align: center;
    font-style: bold;
    padding-top: 5pt;
    text-indent: 0pt;
}

table, td, tr {
    border: 1px solid rgba(26, 44, 94, 0.473);
}

.nazvanie_Mugalim {
    border-top: 3px solid rgba(26, 44, 94, 0.473);
    margin-block-start: 1em;
    font-size: 18pt;
    color: #990033;
    text-transform: uppercase;
    text-align: center;
    padding-top: 12pt;
    text-indent: 0pt;
}

.podlozhka_img {
    background-color: #6bff6660;
    padding: 20px 30px 0 10px;
}

.thumb img {
    border: 2px solid #55c5e9;
    /* Рамка вокруг фотографии */
    padding: 2px;
    /* Расстояние от картинки до рамки */
    margin-bottom: 2px;
    /* Отступ снизу */
}

.paragraf {
    color: #272C9B;
    text-transform: uppercase;
    text-indent: 40px;
    font-weight: bold;
    font-size: 25px;
    padding: 30px 0 0 0;
    line-height: 150%;
}

.zagolovok {
    color: #272C9B;
    text-transform: uppercase;
    text-indent: 40px;
    font-weight: bold;
    font-size: 25px;
}

.nazvanie2 {
    font-size: 18px;
    color: #990033;
    text-align: justify;
    font-style: bold;
    padding-top: 5pt;
    font-size: 18px;
    color: #990033;
    text-indent: 40px;
}

.leftimg {
    float: left;
    /* Выравнивание по левому краю */
    margin: 7px 7px 7px 0;
    /* Отступы вокруг картинки */
}

.rightimg {
    float: right;
    /* Выравнивание по правому краю  */
    margin: 7px 0 7px 7px;
    /* Отступы вокруг картинки */
}

.nocopy {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.mfp-fade.mfp-bg {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    visibility: auto;
    flex-direction: column;
}

.mfp-fade.mfp-bg.mfp-ready {
    position: relative;
    flex-shrink: 0;
    border-radius: 4px;
    background: rgb(0, 0, 0);
    opacity: 0.1;
    filter: blur(8px);
}

.mfp-img {
    display: block;
    max-height: 500px;
    align-content: center;
    justify-content: space-between;
   
    height: 77vh;
    overflow-y: scroll;
    padding-right: 1rem;
}

.mfp-content {
    padding: 3rem 3rem 3rem 3rem;
    color: rgb(0, 0, 0);
    width: 100%;
}

.mfp-fade.mfp-wrap {
    padding: 2rem 7rem;
    margin: auto;
    z-index: 1000;
    position: relative;
    flex-shrink: 0;
    width: 100%;
    border-radius: 4px;
    cursor: auto;
    align-content: center;
    justify-content: space-between;
}

.mfp-close {
    position: fixed;
    top: 7rem;
    right: 4rem;
    z-index: 1000;
    padding: 0;
    width: 3rem;
    height: 3rem;
    border: none;
    background-color: transparent;
    color: #500047;
    font-size: 2rem;
    cursor: pointer;
}

.mfp-fade.mfp-wrap:before {
    content: '';
    position: fixed;
    /* Фиксируем на одном месте */
    left: 0;
    right: 0;
    /* Вся ширин */
    top: 0;
    bottom: 0;
    /* Вся высота */
    z-index: -1000;
    /* Параметры фона */
    backdrop-filter: blur(5px);
    align-content: center;
    justify-content: space-between;
}

/* animations
    -------------------------------------------------------------*/

@keyframes scale {
    0% {
        opacity: 0;
        transform: scale(.9);
    }
    100% {
        opacity: .8;
        transform: scale(1);
    }
}

/* стили форматирования главы
    -------------------------------------------------------------*/

.podzagolovok {
    color: #ff5100;
    text-transform: uppercase;
    text-indent: 40px;
    font-weight: bold;
    font-size: 25px;
    padding: 30px 0 0 0;
    font-family: 'Montserrat';
}

.opredelenie {
    color: #000000;
    text-indent: 40px;
    font-size: 16px;
    padding: 10px 30px 0 10px;
    text-align: justify;
    font-family: 'Montserrat';
}

.cite { /* Абзац с классом cite */
    color: #500047;
    margin-left: 0; /* Отступ слева */
    border-left: 70px solid #20a2cac7;
    padding-left: 15px; /* Расстояние от линии до текста */
   } 
  