﻿html {
    position: relative;
    font-family: 'RobotoLight' !important;
    height: 100%;
    /*overflow: hidden;*/
}

.ng-hide {
    display: none;
}

body {
    height: 100%;
    background-color: white;
}

#main-nav {
    position: absolute;
    top: 0;
    width: 100%;
}

.lesson-seo-description {
    display: none;
    text-align: left;
    font-size: 14px;
    color: #3b3b3b;
    padding: 15px 20px 15px 40px;
    margin: 0;
    font-weight: 500;
}

    .lesson-seo-description.shown {
        display: block;
    }

@media screen and (max-width: 1500px) {
    .lesson-seo-description {
        display: none;
    }
}

.body-content {
    height: 100%;
    padding-top: 80px;
}

    .body-content > div {
        /*height: 100%;*/
    }

.container-fluid {
    height: 100%;
}

#main-section {
    height: 100%;
}

.wrapper {
    height: 74vh;
    overflow: hidden;
}

@media screen and (max-width: 991px) {
    .wrapper {
        height: 100%;
    }
}

@media screen and (min-width: 1800px) {
    .wrapper {
        height: 79vh;
    }
}

.wrapper > div {
    height: 100%;
    position: relative;
}

.task-block {
    height: 100%;
    padding: 0 !important;
}

    .task-block > section {
        height: 100%;
        background: #eee;
        padding: 0;
        position: relative;
        /*padding-bottom: 80px;*/
    }

        .task-block > section > .seo-decription-toggle {
            display: none;
            border-radius: 4px;
            border: none;
            font-size: 12px;
            color: #fff;
            cursor: pointer;
            height: 28px;
            line-height: 27px;
            padding: 0 12px;
            background: #9a9797;
            position: absolute;
            top: 6px;
            right: 12px;
            outline: none;
        }

            .task-block > section > .seo-decription-toggle:hover {
                background: #adabab;
            }

@media screen and (max-width: 1500px) {
    .task-block > section > .seo-decription-toggle {
        display: inline-block;
    }
}

.task-block header {
    font-size: 20px;
    line-height: 40px;
    padding-left: 10px;
}


.task-header {
    height: 40px;
    background: #d6d6d6;
    display: block;
    margin: 0;
    padding: 0 15px 0 40px;
    font-size: 16px;
    font-weight: 500;
    line-height: 39px;
}

.task-list {
    /*min-height: 520px;*/
    height: 100%;
    background: #ffffff;
    margin: 0 15px 0 15px;
    padding-top: 10px;
    border: 1px solid rgba(0,0,0,0);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 25px;
}

@media screen and (min-width: 1500px) {
    .task-list {
        height: calc(100% - 150px);
    }
}

.task-list .task {
    min-height: 40px;
    margin: 0 5px;
    padding: 5px 0;
    line-height: 40px;
    font-size: 14px;
}

    .task-list .task:first-child {
        margin-top: 0;
    }

.task div {
    float: left;
}

.task::after {
    content: "";
    display: table;
    clear: both;
}

.task .task-details {
    padding: 0 30px;
    width: 100%;
}

.task-details .current-points {
    position: absolute;
    z-index: -1;
    top: -21px;
    right: -23px;
    padding: 5px;
    line-height: 15px;
    height: 25px;
    width: 26px;
    text-align: center;
    background-color: #eee;
    border-radius: 50% 50% 50% 0;
}

.task .task-details #points {
    background: #eee;
    height: 24px;
    margin: 2px 0;
    line-height: 26px;
    padding-left: 2%;
    margin-right: 15px;
    width: 7%;
    font-size: 14px;
}

.task .task-details #gold {
    width: 35px;
    height: auto;
    margin-top: 3px;
}

.task .task-num {
    width: 40px;
    height: 30px;
    line-height: 30px;
    margin-top: 5px;
    text-align: center;
    border-right: 1px solid #d6d6d6;
}

.task .task-description {
    float: none;
    text-overflow: ellipsis;
    -ms-text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    overflow: hidden;
    padding-left: 15px;
}

.task .show-details {
    float: right;
    padding-right: 10px;
}

.show-details .task-score {
    float: right;
    padding-right: 5px;
}

.task .status {
    height: 40px;
    width: 20px;
    float: right;
    text-align: right;
    background-repeat: no-repeat;
    background-position: center;
}

.task div.correct {
    background-image: url('../../Images/check_green.png');
}

.task div.failed {
    background-image: url('../../Images/close_red.png');
}

.disabled {
    background-color: #EEECEC;
    clear: both;
    cursor: not-allowed;
    opacity: .5;
}

#mistake-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
}

#mistake {
    padding: 20px;
    margin: 10% auto;
    background-color: #fff;
    border: 1px solid #152B39;
    border-radius: 20px;
    color: #152B39;
    font-size: 20px;
}

    #mistake .btn-warning {
        float: right;
    }

.buttons-wrapper {
    display: flex;
    justify-content: space-between;
}

.finish-btn {
    margin: 0 0 0 20px;
}

.limited-access-wrapper {
    justify-content: center;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
}

.limited-access {
    width: 90%;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #152B39;
    border-radius: 20px;
    color: #152B39;
    font-size: 20px;
}

@media screen and (min-width: 40em) {
    .limited-access {
        width: 60%;
    }
}

@media screen and (min-width: 60em) {
    .limited-access {
        width: 40%;
    }
}

@media screen and (min-width: 80em) {
    .limited-access {
        width: 30%;
    }
}

@media screen and (min-width: 120em) {
    .limited-access {
        width: 25%;
    }
}

.limited-access__header, .limited-access-wrapper {
    display: flex;
    align-items: center;
}

.limited-access__header {
    justify-content: space-between;
}

@media screen and (max-width: 400px) {
    .buttons-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .finish-btn {
        margin: 10px 0 0 0;
    }
}

/* Правый блок с редактором кода Асе */
.code-block {
    height: 100%;
    padding: 0 !important;
}

.code-header {
    position: absolute;
    top: 0;
    z-index: 100;
    width: 100%;
    /*max-width: 900px;*/
    height: 40px;
    color: #FDFDFD;
    background: #323232;
    font-size: 16px;
    line-height: 39px;
    padding: 0 15px;
}

    .code-header i {
        position: absolute;
        top: 11px;
        right: 70px;
        line-height: 20px;
        cursor: pointer;
    }

        .code-header i:first-child {
            right: 10px;
        }

        .code-header i:last-child {
            font-size: 24px;
            right: 40px;
            top: 13px;
        }

/** Стили для Асе редактора*/
.code-ace {
    height: 100%;
    padding-top: 20px;
    position: relative;
}

.ace_editor {
    height: 100%;
}

    .ace_editor, .ace_text-input, .ace_editor div {
        font-family: monospace !important;
        text-indent: 0.1px;
        font-feature-settings: "liga" 0;
        font-variant-ligatures: none;
    }

/** Footer */

.footer {
    display: flex;
    align-items: center;
    /*overflow: hidden;*/
    height: 70px;
    /*position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;*/
    /*line-height: 70px;*/
    /* Set the fixed height of the footer here */
    /*height: 60px;*/
    margin: 0;
    background-color: #eee;
}

    .footer button {
        width: 90px;
        margin-left: 5px;
        border-radius: 0;
        border: none;
    }

    .footer .btn-warning {
        background: #ff9800;
    }

    .footer .btn-primary {
        background: #2196f3;
    }

    .footer .btn-success {
        background: #0e9c57;
    }

#reset__btn {
    position: absolute;
    top: 6px;
    left: 150px;
    background: #9a9797;
    font-size: 12px;
    color: #fff;
    cursor: pointer;
    height: 28px;
    line-height: 27px;
    padding: 0 12px;
    border: none;
    text-shadow: none !important;
    outline: none;
    box-shadow: none !important;
}

    #reset__btn:hover {
        background-color: #adabab;
    }

ul.my_pagination {
    margin-bottom: 0;
    vertical-align: baseline;
    display: inline-block;
}

    ul.my_pagination > li {
        display: inline-block;
    }

    ul.my_pagination li a {
        padding: 6px 6px;
        background-color: #eee;
        color: #3b3b3b;
        border: none;
        font-size: 14px;
        line-height: 15px;
        float: left;
        text-decoration: none;
    }

        ul.my_pagination li a.disabled-link {
            cursor: not-allowed;
            opacity: 0.75;
        }

    ul.my_pagination li.active a {
        cursor: pointer;
        color: #3b3b3b;
        background-color: #eee;
        opacity: 1;
        font-size: 14px;
        font-weight: 500;
        line-height: 15px;
        text-decoration: underline;
    }

    ul.my_pagination li a.enabled-link:hover {
        color: #3b3b3b;
        background-color: #eee;
        opacity: 1;
        font-weight: 300;
        line-height: 15px;
        text-decoration: underline;
    }

    ul.my_pagination .previous-page a,
    ul.my_pagination .next-page a {
        cursor: pointer;
    }

    ul.my_pagination .previous-page a {
        /*margin-right: 25px;*/
    }

    ul.my_pagination .next-page a {
        /*margin-left: 25px;*/
    }

.pagination > .disabled > span, .pagination > .disabled > span:hover, .pagination > .disabled > span:focus, .pagination > .disabled > a, .pagination > .disabled > a:hover, .pagination > .disabled > a:focus {
    color: #777;
    cursor: not-allowed;
    background-color: #eee;
    border-color: #ddd;
}

i.left_arrow, i.right_arrow {
    font-size: 30px;
}

.option-buttons {
    display: flex;
    justify-content: flex-end;
    text-align: right;
}

.full-task {
    padding: 1% 0;
    z-index: 10;
    background: #fff;
    margin: 0 auto 2%;
    display: none;
    width: 100%;
    border: 1px solid #ddd;
    /*border-top: none;*/
    /*left: 5px;
    right: 30px;*/
}

    .full-task > img {
        position: absolute;
        top: 10%;
        right: 2%;
        cursor: pointer;
    }

.full-description {
    /*white-space: pre-wrap;*/
    line-height: 25px;
    padding: 20px 30px;
}

.feedback-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#feedback {
    display: flex;
    flex-direction: column;
    position: absolute;
    width: 500px;
    height: 200px;
    background: white;
    box-shadow: 2px 2px 0 0 lightgrey;
}

@media screen and (max-width: 600px) {
    #feedback {
        width: 90%;
        height: 250px;
    }
}

    #feedback .btn {
        height: 40px;
        margin: 10px 0 0 0;
    }

    #feedback .thanks {
        margin: 0;
        font-size: 16px;
        height: 114px;
        text-align: center;
        padding-top: 22px;
    }

    #feedback header {
        font-size: 20px;
        text-align: left;
        color: white;
        background: #ff9800;
        padding: 0 10px;
        cursor: all-scroll;
    }

    #feedback textarea {
        resize: none;
        border-radius: 0;
        height: 100%;
    }

    #feedback form {
        padding: 10px;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    #feedback .resizer {
        position: absolute;
        bottom: 0;
        right: 0;
        cursor: nw-resize;
        background-image: url(/Content/img/webchat/resizer.png);
        width: 18px;
        height: 18px;
        background-size: cover;
        filter: invert(0.1);
    }

@media screen and (max-width: 1100px) {
    #feedback .resizer {
        display: none;
    }

    #feedback header {
        cursor: initial;
    }
}

#error, #success_alert {
    /*display: none;*/
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 9999;
}

#error {
    margin: -74px -175px;
    width: 350px;
    background: white;
    box-shadow: 2px 2px 0 0 lightgrey;
}

#success_alert {
    margin: -175px -175px;
    width: 250px;
    visibility: hidden;
}

    #success_alert img {
        width: 250px;
        height: auto;
    }

#error .btn {
    height: 40px;
    width: 110px;
    margin-left: 5px;
    border-radius: 0;
    border: none;
}

#error header {
    font-size: 20px;
    color: white;
    background: #f44336;
    padding: 0 10px;
    line-height: 60px;
}

#error .btn-primary {
    background: #2196f3;
}

#error textarea {
    resize: none;
    border-radius: 0;
}

#error form {
    padding: 10px 10px 0;
}

#error p {
    line-height: 25px;
}

#error .btn-danger {
    margin-bottom: 10px;
    background: #f44336;
    margin-left: 0;
    line-height: 14px;
}

#hint {
    display: block !important;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-height: 100px;
    max-height: 170px;
    width: 350px;
    overflow-y: auto;
    background: white;
    -webkit-box-shadow: 2px 2px 0 0 lightgrey;
    -ms-box-shadow: 2px 2px 0 0 lightgrey;
    box-shadow: 2px 2px 0 0 lightgrey;
    z-index: 9999;
}

    #hint header {
        font-size: 20px;
        line-height: 40px;
        color: white;
        background: #2196f3;
        padding: 0 10px;
    }

        #hint header i {
            line-height: 40px;
            cursor: pointer;
        }

        #hint header #hint-counter {
            background: #1d84d5;
            font-size: 15px;
            padding: 0 10px;
            margin-left: 5px;
        }

    #hint p {
        padding: 10px 10px 0;
        line-height: 20px;
    }

.progress-wrapper {
    position: relative;
    width: 62%;
}

    .progress-wrapper .progress-bar {
        background-image: none;
        background: #eee;
    }

div.progress {
    width: 100%;
    height: 3px;
    margin-top: 23px;
}

#attempt-num {
    font-size: 14px;
    border-bottom: 2px solid red;
    margin-left: 20px;
    margin-top: -8px;
    height: 33px;
    width: 40px;
    text-align: center;
}

    #attempt-num + div {
        font-size: 14px;
        line-height: 25px;
        margin-left: 5px;
    }

.marker {
    background-image: url('../../Images/white_marker.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    position: absolute;
    left: 15px;
    top: 7px;
}

.marker-red {
    background-image: url('../../Images/red_marker.png');
}

.marker-green {
    background-image: url('../../Images/green_marker.png');
}

.progress-wrapper .bad {
    background: #f44336;
}

.progress-wrapper .well {
    background: #0e9c57;
}

.cross {
    float: right;
    margin-top: 5px;
}

.option-modal .cross {
    cursor: pointer;
}

.disabled-task {
    cursor: not-allowed;
}

.enabled-task {
    cursor: pointer;
}

.active-task {
    font-size: 16px;
    border-top: 1px solid #ddd;
    border-left: 1px solid #ddd;
}

    .active-task ~ .full-task {
        border-top: 0;
    }

    .active-task + .show-details {
        border-top: 1px solid #ddd;
        border-right: 1px solid #ddd;
    }

.change-by-active {
    padding: 0;
}

.my_pagination li {
    cursor: pointer;
}

#well-done {
    position: absolute;
    left: 0;
    z-index: 111111;
    background-image: url(Content/Practicums/Images/correct_green.png);
    background-position: center;
    background-repeat: no-repeat;
    height: 280px;
    width: 100%;
}

.popover {
    font-family: 'RobotoLight' !important;
    border-radius: unset;
}

.popover-navigation button {
    color: white;
    font-weight: normal;
}

.popover-navigation > button {
    background: #f44336;
}

.popover-navigation .btn-group button {
    background: #ff9800;
}

    .popover-navigation .btn-group button:hover, .popover-navigation .btn-group button:focus {
        background: #ffac00;
        color: white;
    }

.popover-navigation > button:hover, .popover-navigation > button:focus {
    background: #f13426;
    color: white;
}


.tour-disable-float {
    float: none !important;
}

@media screen and (max-width: 998px) {
    html {
        height: auto;
        overflow: auto;
    }

    footer {
        height: auto !important;
        padding: 20px;
        flex-direction: column;
    }

    .task-block > section {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .task-list {
        height: 300px;
    }

    .ace_editor {
        min-height: 400px;
    }

    .wrapper {
        padding-bottom: 20px;
    }

    .body-content {
        padding: 80px 10px 0;
    }
}

@media screen and (max-width: 990px) {
    .option-buttons {
        justify-content: center;
        margin-top: 20px;
    }
}

.mobile-alert {
    display: none;
    padding: 15px 30px;
    margin: 0;
    text-align: center;
    background: #4cc3b0;
    color: #fff;
    font-size: 14px;
}

@media screen and (max-width: 998px) {
    .mobile-alert {
        display: block;
    }
}
