:root {
    --primary-color: #ff6b00;
    --secondary-color: #0077c2;
    --accent-color: #ffa500;
    --correct-color: #4caf50;
    --incorrect-color: #f44336;
    --bg-color: #f9f9f9;
    --border-radius: 8px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--bg-color);
    color: #333;
}

h1, h2, h3 {
    color: var(--secondary-color);
}

h1 {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}


.verb-selector {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px; /* <- додати відступ між елементами */
}


/* Селектор дієслів */
.verb-selector {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.verb-selector label {
    margin-right: 10px;
    font-weight: bold;
}

.verb-selector select {
    padding: 8px 12px;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    font-size: 16px;
    background-color: white;
    cursor: pointer;
}

/* Таблиці */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: var(--secondary-color);
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #e9f7fe;
}

/* Кнопки */
button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 5px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

button:hover {
    background-color: #005fa3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #e05a00;
}

.btn-secondary {
    background-color: #666;
}

.btn-secondary:hover {
    background-color: #555;
}

.btn-success {
    background-color: var(--correct-color);
}

.btn-danger {
    background-color: var(--incorrect-color);
}

/* Вкладки - виправлено проблему з невидимими неактивними вкладками */
.tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    background-color: #eee; /* Фон для неактивних вкладок - тепер видно */
    color: #555; /* Темніший текст для кращого контрасту */
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    margin-right: 5px;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.tab:hover {
    background-color: #e0e0e0; /* Світліший фон при наведенні */
}

.tab.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.tab-content {
    display: none;
    padding: 20px;
    background-color: white;
    border-radius: 0 var(--border-radius) var(--border-radius) var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-content.active {
    display: block;
}

/* Вправи */
.exercise {
    margin: 20px 0;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background-color: white;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.exercise-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: dimgrey;
    color: white;
}

.exercise-icons {
    display: flex;
    gap: 10px;
}

.exercise-body {
    padding: 20px;
}

.exercise-question-container {
    font-size: 18px;
    margin-bottom: 20px;
}

.exercise-input-container {
    display: flex;
    gap: 10px;
}

.exercise-input-containerOLD input {
    flex-grow: 1;

    padding: 12px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: border 0.3s;
}

.exercise-input-container input {
    flex-grow: 1;
    min-width: 0; /* ВАЖЛИВО! Дозволяє flex-елементу зменшуватись */
    width: 100%;
    max-width: 100%; /* Обмежує максимальну ширину */
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: border 0.3s;
    box-sizing: border-box; /* Padding і border враховуються в ширину */
}


.exercise-input-container input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.exercise-footer {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background-color: #f5f5f5;
    border-top: 1px solid #eee;
}

input[type="text"] {
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    width: 250px;
    font-size: 16px;
    transition: border 0.3s;
}

input[type="text"]:focus {
    border-color: var(--primary-color);
    outline: none;
}

.result {
    margin-top: 15px;
    padding: 15px;
    border-radius: var(--border-radius);
    font-weight: bold;
    animation: fadeIn 0.5s;
}

.correct {
    background-color: rgba(76, 175, 80, 0.2);
    color: #2e7d32;
    border-left: 4px solid var(--correct-color);
}

.incorrect {
    background-color: rgba(244, 67, 54, 0.2);
    color: #c62828;
    border-left: 4px solid var(--incorrect-color);
}

.hidden {
    display: none;
}



.flag {
    width: 30px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nl-flag {
    background: linear-gradient(to bottom, #AE1C28 33.3%, #FFFFFF 33.3%, #FFFFFF 66.6%, #21468B 66.6%);
}



/* Кнопка відкриття модального вікна складності */
.difficulty-trigger-container {
    margin-bottom: 20px;
}

.difficulty-trigger-btn {
    width: 100%;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.difficulty-trigger-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.difficulty-trigger-btn:active {
    transform: translateY(0);
}

.arrow-icon {
    font-size: 16px;
    transition: transform 0.3s;
}

.difficulty-trigger-btn:hover .arrow-icon {
    transform: translateY(2px);
}




/* Модальне вікно вибору складності */
.difficulty-modal-content {
    max-width: 500px;
}

.difficulty-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.difficulty-modal-buttons .difficulty-btn {
    width: 100%;
    text-align: left;
    padding: 20px;
    font-size: 16px;
    border-radius: var(--border-radius);
    background-color: #f5f5f5;
    color: #333;
    border: 3px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.difficulty-btn-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.difficulty-btn-subtitle {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.difficulty-modal-buttons .difficulty-btn:hover {
    background-color: #e8f4f8;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.difficulty-modal-buttons .difficulty-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.difficulty-modal-buttons .difficulty-btn.active .difficulty-btn-title {
    color: white;
}

.difficulty-modal-buttons .difficulty-btn.active .difficulty-btn-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Блок вибору часів в модальному вікні */
#difficulty-modal .tense-selection {
    margin-top: 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
}

#difficulty-modal .tense-selection h4 {
    margin-top: 0;
    color: var(--secondary-color);
}


/* Вибір рівня складності */
.difficulty-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.difficulty-btn {
    flex: 1;
    text-align: center;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: var(--border-radius);
    background-color: #eee;
    color: #333;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.difficulty-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-3px);
}

.difficulty-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Блок вибору часів для Профі рівня */
.tense-selection {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-color);
    animation: fadeIn 0.5s;
}

.tense-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: white;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.checkbox-container:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.checkbox-label {
    flex-grow: 1;
}

/* Прогрес */
.progress-container {
    width: 100%;
    height: 20px;
    background-color: #eee;
    border-radius: 10px;
    margin: 15px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s;
}

.streak-container {
    background-color: #fff3e0;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    border-left: 4px solid var(--accent-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 165, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 165, 0, 0); }
}

/* Гра */
.game-container {
    position: relative;
    height: 400px;
    background-color: #e9f7fe;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-top: 20px;
}

.game-character {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    z-index: 2;
    transition: left 0.5s;
}

.game-item {
    position: absolute;
    top: -50px;
    width: 120px;
    height: 40px;
    background-color: white;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    animation: fallDown 4s linear;
}

@keyframes fallDown {
    0% { top: -50px; }
    100% { top: 420px; }
}

.game-score {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: var(--border-radius);
    font-weight: bold;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* Флешкарти */
.flashcard {
    perspective: 1000px;
    width: 300px;
    height: 200px;
    margin: 20px auto;
}

.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flashcard.flipped .flashcard-inner {
    transform: rotateY(180deg);
}

.flashcard-front, .flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--border-radius);
    padding: 20px;
    box-sizing: border-box;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.flashcard-front {
    background-color: var(--secondary-color);
    color: white;
}

.flashcard-back {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

.flashcard-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* Аудіо */
.audio-examples {
    margin-top: 20px;
}

.audio-example {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.audio-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.audio-btn:hover {
    background-color: #e05a00;
    transform: scale(1.1);
}

/* Діалоги 
.dialogue-container {
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 15px;
    margin-top: 20px;
}

.dialogue-header {
    margin-bottom: 15px;
}

.dialogue-text {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.dialogue-translation {
    background-color: #e9f7fe;
    padding: 15px;
    border-radius: var(--border-radius);
}
*/


/* Діалоги */
.dialogue-container {
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 15px;
    margin-top: 20px;
}

.dialogue-header {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dialogue-text {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.dialogue-translation {
    background-color: #e9f7fe;
    padding: 15px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

/* Додайте цей новий клас */
.dialogue-translation.hidden {
    display: none;
}

/* Кнопка для перекладу діалогу */
.toggle-dialogue-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.toggle-dialogue-btn:hover {
    background-color: #e05a00;
    transform: translateY(-2px);
}



/* Підвал */
footer {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #ddd;
    color: #666;
    font-size: 14px;
}

/* Стилі для інфографіки часу та займенників */
.exercise-context {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.tense-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.pronoun-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.context-info {
    display: flex;
    flex-direction: column;
}

.context-info .tense-name {
    font-weight: bold;
    color: var(--secondary-color);
}

.context-info .pronoun-name {
    font-style: italic;
    color: var(--primary-color);
}

/* Іконки для часових форм */
.tense-icon.present {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" stroke="%230077c2" stroke-width="6" fill="white"/><circle cx="50" cy="50" r="18" fill="%230077c2"/></svg>');
}

.tense-icon.past {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" stroke="%23996633" stroke-width="6" fill="white"/><path d="M 65 50 L 35 50 M 35 50 L 45 40 M 35 50 L 45 60" stroke="%23996633" stroke-width="6" stroke-linecap="round" stroke-linejoin="round" fill="none"/></svg>');
}

.tense-icon.perfect {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" stroke="%234CAF50" stroke-width="6" fill="white"/><path d="M 30 50 L 45 65 L 70 35" stroke="%234CAF50" stroke-width="8" stroke-linecap="round" stroke-linejoin="round" fill="none"/></svg>');
}

.tense-icon.future {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" stroke="%23FF6B00" stroke-width="6" fill="white"/><path d="M 35 50 L 65 50 M 65 50 L 55 40 M 65 50 L 55 60" stroke="%23FF6B00" stroke-width="6" stroke-linecap="round" stroke-linejoin="round" fill="none"/></svg>');
}




/* Іконки для займенників */
.pronoun-icon.ik {
    /* Чоловічок: кружок-голова + палички руки-ноги */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="30" r="15" stroke="%230077c2" stroke-width="4" fill="white"/><line x1="50" y1="45" x2="50" y2="70" stroke="%230077c2" stroke-width="4" stroke-linecap="round"/><line x1="50" y1="55" x2="35" y2="65" stroke="%230077c2" stroke-width="4" stroke-linecap="round"/><line x1="50" y1="55" x2="65" y2="65" stroke="%230077c2" stroke-width="4" stroke-linecap="round"/><line x1="50" y1="70" x2="35" y2="85" stroke="%230077c2" stroke-width="4" stroke-linecap="round"/><line x1="50" y1="70" x2="65" y2="85" stroke="%230077c2" stroke-width="4" stroke-linecap="round"/></svg>');
}

.pronoun-icon.jij {
    /* Акуратна стрілка вправо */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><line x1="20" y1="50" x2="75" y2="50" stroke="%23FF6B00" stroke-width="6" stroke-linecap="round"/><path d="M60,35 L80,50 L60,65" stroke="%23FF6B00" stroke-width="6" stroke-linecap="round" stroke-linejoin="round" fill="none"/></svg>');
}

.pronoun-icon.hij {
    /* Три вертикальні точки (він/вона/воно) */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="25" r="10" fill="%234CAF50"/><circle cx="50" cy="50" r="10" fill="%234CAF50"/><circle cx="50" cy="75" r="10" fill="%234CAF50"/></svg>');
}

.pronoun-icon.wij {
    /* Два кружки що перетинаються + W знизу */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="40" cy="35" r="20" stroke="%239C27B0" stroke-width="4" fill="white"/><circle cx="60" cy="35" r="20" stroke="%239C27B0" stroke-width="4" fill="white"/><path d="M30,65 L35,85 L45,70 L50,85 L55,70 L65,85 L70,65" stroke="%239C27B0" stroke-width="5" stroke-linecap="round" stroke-linejoin="round" fill="none"/></svg>');
}

.pronoun-icon.jullie {
    /* Дві акуратні стрілки вправо */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><line x1="20" y1="35" x2="75" y2="35" stroke="%23FFC107" stroke-width="6" stroke-linecap="round"/><path d="M60,20 L80,35 L60,50" stroke="%23FFC107" stroke-width="6" stroke-linecap="round" stroke-linejoin="round" fill="none"/><line x1="20" y1="65" x2="75" y2="65" stroke="%23FFC107" stroke-width="6" stroke-linecap="round"/><path d="M60,50 L80,65 L60,80" stroke="%23FFC107" stroke-width="6" stroke-linecap="round" stroke-linejoin="round" fill="none"/></svg>');
}

.pronoun-icon.zij {
    /* Без змін - залишаємо оригінал */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="35" r="10" stroke="%2300BCD4" stroke-width="4" fill="white"/><circle cx="40" cy="35" r="10" stroke="%2300BCD4" stroke-width="4" fill="white"/><circle cx="60" cy="35" r="10" stroke="%2300BCD4" stroke-width="4" fill="white"/><circle cx="80" cy="35" r="10" stroke="%2300BCD4" stroke-width="4" fill="white"/><path d="M10,65 Q20,80 30,65" stroke="%2300BCD4" stroke-width="4" fill="none"/><path d="M30,65 Q40,80 50,65" stroke="%2300BCD4" stroke-width="4" fill="none"/><path d="M50,65 Q60,80 70,65" stroke="%2300BCD4" stroke-width="4" fill="none"/><path d="M70,65 Q80,80 90,65" stroke="%2300BCD4" stroke-width="4" fill="none"/></svg>');
}



/* Теми для різних часових форм */
.theme-present {
    border-left: 5px solid #0077c2;
}

.theme-past {
    border-left: 5px solid #996633;
}

.theme-perfect {
    border-left: 5px solid #4CAF50;
}

.theme-future {
    border-left: 5px solid #FF6B00;
}



h3 .tense-title {
    color: inherit; /* успадкує колір від батьківського класу */
    transition: color 0.3s;
}

.theme-present h3 .tense-title {
    color: #0077c2; /* синій для теперішнього часу */
}

.theme-past h3 .tense-title {
    color: #996633; /* коричневий для минулого часу */
}

.theme-perfect h3 .tense-title {
    color: #4CAF50; /* зелений для доконаного часу */
}

.theme-future h3 .tense-title {
    color: #FF6B00; /* помаранчевий для майбутнього часу */
}




/* Елементи пояснень */
.correct-feedback, .incorrect-feedback {
    padding: 10px;
    border-radius: var(--border-radius);
}

.verb-form {
    font-weight: bold;
    font-size: 1.2em;
}

.auxiliary-verb {
    color: var(--secondary-color);
    font-weight: bold;
}

.main-verb {
    color: var(--primary-color);
    font-weight: bold;
}

.answer-container {
    background-color: #f9f9f9;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    margin: 10px 0;
    display: inline-block;
}

/* Інфографіка для легенди */
.infographics-legend {
    margin: 20px 0;
}

.legend-section {
    margin-bottom: 20px;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: var(--border-radius);
    min-width: 200px;
}

.legend-item span {
    margin-left: 10px;
}

/* Адаптивний дизайн */
@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
        gap: 5px;
    }

    .tab {
        margin-right: 0;
        border-radius: var(--border-radius);
    }

    .difficulty-selector {
        flex-direction: column;
    }

    .flashcard {
        width: 100%;
    }

    .game-controls {
        flex-direction: column;
    }

    .exercise-input-container {
        flex-direction: column;
    }

    input[type="text"] {
        width: 100%;
    }
    
    .exercise-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .legend-items {
        flex-direction: column;
    }
}


/* Виправлений стиль для займенника */
.context-info .pronoun-name {
    font-style: normal;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

/* Стиль для підписа "Займенник:" */
.pronoun-label {
    color: #333;
    font-weight: normal;
}

/* Стиль для самого займенника */
.pronoun-value {
    color: white;
    background-color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
}

.verb-testing-value {
    color: white;
    background-color: black;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 400;
 
}



/* Аналогічно для дієслова */
.context-info .verb-name {
    font-style: normal;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.verb-label {
    color: #333;
    font-weight: normal;
}

.verb-value {
    color: #333;
    font-weight: 500;
}


/* Адаптивність для модального вікна складності */
@media (max-width: 768px) {
    .difficulty-modal-content {
        padding: 20px;
        max-width: 90%;
    }
    
    .difficulty-btn-title {
        font-size: 18px;
    }
    
    .difficulty-btn-subtitle {
        font-size: 13px;
    }
}



/* Адаптивність для мобільних пристроїв */
@media (max-width: 600px) {
    .context-info {
        flex-direction: column;
    }
    
    .context-info .pronoun-name,
    .context-info .verb-name,
    .context-info .tense-name {
        margin: 3px 0;
    }
}