        body {
            background: repeating-linear-gradient(
        45deg,
        #9B8EC7,
        #9B8EC7 40px,
        #f8b500 40px,
        #f8b500 80px
      );
            min-height: 100vh;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        .main-container {
            background: radial-gradient(circle at center, #fff8dc, #ffe4b5);
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
            margin: 20px auto;
            max-width: 800px;
        }
        
        .sentence-card {
            background: linear-gradient(145deg, #f8f9fa, #e9ecef);
            border-radius: 15px;
            padding: 30px;
            margin: 20px 0;
            border-left: 5px solid #667eea;
            transition: all 0.3s ease;
        }
        
        .sentence-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }
        
        .sinhala-text {
            font-size: 1.8rem;
            font-weight: 600;
            color: #2c3e50;
            text-align: center;
            margin-bottom: 20px;
        }
        
        .input-group {
            margin: 20px 0;
        }
        
        .form-control {
            border-radius: 10px;
            border: 2px solid #e9ecef;
            padding: 15px;
            font-size: 1.1rem;
            transition: all 0.3s ease;
        }
        
        .form-control:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
        }
        
        .btn-custom {
            background: linear-gradient(145deg, #667eea, #764ba2);
            border: none;
            border-radius: 10px;
            padding: 12px 30px;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .btn-custom:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
        }
        
        .feedback {
            padding: 15px;
            border-radius: 10px;
            margin: 15px 0;
            font-weight: 500;
            display: none;
        }
        
        .feedback.correct {
            background: linear-gradient(145deg, #d4edda, #c3e6cb);
            color: #155724;
            border-left: 4px solid #28a745;
        }
        
        .feedback.incorrect {
            background: linear-gradient(145deg, #f8d7da, #f5c6cb);
            color: #721c24;
            border-left: 4px solid #dc3545;
        }
        
        .progress-container {
            margin: 20px 0;
        }
        
        .progress {
            height: 10px;
            border-radius: 5px;
            background-color: #e9ecef;
        }
        
        .progress-bar {
            background: linear-gradient(145deg, #667eea, #764ba2);
            border-radius: 5px;
            transition: width 0.5s ease;
        }
        
        .score-display {
            background: linear-gradient(145deg, #f8b500, #fceabb);
            color: white;
            padding: 15px;
            border-radius: 10px;
            text-align: center;
            margin: 20px 0;
        }
        
        .report-card {
            background: white;
            border-radius: 15px;
            padding: 30px;
            margin: 20px 0;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            display: none;
        }
        
        .report-item {
            padding: 15px;
            margin: 10px 0;
            border-radius: 8px;
            border-left: 4px solid #667eea;
            background: #f8f9fa;
        }
        
        .grade {
            font-size: 3rem;
            font-weight: bold;
            text-align: center;
            margin: 20px 0;
        }
        
        .grade.A { color: #28a745; }
        .grade.B { color: #17a2b8; }
        .grade.C { color: #ffc107; }
        .grade.D { color: #fd7e14; }
        .grade.F { color: #dc3545; }
        
        .completion-animation {
            animation: bounce 0.6s ease-in-out;
        }
        
        @keyframes bounce {
            0%, 20%, 60%, 100% { transform: translateY(0); }
            40% { transform: translateY(-10px); }
            80% { transform: translateY(-5px); }
        }

        .hint-text {
            font-size: 0.9rem;
            color: #6c757d;
            margin-top: 10px;
            font-style: italic;
        }

        .answer-examples {
            background: #e3f2fd;
            padding: 10px;
            border-radius: 8px;
            margin-top: 10px;
            font-size: 0.9rem;
        }

        .timer {
            text-align: center;
            font-size: 1.2rem;
            color: #667eea;
            margin: 10px 0;
        }

        .mode-selection {
            display: flex;
            justify-content: center;
            margin-bottom: 20px;
        }

        .mode-btn {
            margin: 0 10px;
            border-radius: 30px;
            padding: 10px 20px;
            font-weight: 600;
        }

        .mode-btn.active {
            background: linear-gradient(145deg, #f8b500, #764ba2);
            color: white;
            border: none;
        }

        .stt-container {
            text-align: center;
            margin: 20px 0;
        }

        .stt-btn {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(145deg, #667eea, #764ba2);
            color: white;
            border: none;
            font-size: 2rem;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }

        .stt-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        }

        .stt-btn.listening {
            background: linear-gradient(145deg, #dc3545, #c82333);
            animation: pulse 1.5s infinite;
        }

        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
            70% { box-shadow: 0 0 0 15px rgba(220, 53, 69, 0); }
            100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
        }

        .stt-text {
            margin-top: 15px;
            font-size: 1.2rem;
            min-height: 30px;
            color: #495057;
        }

        .stt-status {
            margin-top: 10px;
            font-size: 0.9rem;
            color: #6c757d;
        }

        .browser-warning {
            background: #fff3cd;
            color: #856404;
            padding: 15px;
            border-radius: 10px;
            margin: 15px 0;
            display: none;
        }

        .debug-info {
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 5px;
            padding: 10px;
            margin-top: 10px;
            font-family: monospace;
            font-size: 0.9rem;
            display: none;
        }
        /*=========================================*/
        #nextLessonBtn {
          padding: 12px 24px;
          font-size: 16px;
          background-color: #9B8EC7; /* Green for celebration */
          color: white;
          border: none;
          border-radius: 8px;
          cursor: pointer;
          transition: background-color 0.3s ease;
        }

        #nextLessonBtn:hover {
          background-color: #BDA6CE;
        }
        /*=========================================*/
                /*----drop--Down--Instructions----------------------*/
        .spinner-border-sm {
            width: 1rem;
            height: 1rem;
        }
        #textContainer {
              display: none; /* Or 'none' to start hidden */
              border:2px solid #cbb09c !important;
              padding: 10px 15px;
              border-radius: 15px;
              background-color: skyblue;
        }
        .instructions{
              text-align: center;
              color: #ff6f61;
              font-size: 1em;
              /*background-color: rgba(255, 255, 255, 0.05);*/
              padding: 5px;
              border-radius: 8px;
              box-shadow: 0 0 20px #00f0ff; 
              animation: pulse 3s infinite;
            }
    /*------------------------------------------    */
        @media only screen and (max-width: 600px) {
          .input-group{
            display: flex;
            flex-direction: column;
          }  
          .input-group .form-control{
           max- width: 600px;
           width: 100%;
          }
  
        }