#card .noteOp18 {
    margin-top: 6px;
    font-size: 0.9em;
    color: #666;
    text-align: center;
}

#card .wordOp18 {
    display: block;
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 6px;
}

#card .noteOp18 {
    display: block;
    text-align: center;
    font-size: 0.9em;
    color: #d33; /* выделим красным, чтобы заметно */
}



.op17_example {
    font-weight: bold;
    font-size: 1.5er;
    margin: 10px 0 10px 0;
    color: #1a1a1a; /* для контраста на синем фоне */
    text-align: center;
    width: 100%;
}

.op17_example-translation {
    background-color: #3E5E69; /* белая подложка с прозрачностью */
    padding: 4px 6px;                           /* немного внутреннего отступа */
    border-radius: 4px;                         /* скругление углов */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* тень блока */
    display: inline-block;                       /* чтобы padding и border-radius корректно работали */
    font-size: 1.1em;
    font-weight: 500;
    line-height: 1.4em;
    color: #ffffff;
}

.congiuntivo-label {
    font-size: 0.85em;
    font-weight: bold;
    color: #d32f2f;
    margin-top: 6px;
    text-align: center;
}

.conjugation-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Заголовок наклонения */
.tense-label {
    font-weight: bold;
    font-size: 18px;
    margin: 0 0 0 0;
    color: #1a1a1a; /* для контраста на синем фоне */
    text-align: center;
    width: 100%;
}

/* Обёртка таблицы с белой рамкой и скруглением */

.conjugation-table-wrapper {

  width: 100%;
/*
  border: 2px solid rgba(0,0,0,0.1);   
    border-radius: 8px;
    overflow: hidden;         
*/
  }

/* Сама таблица внутри обёртки */
.conjugation-table {
    width: 100%;
    border-collapse: collapse; 
    border-spacing: 0;
    font-size: 16px;
    margin: 0;
}

.conjugation-table td {
    padding: 8px;
    text-align: center;
    word-wrap: break-word;
    border: none; /* внутренние границы не нужны */
}

.conjugation-table td:first-child {
    width: 35%;
    font-weight: bold;
    text-align: left;
}

.conjugation-table td:last-child {
    width: 65%;
    text-align: left;
}

/* Контейнер вместо таблицы */
.trainer-container {
    width: 100%;                 
    background-color: #fff;       
    border-radius: 20px;          
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    
    display: flex;                /* включаем flex */
    align-items: center;          /* центр по вертикали */
    justify-content: center;      /* центр по горизонтали */

    padding: 20px;                
    box-sizing: border-box;
    min-height: 300px;            /* чтобы было место для карточки */
}

#trainer {
    flex: 0 1 auto;               /* размер зависит от содержимого */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;                  /* адаптивно */
    max-width: 400px;             /* не разъезжается на больших */
}

/* Карточка */
.card {
    width: 100%;
    max-width: 400px;
    height: 280px; /* увеличили высоту */
    perspective: 1000px;
    border-radius: 12px; /* совпадает с контейнером */
    overflow: hidden;     /* чтобы внутренние стороны не вылазили */
}

.cardQuadrato {
    width: 100%;
    max-width: 400px;
    height: 380px; /* увеличили высоту */
    perspective: 1000px;
    border-radius: 12px; /* совпадает с контейнером */
    overflow: hidden;     /* чтобы внутренние стороны не вылазили */
}

/* Переворот карточки */
.cardQuadrato.flipped .card-inner {
    transform: rotateY(180deg);
}


/* Внутренности карточки для переворота */
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.9s;
    transform-style: preserve-3d;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    border-radius: 12px; /* совпадает с контейнером */
}


/* Переворот карточки */
.card.flipped .card-inner {
    transform: rotateY(180deg);
}

/* Лицевая и обратная стороны */
.card-front, .card-back, .card-backQuadrato {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(16px, 5vw, 24px);
    border-radius: 12px; /* совпадает с контейнером */
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
}

/* Лицевая сторона - желтая */
.card-front {
    background-color: #CCFFCC;
    color: #000;
}

/* Обратная сторона - градиент синий */
.card-back {
    background: linear-gradient(to bottom right, #0077cc, #00aaff);
    color: #fff;
    transform: rotateY(180deg);
}

.card-backQuadrato {
    background: #cccccc;
    color: #fff;
    transform: rotateY(180deg);
}




/* Предыдущий глагол */
#trainer2 {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    height: 30px;
}

#prev-verb {
    font-size: 14px;
    color: #424e58;
    opacity: 0.7;
    transition: all 0.5s ease;
}

/* Слайдер скорости */
#difficolta-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #ccc;
    outline: none;
}

#difficolta-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #999;
    cursor: pointer;
}

#difficolta-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #999;
    cursor: pointer;
}

#card {
    min-height: 180px; /* увеличили высоту карточки */
}

.lang-label {
    font-size: 12px;
    font-weight: bold;
    color: #555;
    position: absolute;
    top: 5px;
    right: 8px;
}

.word {
    font-size: 24px;
    text-align: center;
    color: #1a1a1a;
    font-weight: bold;
    margin-top: 30px; /* чуть больше отступа */
    padding: 0 10px;  /* чтобы длинные слова не упирались */
    word-wrap: break-word;
}

#op7-reverse-settings {
    display: flex;
    justify-content: flex-end; /* прижать к правому краю */
    margin: 10px 0;            /* небольшой отступ сверху/снизу */
}

#op7-reverse-settings label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    user-select: none;
    margin-left: 6px;
}

.switch-container8it {
    display: flex;
    justify-content: flex-end; /* прижать к правому краю */
    margin: 10px 0;            /* небольшой отступ сверху/снизу */
}

.switch-container8it label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    user-select: none;
    margin-left: 6px;
}