﻿
/*завдання для тренування властивостей степенів*/
:root {
    --bg: #f4f6fb;
    --card: #fff;
    --text: #1f2330;
    --hint: #6c7280;
    --primary: #4a6cf7;
    --good: #1fbf75;
    --bad: #ff4d4f;
    --opt: #e9eefc;
    --opt-hover: #d6dfff;
}

.power_train {
    font-family: system-ui, sans-serif;
    margin: 20px auto;
    max-width: 600px;
}

.power_card {
    background: var(--card);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

.power_header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.power_title {
    font-weight: bold;
    font-size: 18px;
}

.power_meta {
    font-size: 13px;
    color: var(--hint);
}

.power_question {
    font-size: 22px;
    text-align: center;
    background: #fafbff;
    border: 1px dashed #dfe6ff;
    border-radius: 10px;
    padding: 12px;
    margin: 10px 0;
}

.power_options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.power_option {
    background: var(--opt);
    border: none;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    transition: .2s;
}

    .power_option:hover {
        background: var(--opt-hover);
    }

    .power_option.correct {
        background: #dff6eb !important;
        outline: 2px solid var(--good);
    }

    .power_option.wrong {
        background: #ffecec !important;
        outline: 2px solid var(--bad);
    }

.power_controls {
    text-align: center;
    margin-top: 12px;
}

.power_btn {
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 15px;
    cursor: pointer;
    margin: 0 5px;
    display: none;
}

    .power_btn.next {
        background: var(--primary);
        color: #fff;
    }

    .power_btn.retry {
        background: #e8eaf7;
        color: #2b2f3a;
    }

sup {
    font-size: .8em
}
/*//\\завдання для тренування властивостей степенів*/

/*завдання для тренування взаємного розміщення двох кіл*/
.placement_of_circles {
    font-family: Arial, sans-serif;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #f9f9f9;
}

    .placement_of_circles h2 {
        color: #333;
        text-align: center;
    }

    .placement_of_circles .question-container {
        background-color: #fff;
        padding: 20px;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
        margin-top: 15px;
    }

    .placement_of_circles p {
        font-size: 1.1em;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    .placement_of_circles label,
    .placement_of_circles input,
    .placement_of_circles select,
    .placement_of_circles button {
        font-size: 1em;
    }

        .placement_of_circles input[type="number"],
        .placement_of_circles select {
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 4px;
            width: 200px;
        }

    .placement_of_circles button {
        display: block;
        width: 100%;
        padding: 12px;
        margin-top: 15px;
        cursor: pointer;
        border: none;
        border-radius: 4px;
        font-weight: bold;
        color: #fff;
        transition: background-color 0.3s ease;
    }

    .placement_of_circles .check-btn {
        background-color: #4CAF50;
    }

        .placement_of_circles .check-btn:hover {
            background-color: #45a049;
        }

    .placement_of_circles .next-btn {
        background-color: #2196F3;
        display: none;
    }

        .placement_of_circles .next-btn:hover {
            background-color: #1e87e5;
        }

    .placement_of_circles .result {
        text-align: center;
        margin-top: 15px;
        font-size: 1.2em;
        font-weight: bold;
    }

        .placement_of_circles .result.correct {
            color: green;
        }

        .placement_of_circles .result.incorrect {
            color: red;
        }

    /* Стилі для радіо-кнопок */
    .placement_of_circles .options-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .placement_of_circles .option-label {
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
    }

        .placement_of_circles .option-label input[type="radio"] {
            cursor: pointer;
        }

    /* Стилі для ілюстрацій */
    .placement_of_circles .illustration {
        text-align: center;
        margin-top: 20px;
    }
/*//\\завдання для тренування взаємного розміщення двох кіл*/

/*завдання для тренування систем лінійних рівнянь з двома змінними*/
/* Головний контейнер, який ізолює стилі */
.linear-equation-trainer {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    text-align: center;
    width: 90%;
    max-width: 600px;
    margin: 20px auto; /* Додаємо відступи для кількох тренажерів */
    color: #333;
}

    .linear-equation-trainer h2 {
        margin-top: 0;
        color: #1e3a8a;
    }

    /* --- ЗМІНИ ТУТ --- */
    .linear-equation-trainer .task-container {
        position: relative; /* Потрібно для позиціонування символу системи */
        margin: 25px 0;
        padding: 20px 20px 20px 50px; /* Збільшили відступ зліва для дужки */
        background-color: #eef2ff;
        border-radius: 8px;
        border: 1px solid #c7d2fe;
    }

        /* --- НОВИЙ БЛОК --- */
        /* Цей псевдо-елемент додає символ системи '{' перед рівняннями */
        .linear-equation-trainer .task-container::before {
            content: '{';
            position: absolute;
            left: 15px; /* Розташування від лівого краю */
            top: 50%; /* Центрування по вертикалі */
            transform: translateY(-50%); /* Точне центрування */
            font-size: 6em; /* Розмір дужки */
            font-weight: 200; /* Робить дужку тоншою */
            color: #555;
        }
    /* --- КІНЕЦЬ ЗМІН --- */


    .linear-equation-trainer .equation {
        font-size: 1.5em;
        font-weight: bold;
        letter-spacing: 2px;
        margin: 10px 0;
    }

    .linear-equation-trainer .answer-container {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 25px;
    }

    .linear-equation-trainer .input-group {
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .linear-equation-trainer .input-group label {
            font-size: 1.5em;
            font-weight: bold;
        }

    .linear-equation-trainer input[type="number"] {
        width: 150px;
        padding: 10px;
        border: 2px solid #ccc;
        border-radius: 6px;
        font-size: 1.1em;
        text-align: center;
        transition: border-color 0.3s;
    }

    /* Стиль для неправильного введення */
    .linear-equation-trainer input.error {
        border-color: #dc2626;
        background-color: #fee2e2;
    }

    .linear-equation-trainer button {
        width: 100%;
        padding: 12px;
        font-size: 1.1em;
        font-weight: bold;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        transition: background-color 0.3s, transform 0.1s;
    }

    .linear-equation-trainer .check-btn {
        background-color: #1d4ed8;
    }

        .linear-equation-trainer .check-btn:hover {
            background-color: #1e40af;
        }

    .linear-equation-trainer .next-btn {
        background-color: #16a34a;
        margin-top: 10px;
    }

        .linear-equation-trainer .next-btn:hover {
            background-color: #15803d;
        }

    .linear-equation-trainer button:active {
        transform: scale(0.98);
    }

    .linear-equation-trainer .hidden {
        display: none;
    }

/*//\\завдання для тренування систем лінійних рівнянь з двома змінними*/

/*завдання квадратні нерівності*/
/* Ізольовані стилі для контейнера тренажера */
.quadratic-inequality-trainer {
    background-color: #ffffff;
    border: 1px solid #d1d9e0;
    border-radius: 12px;
    padding: 25px;
    max-width: 550px;
    margin: 30px auto;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

    .quadratic-inequality-trainer .problem-container {
        background-color: #e9eff3;
        padding: 20px;
        border-radius: 8px;
        margin-bottom: 20px;
        text-align: center;
    }

    .quadratic-inequality-trainer .problem-statement {
        font-size: 1.8em;
        font-weight: bold;
        color: #1c3d5a;
        letter-spacing: 1.5px;
    }

    .quadratic-inequality-trainer .task-question {
        font-size: 1.15em;
        color: #444;
        margin-bottom: 18px;
        font-weight: 500;
    }

    .quadratic-inequality-trainer .answer-area {
        margin-bottom: 20px;
    }

    /* Стилі для вибору варіантів */
    .quadratic-inequality-trainer .mc-option {
        display: block;
        background-color: #f8f9fa;
        padding: 12px;
        border-radius: 6px;
        margin-bottom: 10px;
        cursor: pointer;
        border: 1px solid #ddd;
        transition: background-color 0.2s, border-color 0.2s;
    }

        .quadratic-inequality-trainer .mc-option:hover {
            background-color: #e9ecef;
            border-color: #007bff;
        }

        .quadratic-inequality-trainer .mc-option input {
            margin-right: 12px;
        }

    /* Стилі для поля вводу числа */
    .quadratic-inequality-trainer .number-input {
        width: 100%;
        padding: 12px;
        font-size: 1.1em;
        border: 2px solid #ccc;
        border-radius: 6px;
        box-sizing: border-box;
        transition: border-color 0.3s;
    }

        .quadratic-inequality-trainer .number-input:focus {
            outline: none;
            border-color: #007bff;
        }

        .quadratic-inequality-trainer .number-input.incorrect {
            border-color: #dc3545;
            background-color: #f8d7da;
        }

    .quadratic-inequality-trainer .feedback {
        min-height: 24px;
        font-weight: bold;
        margin-top: 15px;
        font-size: 1.1em;
    }

        .quadratic-inequality-trainer .feedback.correct {
            color: #28a745;
        }

        .quadratic-inequality-trainer .feedback.incorrect {
            color: #dc3545;
        }

    .quadratic-inequality-trainer .controls {
        display: flex;
        justify-content: flex-end;
        margin-top: 10px;
    }

    .quadratic-inequality-trainer button {
        padding: 12px 24px;
        font-size: 1em;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        color: white;
        font-weight: bold;
        transition: background-color 0.3s, transform 0.1s;
    }

        .quadratic-inequality-trainer button:active {
            transform: translateY(1px);
        }

    .quadratic-inequality-trainer .check-btn {
        background-color: #007bff;
    }

        .quadratic-inequality-trainer .check-btn:hover {
            background-color: #0056b3;
        }

    .quadratic-inequality-trainer .next-btn {
        background-color: #28a745;
    }

        .quadratic-inequality-trainer .next-btn:hover {
            background-color: #218838;
        }

.hidden {
    display: none;
}
/*//\\завдання квадратні нерівності*/