﻿.card {
    border: 1px solid #ddd;
    outline: 1px solid #aaa;
    outline-offset: 2px;
    padding: 10px;
}
    .card img {
        object-fit: cover;
        border: 1px solid #c8ccd1;
        background: #fff;
        padding: 2px;
        display: block;
        margin: 0 auto;
    }
    .card .child-content{
        
    }
    .card .card-title {
        background-color: #ddd;
        padding: 5px 15px;
        text-align: center
    }
        .card .card-title .head {
            font-weight: bold;
            font-size: 18px;
        }

        .card .card-title .sub {
            font-weight: normal;

        }



.main-header-text {
}


/* ===== СТИЛЬ СТАРОЙ ВИКИПЕДИИ (2000-е) ===== */
.table-achivment {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Times New Roman', 'Georgia', serif;
    font-size: 15px;
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    margin: 10px 0;
}

    /* Заголовки — как в старой вики */
    .table-achivment th {
        background: #e8edf3;
        color: #000;
        font-family: 'Times New Roman', 'Georgia', serif;
        font-size: 16px;
        font-weight: bold;
        padding: 8px 12px;
        border: 1px solid #a2a9b1;
        border-bottom: 2px solid #a2a9b1;
        text-align: center;
    }

    /* Ячейки */
    .table-achivment td {
        padding: 8px 12px;
        border: 1px solid #a2a9b1;
        background: #fff;
        color: #222;
        vertical-align: middle;
    }

    /* Чётные строки — как в старой википедии */
    .table-achivment tr:nth-child(even) td {
        background: #f8f9fa;
    }

    /* Картинки внутри таблицы */
    .table-achivment img {
        width: 100px;
        object-fit: cover;
        border: 1px solid #c8ccd1;
        background: #fff;
        padding: 2px;
        display: block;
        margin: 0 auto;
    }

    /* Картинки-миниатюры с подписью (опционально) */
    .table-achivment td:has(img) {
        text-align: center;
        background: #f5f6f7;
    }

    /* Первая колонка (обычно номер или иконка) */
    .table-achivment td:first-child {
        font-weight: bold;
        text-align: center;
        background: #f5f6f7;
    }

    .table-achivment tr:nth-child(even) td:first-child {
        background: #edf0f3;
    }

    /* Подвал таблицы (как в старой вики) */
    .table-achivment tfoot td {
        background: #e8edf3;
        border-top: 2px solid #a2a9b1;
        font-size: 14px;
        color: #444;
        padding: 6px 12px;
    }

    /* Сортировка (если есть) — стрелочки как в старой вики */
    .table-achivment th.sortable {
        cursor: pointer;
    }

        .table-achivment th.sortable::after {
            content: " ▾";
            font-size: 12px;
            color: #666;
        }

    /* Стиль для "вики-ссылок" внутри таблицы */
    .table-achivment a {
        color: #0645ad;
        text-decoration: none;
        background: none;
    }

        .table-achivment a:hover {
            text-decoration: underline;
        }

.tooltip-text {
    color: #007;
    cursor: pointer;
    display: inline-block;
    position: relative;
    width: fit-content;
}

    .tooltip-text:hover {
        color: #66f;
    }

.tooltip-image-container {
    border: 1px solid #c8ccd1;
    background: #fff;
    padding: 10px;
    box-shadow: 5px 5px 5px #0002;
    pointer-events: none;
    min-width: 200px;
    max-width: 400px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .tooltip-image-container img {
        object-fit: contain;
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        flex-shrink: 0;
    }

    .tooltip-image-container i {
        display: block;
        font-style: italic;
        color: #000;
        font-size: 12px;
        flex-shrink: 0;
        text-align: center;
        max-height: 30px;
        overflow: hidden;
    }

    .tooltip-image-container .content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 100%;
    }

