
.fadePopupTrain {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    position: fixed;
    background: rgba(161, 130, 44, 0.85);
    z-index: 1045;
    transition: all 0.3s;
    animation-name: fade;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.popupTrain {
    display: flex;
    flex-direction: column;
    width: 950px;
    min-height: 600px;
    max-width: 100%;
    background: white;
    position: relative;
    border: 3px solid brown;
    border-radius: 20px;
    box-sizing: border-box;
    box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.8);
                -webkit-animation-name: fadeInScale;
    animation-name: fadeInScale;
    -webkit-animation-duration: .25s;
    animation-duration: .25s;
}
.play-sounds-toggle {
    cursor: pointer;
    height: 30px;
    width: 30px;
    position: absolute;
    top: 4px;
    right: 40px;
    color: white;
}
.play-sounds-toggle:hover {
    background: white;
    color: brown;
    border-radius: 50%;
    padding: 3px;
}
.play-sounds-toggle > svg {
    height: 100%;
    width: 100%;
    display: none;
}
.play-sounds-toggle.sound-off > svg:first-child {
    display: block;
}
.play-sounds-toggle.sound-on > svg:last-child {
    display: block;
}
.closePopupTrainButton {
    width: 30px;
    height: 30px;
    display: flex;
    font-size: 30px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    background: brown;
    position: absolute;
    color: white;
    border-radius: 50%;
    right: 3px;
    top: 3px
}
.closePopupTrainButton:hover {
    background-color: white;
    color: #444444;
    transition: all 0.3s;
}
.closePopupTrainButton::after {
    content: '×';
    position: absolute;
    top: -8px;
}

.inputAnswer {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
    height: 70px;
    text-align: center;
    border: 0;
    font-size: 40px;
    color: #444444;
    border-radius: 10px;
}

.inputAnswer::placeholder{
    color: #eee;
}

.inputAnswer:focus{
    border: 0;
    outline: none;
    box-shadow: 0px 0px 15px 0px rgba(165, 42, 42, 0.5);
    transition: all 0.3s;
}


.popupTrain__backLink{
    color: white;
    background-color: brown;
    border: 1px dashed brown;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 20px;
    padding: 5px 15px;
    margin-top: 5px;
    display: inline-block;
}
.popupTrain__historyContent {
    display: flex;
    flex-direction: column;
}
.popupTrain__explain-message {
    font-size:18px;
    margin:10px 0
}
.popupTrain__backLink:hover{
    background-color: white;
    color: brown;
    border: 1px dashed brown;
}
.popupTrain__historyLink {
    color: brown;
}
.popupTrain__historyLink:hover {
    border-bottom: 1px dashed brown;
}

.popupTrain__additional-window-content {
    text-align: left;
    padding: 20px;
}

.historyLink{
    color: brown;
    border-bottom: 1px dashed brown;
    cursor: pointer;
    transition: all 0.3s;
}

.historyLink:hover{
    color: #444;
    border-bottom: none;
}

.historyLinkDisabled{
    color: #aaa;
    cursor: pointer;
}

.popupTrain__additional-window,
.popupTrain__history {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    /*border: 1px solid #000;*/
    background-color: white;
    z-index: 1000;
    overflow-y: auto;
    padding: 10px;
    text-align: center;
    display: none;
    animation-name: fadeIn;
    /*animation-duration: 0.2s;*/
}

.historyTaskAnswerTable{
    width: 100%;
    border-collapse: collapse;
}

.historyTaskAnswerTable td{
    border: 1px solid brown;
    padding: 5px;
}

.historyTaskAnswerTable tr.tableHistoryHeader{
    background-color: rgba(165, 42, 42, 0.8);
    color: white;
}

tr.tableHistoryHeader td{
    border-right: white;
}

.historyTaskAnswerTable tr.rowRuleAnswer{
    background-color: rgb(161, 215, 161);
}

.historyTaskAnswerTable tr.rowWrongAnswer{
    background-color: rgb(255, 199, 199);
}

.popupTrain--top-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 1rem;
}
.popupTrain__link {
    color: brown;
    border-bottom: 1px dashed brown;
    cursor: pointer;
    transition: all 0.3s;
}
.popupTrain__link:hover {
    color: #444;
    border-bottom: none;
}

.popupTrain__training-container {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.popupTrain__header {
    padding: 8px 120px;
    text-align: center;
    background-color: brown;
    color: white;
    box-sizing: border-box;
    border-radius: 15px 15px 0 0;
    height: 40px;
    border-bottom: 1px solid brown;
}

.popupTrain__top-links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    position: relative;
    padding: 5px 0 8px;
    height: 43px;
}
.popupTrain__main-panel {
    display: flex;
    width: 100%;
    height: 100%;
}
.popupTrain__questionContainer {
    height: 100%;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}
.popupTrain__question-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-grow: 1;
}
.popupTrain__keyboard-panel {
    display: none;
}
.popupTrainContent {
    position: relative;
    flex-grow: 1;
}

.popupTrain__question-body{
    color: brown;
    text-align: center;
}

.popupTrain__input-container{
    width: 400px;
    text-align: center;
    padding: 0;
}

.popupTrain__answer-container{
    margin-top: 25px;
    text-align: center;
    border: 1px dotted brown;
    padding: 0;
    position: relative;
    border-radius: 10px;
}
.popupTrain__answer-container::before{
    content: "введите ответ и нажмите Enter";
    position: absolute;
    background: white;
    color: brown;
    padding: 4px;
    font-size: 13px;
    border: 1px dashed brown;
    top: -14px;
    left: -20px;
    border-radius: 10px;
}

.popupTrain__commentForAnswer{
    color: brown;
    font-size: 13px;
    width: 360px;
}

.popupTrain__results {
    min-height: 40px;
    width: 100%;
    border-top: 1px solid grey;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 1rem;
}

.star-how-to-1::before,
.star-how-to-2::before,
.star-how-to-3::before,
.star-how-to-4::before,
.star-how-to-5::before {
    color: brown;
    font-size: 1.2rem;
}
.star-how-to-1::before {
    content: '★☆☆☆☆';
}
.star-how-to-2::before {
    content: '★★☆☆☆';
}
.star-how-to-3::before {
    content: '★★★☆☆';
}
.star-how-to-4::before {
    content: '★★★★☆';
}
.star-how-to-5::before {
    content: '★★★★★';
}

.training-with-timer-top-block {
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border-bottom: 1px solid brown;
    padding: 10px 0;
    height: 43px;
}

.training-timer {
    display: flex;
    position: absolute;
    justify-content: center;
    align-items: center;
    right: 12px;
    column-gap: 2px;
}
.training-timer--number {
    color: white;
    background: brown;
    display: inline-block;
    padding: 2px 4px;
    border-radius: 3px;
    width: 18px;
    text-align: center;
}

.progress-bar {
    width: 380px;
    border: 1px dotted brown;
    border-top: 0;
    height: 6px;
    border-radius: 0 0 5px 5px;
    overflow: hidden;
}
.progress-bar--indicator {
    background-color: brown;
    height: 6px;
}


.tutor-links {
    width: 400px
}
.tutor-links--title {
    margin-bottom: 1rem;
}
.tutor-links--buttons {
    display: flex;
    flex-direction: column;
    row-gap: 5px;
}
.tutor-links--buttons > button {
    margin: 0;
    padding: 10px;
    width: 350px;
}
.tutor-links .popup-close-btn {
    margin: 0;
    margin-top: 1rem;
}

.training-theme {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.training-theme--description {
    min-height: 60px;
    display: flex;
    align-items: center;
    padding-bottom: 0.75rem;
}

.training-free-questions {
    display: flex;
    width: 100%;
    color: white;
    justify-content: center;
    column-gap: .5rem;
    margin-top: 7px;
    z-index: 5;
}
.training-free-questions--link-subscriptions,
.training-free-questions--free-to-use,
.training-free-questions--info-block {
    display: flex;
    background-color: brown;
    border-radius: 20px;
    align-items: center;
    line-height: 1.3rem;
    padding: .25rem .5rem;
    height: 30px;
}
.training-free-questions--text {
    line-height: 1.3rem;
}
.training-free-questions--count {
    margin-right: -.25rem;
    margin-left: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.training-free-questions--link-label,
.training-free-questions--count-label {
    background: white;
    color: brown;
    font-weight: 500;
    font-size: .9em;
    border-radius: 10px;
    padding: 0 .3rem;
    line-height: 1.3rem;
    min-width: 25px;
    text-align: center;
    height: 100%;
}
.training-free-questions--link-label {
    margin: 0 -.25rem;
    padding-left: .5rem;
    padding-right: .5rem;
    line-height: 1.3rem;
    border-bottom: none;
}
.training-free-questions--link-label:hover {
    transition: all 0.3s;
    color: #444444;
    background-color: rgb(255, 221, 0);
}

.popupTrain__footer {
    border-radius: 0 0 12px 12px;
    color: white;
    background: brown;
    padding: .25rem 0;
}
.popupTrain__hintNow {
    height: 30px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

katex-element {
    display: inline-block;
}