﻿.preview2 {
    overflow-y: auto;
    width: 100%;
    overflow-x: hidden;
}

.words-checkboxes-container {
    column-width: 200px; 
    column-gap: 1rem;
}

    .words-checkboxes-container > div {
        break-inside: avoid;
    }

.deselect-button {
    border-style: none;
}

.words-train-selection-container {
    border-bottom-style: solid;
    padding-bottom: 6px;
    margin-bottom: 5px;
    border-width: 1px;
    border-color: var(--main-color);
}

.preview ul {
    list-style: none; 
    padding-left: 0px;
}

.preview li {
    position: relative;
    padding-left: 30px; 
}

    .preview li::before {
        position: absolute;
        left: 0; 
        top: 50%;
        transform: translateY(-50%); 
        color: var(--main-color); 
        font-size: 20px;
    }

.ul1 {
    list-style-type: decimal !important; 
    padding-left: 0px !important; 
}

    .ul1 li {
        list-style-position: inside; 
        padding-left: 0px !important; 
    }

.preview .ul2 li::before {
    content: "\2714"; 
}

.preview {
    overflow-y: auto;
}

    .preview strong {
        color: #292929;
    }


body.dark-mode .button-training {
    background-color: var(--color-dark1) !important;
    color: black !important;
}

body.dark-mode .word-training-container-header {
    background-color: #2c2c2c !important;
}

body.dark-mode .master {
    background-color: inherit;
}

body.dark-mode .word-input {
    border-color: var(--color-dark1) !important;
    background-color: inherit;
}

body.dark-mode .word-card, body.dark-mode .player-container-sub {
    border-color: #717171;
}

.noResponse {
    min-height: 300px;
    display: flex;
    align-items: center;
}

.interaction-div {
    font-size: 90%;
    display: block;
    text-align: center;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
        display: none;
    }
}

.interaction-div span {
    animation: blink 5s forwards; /* Анимация с длительностью 1 секунда, бесконечно */
}

.word-training-container-header {
    width: 100%;
    font-size: 90%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: dimgrey;
    font-weight: 500;
    background-color: #f9f9f9;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 25px;
    padding-right: 25px;
    box-sizing: border-box;
    margin-left: unset !important;
}


@media (min-width: 200px) {
    .english-word-training {
        font-size: 135%;
        line-height: 28px;
    }

    .english-word-training2 {
        font-size: 135%;
        margin-bottom: 10px;
        line-height: 28px;
    }


    .word-training-container {
        height: 380px;
        width: inherit;
        padding: 2px;
        padding-top: 20px;
        border-width: 1px;
        border-color: darkgray;
        border-radius: 5px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: column;
        position: relative;
        margin-bottom: 20px;
    }

    .spelling-img {
        width: 197px;
        height: 162px;
        display: block;
    }

    .spelling-img2 {
        width: 80px;
        height: 71px;
        display: block;
    }

    .buttons-container {
        position: unset;
        bottom: unset;
        padding-bottom: unset;
    }
}


@media (min-width: 768px) {
    .english-word-training {
        font-size: 200%;
        line-height: 28px;
    }

    .english-word-training2 {
        font-size: 200%;
        margin-bottom: 10px;
        line-height: 28px;
    }


    .word-training-container {
        max-height: 500px;
         height: auto;
        width: inherit;
        padding: 20px;
        border-width: 1px;
        border-color: darkgray;
        border-radius: 5px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: column;
        position: relative;
    }


    .spelling-img {
        width: 200px;
        height: 163px;
        display: block;
    }

    .spelling-img2 {
        width: 110px;
        height: 90px;
        display: block;
    }
}

.word-training-sub-cont {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.word-training {
    margin-bottom: 8px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom-style: solid;
    padding-bottom: 20px;
    border-width: 1px;
    border-color: var(--main-color);
}

.word-training2 {
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 1px;
}



.sound-button-training {
    display: block;
    margin-left: 8px;
    width: 30px !important;
    height: 30px !important;
    margin-top: 8px;
}

.word-training-container-sub {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}



.stage {
    text-align: center;
}

.stage-name {
    text-align: center;
}

.counter {
    text-align: center;
}

.translation-training {
    color: #444;
    font-size: 150%;
}

.button-training {
    background-color: var(--main-color);
    border: unset;
    padding-top: 5px;
    padding-bottom: 5px;
    color: white;
    font-size: 100%;
    border-radius: 5px;
    padding-left: 10px;
    padding-right: 10px;
    letter-spacing: 1px;
    margin-top: 10px;
    outline: none;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.choice-words {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .choice-words div {
        border-style: solid;
        width: 250px;
        padding: 9px;
        border-width: 1px;
        margin-bottom: 5px;
        border-radius: 5px;
        border-color: #c3c3c3;
        cursor: pointer;
    }

.green {
    border-color: var(--main-color) !important;
    border-width: 2px !important;
}

.red {
    border-color: #ff7878 !important;
    border-width: 2px !important;
}

.spelling-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spelling-table-container {
    padding-bottom: 5px;
    margin-bottom: 2px;
}

.spelling-table {
    border-spacing: 6px;
    table-layout: fixed;
}

    /* Стиль для ячеек */
    .spelling-table td {
        text-align: center;
        font-size: 20px;
        padding: 0; 
    }

.empty-td {
   
}

/* Стиль для полей ввода */
.word-input {
    width: 35px;
    height: 35px;
    text-align: center;
    box-sizing: border-box;
    margin: 0;
    border-radius: 5px;
    border-color: #e1e1e1;
    border-style: solid;
    font-size: 20px;
    padding: 0;   
    -webkit-text-size-adjust: none;
}

    /* Стиль для фокусированного поля */
    .word-input:focus {
        border: 2px solid var(--main-color); 
        outline: none; 
    }

    /* Стиль для поля с правильным ответом */
    .word-input.correct {
        background-color: #d4edda; 
        border-color: #28a745; 
    }

    /* Стиль для поля с неправильным ответом */
    .word-input.wrong {
        background-color: #f8d7da; 
        border-color: #dc3545; 
    }

    /* Стиль для пустых полей */
    .word-input.empty {
        background-color: #fff; 
        border-color: #ddd; 
    }


/* Общие стили для блока с информацией */
.result-info {
    font-family: Arial, sans-serif;
    font-size: 16px;
    margin-bottom: 20px;
}

    .result-info p {
        margin: 5px 0;
    }

/* Стили для сообщений в зависимости от уровня прогресса */
.progress-message {
    padding: 20px;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
}

    .progress-message p {
        margin: 10px 0;
    }

.low-level {
    
}

.medium-level {
   
}

.high-level {
   
}

.master {
   
}

/* Стили для эмодзи */
.progress-message p:first-child {
    font-size: 24px; /* Размер эмодзи */
}

