* {
    box-sizing: border-box;
}

#overlay {
    background-color: #000; /* Чёрный фон */
    width: 100%;
    position: fixed;
    height: 100%; /* Высота максимальна */
    left: 0; /* Нулевой отступ слева */
    opacity: 0.50; /* Степень прозрачности */   /* Фиксированное положение */
    top: 0; /* Нулевой отступ сверху */
    width: 100%; /* Ширина максимальна */  z-index: 100; /* Заведомо быть НАД другими элементами */
    display: block;

}

.button_action_wrapper {
     position: fixed;
     bottom: 30px;
     left: -10px;
     z-index: 999999999;
    animation-duration: 2s;
 }

.button_action_wrapper button.button_action_modal {
    font-size: 18px;
    padding: 15px 20px;
    line-height: 20px;
    border: none;
    background-color: #7011A8;
    text-transform: uppercase;
    color: #fff;
    font-weight: bold;

}




/*modal-form*/

.modal-header {
    border-bottom: none;
}

.modal-content {
    background-color: #a1c6ce;
}

.modal-body {
    padding: 0 20px 20px 20px;
}

.modal-body .header-form {
    background-color: transparent;
}

.modal-body .form-title {
    text-transform: uppercase;
    text-align: center;
    font-size: 25px;
    font-weight: 300;
    margin-bottom: 20px;
}

.modal-body .header-form form {
    width: 85%;
    margin: 0 auto;
}

.modal-body .header-form form input, .modal-body .header-form form select {
    padding: 5px 10px;
    margin-bottom: 10px;
}

.phone-number-label {
    font-size: 10px;
}

.modal-body .header-form-text {
    font-size: 13px;
}

.modal-body .header-form button {
    background-color: #7015A6;
    padding: 10px 40px;
    margin: 0 auto 0 auto;
    border: 1px solid #7015A6;
    border-radius: 16px 0;
    margin-bottom: 10px;
    font-size: 15px;
    text-transform: uppercase;
    color: #fff;
}


.not-active-prezent {
    -webkit-transition: all 0.8s;
    -moz-transition: all 0.8s;
    -o-transition: all 0.8s;
    transition: all 0.8s;
}

.active-prezent {
    position: relative;
    z-index: 400;
    padding: 30px;
}




body {
    background-color: #2f98ad;
    font-family: 'Comfortaa', cursive;
}

.row {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display:         flex;
    flex-wrap: wrap;
}
.row > [class*='col-'] {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.wrapper {
    position: relative;
    background-color: #d7ebef;
    width: 85%;
    border-radius: 50px 50px 50px 50px;
    margin: 50px auto 0 auto;
    padding: 80px 80px 80px 80px;
}

.wrapper-bl {
    position: relative;
    background-color: #d7ebef;
    width: 85%;
    border-radius: 50px 50px 50px 50px;
    margin: 50px auto 0 auto;
    padding: 80px 80px 0 80px;
}

.blue-wrapper{
    position: relative;
    width: 85%;
    border-radius: 50px;
    margin: 50px auto 0 auto;
    padding: 0 80px 80px 80px;
    background-color: #2f98ad;
}

.logo {
    background-image: url(../chapter2/img/logo.png);
    width: 190px;
    height: 106px;
    position: absolute;
    top: -39px;
    left: 20px;
}

.bubble {
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 9999999999999999;
}

.bubble-text {
    width: auto;
    max-width: 400px;
    height: auto;
    padding: 5px 20px 20px 20px;
    position: fixed;
    right: 120px;
    bottom: 190px;
    z-index: 9999999999999999;
    background: #a155d4;
    border-radius: 20px;
    background-repeat: no-repeat;
    background-size: 100% 100%;

}

.bubble-text p{
    color: #efe5e4;
    width: auto;
    max-width: 500px;
    margin: 0 15px 0 15px;
    text-align: center;
    font-size: 15px;
    line-height: 19px;
}

.buble-color {
    color: #efe5e4;
}

.bubble-item {
    position: fixed;
    width: auto;
    z-index: 9999;
    right: -55px;
    bottom: 175px;
}

.bubble-item img {
    width: 80%;
}

.title {
    font-size: 36px;
    color: #1c91a9;
}

/* Button between task */
.button {
    display: block;
    min-width: 69%;
    max-width: 100%;
    word-spacing: 8px;
    margin: 29px auto 30px auto;
    padding: 7px 0;
    border: 5px solid #e05e5a;
    background-color: #d7ebef ;
    color: #e05e5a;
    border-radius: 10px;
    font-size: 30px;
    cursor: pointer;
    white-space: normal;
}

.no-border {
    border: none;
}



.button-disabled {
    background-color: #d7ebef ;
    color: #89cbd8;
    cursor: auto;
    border: 5px solid #89cbd8;
}

.button:focus {
    outline: none;
}

/*Positions*/

.relative {
    position: relative;
}

/*Fractions*/

.top .fraction {
    position: relative;
    top: -2px;
    font-size: 20px;
}

.bottom .fraction {
    font-size: 20px;
}

sup .fraction {
    line-height: 14px;
    top: 0;
    font-size: 16px;
}

.radic-fraction {
    display: inline-block;
    transform: scaleY(3.8);
}

.fraction, .top, .bottom {
    padding: 0 5px;
}

.fraction {
    display: inline-block;
    text-align: center;
    position: relative;
    top: 17px;
    margin-top: -20px;
    margin-bottom: -20px;
}

.fraction .bottom .answer {
    height: 37px;
}

.button-answer .fraction {
    margin-bottom: 7px;
}

.bottom{
    border-top: 1px solid;
    display: block;
}


/*Paragraphs*/
.text {
    display: inline-block;
    font-weight: 100;
    font-size: 22px;
    word-spacing: 2px;
    line-height: 33px;
    margin-bottom: 15px;
    color: #042e36 ;
}

.big-text {
    font-size: 37px;
}

.small-text {
    font-size: 20px;
}

.sign-color {
    color: #940606;
}

/*Image*/
.img {
    display: block;
    width: 80%;
    margin: 15px auto;
}

.full-width {
    width: 100%;
}

.width-50p {
    width: 50%;
}

.width-60p {
    width: 60%;
}

.width-80p {
    width: 80%;
}

.width-90p {
    width: 90%;
}

.width-70p {
    width: 70%;
}

.width-40p {
    width: 40%
}

.width-30p {
    width: 30%
}

/*Form*/

.check {
    display: inline-block;
    font-size: 23px;
    border-radius: 10px;
    margin: 10px 5px 10px 5px;
    padding: 5px;
    border: 4px solid #1193ad;
    background-color: #67bdcf;
    color: #e3f0d8;
}

.answer {
    display: inline-block;
    padding: 10px 10px 10px 20px;
    width: 60px;
    height: 60px;
    border: none;
    background-color: transparent;
    outline: none;
}

.answer-wrapper{
    display: inline-block;
    background-size: 100% 100%;
    padding: 0;
}

.form {
    margin: 10px auto;
    width: 100%;
    text-align: center;
}



/* Defenition*/

.defenition {
    background-color: #1c92a9;
    padding: 24px 40px 24px 40px;
    border-radius: 31px;
    font-size: 22px;
    margin: 0;
    display: block;
    word-spacing: 2px;
    line-height: 27px;
    color: #e3f0d8;
}

.defenition-name {
    color: #fe8f80;
}

.defenition-color{
    color: #8bcdda;
}

.def-color {
    color: #d7ebef;
}

.text.def-color {
    margin-bottom: 0;
}

/*Colors*/

.black {
    color: #182c06;;
}

.yellow {
    color: #b28dc7;
}


.green {
    color: #64c100;
}
.blue {
    color: #7db0ba;
}

.red {
    color: #f8735e;
}

/*Alignment*/
.left {
    float: left;
}

.right{
    float: right;
}
.clearfix {
    clear:both;
}
/*Variants*/
.button-answer {
    display: block;
    background-color: #d7ebef;
    width: 100%;
    padding: 10px 0;
    font-size: 23px;
    margin-bottom: 10px;
    border-radius: 10px;
    margin-left: 15px;
    border: 4px solid #f3b4a9;
    color: #fe8c8b;
    outline: none;
}

.button-answer:focus {
    outline: none;
}

.correct-answer {
    border: 4px solid #2f98ad;
    background-color: #67bdcf;
    color: #e3f0d8;
}

.incorrect-answer {
    color: #f48480 ;
    border: 5px solid #f3b4a9;
    background-color: #f3b4a9;
}

.inactive-answer {
    color: #decfcb;
    border: 5px solid #decfcb;
    background: #d7ebef;
}

/*List*/

.list {
    color: #042e36 ;
    padding-top: 10px;
    padding-bottom: 0;
    margin: 0;
    font-size: 22px;
    word-spacing: 2px;
    line-height: 27px;
}

li form .text{
    display:
             block;
}


/*Tooltip*/

.tooltip.top .tooltip-arrow {
    bottom: 0;
    left: 50%;
    margin-left: -5px;
    border-width: 5px 5px 0;
}
.tooltip-inner {
    font-size: 20px;
    padding: 10px;
    color: #000;
}

.tooltip.top .tooltip-arrow {
    border-top-color: #67bdcf ;
}
.tooltip-inner {
    background-color: #67bdcf ;
    color: #e3f0d8;

}

/*Assistant*/

.assistant {
    display: flex;
    align-items: flex-end;
    width: 200px;
    height: auto;
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 9999999;
}

.assistant img {
    width: 100%;
    height: auto;
    position: absolute;
    bottom: 0;
}

/*Sqrt*/

.sqrt {
    top: -15px;
    left: 10px;
    font-size: 14px;
}


.overline {
    border-top: 1px solid;
}

.overline-fraction {
    border-top: 1px solid;
    padding-top: 26px;
}

.bi-overline {
    padding: 5px;
    border-top: 1px solid;
}

.bi-radic {
    display: inline-block;
    transform: scaleY(2.8);
}

.radic {
    font-size: 27px;
}

.arc-0 {
    display: inline-block;
    position: relative;
    bottom: 22px;
    left: 14px;

}

.arc {
    display: inline-block;
    position: relative;
    bottom: 22px;
    left: 26px;
}

.arc-2 {
    display: inline-block;
    position: relative;
    bottom: 22px;
    left: 32px;

}

.arc-answer {
    display: inline-block;
    position: relative;
    bottom: 32px;
    left: 32px;
}

/*Progress*/
.progress {
    margin: auto;
    width: 75%;
    height: 50px;
    border-radius: 15px;
    background-color: #f95751;
}

.current-progress {
    display: inline-block;
    height: 100%;
    background-color: #67bdcf;
}

/*Helpers*/

.margin-left {
    margin-left: 60px;
}

.no-mb {
    margin-bottom: 0;
}

.mb-20 {
    margin-bottom: 20px;
}

.flex {
    display: flex;
    height: 262px;
}


@media only screen and (max-device-width: 963px)  {
    .assistant {
        width: 200px;
    }

    .row {
        display: block;
    }
    .row > [class*='col-'] {

    }

    .col-md-5 .img {
        margin-bottom: 40px;
    }

    .button-answer {
        width: 60%;
        margin: 0 auto 10px auto;
    }

    .center-block {
        text-align: center;
    }
}







.line-height {
    line-height: 47px;
}

.line-height-2 {
    line-height: 37px;
}



.exercise {
    color: #56a1b0;
}


.system {
    display: inline-block;
    vertical-align: middle;
}

.system-top {
    display: inline-block;
}

.system-next {
    display: block;
}

.padding {
    padding: 40px 0;
}

.formula {
    text-align: center;
    color: #e3f0d8;
    line-height: 27px;
}

.distance {
    width: 80%;
    height: 10px;
    margin: 0;
    padding: 0;
}

.hidden {
    display: none;
}

.center {
    margin: auto;
    display: inline-block;;
}


.inline {
    display: inline-block;
}

.line {
    display: inline;
}

.no-color {
    color: #d7ebef;
}

.active-prezent {
    position: relative;
    z-index: 400;
    padding: 30px;
}

.modal-body {
    padding-top: 40px;
    text-align: center;
    font-size: 20px;
}

.modal-footer {
    text-align: center;
    border: none;
}

.check.btn.btn-secondary:hover {
    color: #fff;
}

.close {
    position: relative;
    top: 0;
    right: 0;
}



.loader {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    background: url("/img/pesok.gif");
    background-size: 100%;
}

.loader-container .loader-wrap{
    display: none;
}

.loader-container.loading .content-wrap{
    display: none;
}

.loader-container.loading .loader-wrap{
    display: block;
}




