/* Общие стили для всех таблиц внутри .wrap */
.wrap table {
width: 100%;
border-collapse: separate; /* ячейки не слипаются */
border-spacing: 10px; /* расстояние между кнопками */
margin-bottom: 40px;
table-layout: fixed; /* фиксированная ширина ячеек */
background-color: transparent; /* прозрачный фон таблицы */
}
/* Убираем стандартные границы */
.wrap table,
.wrap th,
.wrap td {
border: none;
}
/* Оформляем ячейки как кнопки */
.wrap td {
border: 1px solid grey;
border-radius: 12px; /* скругление углов */
padding: 8px;
background-color: transparent; /* прозрачный фон кнопок */
transition: box-shadow linear 0.15s, border-color linear 0.15s;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
/* Эффект при наведении */
.wrap td:hover {
box-shadow: inset 0 2px 20px -5px black, 0 4px 8px rgba(0,0,0,0.2);
border-color: #aaa;
}
/* Стили для содержимого ячейки */
.wrap td > span > a > img {
max-width: 32px;
max-height: 32px;
transition: transform linear 0.15s;
}
.wrap td > span > a {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
text-decoration: none;
}
/* Текст под иконкой (берётся из title ссылки) */
.wrap td > span > a::after {
display: block;
content: attr(title);
font-size: 1rem;
color: white; /* белый цвет текста */
text-shadow: 0 0 2px rgba(0,0,0,0.5); /* тень для читаемости на любом фоне */
padding-bottom: 3px;
}
/* Заголовки таблиц (если используются) */
.wrap th {
padding: 10px;
font-size: 1.2em;
text-align: center;
background-color: transparent;
color: inherit;
}
/* Для таблицы .table-elementary задаём ячейкам ширину 50% (по две на ряд) */
.table-elementary td {
width: 50%;
}
/* Обнуляем фоновые цвета у всех цветовых классов таблиц */
.table-elementary,
.table-world,
.table-engineering,
.table-medicine,
.table-science,
.table-security,
.table-civil,
.table-antagonists,
.table-other,
.table-technical {
background-color: transparent !important;
}