.audioD {
    max-width: 650px;
    margin: 0 auto;
    margin-top: 15px;
}

.dictant {
    max-width: 800px;
    margin: 20px auto;
    text-align: left;
}

#dictInput {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    line-height: 1.6;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid #ccc;
    resize: vertical;
}

#checkDict {
    margin-top: 10px;
    padding: 8px 18px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    background: #ff8a00;
    color: #fff;
    cursor: pointer;
}

#checkDict:hover {
    opacity: 0.9;
}

#dictResult {
    margin-left: 12px;
    font-size: 18px;
}

#dictResult.ok {
    color: #1a8b1a;
}

#dictResult.error {
    color: #d11a1a;
}







.four-livestock-test {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.quiz-question {
    padding: 22px;
    margin-bottom: 25px;

    border: 1px solid #e4e4e4;
    border-radius: 14px;

    background: #fff;
}

.quiz-question h3 {
    margin: 0 0 18px 0;

    font-size: 22px;
    font-weight: 700;

    color: #555;
}

.quiz-option {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 10px;
    padding: 12px 15px;

    font-size: 19px;
    color: #555;

    border: 2px solid transparent;
    border-radius: 9px;

    cursor: pointer;

    transition: 0.2s;
}

.quiz-option:hover {
    background: #fff8ef;
    border-color: #ffb35c;
}

.quiz-option input {
    width: 20px;
    height: 20px;

    cursor: pointer;
}

.quiz-option.correct {
    background: #e5f8e9;
    border-color: #28a745;
    color: #247a36;
}

.quiz-option.wrong {
    background: #fdeaea;
    border-color: #dc3545;
    color: #b02a37;
}

.quiz-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;

    margin-top: 10px;
}

#checkLivestockQuiz,
#resetLivestockQuiz {
    padding: 12px 26px;

    border: none;
    border-radius: 10px;

    font-size: 18px;

    cursor: pointer;
}

#checkLivestockQuiz {
    background: #ff8a00;
    color: #fff;
}

#checkLivestockQuiz:hover {
    background: #e87900;
}

#resetLivestockQuiz {
    background: #e9ecef;
    color: #444;
}

#resetLivestockQuiz:hover {
    background: #d8dde2;
}

#livestockQuizResult {
    min-height: 30px;

    margin-top: 20px;

    font-size: 21px;
    font-weight: 700;
}

#livestockQuizResult.success {
    color: #28a745;
}

#livestockQuizResult.error {
    color: #dc3545;
}

@media (max-width: 768px) {

    .quiz-question h3 {
        font-size: 19px;
    }

    .quiz-option {
        font-size: 17px;
    }

}





.livestock-code-task {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.livestock-question {
    padding: 22px;
    margin-bottom: 22px;

    border: 1px solid #e2e2e2;
    border-radius: 14px;

    background: #fff;
}

.livestock-text {
    margin-bottom: 16px;

    font-size: 21px;
    font-weight: 600;
    line-height: 1.5;

    color: #555;
}

.livestock-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.animal-choice {
    padding: 12px 20px;

    border: 2px solid #ddd;
    border-radius: 12px;

    background: #fff;

    font-size: 18px;
    color: #555;

    cursor: pointer;

    transition: 0.2s;
}

.animal-choice:hover {
    border-color: #ff8a00;
    background: #fff8ef;
    transform: translateY(-2px);
}


/* Дұрыс */

.animal-choice.correct {
    background: #dff6e5;
    border-color: #28a745;
    color: #207a35;

    animation: correctAnimal 0.35s ease;
}

@keyframes correctAnimal {

    0% {
        transform: scale(0.9);
    }

    60% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }

}


/* Қате */

.animal-choice.wrong {
    background: #fdeaea;
    border-color: #dc3545;
    color: #b02a37;

    animation: wrongAnimal 0.35s ease;
}

@keyframes wrongAnimal {

    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-7px);
    }

    75% {
        transform: translateX(7px);
    }

}


/* Әр сұрақтың нәтижесі */

.question-feedback {
    min-height: 28px;
    margin-top: 14px;

    font-size: 18px;
    font-weight: 600;
}

.question-feedback.correct-text {
    color: #28a745;
}

.question-feedback.wrong-text {
    color: #dc3545;
}


/* Жалпы нәтиже */

#livestockFinalResult {
    min-height: 35px;

    margin-top: 15px;

    text-align: center;

    font-size: 22px;
    font-weight: 700;

    color: #28a745;
}


/* Reset */

#resetLivestockCode {
    display: block;

    margin: 15px auto 0;

    padding: 12px 25px;

    border: none;
    border-radius: 10px;

    background: #ff8a00;
    color: white;

    font-size: 18px;
    cursor: pointer;
}

#resetLivestockCode:hover {
    background: #e87900;
}


@media (max-width: 768px) {

    .livestock-text {
        font-size: 18px;
    }

    .animal-choice {
        width: 100%;
        font-size: 17px;
    }

}



.sweat-task {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.student-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.student-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 22px;

    background: #fff;

    border: 2px solid #ddd;
    border-radius: 16px;

    cursor: pointer;

    transition: 0.25s;

    font-family: inherit;
}

.student-card:hover {
    transform: translateY(-4px);

    border-color: #ff8a00;

    box-shadow: 0 7px 15px rgba(0,0,0,0.10);
}

.student-icon {
    font-size: 55px;
    margin-bottom: 12px;
}

.student-info {
    text-align: center;
}

.student-info strong {
    display: block;

    margin-bottom: 10px;

    font-size: 22px;
    color: #444;
}

.student-info span {
    display: block;

    font-size: 17px;
    line-height: 1.5;

    color: #666;
}


/* Дұрыс жауап */

.student-card.correct {
    border-color: #28a745;
    background: #e4f8e9;

    animation: correctStudent 0.4s ease;
}

@keyframes correctStudent {

    0% {
        transform: scale(0.9);
    }

    60% {
        transform: scale(1.06);
    }

    100% {
        transform: scale(1);
    }

}


/* Қате */

.student-card.wrong {
    border-color: #dc3545;
    background: #fdeaea;

    animation: wrongStudent 0.4s;
}

@keyframes wrongStudent {

    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-7px);
    }

    75% {
        transform: translateX(7px);
    }

}


/* Нәтиже */

.sweat-feedback {
    min-height: 38px;

    margin-top: 22px;

    text-align: center;

    font-size: 21px;
    font-weight: 700;
}

.sweat-feedback.success {
    color: #28a745;
}

.sweat-feedback.error {
    color: #dc3545;
}


/* Қайта бастау */

#resetSweatTask {
    display: block;

    margin: 15px auto 0;

    padding: 12px 25px;

    border: none;
    border-radius: 10px;

    background: #ff8a00;
    color: #fff;

    font-size: 18px;

    cursor: pointer;
}

#resetSweatTask:hover {
    background: #e87900;
}


@media (max-width: 768px) {

    .student-list {
        grid-template-columns: 1fr;
    }

    .student-info strong {
        font-size: 20px;
    }

    .student-info span {
        font-size: 16px;
    }

}

.word-box-game {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}


/* Түсіндірме */

.word-box-info {
    display: flex;
    flex-direction: column;
    gap: 12px;

    margin-bottom: 28px;

    padding: 18px;

    background: #f8f9fa;

    border-radius: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 18px;
    color: #555;
}

.info-circle {
    width: 28px;
    height: 28px;

    flex-shrink: 0;

    border-radius: 50%;
    border: 2px solid #333;
}

.poly-circle {
    background: #2096e8;
}

.homo-circle {
    background: #8c6bea;
}


/* Карточкалар */

.word-box-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 12px;

    margin-bottom: 30px;
}

.meaning-card {
    padding: 13px 18px;

    background: white;

    border: 2px solid #ff9a27;
    border-radius: 12px;

    font-size: 18px;
    color: #555;

    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.08);

    cursor: grab;

    transition: 0.2s;
}

.meaning-card:hover {
    transform: translateY(-3px);

    box-shadow: 0 6px 13px rgba(0, 0, 0, 0.12);
}

.meaning-card:active {
    cursor: grabbing;
}


/* Сандықтар */

.word-box-zones {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 25px;
}

.word-box {
    min-height: 320px;

    padding: 22px;

    border-radius: 20px;

    text-align: center;

    transition: 0.2s;
}

.poly-box {
    background: #e9f6ff;

    border: 3px dashed #2096e8;
}

.homo-box {
    background: #f1edff;

    border: 3px dashed #8c6bea;
}

.word-box.drag-over {
    transform: scale(1.02);

    box-shadow: 0 0 0 5px rgba(255, 153, 0, 0.15);
}

.box-icon {
    font-size: 55px;

    margin-bottom: 5px;
}

.word-box h3 {
    margin: 5px 0 18px;

    font-size: 23px;
}

.poly-box h3 {
    color: #137bbd;
}

.homo-box h3 {
    color: #684bd1;
}

.drop-area {
    min-height: 190px;

    display: flex;
    flex-direction: column;

    gap: 10px;

    align-items: center;

    color: #999;

    font-size: 15px;
}


/* Дұрыс карточка */

.meaning-card.correct {
    width: 92%;

    text-align: center;

    background: #e0f7e5;

    border-color: #28a745;

    color: #267437;

    cursor: default;

    animation: cardSuccess 0.4s ease;
}

@keyframes cardSuccess {

    0% {
        transform: scale(0.88);
    }

    60% {
        transform: scale(1.06);
    }

    100% {
        transform: scale(1);
    }
}


/* Қате карточка */

.meaning-card.wrong {
    background: #fde8e8;

    border-color: #dc3545;

    animation: cardWrong 0.4s ease;
}

@keyframes cardWrong {

    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}


/* Нәтиже */

#wordBoxMessage {
    min-height: 36px;

    margin-top: 22px;

    text-align: center;

    font-size: 21px;

    font-weight: 700;
}

#wordBoxMessage.success {
    color: #28a745;
}

#wordBoxMessage.error {
    color: #dc3545;
}


/* Reset */

#resetWordBox {
    display: block;

    margin: 15px auto 0;

    padding: 12px 26px;

    border: none;

    border-radius: 10px;

    background: #ff8a00;

    color: #fff;

    font-size: 18px;

    cursor: pointer;
}

#resetWordBox:hover {
    background: #e77800;
}


/* Телефон */

@media (max-width: 768px) {

    .word-box-zones {
        grid-template-columns: 1fr;
    }

    .meaning-card {
        width: 100%;

        font-size: 16px;
    }

    .info-item {
        font-size: 16px;
    }

    .word-box h3 {
        font-size: 20px;
    }

}






