@import url("../components/sidebar.css");
@import url("../components/english.css");
@import url("../components/breadcrumbs.css");
@import url("../components/tabs.css");
@import url("../components/modal.css");
@import url("../components/star-rating.css");

html {
    font-size: 16px;
}

p {
    line-height: 1.6em;
}

.lesson_container {
    font-size: 17px;
}

.lesson_content p,
.lesson_content ul,
.lesson_content ol,
.box,
.tutorial,
.comment-form,
.wp-block-table {
    margin: 24px 0;
}

.wp-block-table {
    width: 100%;
    overflow-x: auto;
}

.lesson_content li {
    padding-left: 6px;
}

.lesson_content ul li {
    list-style-type: "\25c7   ";
}

h1 {
    word-break: break-word;
    max-width: 100%;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 25px;
}

h2,
h3,
h4,
h5,
h6 {
    word-break: break-word;
    max-width: 100%;
    margin-bottom: 16px;
    margin-top: 48px;
}


.top_bar {
    padding-top: 15px;
}

.choose_mode .secondary {
    color: var(--lightgray);
}

.choose_mode svg {
    display: block;
}

#text_mode,
#text_mode::before {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}

#step_mode,
#step_mode::before {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

.wp-block-quote p {
    text-align: center;
    border: 4px solid var(--accent);
    font-weight: var(--main_bold_weight);
    padding: 24px;
    margin: 20px 0;
    border-radius: var(--radius);
}

.hintbox {
    padding: 20px 30px;
    border: 2px solid var(--green);
    padding: 20px 30px;
    margin: 20px 0;
    border-radius: var(--radius);
}

figcaption {
    margin: 10px 0 0 0 !important;
    font-size: 16px !important;
    color: var(--secondary) !important;
    text-align: center;
}

lottie-player {
    margin: 24px auto;
}

.lesson_content img {
    border-radius: 5px !important;
    max-width: 100% !important;
    height: auto;
}

.wp-block-image img {
    height: auto !important;
}

.darkmode .lesson_content img {
    background-color: var(--lightblue);
}

.wp-block-gallery {
    margin-top: 24px !important;
    margin-bottom: 24px !important;
}

.wp-block-image {
    margin: 24px 0;
    text-align: center;
    border-radius: 5px;
    overflow: hidden;
    max-width: 100%;
}

.wp-block-image figure {
    max-width: 100%;
}

.wp-block-gallery .wp-block-image {
    border: var(--border);
    border-radius: var(--radius);
}

.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) {
    align-self: center;
}

.wp-block-gallery .wp-block-image img {
    border-radius: 0;
}

.wp-block-gallery .wp-block-image figcaption {
    background: var(--white) !important;
    border-top: var(--border);
    padding: 8px 12px !important;
    position: static !important;
    margin-top: 0 !important;
}

.outer {
    position: relative;
    max-width: calc(100% - var(--sidebar_actual_width));
    margin: 40px 0 50px 0;
    display: flex;
    flex-grow: 1;
    justify-content: center;
    overflow-x: hidden;
}

.lesson_container {
    padding: 0 16px;
    --negative_margin: -16px;
    min-width: 0;
    max-width: 708px;
}

.lesson_content ul li,
.lesson_content ol li {
    margin-top: 14px;
}

.next_lesson {
    margin-bottom: 40px;
}

.next_lesson h3 {
    margin-top: 0;
}

.next_lesson img {
    border-radius: 10px;
    max-width: 200px;
}

.next_lesson .sec:hover {
    color: var(--accent);
    transition: 0.3s linear color;
}

.next_lesson svg {
    margin-bottom: -2px;
    animation-name: animation;
    animation-duration: 2.5s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: linear;
}

@keyframes animation {
    from {
        transform: translateX(-20%);
    }

    to {
        transform: translateX(80%);
    }
}

.test_footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.progress {
    text-align: right;
}

.correct_message {
    color: var(--green);
    display: none;
    font-weight: var(--main_bold_weight);
}

.wrong_message {
    color: var(--red);
    display: none;
    font-weight: var(--main_bold_weight);
    margin-bottom: -6px;
}

.correct_message svg,
.wrong_message svg {
    margin-right: 5px;
}

.correct_answered .correct_message,
.wrong_answered .wrong_message {
    display: flex;
}

.box h2 {
    margin-bottom: 24px;
}


/* TEST */

#test_html {
    display: none;
}

.test {
    display: none;
    border-top: var(--border);
    border-bottom: var(--border);
    padding: 24px 16px;
    margin: 24px -16px 24px -16px;
}

.test.correct {
    border-top: 3px solid var(--green);
    border-bottom: 3px solid var(--green);
}

.test.wrong {
    border: 3px solid var(--red);
}

.test .results {
    display: none;
}

.test.ended .results {
    display: none;
}

.test_wrapper {
    position: relative;
    margin-bottom: 20px;
}

.question_text {
    margin: 0;
}


/* BOTTOM SHARE */

.opinion h3 {
    font-size: 17px;
    margin: 0;
}

#rightAnimWrapper {
    height: 300px;
    z-index: 5000;
    position: absolute;
    pointer-events: none;
    left: 0;
    right: auto;
    bottom: 60px;
}


/* chert */

.chert {
    position: relative;
}

.chert_overflow {
    cursor: pointer;
    content: "Показать чертёж?<br>";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--accent);
    color: #fff;
    z-index: 1;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
}

.chert_overflow h4 {
    margin-top: 0;
    color: #fff;
    font-size: 25px;
}


/* COLUMNS */


/* EXPAND SOLUTION */

.expand_text_block,
.hide_text_block {
    color: var(--accent);
    cursor: pointer;
}

.expand_text_block::before,
.hide_text_block::before {
    content: "[";
}

.expand_text_block::after,
.hide_text_block::after {
    content: "]";
}

.wp-block-group {
    border-left: var(--border);
    padding-left: 24px;
}

.wp-block-group.hide {
    display: none;
}

.wp-block-group.int,
.wp-block-group.hard,
.wp-block-group.fun {
    margin-top: 145px !important;
    position: relative;
}

.wp-block-group.int::after,
.wp-block-group.hard::after,
.wp-block-group.fun::after {
    position: absolute;
    top: -130px;
    right: 0;
    width: 120px;
    content: url("../../img/ills/obrazavr-with-magnifier.svg");
}

.wp-block-group.hard::after {
    width: 138px;
    content: url("../../img/ills/obrazavr-doing-exercises-3.svg");
}

.wp-block-group.fun::after {
    width: 118px;
    content: url("../../img/ills/glad-obrazavr.svg");
}

@media (min-width: 1300px) {
    .wp-block-group.int,
    .wp-block-group.hard,
    .wp-block-group.rep,
    .wp-block-group.fun {
        margin-top: 24px !important;
    }

    .wp-block-group.int::after,
    .wp-block-group.hard::after,
    .wp-block-group.rep::after,
    .wp-block-group.fun::after {
        width: 150px;
        top: auto;
        bottom: 0;
        right: -135px;
    }
}


/* HINTS */

.hint_report_bar {
    border-top: none;
    padding-top: 0;
}

.test[hint_status="no_hint"] .hint_report_bar,
.test[hint_status="hints_shown"] .hint_report_bar {
    display: none;
}

.contents li::marker,
.yoast-table-of-contents li::marker {
    color: var(--accent);
}

.contents div,
.yoast-table-of-contents h2 {
    font-family: var(--main_font);
    font-weight: var(--main_bold_weight);
    font-size: 20px;
    margin-top: 0;
}

.contents,
.yoast-table-of-contents {
    margin: 24px 0;
    text-align: left;
    padding: 24px 24px 0 24px;
    border-radius: 20px;
    border: var(--border);
}

.contents {
    display: none;
}

.walkthrough .step_section .contents:first-child,
.walkthrough .step_section .yoast-table-of-contents:first-child {
    margin-top: 0;
}

.yoast-table-of-contents li ul,
.contents li ul {
    margin-top: 0;
}

/* COLUMNS */
.wp-block-columns {
    margin: 24px 0;
    gap: 24px;
}

.wp-block-column *:first-child {
    margin-top: 0;
}



/*
*
** Comments
*
*/

.px {
    max-width: 648px;
    margin: auto;
    margin-top: 48px;
}

.comment-body {
    display: flex;
    margin-bottom: 34px;
}

.comment-form-comment div:nth-child(2) {
    flex-grow: 1;
}

.form-submit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 0 58px;
    padding: 9px 16px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border-bottom: 1px solid var(--lightgray);
    border-left: 1px solid var(--lightgray);
    border-right: 1px solid var(--lightgray);
}

.comment_wrap {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    overflow: hidden;
    background-color: var(--white);
    border: 1px solid var(--lightgray);
}

#comment {
    border: none;
    width: 100%;
    min-height: 140px;
    resize: vertical;
}

.comments ul {
    list-style: none;
    padding: 0;
}

.comment-reply-title {
    display: none;
}

.comments .avatar {
    min-width: 48px;
    max-width: 48px;
    min-height: 48px;
    max-height: 48px;
    margin-right: 10px;
}

#author .avatar {
    min-width: 74px;
    max-width: 74px;
    min-height: 74px;
    max-height: 74px;
    margin-right: 22px;
}

#author img {
    object-fit: cover;
}

#author .bold {
    font-size: 20px;
}

#author .sec {
    font-size: 18px;
}

.comment-author a {
    font-size: 16px;
    color: var(--main);
    font-weight: var(--main_bold_weight);
    font-style: normal;
}

.no-focus .ask_question .form-submit {
    display: none;
}

.no-focus .ask_question #comment {
    min-height: 50px;
}

.no-focus .ask_question .comment_wrap {
    border-radius: 5px;
}

.comment .date {
    margin-left: 10px;
    font-size: 16px;
    font-weight: 300;
}

.comment-reply-link {
    font-size: 16px;
    font-weight: var(--main_bold_weight);
    color: var(--secondary);
    margin-right: 24px;
}

.comment-body p {
    margin: 8px 0;
    word-break: break-word;
    max-width: 100%;
}

.depth-2,
.depth-3,
.comment #respond {
    padding-left: 58px;
}

.delete_comment {
    font-size: 16px;
    color: var(--red);
    cursor: pointer;
}

.comment-list {
    margin: 0 !important;
    padding: 24px 0 !important;
    border-top: 1px solid var(--lightgray);
}

.need_login {
    margin: 48px 0;
}

.need_login .btn {
    padding-left: 34px;
    padding-right: 34px;
}

.need_login h3 {
    margin-top: 0;
    margin-bottom: 24px;
}

.question-moderation,
.answer-moderation {
    font-size: 15px;
    font-style: italic;
    margin: 16px 0;
}

.answer-moderation,
.children .question-moderation {
    display: none;
}

.children .answer-moderation {
    display: block;
}


/* REWARD */

.reward {
    position: relative;
    margin: 24px 0 40px 0;
}

.reward span {
    font-weight: var(--main_bold_weight);
}

.xp img {
    margin-left: 6px;
    margin-right: 0;
}

@keyframes goRight {
    to {
        left: 100vw;
    }
}

@keyframes goUp {
    to {
        top: -100vh;
    }
}

@keyframes fadeOut {
    to {
        top: 0;
        left: 0;
        opacity: 0;
    }
}

@media (min-width: 708px) {
    .test {
        padding: 24px;
        border: var(--border);
        border-radius: var(--radius);
        margin-left: 0;
        margin-right: 0;
    }

    .test.correct {
        border: 3px solid var(--green);
    }
}

@media (min-width: 768px) {
    h1 {
        font-size: 42px;
    }
    .lesson_container {
        padding: 0 24px;
        font-size: 17px;
        --negative_margin: -24px;
    }
    .px {
        margin-top: 70px !important;
    }

    .wp-block-columns {
        display: flex;
        margin: 32px 0;
        gap: 32px;
        margin-left: var(--negative_margin);
        margin-right: var(--negative_margin);
    }

    .wp-block-group .wp-block-columns {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .wp-block-column {
        min-width: calc(50% - 12px);
        max-width: calc(50% - 12px);
    }

    .contents div,
    .yoast-table-of-contents h2 {
        font-size: 25px;
    }
}

@media (min-width: 1197px) {
    .lesson_container {
        font-size: 18px;
        --negative_margin: -48px;
    }
}

@media (min-width: 1600px) {
    .lesson_container {
        font-size: 19px;
        margin-left: -150px;
        transition: 0.1s ease-out all;
    }
    .sidebar_hidden .lesson_container {
        margin-left: -30px;
        transition: 0.3s ease-out margin-left 0.5s;
    }
}



/* BACKGROUND BLOCKS */

.has-background {
    padding: 32px 24px;
    background: var(--secondary_background);
    color: var(--always_main);
    --rubric_color: var(--secondary);
    border-radius: var(--radius);
}

.has-background h3 {
    color: inherit;
}

p.has-background {
    padding: 24px;
}

.has-background *:first-child {
    margin-top: 0;
}

.has-background *:last-child {
    margin-bottom: 0;
}

.wp-block-group.has-background {
    margin: 24px 0;
    border: none;
}

.wp-block-group.has-background img {
    background-color: transparent;
}

.wp-block-group.has-background .wp-block-group__inner-container {
    width: 100%;
    display: inline-block;
}

.has-background .rubric {
    color: var(--rubric_color);
    font-weight: var(--main_bolder_weight);
    text-transform: uppercase;
    margin-bottom: 0;
    line-height: 1;
    font-size: 90%;
}

.has-background .rubric+* {
    margin: 18px 0 0 0;
}

.has-background .rubric+p {
    margin: 14px 0 0 0;
}

.has-background .rubric+*+* {
    margin-top: 18px;
}

.has-english-color {
    color: var(--pink) !important;
}

.has-white-color {
    color: var(--main) !important;
}

.has-english-background-color {
    --rubric_color: #BD5DFD;
    background-color: #F9EFFF;
}

.has-green-background-color,
.has-darkgreen-background-color {
    --rubric_color: var(--green) !important;
    background: #EDFAED !important;
}

.has-sec-background-color {
    --rubric_color: var(--secondary);
    background-color: var(--secondary_background);
    color: var(--main);
}

.has-phys-background-color {
    --rubric_color: var(--coral) !important;
    background-color: #FFF7F7;
}

.has-sec-2-background-color {
    background-color: var(--secondary_background1);
    color: var(--main);
}


.has-blue-3-background-color,
.has-darkblue-background-color {
    background: var(--lightblue);
    --rubric_color: #1cb0f6 !important;
}

.has-progress-background-color {
    --rubric_color: var(--progress) !important;
    background-color: #EEEAFF;
}

.has-hist-background-color {
    --rubric_color: #EB6F1D !important;
    background: #FFF0E7;
}


/* walkthrough */

.walkthrough .step_section {
    margin-top: 80px
}

.walkthrough_finished .lesson_content .step_section:last-child.shown {
    margin-bottom: 50px;
}

.walkthrough .step_section .first_in_section,
.step_section[data-section="0"] {
    margin-top: 24px;
}

/* .next_step_inline_cont, */
.walkthrough .lesson_container *[data-section] {
    opacity: 0;
    position: fixed;
    z-index: -10;
}

.walkthrough .lesson_container .shown,
.next_step_inline_cont.shown {
    position: initial;
    opacity: 1;
    z-index: initial;
    animation: fadeInFromNone 0.5s ease-out;
}

.walkthrough .lesson_container .int.shown,
.walkthrough .lesson_container .hard.shown,
.walkthrough .lesson_container .fun.shown,
.walkthrough .lesson_container .step_section.shown,
.walkthrough .lesson_container .chert.shown {
    position: relative !important;
}


@keyframes fadeInFromNone {
    0% {
        position: initial;
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.next_step {
    margin: auto;
}

.game {
    margin-top: 100px;
    flex-direction: column;
    animation-name: flash;
    animation-duration: 0.3s;
    animation-iteration-count: 8;
    animation-direction: alternate;
    animation-timing-function: linear;
}

@keyframes flash {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.game canvas {
    background-color: #fff;
    max-width: 100%;
    border: var(--border);
    border-radius: var(--radius);
}

.controller span {
    padding: 8px;
}

/* FAQS */
.schema-faq-section {
    padding: 15px 24px;
    border-radius: var(--radius);
    background-color: var(--secondary_background);
    border: var(--border);
    border-bottom-width: 5px;
    margin-top: 10px;
}

.schema-faq-question {
    display: block;
    width: 100%;
    padding-right: 20px;
    cursor: pointer;
    position: relative;
}

.schema-faq-question::after {
    content: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3C!-- Generated by Pixelmator Pro 3.2.2 --%3E%3Csvg width='16' height='11' viewBox='0 0 16 11' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cpath id='path1' fill='%23c3d1db' fill-rule='evenodd' stroke='none' d='M 15.451292 1.253199 C 15.885345 1.700614 15.88543 2.426119 15.451482 2.87365 L 8.785619 9.749483 C 8.351805 10.196959 7.648271 10.197041 7.214312 9.749667 L 0.546842 2.87539 C 0.11287 2.427961 0.112785 1.702456 0.546653 1.254939 C 0.980507 0.807408 1.684027 0.807326 2.118 1.254756 L 7.999695 7.318851 L 13.87996 1.253383 C 14.313908 0.805851 15.017374 0.805769 15.451292 1.253199 Z'/%3E%3C/svg%3E");
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
}

.schema-faq-section.opened .schema-faq-question::after {
    transform: rotate(180deg);
    transform-origin: center;
}

.answer_wrapper {
    max-height: 2000px;
    height: auto;
    overflow: hidden;
    transition: 0.2s ease-out max-height;
}

p.schema-faq-answer {
    margin: 16px 0 0 14px;
}

.schema-faq-section:not(.opened) .answer_wrapper {
    max-height: 0;
}

.lesson_content p img {
    margin-top: 24px;
}

/* videourok */

.lesson_content iframe {
    width: 100%;
    display: block;
    height: auto;
    min-height: 300px;
    border: var(--border);
    margin: 24px 0;
    border-radius: var(--radius);
}

.video_embed,
.videourok {
    position: relative;
}

.videourok {
    margin-top: 62px;
}

.videourok iframe {
    border-width: 3px;
    border-color: var(--accent);
}

.videourok::before {
    position: absolute;
    content: "ВИДЕОУРОК";
    color: var(--accent);
    font-weight: var(--main_bolder_weight);
    bottom: calc(100% + 7px);
    left: 10px;
}

.play_btn {
    display: none;
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background-color: var(--accent);
    border: var(--border);
    border-bottom-width: 4px;
    cursor: pointer;
}

.play_btn img {
    width: 24px;
    height: 28px;
    background-color: transparent;
}

.video_embed:not(.ended) .play_btn img:nth-child(2),
.ended .play_btn img:nth-child(1) {
    display: none;
}

.video_embed.stopped .play_btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video_embed_content {
    min-height: 400px;
}

.video_embed:not(.not_started).stopped::after {
    content: "";
    position: absolute;
    width: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--secondary_background1);
    border-radius: var(--radius);
    z-index: 1;
    pointer-events: all;
}

.wp-block-embed-youtube figcaption {
    display: none;
}

/* STEP */
.reshenie_content p em,
.badge,
.answer_step strong:first-child {
    display: inline-block;
    padding: 6px 12px;
    min-width: 57px;
    text-align: center;
    border-radius: 50vh;
    font-style: normal;
    font-size: 14px;
    line-height: 1;
    color: var(--lighter_main);
    background-color: var(--secondary_background);
}

.reshenie_content p em {
    margin-top: 9px;
}

.lesson_content .badge {
    margin-bottom: 0;
}

.lesson_content .badge + * {
    margin-top: 15px;
}

.schema-how-to-steps {
    list-style: none;
    padding-left: 0;
}

.schema-how-to-steps li {
    margin-top: 32px !important;
    list-style-type: none !important;
    padding-left: 0;
}

.schema-how-to-steps li img {
    width: 100%;
}

.badge + strong {
    font-size: 17px;
    display: block;
    font-weight: var(--main_weight);
    color: var(--secondary);
    margin-top: 10px;
}

.badge + strong  + * {
    margin-top: 10px;
}

.answer_step .answer_content {
    background-color: var(--transp_green);
    padding: 24px !important;
    border-radius: var(--radius);
}

.answer_step strong:first-child {
    color: var(--green);
    background-color: var(--transp_green);
}

.answer_step .schema-how-to-step-name {
    margin-bottom: 10px;
}

.answer_content *:first-child {
    margin-top: 0;
}

.answer_content *:last-child {
    margin-bottom: 0;
}