:root {
            --bg-color: #ffffff;
            --text-color: #2c3e50;
            --timer-bg: #ecf0f1;
            --border-color: #eee;
        }

        body {
            font-family: 'Nunito', sans-serif;
            background-color: var(--bg-color);
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            height: 100vh;
            overflow: hidden;
        }

        /* --- 1. ARAPÇA ALAN --- */
        .arabic-area {
            flex-grow: 1;
            padding: 2vh 3vh;
            overflow-y: auto;
            direction: rtl;
            font-family: 'Scheherazade New', serif;
            font-size: 5.5vh;
            line-height: 2.2;
            color: var(--text-color);
            border-bottom: 1px solid var(--border-color);
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-content: center;
            text-align: center;
            gap: 20px;
        }

        /* --- 2. TÜRKÇE ALAN --- */
        .turkish-area {
            height: 20vh;
            padding: 0.5vh 1vh;
            background-color: #fcfcfc;
            border-top: 4px solid var(--border-color);
            overflow-y: auto;
            font-size: 4vh;
            line-height: 1.0;
            text-align: center;
            color: #7f8c8d;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 5px;
            box-shadow: inset 0 2px 5px rgba(0,0,0,0.03);
        }

        /* --- KELİME STİLLERİ --- */
        .word-span, .tr-word {
            cursor: pointer;
            transition: all 0.2s ease;
            padding: 0 2px;
            border-radius: 4px;
        }

        .interact-word {
            font-weight: 700;
        }

        .active-highlight {
            font-weight: 900 !important;
            transform: scale(1.02); 
            text-shadow: 0 1px 2px rgba(0,0,0,0.1);
        }

        .solved {
            font-weight: bold;
            cursor: default;
        }

        /* --- 3. ŞIKLAR ALANI --- */
        .options-area {
            height: 35vh;
            background: #fff;
            padding: 2vh;
            border-top: 1px solid #ddd;
            display: flex;
            flex-direction: column;
            box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
            z-index: 10;
        }

        .timer-container {
            width: 100%;
            height: 1vh;
            background-color: var(--timer-bg);
            border-radius: 1vh;
            overflow: hidden;
            margin-bottom: 1.5vh;
            flex-shrink: 0;
        }

        .timer-bar {
            height: 100%;
            width: 100%;
            background-color: #27ae60;
            transition: width 0.1s linear;
        }

        .options-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-template-rows: 1fr 1fr;
            gap: 1.5vh;
            flex-grow: 1;
        }

        .option-btn {
            background: #fdfdfd;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            font-family: 'Scheherazade New', serif;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: clamp(3vh, 5vw, 5vh);
            transition: transform 0.1s;
            color: #333;
        }

        .option-btn:active { transform: scale(0.96); background: #eee; }

        .correct-opt { background: #fff !important; border-color: #27ae60 !important; color: #27ae60 !important; font-weight: bold; }
        .wrong-opt { background: #fff !important; border-color: #c0392b !important; color: #c0392b !important; }

        .next-sentence-btn {
            position: fixed;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%) scale(0);
            background-color: #2c3e50;
            color: white;
            padding: 2vh 5vh;
            border-radius: 50px;
            font-size: 3vh;
            font-weight: bold;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            cursor: pointer;
            z-index: 200;
            transition: transform 0.4s;
        }
        .next-sentence-btn.show { transform: translate(-50%, -50%) scale(1); }

        .overlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(255,255,255,0.8);
            display: none;
            z-index: 5;
        }
        .overlay.active { display: block; }

/* --- Geri Tuşu Tasarımı --- */
.back-button-container {
    position: absolute; /* Arapça alanının içinde bağımsız konumlanması için */
    top: 2vh;
    left: 2vh;
    z-index: 100;
}

.back-button {
    background: #ffffff;
    color: #2c3e50;
    border: 2px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.back-button:hover {
    background: #f8f9fa;
    border-color: #2c3e50;
    transform: translateX(-3px);
}

.back-button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Mobil cihazlarda butonun içeriği kapatmaması için ayar */
@media (max-width: 768px) {
    .back-button {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    .back-button svg {
        width: 20px;
        height: 20px;
    }
}