﻿/*//тренажер на запис слів. переклад, формула або подібне*/
.irr-trainer * {
    box-sizing: border-box;
}

.irr-trainer {
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    max-width: 700px;
    background: #fafafa;
    font-family: Arial;
}

.irr-table {
    display: grid;
    gap: 10px;
    margin-bottom: 15px;
}

.irr-cell {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: white;
}

.irr-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #bbb;
    border-radius: 5px;
    box-sizing: border-box;
}

.irr-correct {
    background: #c8f7c5;
    border-color: #2ecc71;
}

.irr-wrong {
    background: #ffd6d6;
    border-color: #e74c3c;
}

.irr-buttons {
    display: flex;
    gap: 10px;
}

.irr-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: #3498db;
    color: white;
}

    .irr-btn:hover {
        background: #2980b9;
    }

.irr-next {
    display: none;
}

.irr-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

/*//\\тренажер на запис слів. переклад, формула або подібне*/

/*//тренажер базові математичні дії*/
.math-trainer-box {
    max-width: 400px;
    margin: 40px auto;
    padding: 25px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f0f4ff, #ffffff);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
}

    .math-trainer-box button {
        padding: 10px 18px;
        border: none;
        border-radius: 10px;
        background: #4CAF50;
        color: white;
        font-size: 16px;
        cursor: pointer;
    }

        .math-trainer-box button:hover {
            background: #43a047;
        }

.mt-task {
    font-size: 32px;
    margin: 20px 0;
    font-weight: bold;
}

.mt-input {
    width: 80%;
    padding: 10px;
    font-size: 20px;
    border-radius: 10px;
    border: 1px solid #ccc;
    text-align: center;
}

.mt-timer {
    margin-top: 10px;
    font-weight: bold;
    color: #ff5252;
}

.mt-hidden {
    display: none;
}

.mt-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

    .mt-actions button {
        width: 45%;
    }


.mt-feedback {
    margin: 15px 0;
    padding: 10px;
    border-radius: 10px;
    font-weight: bold;
    min-height: 20px;
}

    .mt-feedback.correct {
        background: #d4edda;
        color: #155724;
    }

    .mt-feedback.wrong {
        background: #f8d7da;
        color: #721c24;
    }

.mt-hidden {
    display: none;
}
/*//\\тренажер базові математичні дії*/

/*//тренажер на розстановку слів у правильному порядку*/

.TextWordsTrainer {
    margin: 25px 0;
    padding: 20px;
    border-radius: 12px;
    border: 3px solid #8e44ad;
    background: linear-gradient(135deg,#faf5ff,#f3e8ff);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    font-size: 18px;
    max-width: 750px;
}

    .TextWordsTrainer .twt_bank {
        margin-bottom: 15px;
        padding: 10px;
        border: 2px dashed #bbb;
        border-radius: 8px;
        min-height: 40px;
    }

    .TextWordsTrainer .twt_word {
        display: inline-block;
        padding: 6px 12px;
        margin: 4px;
        background: #3498db;
        color: white;
        border-radius: 7px;
        cursor: pointer;
        font-weight: 600;
        transition: 0.25s;
    }

        .TextWordsTrainer .twt_word.selected {
            background: #f1c40f;
            color: black;
            transform: scale(1.1);
        }

    .TextWordsTrainer .twt_text {
        line-height: 1.8;
        margin: 15px 0;
    }

    .TextWordsTrainer .twt_gap {
        display: inline-block;
        min-width: 80px;
        min-height: 32px;
        border-bottom: 2px solid #555;
        margin: 0 4px;
        text-align: center;
        cursor: pointer;
        transition: 0.25s;
    }

        .TextWordsTrainer .twt_gap.active {
            background: #fff3cd;
        }

        .TextWordsTrainer .twt_gap.filled {
            background: #eaf6ff;
        }

        .TextWordsTrainer .twt_gap.correct {
            background: #d4f8d4;
            border-color: #2ecc71;
        }

        .TextWordsTrainer .twt_gap.wrong {
            background: #ffd6d6;
            border-color: #e74c3c;
        }

    .TextWordsTrainer .twt_buttons {
        margin-top: 15px;
    }

    .TextWordsTrainer button {
        padding: 7px 15px;
        margin-right: 8px;
        border: none;
        border-radius: 7px;
        cursor: pointer;
        font-weight: 600;
    }

    .TextWordsTrainer .twt_check {
        background: #3498db;
        color: white;
    }

    .TextWordsTrainer .twt_next {
        background: #27ae60;
        color: white;
        display: none;
    }

    .TextWordsTrainer .twt_restart {
        background: #f39c12;
        color: white;
        display: none;
    }

/*//\\тренажер на розстановку слів у правильному порядку*/
/*//тренажер на вибір правильної відповіді з декількох варіантів*/

.ChoiceTrainer {
    margin: 20px 0;
    padding: 20px 25px;
    border-radius: 12px;
    border: 3px solid #6ab7ff;
    background: linear-gradient(135deg,#f4f9ff,#eef7ff);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    font-size: 18px;
    max-width: 700px;
}

    .ChoiceTrainer .ct_progress {
        font-weight: bold;
        margin-bottom: 10px;
        color: #2c3e50;
        border-bottom: 2px solid #e6e6e6;
        padding-bottom: 6px;
    }

    .ChoiceTrainer .ct_sentence {
        margin: 18px 0;
        line-height: 1.8;
    }

    .ChoiceTrainer button.ct_option {
        margin: 0 4px;
        padding: 6px 14px;
        border: none;
        border-radius: 7px;
        cursor: pointer;
        font-weight: 600;
        background: #3498db;
        color: white;
        transition: 0.2s;
    }

        .ChoiceTrainer button.ct_option:hover {
            background: #2980b9;
        }

    .ChoiceTrainer button.correct {
        background: #2ecc71 !important;
        animation: ctGood 0.3s;
    }

    .ChoiceTrainer button.wrong {
        background: #e74c3c !important;
        animation: ctBad 0.3s;
    }

    .ChoiceTrainer .ct_next {
        margin-top: 10px;
        padding: 7px 14px;
        border: none;
        border-radius: 8px;
        background: #27ae60;
        color: white;
        cursor: pointer;
        display: none;
    }

    .ChoiceTrainer .ct_restart {
        margin-top: 10px;
        padding: 7px 14px;
        border: none;
        border-radius: 8px;
        background: #f39c12;
        color: white;
        cursor: pointer;
        display: none;
    }

@keyframes ctGood {
    0% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes ctBad {
    0% {
        transform: translateX(-4px);
    }

    25% {
        transform: translateX(4px);
    }

    50% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }

    100% {
        transform: translateX(0);
    }
}

.ChoiceTrainer .ct_group {
    display: inline-block;
    padding: 2px 6px;
    border: 1px dashed #bbb;
    border-radius: 6px;
    background: #fff;
}

.ChoiceTrainer .ct_separator {
    font-weight: bold;
    color: #555;
}
/*//\\тренажер на вибір правильної відповіді з декількох варіантів*/
/*//тренажер на введення пропущених слів*/

.InputCorText {
    margin: 25px 0;
    padding: 20px 25px;
    border-radius: 12px;
    border: 3px solid #4CAF50;
    background: linear-gradient(135deg,#f9fff9,#f0f7ff);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    font-size: 18px;
    max-width: 700px;
}

    .InputCorText .ict_progress {
        font-weight: bold;
        color: #2c3e50;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 2px solid #e6e6e6;
    }

    .InputCorText .ict_sentence {
        margin-bottom: 15px;
        line-height: 1.7;
    }

    .InputCorText input {
        width: 85px;
        padding: 6px;
        margin: 0 4px;
        text-align: center;
        border: 2px solid #bfc9d4;
        border-radius: 6px;
        transition: 0.3s;
        font-size: 16px;
        background: white;
    }

        .InputCorText input:focus {
            outline: none;
            border-color: #3498db;
            box-shadow: 0 0 4px rgba(52,152,219,0.4);
        }

        .InputCorText input.correct {
            background: #d4f8d4;
            border-color: #2ecc71;
            animation: ictGood 0.3s;
        }

        .InputCorText input.wrong {
            background: #ffd6d6;
            border-color: #e74c3c;
            animation: ictBad 0.3s;
        }

@keyframes ictGood {
    0% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes ictBad {
    0% {
        transform: translateX(-4px);
    }

    25% {
        transform: translateX(4px);
    }

    50% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }

    100% {
        transform: translateX(0);
    }
}

.InputCorText .ict_buttons {
    margin-top: 15px;
}

.InputCorText button {
    padding: 8px 16px;
    margin-right: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: 0.2s;
}

    .InputCorText button:hover {
        transform: translateY(-1px);
    }

    .InputCorText button:nth-child(1) {
        background: #3498db;
        color: white;
    }

        .InputCorText button:nth-child(1):hover {
            background: #2980b9;
        }

    .InputCorText button:nth-child(2) {
        background: #2ecc71;
        color: white;
    }

        .InputCorText button:nth-child(2):hover {
            background: #27ae60;
        }

    .InputCorText button:nth-child(3) {
        background: #f39c12;
        color: white;
    }

        .InputCorText button:nth-child(3):hover {
            background: #d68910;
        }

/*//\\тренажер на введення пропущених слів*/
/*//тренажер на побудову речення з заданих слів*/
.ArrangeTheWords {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    .ArrangeTheWords .buttons-container,
    .ArrangeTheWords .arranged-sentence {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        margin-bottom: 20px;
        min-height: 50px;
        padding: 10px;
        border: 2px dashed #ccc;
        border-radius: 12px;
        background: #fff;
    }

    .ArrangeTheWords .button,
    .ArrangeTheWords .btn {
        padding: 8px 16px;
        background-color: #4CAF50;
        color: white;
        text-decoration: none;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 16px;
        transition: all 0.3s ease;
        user-select: none;
    }

        .ArrangeTheWords .button:hover,
        .ArrangeTheWords .btn:hover {
            background-color: #45a049;
            transform: scale(1.05);
        }

    .ArrangeTheWords .arranged-sentence a {
        background-color: #2196F3;
    }

        .ArrangeTheWords .arranged-sentence a:hover {
            background-color: #1e87e5;
        }

    .ArrangeTheWords button {
        margin: 10px 5px 0;
    }

/* Анімація появи слів */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ArrangeTheWords .buttons-container a,
.ArrangeTheWords .arranged-sentence a {
    animation: fadeIn 0.5s ease;
}

/* Підсвічування результату */
.ArrangeTheWords .arranged-sentence a {
    transition: color 0.3s ease, background-color 0.3s ease, border 0.3s ease;
}

    .ArrangeTheWords .arranged-sentence a.correct {
        color: green !important;
        border: 2px solid green;
    }

    .ArrangeTheWords .arranged-sentence a.incorrect {
        color: red !important;
        border: 2px solid red;
    }

.ArrangeTheWords .result-container {
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
}


/*//\\тренажер на побудову речення з заданих слів*/
/*//розстановка речень/дій у правильному порядку*/
.order-trainer {
    border: 1px solid #ccc;
    padding: 15px;
    margin: 20px 0;
    border-radius: 10px;
    background: #fafafa;
}

.trainer_comment {
    min-height: 50px;
    padding: 10px;
    margin-bottom: 15px;
    background: #eef5ff;
    border-radius: 6px;
    font-weight: 500;
}

.trainer_columns {
    display: flex;
    gap: 20px;
}

.trainer_left,
.trainer_right {
    flex: 1;
    min-height: 220px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 10px;
}

.trainer_item {
    background: white;
    padding: 10px;
    margin: 6px 0;
    border-radius: 6px;
    border: 1px solid #bbb;
    cursor: pointer;
    transition: .25s;
}

    .trainer_item:hover {
        background: #f0f0f0;
    }

.trainer_wrong {
    background: #ffd6d6;
    border-color: red;
}

.trainer_correct {
    background: #d8ffd8;
    border-color: green;
}

.trainer_hint {
    background: #fff3b0;
    border-color: #d8b200;
}

.trainer_next {
    margin-top: 15px;
    padding: 10px 20px;
    display: none;
    cursor: pointer;
    font-size: 16px;
}
/*//\\розстановка речень/дій у правильному порядку*/

/*//тренажер на базові математичні дії*/
.math-trainer-box {
    max-width: 400px;
    margin: 40px auto;
    padding: 25px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f0f4ff, #ffffff);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
}

    .math-trainer-box button {
        padding: 10px 18px;
        border: none;
        border-radius: 10px;
        background: #4CAF50;
        color: white;
        font-size: 16px;
        cursor: pointer;
    }

        .math-trainer-box button:hover {
            background: #43a047;
        }

.mt-task {
    font-size: 32px;
    margin: 20px 0;
    font-weight: bold;
}

.mt-input {
    width: 80%;
    padding: 10px;
    font-size: 20px;
    border-radius: 10px;
    border: 1px solid #ccc;
    text-align: center;
}

.mt-timer {
    margin-top: 10px;
    font-weight: bold;
    color: #ff5252;
}

.mt-hidden {
    display: none;
}

.mt-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

    .mt-actions button {
        width: 45%;
    }
/*//\\тренажер на базові математичні дії*/
