 /* Main Style*/
    @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap');
    /* Reset and General Styling */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    body {
        background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
        color: white;
        font-family: 'Poppins', sans-serif;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
    }

    /* ------------------- NEW HEADER STYLES ------------------- */
    header {
        background: rgba(0, 20, 40, 0.7);
        color: white;
        padding: 10px 0;
        position: sticky;
        top: 0;
        width: 100%;
        height: 80px;
        margin-bottom: 1px;
        border-bottom: rgba(0, 204, 255, 0.5) 1px solid;
        box-shadow: 0 4px 30px rgba(0, 204, 255, 0.1);
        backdrop-filter: blur(5px);
        z-index: 1000;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .logo-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        position: relative;
    }

    .logo-text {
        font-family: 'Orbitron', sans-serif;
        font-size: 1.8rem;
        letter-spacing: 0.2rem;
        color: #00ccff;
        text-shadow: 0 0 10px rgba(0, 204, 255, 0.5);
        margin-bottom: 5px;
    }
    img.logo {
        height: 90px;
        width: 90px;
        margin-right: 15px;
       
    }

    .header-content {
        display: flex;
        align-items: center;
        height: 100%;
    }
    
    .container {
         display: flex;
            justify-content: space-between; 
    }
    
    .left, .center, .right {
        display: flex;
        flex-direction: column;
        background: rgba(0, 20, 40, 0.7);
        border-radius: 15px;
        margin: 5px;
        border: 1px solid rgba(0, 204, 255, 0.3);
        box-shadow: 0 0 20px rgba(0, 204, 255, 0.2);
        padding: 20px;
        backdrop-filter: blur(5px);
        transition: all 0.3s ease;
    }
    
    .left {
          display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column; 
            width: 20%;
    }
    
    .center {
        width: 60%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
    }
    
    .right {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 20%;
        align-items: center;
        gap: 10px;
       
    }
    
    .modes {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
        width: 100%;
        margin: 10px 0;
        padding: 10px;
        color: #00ccff;
        font-family: 'Orbitron', sans-serif;
        letter-spacing: 0.1rem;
        background: rgba(0, 30, 60, 0.5);
        border-radius: 10px;
        border: 1px solid rgba(0, 204, 255, 0.2);
    }
    
    .mode-row {
        display: flex;
        gap: 5px;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .controls {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;
        width: 100%;
    }
    
    .timer-controls {
        display: flex;
        gap: 10px;
        width: 100%;
        justify-content: center;
        color: #00ccff;
        padding: 10px;
        background: rgba(0, 30, 60, 0.5);
        border-radius: 10px;
        border: 1px solid rgba(0, 204, 255, 0.2);
    }
    
    .timeOptions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        padding: 10px;
        margin: 10px 0;
        font-family: 'Orbitron', sans-serif;
        letter-spacing: 0.1rem;
        background: rgba(0, 30, 60, 0.5);
        border-radius: 10px;
        border: 1px solid rgba(0, 204, 255, 0.2);
    }
    
    .timeOptions label {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        cursor: pointer;
        color: #87e7ff;
        transition: all 0.2s;
    }
    
    .timeOptions label:hover {
        color: #00ccff;
    }
    
    .stringbox {
        border: 1px solid rgba(0, 204, 255, 0.5);
        box-shadow: inset 0 0 30px rgba(0, 204, 255, 0.1);
        color: #00ccff;
        padding: 20px;
        border-radius: 12px;
        text-align: center;
        font-size: 25px;
        line-height: 1.6;
        background-color: rgba(0, 30, 60, 0.5);
        width: 100%;
        max-width: 800px;
        max-height: 60vh;
        overflow-y: auto;
        white-space: normal;
        word-wrap: break-word;
        transition: all 0.3s ease;
    }
    
    .stringbox::-webkit-scrollbar {
        width: 6px;
    }
    
    .stringbox::-webkit-scrollbar-thumb {
        background-color: rgba(0, 204, 255, 0.3);
        border-radius: 3px;
    }
    
    .button {
        min-width: 70px;
        height: 30px;
        border-radius: 8px;
        border: none;
        font-size: 15px;
        font-family: 'Orbitron', sans-serif;
        letter-spacing: 0.1rem;
        color: #87e7ff;
        background: rgba(0, 204, 255, 0.1);
        border: 1px solid rgba(0, 204, 255, 0.5);
        box-shadow: 0 0 10px rgba(0, 204, 255, 0.1);
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 5px 10px;
    }

    .button2 {
        width: 40px;
        height: 30px;
        border-radius: 8px;
        border: none;
        font-size: 15px;
        font-weight: 500;
        color: #87e7ff;
        background: rgba(0, 204, 255, 0.1);
        border: 1px solid rgba(0, 204, 255, 0.5);
        box-shadow: 0 0 10px rgba(0, 204, 255, 0.1);
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .button:hover {
        background: rgba(0, 204, 255, 0.2);
        box-shadow: 0 0 15px rgba(0, 204, 255, 0.2);
        transform: translateY(-2px);
    }
    .button2:hover {
        background: rgba(0, 204, 255, 0.2);
        box-shadow: 0 0 15px rgba(0, 204, 255, 0.2);
        transform: translateY(-2px);
    }
    
    .button:active {
        transform: translateY(0);
    }
    .email{
        width: 100px;
        height: 40px;
        border-radius: 8px;
        border: none;
        font-size: 15px;
        font-weight: 500;
        color: #87e7ff;
        background: rgba(0, 204, 255, 0.1);
        border: 1px solid rgba(0, 204, 255, 0.5);
        box-shadow: 0 0 10px rgba(0, 204, 255, 0.1);
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .email:hover {
        background: rgba(0, 204, 255, 0.2);
        box-shadow: 0 0 15px rgba(0, 204, 255, 0.2);
        transform: translateY(-2px);
    }
    
    .char.default { color: #87e7ff; text-shadow: 0 0 5px rgba(135, 231, 255, 0.3); }
    .char.correct { color: #4cff4c; text-shadow: 0 0 5px rgba(76, 255, 76, 0.5); }
    .char.incorrect { color: #ff4c4c; text-shadow: 0 0 5px rgba(255, 76, 76, 0.3); }
    
    .cursor {
        display: inline-block;
        width: 3px;
        height: 25px;
        background-color: #00ccff;
        animation: blink 1s step-end infinite;
        position: relative;
        top: 3px;
    }
    
    @keyframes blink {
        0%, 100% { opacity: 1; }
        50% { opacity: 0; }
    }
    
    .word { 
        display: inline-block; 
        transition: transform 0.1s ease;
    }
    
    .shake {
        animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    }
    
    @keyframes shake {
        10%, 90% { transform: translateX(-1px); }
        20%, 80% { transform: translateX(2px); }
        30%, 50%, 70% { transform: translateX(-4px); }
        40%, 60% { transform: translateX(4px); }
    }
    
    .ghost-word {
        animation: ghostBlink 1s infinite;
    }
    
    @keyframes ghostBlink {
        0%, 40% { opacity: 0; }
        60%, 100% { opacity: 1; }
    }
    
    .pressed {
        transform: scale(0.95) translateY(1px);
        background-color: rgba(0, 204, 255, 0.3);
        transition: all 0.1s;
    }
    #toast {
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(0, 30, 60, 0.9);
        color: #00ccff;
        padding: 12px 24px;
        border-radius: 25px;
        box-shadow: 0 0 20px rgba(0, 204, 255, 0.3);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 1000;
        border: 1px solid rgba(0, 204, 255, 0.3);
        font-size: 14px;
    }
    .stats {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        padding: 15px;
        background: rgba(0, 30, 60, 0.5);
        border-radius: 10px;
        border: 1px solid rgba(0, 204, 255, 0.2);
    }
     .ad{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        width: 100%;
        padding: 15px;
        background: rgba(0, 30, 60, 0.5);
        border-radius: 10px;
        border: 1px solid rgba(0, 204, 255, 0.2);
    }
    
    .stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .stat-valuee {
        font-size: 50px;
        font-weight: 600;
        color: #00ccff;
        font-family: 'DS-Digital', sans-serif;
        text-shadow: 0 0 10px rgba(0, 204, 255, 0.3);
    }
    
    .stat-label {
        font-size: 14px;
        color: #87e7ff;
        opacity: 0.8;
        font-family: 'Orbitron', sans-serif;
        letter-spacing: 0.1rem;
    }
    
    input[type="radio"] {
        cursor: pointer;
        width: 16px;
        height: 16px;
        accent-color: #00ccff;
    }
    
    .ghost-controls {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 10px;
        padding: 10px;
        background: rgba(0, 30, 60, 0.5);
        border-radius: 10px;
        border: 1px solid rgba(0, 204, 255, 0.2);
    }
    
    .ghost-controls label {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 14px;
        color: #87e7ff;
    }
    
    .ghost-controls input[type="range"] {
        width: 100%;
        margin-top: 5px;
        accent-color: #00ccff;
    }

    .timer {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 70px;
        font-family: 'DS-Digital', sans-serif;
        font-weight: 600;
        color: #00ccff;
        text-shadow: 0 0 10px rgba(0, 204, 255, 0.3);
    }

    /* Virtual Keyboard */
    .virtual_keyboard {
        display: flex;
        width: 100%;
        max-width: 800px;
        flex-direction: column;
        margin-top: 10px;
        background: rgba(0, 31, 63, 0.3);
        backdrop-filter: blur(10px);
        padding: 10px;
        border-radius: 15px;
        border: 1px solid rgba(0, 204, 255, 0.3);
        box-shadow: 
            0 0 10px rgba(0, 204, 255, 0.2),
            inset 0 0 8px rgba(0, 204, 255, 0.1);
    }

    .row {
        display: flex;
        justify-content: center;
        width: 100%;
        margin: 1px 0;
    }

    .key {
        flex: 1;
        min-width: 30px;
        height: 40px;
        margin: 2px;
        background: rgba(0, 31, 63, 0.5);
        color: #00ccff;
        border: none;
        font-family: 'Orbitron', sans-serif;
        letter-spacing: 0.1rem;
        border-radius: 6px;
        font-size: 12px;
        cursor: pointer;
        text-align: center;
        transition: 
            transform 0.1s ease, 
            background-color 0.2s ease;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: 
            0 1px 3px rgba(0, 0, 0, 0.3),
            inset 0 0 3px rgba(0, 204, 255, 0.1);
    }

    .key:hover {
        background: rgba(0, 60, 120, 0.6);
    }

    .key.active {
        transform: scale(0.95) translateY(2px);
        background: rgba(0, 100, 200, 0.7);
        color: white;
    }

    .wide-key {
        flex: 2;
        font-size: 11px;
    }

    .extra-wide-key {
        flex: 2;
        font-size: 11px;
    }

    .space-key {
        flex: 6;
    }

    .shift-char {
        font-size: 10px;
        position: absolute;
        top: 3px;
        left: 3px;
        opacity: 0.7;
    }

    .base-char {
        font-size: 14px;
    }

    .special-key {
       background: rgba(0, 31, 63, 0.5);
       padding: 4px 5px;
       
    }

    /* Disabled Elements */
    button:disabled, 
    input[type="radio"]:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

    /* Active Button State */
    .button.active {
        background-color: #1e0a48;
        color: white;
        box-shadow: 0 0 10px rgba(183, 60, 244, 0.5);
    }

    /* Screen Recorder Button */        
        #recordButton.recording {
            background-color: #ff1e13;
            animation: pulse 1.5s infinite;
            border: none;
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }
        
        #toast.show {
            visibility: visible;
            opacity: 1;
        }

    /* Internet Connection Warning Styles */
    .connection-warning {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s ease;
        font-family: 'Orbitron', sans-serif;
    }

    .connection-warning.active {
        opacity: 1;
        pointer-events: all;
    }

    .connection-icon {
        font-size: 5rem;
        color: #ff4c4c;
        margin-bottom: 20px;
        animation: pulse 2s infinite;
    }

    .connection-title {
        font-size: 2.5rem;
        color: #ff4c4c;
        margin-bottom: 10px;
        text-align: center;
        text-shadow: 0 0 10px rgba(255, 76, 76, 0.5);
    }

    .connection-message {
        font-size: 1.2rem;
        color: #87e7ff;
        max-width: 80%;
        text-align: center;
        margin-bottom: 30px;
    }

    .connection-progress {
        width: 80%;
        max-width: 400px;
        height: 10px;
        background: rgba(255, 76, 76, 0.2);
        border-radius: 5px;
        overflow: hidden;
        margin-bottom: 30px;
    }

    .connection-progress-bar {
        height: 100%;
        width: 0%;
        background: linear-gradient(90deg, #ff4c4c, #ff8c8c);
        transition: width 0.3s ease;
    }

    .connection-tip {
        font-size: 0.9rem;
        color: #87e7ff;
        opacity: 0.7;
        margin-top: 20px;
        text-align: center;
        max-width: 80%;
    }

    @keyframes glitch {
        0% { transform: translate(0); }
        20% { transform: translate(-5px, 5px); }
        40% { transform: translate(-5px, -5px); }
        60% { transform: translate(5px, 5px); }
        80% { transform: translate(5px, -5px); }
        100% { transform: translate(0); }
    }

    .glitch-effect {
        animation: glitch 0.5s infinite;
    }

    .connection-countdown {
        font-size: 1.5rem;
        color: #00ccff;
        margin-top: 20px;
        font-family: 'DS-Digital', sans-serif;
    }

    /* Responsive Styles */
    @media (max-width: 1200px) {
        .container {
            flex-direction: column;
            align-items: stretch;
        }
        .left, .center, .right {
            width: 100%;
            margin: 8px 0;
            flex-direction: row;
            justify-content: center;
            align-items: stretch;
        }
        .center {
            flex-direction: column;
            align-items: center;
        }
    }

    @media (max-width: 900px) {
        .logo-text {
            font-size: 1.3rem;
        }
        img.logo {
            height: 90px;
            width: 90px;
        }
        .timer {
            font-size: 45px;
        }
        .stat-valuee {
            font-size: 32px;
        }
         .container {
            flex-direction: column;
            align-items: stretch;
        }
        .left, .center, .right {
            width: 100%;
            padding: 10px;
            margin: 4px 0;
            flex-direction: column;
            align-items: center;
        }
        .stringbox {
            font-size: 18px;
            padding: 12px;
        }
        .cursor {
            height: 20px;
            width: 3px;
        }
        .virtual_keyboard {
            max-width: 100%;
            padding: 6px;
        }
    }

    @media (max-width: 700px) {
        header {
            height: 60px;
            padding: 5px 0;
        }
        .logo-text {
            font-size: 1rem;
            letter-spacing: 0.1rem;
        }
        img.logo {
            height: 70px;
            width: 70px;
            margin-right: 8px;
        }
        .container {
            flex-direction: column;
            align-items: stretch;
        }
        .left, .center, .right {
            width: 100%;
            padding: 10px;
            margin: 4px 0;
            flex-direction: column;
            align-items: center;
        }
        .stringbox {
            font-size: 15px;
            padding: 8px;
            max-width: 100%;
        }
        .cursor {
            height: 17px;
            width: 2px;
        }
        .timer {
            font-size: 32px;
        }
        .stat-valuee {
            font-size: 22px;
        }
        .virtual_keyboard {
            padding: 4px;
            border-radius: 8px;
        }
        .key {
            min-width: 22px;
            height: 28px;
            font-size: 10px;
            border-radius: 4px;
        }
        .wide-key, .extra-wide-key {
            font-size: 9px;
        }
    }

    @media (max-width: 500px) {
        body {
            font-size: 13px;
        }
        header {
            height: 45px;
            padding: 2px 0;
        }
        .logo-text {
            font-size: 0.8rem;
        }
        img.logo {
            height: 40px;
            width: 40px;
            margin-right: 4px;
        }
        .container {
            padding: 0 2px;
        }
        .left, .center, .right {
            padding: 6px;
            margin: 2px 0;
        }
        .stringbox {
            font-size: 12px;
            padding: 4px;
        }
        .timer {
            font-size: 20px;
        }
        .stat-valuee {
            font-size: 14px;
        }
        .virtual_keyboard {
            padding: 2px;
            border-radius: 5px;
        }
        .key {
            min-width: 14px;
            height: 18px;
            font-size: 8px;
            border-radius: 2px;
        }
        .wide-key, .extra-wide-key {
            font-size: 7px;
        }
        .connection-title {
            font-size: 1.2rem;
        }
        .connection-message, .connection-tip {
            font-size: 0.8rem;
        }
        .connection-countdown {
            font-size: 1rem;
        }
    }