/* Основные стили */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f5f5f5;
    color: #333;
}

.icons {
    display: none;
}

/* Список блоков */
.blockList {
    width: 100%;
    max-width: 700px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.blockButton {
    padding: 10px 16px;
    font-size: 16px;
    text-align: left;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.blockButton:hover {
    background-color: #e4e4e4;
}

.blockButton.active {
    background-color: #007BFF;
    color: #fff;
}

/* Вкладки */
.learn_tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.learn_tab {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background-color: #ccc;
    margin: 0 5px;
    border-radius: 5px;
    transition: 0.3s;
}

.learn_tab:hover {
    background-color: #bbb;
}

.learn_tab.active {
    background-color: #007BFF;
    color: white;
}

/* Контент вкладок */
.learn_tab-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.learn_tab-pane {
    display: none;
    width: 100%;
}

.learn_tab-pane.active {
    display: block;
}

/* Контейнер для игры */
.learn_container {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Колонки для слов */
.learn_column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Стили для кнопок со словами */
.learn_word {
    padding: 12px;
    border: 1px solid #ccc;
    cursor: pointer;
    width: 200px;
    text-align: center;
    transition: background 0.3s, color 1s, opacity 1s, box-shadow 0.3s;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: normal;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    background: white;
    color: #333;
}

/* Наведение */
.learn_word:hover {
    background-color: #f0f0f0;
}

/* Стили для правильных и неправильных ответов */
.learn_correct {
    background-color: lightgreen !important;
    transition: background 0.5s ease-in-out;
}

.learn_incorrect {
    background-color: lightcoral !important;
    transition: background 0.5s ease-in-out;
}

/* Эффект исчезновения */
.learn_faded {
    background-color: white !important;
    color: #888 !important;
    opacity: 0.6;
    pointer-events: none;
    transition: background 1s ease-in-out, color 1s ease-in-out, opacity 1s ease-in-out;
}

/* Кнопка переключения порядка */
.learn_switch-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #007BFF;
    color: white;
    transition: 0.3s;
}

.learn_switch-button:hover {
    background-color: #0056b3;
}

/* Проверка */
.learn_check-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.learn_check-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.learn_check-label {
    width: 200px;
    padding: 12px;
    border: 1px solid #ccc;
    text-align: center;
    border-radius: 10px;
    background: white;
    font-size: 18px;
    color: #333;
}

.learn_check-input {
    width: 200px !important;
    padding: 12px !important;
    border: 1px solid #ccc !important;
    text-align: center !important;
    border-radius: 10px !important;
    background: white !important;
    font-size: 18px !important;
    color: #333 !important;
}

.learn_check-input.correct {
    background-color: lightgreen !important;
}

.learn_check-input.incorrect {
    background-color: lightcoral !important;
}

.learn_buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.learn_refresh-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #007BFF;
    color: white;
    transition: 0.3s;
    text-transform: uppercase;
}

.learn_refresh-button:hover {
    background-color: #0056b3;
}

/* Вкладка Примеры */
.examples_table {
    width: 90%;
    max-width: 1000px;
    margin: 20px auto;
    border-collapse: collapse;
}

.examples_row {
    display: flex;
    border-bottom: 1px solid #ccc;
    padding: 10px;
}

.examples_row.header {
    font-weight: bold;
    background: #fff;
    border: 1px solid #ccc;
}

.examples_column {
    padding: 12px;
    text-align: left;
    flex: 1;
}

.examples_column:first-child {
    flex: 0.25;
}

.examples_column:nth-child(2) {
    flex: 0.25;
}

.examples_column:last-child {
    flex: 0.5;
}

.examples_column p {
    margin: 5px 0;
    font-size: 16px;
}

.examples_column em {
    display: block;
    font-size: 14px;
    color: #666;
}

.ex_word_title {
    font-weight: bold;
    font-size: 16px;
}

/* Адаптив */
@media (max-width: 800px) {
    .examples_table {
        width: 100%;
    }

    .examples_row {
        flex-direction: column;
        align-items: flex-start;
    }

    .examples_column {
        width: 100%;
        text-align: left;
    }

    .examples_column:first-child,
    .examples_column:nth-child(2),
    .examples_column:last-child {
        flex: none;
    }

    .examples_row.header {
        display: none;
    }
}

@media (max-width: 600px) {
    .learn_container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .learn_column {
        flex: 1;
        min-width: 150px;
    }

    .learn_word {
        width: 100%;
        max-width: 180px;
    }

    .learn_check-word {
        text-align: left;
        width: auto;
    }

    .learn_check-label,
    .learn_check-input {
        max-width: 170px;
    }

    .blockList {
        max-width: 95%;
    }
}
