/* Google Font: Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-color: #0f172a; /* Dark Blue like OpenTyper */
    --card-bg: #1e293b;
    --text-color: #f8fafc;
    --accent-color: #38bdf8;
    --success: #22c55e;
    --error: #ef4444;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header Design */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #334155;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 50px; /* Logo 2.png size */
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

.btn-signup {
    background: var(--accent-color);
    color: #000;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
}

/* Typing Box Design */
.typing-box {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}
/* --- Mobile Responsive Rules --- */

@media (max-width: 768px) {
    /* Header को एडजस्ट करें */
    header {
        flex-direction: column;
        padding: 15px;
    }

    .logo img {
        height: 40px;
        margin-bottom: 15px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    nav a {
        margin-left: 0;
        font-size: 14px;
        padding: 5px 10px;
    }

    .btn-signup {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    /* Main Container और Typing Box */
    .container {
        margin: 20px auto;
        padding: 15px;
    }

    h1 {
        font-size: 2rem !important;
    }

    .typing-box {
        padding: 20px;
    }

    /* Stats (Time, WPM, Accuracy) को मोबाइल पर एक लाइन में या छोटा करें */
    .typing-box div[style*="display: flex"] {
        flex-wrap: wrap;
        gap: 15px;
    }

    #text-display {
        font-size: 1.1rem !important;
        line-height: 1.4;
    }
}
/* --- Updated Header for Full Responsiveness --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: #0f172a;
    border-bottom: 1px solid #334155;
    flex-wrap: wrap; /* मोबाइल पर मेनू को नीचे भेजने के लिए */
}

.logo img {
    height: 45px;
    max-width: 100%;
}

nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

nav a {
    color: #f8fafc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.btn-signup {
    background: #38bdf8;
    color: #000 !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
}

/* मोबाइल के लिए विशेष नियम */
@media (max-width: 768px) {
    header {
        justify-content: center; /* सब कुछ सेंटर में */
        text-align: center;
    }

    .logo {
        width: 100%;
        margin-bottom: 15px;
    }

    nav {
        justify-content: center;
        width: 100%;
        gap: 10px;
        flex-wrap: wrap; /* बटन ज्यादा होने पर लाइन बदल लेंगे */
    }

    nav a {
        font-size: 13px;
    }
}