/* Контейнер тренажера */
#trainer {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    width: 100%;
    border-radius: 12px; /* если хотите, чтобы контейнер повторял форму карточки */
    overflow: hidden;    /* чтобы тень и переворот не выступали за края */
}

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


/* Внутренности карточки для переворота */
.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 {
    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: #FFCC33;
    color: #000;
}

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


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



/* Переворот карточки */
.cardQuadrato.flipped .card-inner {
    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;
    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;
}