/* Общие настройки */
body {
    background-color: white;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Селектор языка в правом верхнем углу */
.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

/* Контейнер для центральных элементов (кнопок, карточек и т.п.) */
.main-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

/* Универсальная "кнопка-карточка" — используется и на главной, и в игре, и в знакомстве */
.card-button {
    width: 80%;
    max-width: 350px;
    height: 40vh;
    font-size: 1.8rem;
    border: none;
    background-color: #f0f0f0;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: 
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.1s ease;
    user-select: none;
    cursor: pointer;
    text-align: center;
    padding: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Состояния интерактивности */
.card-button:hover {
    background-color: #f8f8f8;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.card-button:active {
    background-color: #e0e0e0;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
    transform: translateY(2px);
}

/* Специальные состояния для игры */
.card-button.correct {
    background-color: #d4edda !important;
    color: #155724 !important;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3) !important;
}

.card-button.incorrect {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3) !important;
    opacity: 0.7;
}

.card-button.hidden {
    display: none !important;
}

/* Адаптивность: на экранах ≥768px — горизонтальная раскладка */
@media (min-width: 768px) {
    .main-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        height: 100vh;
    }

    .card-button {
        margin: 0 15px;
    }
}

/* Дополнительные элементы управления (например, Play/Pause/Stop) */
.control-buttons {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 15px;
	margin-top: 20px;
	width: 100%;
	max-width: 400px;
}
.control-button {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    border-radius: 50%;
    background-color: #0d6efd;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s;
}

.control-button:hover {
    background-color: #0b5ed7;
}

.control-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Текстовая подпись под карточкой (для раздела "Знакомство") */
.card-subtitle {
    margin-top: 10px;
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    max-width: 80%;
    word-break: break-word;
    white-space: normal;
}

/* Кнопка "Домой" */
.home-button {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    border-radius: 50%;
    background-color: white;
    color: #0d6efd;
    border: 2px solid #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.home-button:hover {
    background-color: #f8f9fa;
    color: #0a58ca;
    border-color: #5a6268;
}

/* Настройки формы (выбор части речи, направления и т.д.) */
        .settings-row {
            display: flex;
            gap: 10px;
            width: 100%;
            max-width: 400px;
            margin-bottom: 20px;
        }
        .settings-row select {
            flex: 1;
        }


.settings-form {
    background: #fafafa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    width: 90%;
    max-width: 500px;
}

.settings-form .form-label {
    font-weight: 500;
    margin-top: 15px;
}

.settings-form select, .settings-form .form-check {
    margin-bottom: 10px;
}

/* Кнопка "ИГРАТЬ" в настройках игры */
.play-button {
    width: 80%;
    max-width: 250px;
    height: 60px;
    font-size: 1.5rem;
    margin-top: 20px;
}

/* Скрытие скролла (опционально, для "чистоты") */
body::-webkit-scrollbar {
    display: none;
}