.words_page-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wordspage-section__title {
    font-size: 1em;
    font-weight: 700;
}

.word-card-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-top: 40px;
    margin-bottom: 120px;
    max-width: 1000px;
}

.word-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 100%;
    min-width: 800px;
    min-height: 400px;
    border-radius: 6px;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* При клике по кнопке  Проверка знаний - уменьшаем ширину */
.word-card.shrink {
    min-width: 500px;
}

.word-count {
    font-weight: bold;
    text-decoration: underline;
}

.back-link {
    font-size: 1.2em;
}

.word-text {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.word-details {
    margin-bottom: 45px;
}

.example-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.example-item-word {
    font-size: 22px;
    font-weight: 700;
}

.example-item-translation {
    font-size: 18px;
}

.audio-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 10px;
    cursor: pointer;
}

.audio-btn img {
    width: 32px;
    height: 32px;
}

.transcription {
    font-size: 20px;
    padding-bottom: 2px;
}

.examples-container h3 {
    font-size: 1.5em;
    font-weight: bold;
}

.examples-list {
    font-size: 1.2em;
}

.examples-container ul {
    list-style-type: none;
    padding: 0;
}

.translation {
    display: inline-block;
    font-size: 22px;
}

.navigation {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    position: relative;
}

.nav-btn {
    flex-basis: calc(15% - 6px);
    /* Делаем кнопки по 50% ширины с учётом промежутка */
    font-size: 18px;
    padding: 10px 20px;
    min-width: 100px;
    background-color: var(--words-button-color);
    border-radius: 4px;
    color: rgb(29, 29, 29);
    cursor: pointer;
}

.nav-btn:hover {
    background-color: var(--words-button-hover-color);
}

.nav-btn-on.active {
    background-color: var(--words-button-hover-color);
    color: #fff;
}

.word-counter {
    flex: 1;
    text-align: center;
}

.game-modes {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.button-word-test {
    font-size: 15px;
    padding: 4px 12px;
    background-color: var(--secondary-note-color);
    border: 1px solid var(--secondary-border-color);
    border-radius: 6px;
    cursor: pointer;
}

.button-word-test::before {
    content: "";
    display: inline-block;
    width: 38px;
    height: 38px;
    margin-right: 10px;
    background-image: url("/assets/images/icons/test.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

.button-word-test.active::before {
    background-image: url("/assets/images/icons/test-active.png");
}

.audio {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

/* ---------- Скрытие --------- */
.hidden {
    display: none;
}

.progress-container {
    width: 100%;
    height: 6px;
    border-radius: 4px;
    margin: 6px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--cerf-color-b);
    transition: width 0.3s ease-in-out;
    border-radius: 4px;
}

/* --------- Проверка слов в карточке -------- */

.word-card__block {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 20px;
}

.quiz-container {
    padding: 20px;
    border-radius: 5px;
    width: 100%;
    min-height: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quiz-container.hidden {
    display: none;
}

.quiz-container p {
    margin-bottom: 20px;
}

.quiz-container ul {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: stretch;
}

.quiz-container li {
    text-align: center;
    padding: 14px;
    background-color: var(--words-button-color);
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    min-width: 140px;
}

.quiz-container li:hover {
    background-color: var(--words-button-hover-color);
}

/* -------------------- Уведомления при нажатии на кнопку автопрокрутки и озвучки -------------------- */
.notification {
    position: absolute;
    bottom: 0;
    background-color: #226272;
    color: rgb(255, 255, 255);
    padding: 4px 10px;
    font-size: 16px;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    width: 100%;
}

.notification.fade-out {
    opacity: 0;
}