.elementor-1546 .elementor-element.elementor-element-072d123{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-1546 .elementor-element.elementor-element-5623bf1{--display:flex;}/* Start custom CSS for html, class: .elementor-element-f9a39bc *//* Custom Hindi Typing Tool Styles */
#custom-typing-tool {
    background: linear-gradient(135deg, #74ebd5 0%, #9face6 100%);
    padding: 40px 20px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 500px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
    margin: 20px 0;
    position: relative;
}

#custom-typing-tool * {
    box-sizing: border-box;
}

#custom-typing-tool .typing-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 450px; /* मोबाइल के लिए डिफ़ॉल्ट चौड़ाई */
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#custom-typing-tool h1 {
    font-size: 26px;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1.2;
    padding: 0;
    border: none;
}

#custom-typing-tool p.subtitle {
    color: #7f8c8d;
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* मोबाइल लेआउट (Default) */
#custom-typing-tool .app-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#custom-typing-tool .controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

#custom-typing-tool select.time-select {
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #bdc3c7;
    font-size: 15px;
    font-weight: bold;
    color: #2c3e50;
    outline: none;
    cursor: pointer;
    background: #fff;
    width: auto;
}

#custom-typing-tool .timer {
    font-size: 18px;
    font-weight: bold;
    color: #e67e22;
    background: #fdf2e9;
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid #fad7a1;
    text-align: center;
    min-width: 85px;
}

#custom-typing-tool button.start-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.1s, background 0.3s;
    box-shadow: 0 4px 0 #2980b9;
    margin: 0;
}

#custom-typing-tool button.start-btn:active {
    transform: translateY(4px);
    box-shadow: 0 0px 0 #2980b9;
}

#custom-typing-tool button.start-btn:disabled {
    background: #95a5a6;
    box-shadow: 0 4px 0 #7f8c8d;
    cursor: not-allowed;
}

#custom-typing-tool .target-box {
    background: #f8f9fa;
    border: 2px dashed #bdc3c7;
    border-radius: 15px;
    padding: 30px 20px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

#custom-typing-tool .hindi-letter {
    font-size: 85px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1;
}

#custom-typing-tool .key-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 60px;
    font-size: 26px;
    font-weight: bold;
    color: #333;
    background: linear-gradient(to bottom, #ffffff 0%, #e0e0e0 100%);
    border: 1px solid #a0a0a0;
    border-bottom: 5px solid #a0a0a0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-transform: uppercase;
    transition: all 0.1s;
}

#custom-typing-tool .key-hint.pressed {
    transform: translateY(5px);
    border-bottom: 0px solid #a0a0a0;
    box-shadow: 0 0px 0px rgba(0,0,0,0.1);
    background: #d5d5d5;
}

#custom-typing-tool .hint-text {
    font-size: 15px;
    color: #7f8c8d;
    margin-bottom: 8px;
}

#custom-typing-tool .stats {
    display: flex;
    justify-content: space-around;
    background: #f1f2f6;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
}

#custom-typing-tool .stat-right { color: #27ae60; }
#custom-typing-tool .stat-wrong { color: #c0392b; }

#custom-typing-tool .flash-correct { background: #eafaf1 !important; border-color: #2ecc71 !important; }
#custom-typing-tool .flash-wrong { 
    background: #fdedec !important; 
    border-color: #e74c3c !important; 
    animation: toolShake 0.3s ease-in-out; 
}

@keyframes toolShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* --- DESKTOP LANDSCAPE LAYOUT --- */
@media (min-width: 768px) {
    #custom-typing-tool .typing-container {
        max-width: 850px; /* डेस्कटॉप पर चौड़ा हो जाएगा */
        padding: 40px;
    }
    
    #custom-typing-tool .app-layout {
        flex-direction: row; /* साइड-बाय-साइड लेआउट */
        align-items: stretch;
        gap: 30px;
    }

    #custom-typing-tool .typing-area {
        flex: 1.2; /* बॉक्स को ज़्यादा जगह मिलेगी */
    }

    #custom-typing-tool .control-panel {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 20px;
    }

    #custom-typing-tool .target-box {
        height: 100%;
        min-height: 250px;
    }

    #custom-typing-tool .hindi-letter {
        font-size: 110px; /* डेस्कटॉप पर अक्षर बड़ा दिखेगा */
    }

    /* कंट्रोल्स को एक के नीचे एक सेट किया गया है */
    #custom-typing-tool .controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    #custom-typing-tool select.time-select,
    #custom-typing-tool .timer,
    #custom-typing-tool button.start-btn {
        width: 100%;
        text-align: center;
    }

    #custom-typing-tool .stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px;
    }
}

/* Modal CSS (No changes) */
#custom-typing-tool .modal-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 20px;
}

#custom-typing-tool .modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

#custom-typing-tool .modal-box {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    transform: scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

#custom-typing-tool .modal-overlay.active .modal-box {
    transform: scale(1);
}

#custom-typing-tool .modal-box h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 20px;
}

#custom-typing-tool .score-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

#custom-typing-tool .score-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

#custom-typing-tool .score-item.accuracy {
    grid-column: span 2;
    background: #eafaf1;
    border: 1px solid #2ecc71;
}

#custom-typing-tool .score-label { font-size: 14px; color: #7f8c8d; margin-bottom: 5px; }
#custom-typing-tool .score-value { font-size: 24px; font-weight: bold; }
#custom-typing-tool .val-right { color: #27ae60; }
#custom-typing-tool .val-wrong { color: #c0392b; }
#custom-typing-tool .val-acc { color: #2ecc71; font-size: 28px; }

#custom-typing-tool .close-btn {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 0 #27ae60;
}

#custom-typing-tool .close-btn:active {
    transform: translateY(4px);
    box-shadow: 0 0px 0 #27ae60;
}/* End custom CSS */