body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: 100vh;
    background-color: #f4f4f4;
}

h1, h2, h3, h4, h5 {
    margin: 10px 0;
}

code {
    background-color: #e7f3f3;
    padding: 3px;
    border-radius: 3px;
    font-size: 1.1em;
}

p {
    text-align: left; 
}

ul, ol {
    text-align: left;
    margin: 20px 0;
    padding-left: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #ccc;
}

th, td {
    padding: 10px;
    text-align: center;
}

details summary {
    cursor: pointer;
    font-weight: bold;
}

details {
    margin-bottom: 10px;
    margin: 20px 0;
    text-align: left;
    padding: 10px;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
}

/* Левый блок с алфавитом */
.left-block {
    width: 25%; /* Ширина левого блока */
    padding: 20px;
    background-color: #f0f0f0;
    box-sizing: border-box;
    margin-right: 20px;
    min-height: 100vh; /* Растянуть на всю высоту страницы */
}

.left-block ul {
    list-style-type: none;
    padding: 0;
}

.left-block ul li {
    padding: 5px 0;
}

/* Правый блок с основным контентом */
.right-block {
    width: 75%; /* Ширина правого блока */
    padding: 20px;
    background-color: #ffffff;
    box-sizing: border-box;
    min-height: 100vh; /* Растянуть на всю высоту страницы */
}

/* Упражнения */
.input-size {
    width: 45px;
    padding-left: 4px;
    padding-right: 6px;
    margin: 0px;
    font-size: 16px;
    box-sizing: content-box;
}
.correct {
    color: green;
}
.incorrect {
    color: red;
}
.result {
    display: inline-block;
    padding-left: 10px;
}

.text-span {
    visibility: hidden;  
    margin-left: 10px;
}
.icon {
    cursor: pointer;  
    width: 15px;  
    height: 15px; 
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    body {
        flex-direction: column; /* Переключаем на вертикальный вид для мобильных устройств */
    }

    .left-block, .right-block {
        width: 100%; /* Блоки занимают 100% ширины экрана на мобильных устройствах */
        margin: 0;
    }
    table, thead, tbody, th, td, tr {
        display: block; /* Делает каждый элемент таблицы блочным */
    }

    thead tr {
        position: absolute;
        top: -9999px; /* Скрываем заголовки */
        left: -9999px;
    }

    tr {
        margin: 0 0 1rem 0; /* Отступы между строками */
    }

    td {
        border: none; /* Убираем границы ячеек */
        position: relative; /* Относительное позиционирование для псевдоэлементов */
        padding-left: 50%; /* Добавляем отступ слева для меток */
    }

    td:before {
        position: absolute;
        left: 0;
        width: 50%; /* Задаем ширину для меток */
        padding-left: 10px; /* Отступ для меток */
        white-space: nowrap; /* Предотвращаем перенос строк */
        font-weight: bold; /* Жирный шрифт для меток */
        content: attr(data-label); /* Используем атрибут data-label */
    }

}
