#teacher-history-modal.c-news-popup {
    position: relative;
    min-height: 352px;
}

#teacher-history-modal .authorization {
    padding: 80px;
    color: #de030b;
    text-align: center;
    font-size: 18px !important;
    margin-right: -30px;
}

#teacher-history-modal .authorization .header {
    margin-bottom: 20px;
    font-size: 18px !important;
}
#teacher-history-modal .authorization p {
    margin-bottom: 40px;
    font-size: 18px !important;
}

#teacher-history-modal .authorization button {
    border-style: solid;
    border-width: 2px;
    border-color: rgb(52, 93, 134);
    border-radius: 3px;
    background-color: rgb(52, 93, 134);
    width: 395px;
    height: 50px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    display: block;
    padding-left: 66px;
    margin: 60px auto auto;
    position: relative;
    text-align: center;
}

#teacher-history-modal .authorization label, #teacher-history-modal .authorization label a {
    font-weight: normal !important;
    color: #de030b;
}

#teacher-history-modal .authorization button:disabled {
    opacity: 0.6;
}

#teacher-history-modal .authorization button:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 20px;
    width: 48px;
    height: 28px;
    margin-top: -14px;
    background: url("../img/vk-button.png") no-repeat;
}

#teacher-history-modal .history-form {
    color: #1f1d1d;
    margin-right: -30px;
    position: relative;
    z-index: 20;
}

#teacher-history-modal .history-list {
    padding-top: 140px;
    padding-left: 210px;
    color: #1f1d1d;
    margin-right: -30px;
}

#teacher-history-modal .history-form label {
    display: block;
    font-weight: normal;
    font-size: 12px;
}

#teacher-history-modal .history-form input {
    height: 38px;
    width: 100%;
    background: #f3f3f3;
    margin-bottom: 30px;
    padding: 0 10px;
	border: 1px solid #a7a7a7
}

#teacher-history-modal .history-form textarea {
    width: 100%;
    background: #f3f3f3;
    height: 236px;
    resize: none;
    padding: 10px;
	border: 1px solid #a7a7a7
}

#teacher-history-modal .history-form button {
    width: 225px;
    height: 41px;
    margin: 34px auto;
    border-style: solid;
    border-width: 2px;
    border-color: rgb(222, 3, 11);
    background-color: rgb(222, 3, 11);
    font-size: 18px;
    color: white;
    font-weight: bold;
    display: block;
}


.teacher-add-history, .teacher-history-link {
    border-style: solid;
    border-width: 2px;
    border-color: rgb(194, 10, 17);
    border-radius: 3px;
    background-color: rgb(255, 255, 255);
    width: 515px;
    display: block;
    margin: 50px auto;
    text-transform: uppercase;
    color: rgb(194, 10, 17);
    font-weight: bold;
    font-size: 18px;
    padding: 8px 0;
    text-align: center;
	outline: none;
    max-width: 100%;
}
#teacher-history-modal .thanks, #teacher-history-modal .age-fail {
    padding: 80px;
    color: #e02b2e;
    text-align: center;
    font-size: 18px !important;
    margin-right: -30px;
}

#teacher-history-modal .history-list h3 {
    position: relative;
    top: -50px;
    text-align: center;
    color: #de030b;
}

@media (max-width: 600px) {
    #teacher-history-modal .history-list h3 {
        top: -40px;

    }
}
#teacher-history-modal .thanks .share table {
    margin: 0 auto !important;
}

#teacher-history-modal label[for='agree-rules'] a, #teacher-history-modal  .thanks a {
    color: #de030b;
    text-decoration: underline;
}

#teacher-history-modal .thanks p {
    font-size: 18px !important;
}

#teacher-history-modal .m-t-20 {
    margin-top: 20px;
}
#teacher-history-modal .m-b-20 {
    margin-bottom: 20px;
}

#teacher-history-modal .fileupload {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    width: 335px;
    max-width: 100%;
    margin: 0 auto;
    height: 42px;
    background: #345d86;
    font: bold 14px/42px Calibri;
    color: white;
    text-transform: uppercase;
    text-align: center;
}

#teacher-history-modal .fileupload input[type=file]{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: scale(20);
    letter-spacing: 10em;     /* IE 9 fix */
    -ms-transform: scale(20); /* IE 9 fix */
    opacity: 0;
    cursor: pointer
}

#teacher-history-modal .teacher {
    max-width: 335px;
    max-height: 310px;
    width: 100%;
    height: 310px;
    background: url("../img/mat.png") center no-repeat;
    margin: 20px 0;
}

#teacher-history-modal .mat {
    max-width: 335px;
    max-height: 310px;
    width: 100%;
    height: 310px;
    background: url("../img/mat.png") center no-repeat;
    margin: 20px 0;
}
#teacher-history-modal {
    padding: 30px;

}
#teacher-history-modal  .thanks .vk-button {
    display: block;
    margin: 20px auto;
    background: #6287ae;
    border-radius: 5px;
    font-weight: bold;
    font-size: 24px;
    padding-left: 66px;
    position: relative;
    text-align: center;
    height: 50px;
    width: 327px;
    color: white;
    border: none;
}

#teacher-history-modal .thanks .vk-button:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 20px;
    width: 48px;
    height: 28px;
    margin-top: -14px;
    background: url("../img/vk-button.png") no-repeat;

}

.teacher-history h6 {
    font: 600 18px "Calibri";
    color: #00458b;
}

.more-link {
    font: 12px "Calibri";
    color: #00458b;
    text-transform: lowercase;
    margin-top: 30px;
    display: inline-block;
}

#teacher-popup-modal {
    position: relative;
}
#teacher-popup-modal a.next, #teacher-popup-modal a.prev {
    display: block;
    position: absolute;
    top: 50%;
    width: 30px;
    height: 52px;
    margin-top: -14px;
}
#teacher-popup-modal a.next {
    right: 30px;
    background: url("../img/next.png");
}
#teacher-popup-modal a.prev {
    left: 30px;
    background: url("../img/prev.png");
}

#teacher-popup-modal .name {
    font: 600 18px "Calibri";
    margin: 30px 0 10px 0;
}

#teacher-popup-modal .teacher-content {
    font: 400 12px "Calibri";
}
#teacher-popup-modal .who-added {
    margin: 30px 0;
    font-size: 12px;
    color: #7e7e7e;
}

#teacher-popup-modal .who-added a {
    color: #7e7e7e;
    text-decoration: underline;
}

.teacher-history {margin-top: 30px;}
.ya-share2__list_direction_vertical > .ya-share2__item {
    text-align: left;
}

@media (max-width: 1000px) {
    #teacher-history-modal .authorization {
        padding: 39px;
        margin-right: 0;
    }

    #teacher-history-modal .mat {
        margin: auto;
    }
}
@media (max-width: 750px) {
    #teacher-popup-modal a.prev {
        left: 0;
    }

    #teacher-popup-modal a.next {
        right: 0;
    }
}

#add-errors {
    margin-bottom: 0;
}

#add-errors li:last-child {
    margin-bottom: 10px;
}