@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; margin: 0; padding: 0; }
body { font-family: 'Inter', 'Tahoma', sans-serif; margin: 0; overscroll-behavior: none; scrollbar-width: none;  -ms-overflow-style: none; background-color: #F1F3F0; color: #072107; overflow-y: scroll; display: flex; flex-direction: column; min-height: 100vh; }
body::-webkit-scrollbar { display: none; }

html {
   overscroll-behavior: none; scrollbar-width: none;  -ms-overflow-style: none;
    
}


::-webkit-scrollbar {
    display: none;
}


.navbarnew { background-color: #253D2C; color: #ffffff; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.15); height: 56px; }
.navbar-brand { font-size: 1.25rem; font-weight: 700; color: #ffffff; text-decoration: none !important; letter-spacing: 0.5px; }
.navbar-nav { display: flex; align-items: center; gap: 12px; }
.nav-item { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #ffffff; font-size: 0.95rem; font-weight: 500; padding: 8px 16px; border-radius: 50px; transition: background-color 0.2s ease; }
.nav-item:hover { background-color: rgba(255, 255, 255, 0.2); }
.nav-item img, .nav-item svg { width: 20px; height: 20px; transition: transform 0.2s ease; fill: currentColor; }
.nav-item img { filter: brightness(0) invert(1); }
.nav-item:hover img, .nav-item:hover svg { transform: scale(1.1); }


.container { max-width: 900px; margin: 40px auto; padding: 30px; width: 100%; flex-grow: 1; }
.container-header { text-align: center; margin-bottom: 40px; transition: all 0.3s; }
.container-header h1 { font-size: 2rem; color: #333; margin: 0; display: inline-flex; align-items: center; gap: 12px; }


.toast-container { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { background-color: #ffffff; color: #072107; padding: 16px 24px; border-radius: 50px; font-weight: 500; font-size: 1.05rem; box-shadow: 0 6px 16px rgba(20, 57, 24, 0.15); border: 1px solid rgba(20, 57, 24, 0.1); display: flex; align-items: center; gap: 12px; animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards; pointer-events: auto; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeOut { to { opacity: 0; transform: translateY(-10px); } }


.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 40px; transition: all 0.3s; }
.unit { display: flex; flex-direction: column; justify-content: center; background-color: #ffffff; border-radius: 24px; padding: 20px 24px; color: #072107; font-weight: 500; font-size: 1.05rem; box-shadow: 0 2px 8px rgba(20, 57, 24, 0.06); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid transparent; cursor: pointer; text-align: left; }
.unit:hover { background-color: #E8EFE6; transform: translateY(-3px); box-shadow: 0 6px 16px rgba(20, 57, 24, 0.12); border-color: rgba(20, 57, 24, 0.1); }
.unit h3 { margin: 0 0 8px 0; font-size: 1.15rem; display: flex; justify-content: space-between; align-items: center; color: #333; }
.unit p { margin: 0 0 12px 0; color: #555; font-size: 0.95rem; font-weight: 400; }
.unit .progress { font-size: 0.9rem; color: #253D2C; font-weight: 600; }
.progress-bar { height: 8px; background: #e0e5df; border-radius: 10px; overflow: hidden; width: 100%; }
.progress-fill { height: 100%; background: #253D2C; transition: width 0.5s ease; }


#units-list.hidden { display: grid !important; filter: blur(5px); opacity: 0.5; pointer-events: none; }
.container:has(#units-list.hidden) .container-header { filter: blur(5px); opacity: 0.5; pointer-events: none; }


.study-area { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(7, 33, 7, 0.4); z-index: 2000; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(2px); }
.study-area:not(.hidden) { display: flex; }

.study-popup-container { background-color: #ffffff; width: 100%; max-width: 800px; border-radius: 24px; padding: 30px 40px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); position: relative; display: flex; flex-direction: column; max-height: 90vh; overflow-y: auto; }


.popup-top-bar { display: flex; align-items: center; gap: 20px; margin-bottom: 10px; width: 100%; }
.study-popup-container .back-btn { flex-shrink: 0; background-color: #253D2C; color: #ffffff; border: none; padding: 10px 18px; border-radius: 50px; font-weight: 500; font-size: 0.9rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); font-family: inherit; }
.study-popup-container .back-btn:hover { background-color: #16241a; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(20, 57, 24, 0.2); }
.study-popup-container .back-btn:active { transform: scale(0.98); }
.study-popup-container .back-btn svg { fill: currentColor; width: 18px; height: 18px; }


.popup-progress-container { flex-grow: 1; display: flex; align-items: center; gap: 12px; background: #F8FAF8; padding: 8px 16px; border-radius: 50px; border: 1px solid #e0e5df; }
#popup-progress-text, #popup-progress-percent { font-size: 0.85rem; font-weight: 700; color: #253D2C; min-width: 38px; text-align: center; }
.popup-progress-bar { flex-grow: 1; height: 8px; background: #e0e5df; border-radius: 10px; overflow: hidden; }
.popup-progress-fill { height: 100%; background: #253D2C; transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 10px; }


.progress-header { text-align: center; margin-top: 10px; margin-bottom: 24px; }
.progress-header h2 { font-size: 1.6rem; margin: 0 0 8px 0; color: #333; }
.level-info { font-size: 1.05rem; color: #253D2C; font-weight: 600; }

.activity-content { background: #F8FAF8; border-radius: 24px; padding: 40px 30px; border: 1px solid #e0e5df; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; margin-bottom: 24px; width: 100%; }
.info-content { 
    width: 100%; 
    margin-bottom: auto; 
    text-align: left; 
}
.info-content h3 { 
    color: #253D2C; 
    margin-top: 0; 
    margin-bottom: 15px; 
    font-size: 1.5rem; 
    text-align: left; 
}
.info-content p { 
    font-size: 1.05rem; 
    line-height: 1.75; 
    color: #333; 
    width: 100%; 
    max-width: none; 
    margin: 0; 
    text-align: left; 
    white-space: pre-wrap; 
}

.next-button-container { text-align: right; width: 100%; margin-top: -10px; }
.circle-next-btn { background-color: #253D2C; color: #ffffff; border: none; width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 12px rgba(37, 61, 44, 0.25); transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.circle-next-btn:hover { background-color: #16241a; transform: translateY(-3px) scale(1.05); box-shadow: 0 6px 16px rgba(37, 61, 44, 0.35); }
.circle-next-btn:active { transform: scale(0.95); }
.circle-next-btn svg { fill: currentColor; width: 32px; height: 32px; }


.flashcard-container { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; }
.card { width: 100%; max-width: 500px; height: 220px; background: #ffffff; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 600; color: #253D2C; cursor: pointer; border: 2px dashed #c0cdbe; transition: all 0.3s; padding: 20px; text-align: center; }
.card:hover { border-color: #253D2C; background: #E8EFE6; }
.card-back { color: #74796D; font-size: 1.15rem; margin-top: 15px; font-weight: 500; border-top: 1px solid #d1d8cf; padding-top: 15px; width: 80%; }



.quiz-question { width: 100%; max-width: 600px; }
.quiz-question h3 { margin-bottom: 24px; color: #333; font-size: 1.3rem; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
.option-btn { display: flex; align-items: center; justify-content: center; background-color: #ffffff; border-radius: 24px; padding: 20px 24px; color: #072107; font-weight: 500; font-size: 1.05rem; box-shadow: 0 2px 8px rgba(20, 57, 24, 0.06); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid transparent; cursor: pointer; font-family: inherit; width: 100%; text-align: center; }
.option-btn:hover { background-color: #E8EFE6; transform: translateY(-3px); box-shadow: 0 6px 16px rgba(20, 57, 24, 0.12); border-color: rgba(20, 57, 24, 0.1); }
.option-btn:active { transform: scale(0.98); }


.flashcard-controls { display: flex; gap: 16px; width: 100%; justify-content: center; }
.flashcard-controls .btn { flex: 1; max-width: 250px; background-color: #ffffff; border-radius: 24px; padding: 16px 24px; color: #072107; font-weight: 500; font-size: 1.05rem; box-shadow: 0 2px 8px rgba(20, 57, 24, 0.06); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid transparent; cursor: pointer; font-family: inherit; text-align: center; border: none; }
.flashcard-controls .btn:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(20, 57, 24, 0.12); }
.flashcard-controls .btn:active { transform: scale(0.98); }
.flashcard-controls .btn.danger { color: #e74c3c; }
.flashcard-controls .btn.danger:hover { background-color: #fdf2f1; border-color: rgba(231, 76, 60, 0.2); }
.flashcard-controls .btn.success { color: #2ecc71; }
.flashcard-controls .btn.success:hover { background-color: #f2fcf5; border-color: rgba(46, 204, 113, 0.2); }

.hidden { display: none !important; }


.md-footer { background-color: #253D2C; color: #F1F3F0; padding: 40px 24px 20px; margin-top: auto; }
.footer-content { max-width: 880px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
.footer-brand h2 { font-size: 1.4rem; margin: 0 0 12px 0; color: #ffffff; font-weight: 700; }
.footer-brand p { font-size: 0.85rem; line-height: 1.5; color: rgba(255, 255, 255, 0.8); margin: 0; max-width: 300px; text-align: left; }
.footer-section h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 16px 0; color: rgba(255, 255, 255, 0.6); font-weight: 600; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255, 255, 255, 0.9); font-size: 0.9rem; transition: all 0.2s; display: inline-block; text-decoration: none; }
.footer-links a:hover { color: #ffffff; transform: translateX(4px); }
.footer-actions-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-btn { background-color: rgba(255, 255, 255, 0.1); color: #ffffff !important; padding: 10px 18px; border-radius: 50px; font-weight: 500; font-size: 0.85rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s; text-decoration: none; width: auto; white-space: nowrap; border: none; font-family: inherit; cursor: pointer; }
.footer-btn:hover { background-color: #E5EBE6; color: #072107 !important; }
.footer-btn svg { fill: currentColor; width: 18px; height: 18px; }
.footer-bottom { max-width: 880px; margin: 0 auto; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; text-align: center; font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }


.matching-container {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 20px;
    width: 100%;
    max-width: 600px;
}

.matching-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-btn {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 16px;
    color: #072107;
    font-weight: 500;
    font-size: 1.05rem;
    box-shadow: 0 2px 8px rgba(20, 57, 24, 0.06);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
}


.match-btn:hover:not(.correct):not(.selected) {
    background-color: #E8EFE6;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(20, 57, 24, 0.12);
}


.match-btn.selected {
    border-color: #253D2C;
    background-color: #E8EFE6;
    transform: scale(0.98);
}


.match-btn.correct {
    background-color: #e8f8f5;
    border-color: #2ecc71;
    color: #27ae60;
    cursor: default;
    pointer-events: none; 
    opacity: 0.8;
}


.match-btn.wrong {
    border-color: #e74c3c;
    background-color: #fdf2f1;
    color: #c0392b;
    animation: shake 0.4s; 
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}


.fill-blanks-container { text-align: left; width: 100%; max-width: 600px; margin: 0 auto; }
.fill-blanks-text { font-size: 1.3rem; line-height: 2.2; margin-bottom: 30px; color: #333; font-weight: 500; }
.blank-box { 
    display: inline-block; 
    min-width: 80px; 
    min-height: 38px; 
    border-bottom: 3px solid #253D2C; 
    background: #E8EFE6; 
    margin: 4px 6px; 
    vertical-align: middle; 
    cursor: pointer; 
    text-align: center; 
    font-weight: 600; 
    color: #253D2C; 
    line-height: normal; 
    border-radius: 8px 8px 0 0; 
    transition: all 0.2s; 
    padding: 6px 10px; 
    word-break: break-word; 
 }
.blank-box.empty { border-bottom: 3px dashed #c0cdbe; background: transparent; color: transparent; }
.blank-box:not(.empty):hover { background: #fdf2f1; border-color: #e74c3c; color: #e74c3c; } 

.word-bank { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding-top: 20px; border-top: 1px solid #e0e5df; }
.word-btn { background: #ffffff; border: 2px solid #e0e5df; padding: 12px 20px; border-radius: 16px; font-size: 1.05rem; cursor: pointer; font-family: inherit; font-weight: 600; color: #253D2C; box-shadow: 0 2px 6px rgba(0,0,0,0.05); transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.word-btn:hover:not(.used) { background: #E8EFE6; border-color: #253D2C; transform: translateY(-2px); }
.word-btn.used { background: #f1f3f0; color: #a0a0a0; border-color: transparent; pointer-events: none; transform: scale(0.95); }


.chat-container { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 550px; margin: 0 auto 30px; padding: 20px; background: #ffffff; border-radius: 24px; box-shadow: inset 0 2px 8px rgba(0,0,0,0.03); border: 1px solid #e0e5df; }
.chat-bubble { padding: 14px 20px; border-radius: 20px; max-width: 85%; font-size: 1.1rem; line-height: 1.5; font-weight: 500; position: relative; transition: all 0.3s; }
.chat-a { background: #E8EFE6; color: #072107; align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-b { background: #253D2C; color: #ffffff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-blank { background: #f1f3f0; border: 2px dashed #c0cdbe; color: #888; align-self: flex-end; border-bottom-right-radius: 4px; min-width: 150px; text-align: center; }


.popup-top-bar, 
.progress-header, 
.activity-content, 
.next-button-container {
    flex-shrink: 0 !important;
}


.activity-content {
    justify-content: flex-start !important; 
    padding-top: 30px !important;
}


.fill-blanks-text {
    line-height: 2.6 !important; 
    display: block;
}

.blank-box {
    display: inline-flex !important; 
    align-items: center;
    justify-content: center;
    min-width: 70px !important;
    height: 34px !important; 
    margin: 0 4px !important;
    vertical-align: middle !important;
    padding: 0 10px !important;
    word-break: break-word;
}


.container-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    width: 100%;
}

.header-titles {
    text-align: left;
}

.header-titles h1 {
    font-size: 2rem;
    color: #333;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.dict-btn {
    background-color: #253D2C;
    color: #ffffff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 61, 44, 0.25);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dict-btn:hover {
    transform: translateY(-2px) scale(1.05);
    background-color: #16241a;
    box-shadow: 0 6px 16px rgba(37, 61, 44, 0.35);
}


.words-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px; 
}


.words-list::-webkit-scrollbar { width: 6px; }
.words-list::-webkit-scrollbar-thumb { background-color: #c0cdbe; border-radius: 10px; }

.word-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #e0e5df;
    border-radius: 16px;
    font-size: 1.05rem;
    color: #072107;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}

.word-row:hover {
    background: #E8EFE6;
    border-color: #253D2C;
}

.word-kurdish {
    font-weight: 700;
    color: #253D2C;
    flex: 1;
    text-align: left;
}

.word-turkish {
    font-weight: 500;
    color: #555;
    flex: 1;
    text-align: right;
}


.sentence-builder-container { text-align: left; width: 100%; max-width: 600px; margin: 0 auto; }
.sentence-target { font-size: 1.3rem; font-weight: 600; margin-bottom: 25px; color: #333; text-align: center; }
.sentence-builder-area { min-height: 65px; border-bottom: 3px dashed #c0cdbe; display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 12px; margin-bottom: 25px; align-items: flex-start; justify-content: center; }
.sentence-word-bank { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; min-height: 65px; border-top: 1px solid #e0e5df; padding-top: 20px; }

.s-word { 
    background: #ffffff; border: 2px solid #e0e5df; padding: 12px 20px; border-radius: 16px; 
    font-size: 1.1rem; cursor: pointer; font-family: inherit; font-weight: 600; color: #253D2C; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.05); transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
}
.s-word:hover { background: #E8EFE6; border-color: #253D2C; transform: translateY(-2px); }


.dictation-container { text-align: center; width: 100%; max-width: 500px; margin: 0 auto; }
.dictation-play-btn { 
    width: 80px; height: 80px; border-radius: 50%; background-color: #253D2C; color: #ffffff; 
    border: none; display: inline-flex; align-items: center; justify-content: center; 
    cursor: pointer; box-shadow: 0 4px 15px rgba(37,61,44,0.3); transition: all 0.2s; margin-bottom: 30px; 
}
.dictation-play-btn:hover { background-color: #16241a; transform: scale(1.05); box-shadow: 0 6px 20px rgba(37,61,44,0.4); }
.dictation-play-btn:active { transform: scale(0.95); }

.dictation-input { 
    width: 100%; padding: 18px 20px; border: 2px solid #e0e5df; border-radius: 20px; 
    font-size: 1.2rem; text-align: center; font-family: inherit; color: #072107; outline: none; 
    transition: all 0.3s; margin-bottom: 10px; font-weight: 500; background: #ffffff;
}
.dictation-input:focus { border-color: #253D2C; box-shadow: 0 0 0 4px rgba(37,61,44,0.1); }


.btn {
    background-color: #ffffff; 
    border-radius: 24px; 
    padding: 16px 24px; 
    color: #072107; 
    font-weight: 600; 
    font-size: 1.05rem; 
    box-shadow: 0 2px 8px rgba(20, 57, 24, 0.06); 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    border: 1px solid #e0e5df; 
    cursor: pointer; 
    font-family: inherit; 
    text-align: center; 
    min-width: 160px;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(20, 57, 24, 0.12); }
.btn:active { transform: scale(0.98); }

.btn.success { color: #2ecc71; border-color: #e0e5df; }
.btn.success:hover { background-color: #f2fcf5; border-color: rgba(46, 204, 113, 0.3); }


.btn-skip {
    background-color: #f1f3f0; 
    color: #74796D; 
    border: 1px solid #c0cdbe;
    border-radius: 20px; 
    padding: 10px 24px; 
    font-weight: 500;
    font-size: 0.95rem; 
    cursor: pointer; 
    transition: all 0.2s;
    font-family: inherit;
}
.btn-skip:hover { background-color: #e0e5df; color: #333; }


@media (max-width: 600px) { 
    .navbarnew { padding: 0 16px; } 
    .navbar-brand { font-size: 1.1rem; } 
    .navbar-nav { gap: 4px; } 
    .nav-item { padding: 10px; gap: 0; } 
    .nav-item span { display: none; } 
    .md-footer { padding: 30px 20px 20px; } 
    .footer-content { grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; } 
    .footer-brand { grid-column: span 2; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; margin-bottom: 5px; } 
    .footer-brand p { margin: 0 auto; text-align: left;} 
    .footer-actions-col { align-items: stretch; } 
    .footer-btn { width: 100%; padding: 10px 8px; font-size: 0.8rem; } 
    .container { padding: 20px; margin: 10px auto; }
    .study-popup-container { padding: 20px; border-radius: 16px; }
    .options { grid-template-columns: 1fr; }
    .matching-container { gap: 10px; }
    .match-btn { padding: 12px; font-size: 0.95rem; }
    
    .study-popup-container { padding: 20px 15px; border-radius: 16px; }
    .activity-content { padding: 25px 15px; min-height: 250px; }
    
    
    .options { grid-template-columns: 1fr; gap: 12px; }
    .option-btn { font-size: 0.95rem; padding: 14px 16px; text-align: left; justify-content: flex-start; }
    
    
    .fill-blanks-text { font-size: 1.1rem; line-height: 2; margin-bottom: 20px; }
    .blank-box { min-width: 60px; font-size: 1rem; padding: 4px 8px; margin: 2px 4px; }
    .word-btn { padding: 10px 14px; font-size: 0.95rem; }
    
    
    .chat-container { padding: 15px 10px; }
    .chat-bubble { font-size: 1rem; padding: 12px 16px; max-width: 95%; } 
    
    
    .card { height: 180px; font-size: 1.2rem; }
    .matching-container { gap: 10px; }
    .match-btn { padding: 12px; font-size: 0.95rem; }
    .options { 
        gap: 10px; 
    }
    
    .option-btn {
        padding: 14px 16px !important;
        font-size: 0.95rem !important;
        white-space: normal !important; 
        line-height: 1.4 !important;
    }
    
    .chat-container {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }

    .container-header-new { flex-direction: row; }
    .dict-btn { width: 44px; height: 44px; }
    .word-row { font-size: 0.95rem; padding: 12px 14px; }
}

.flashcard-container .card {
    position: relative;
    width: 100%;
    min-height: 140px;
    cursor: pointer;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(37, 61, 44, 0.08);
    border: 2px solid #E8EFE6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s;
}


.flashcard-container .card:active {
    transform: scale(0.98); 
}


.card-front {
    font-size: 1.4rem;
    font-weight: 600;
    color: #253D2C;
    transition: transform 0.3s ease;
}


.card-back {
    font-size: 1.15rem;
    color: #74796D;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: all 0.35s ease;
}


.card.flipped .card-front {
    transform: translateY(-5px); 
}

.card.flipped .card-back {
    max-height: 100px;
    opacity: 1;
    margin-top: 12px; 
}