﻿


        .question {
            font-size: 18px;
            margin: 15px 0;
        }

        .word-box {
            display: inline-block;
            background-color: #e4e4e4;
            margin: 5px;
            padding: 8px;
            border-radius: 5px;
            font-weight: bold;
        }

.clssLogoHomeDiv {
text-align:center;padding:10px 0;
}
    .clssLogoHomeDiv img {
    height:30px;
    }
.questionContainerLabelText {
    color:#ed1b2f;
} 
.syntax {
            display: flex;
            justify-content: space-between;
            margin-top: 15px;
            padding: 10px;
            background-color: #fff;
            border-radius: 5px;
            flex-wrap: wrap;
            border:solid 1px #ed1b2f;
        }

        .syntax span {
            background-color: #29296e;
            color: white;
            padding: 8px;
            border-radius: 5px;
            font-weight: bold;
            margin: 5px;
            flex: 1;
            text-align: center;
        }
.hint {
            color: #ed1b2f!important;
            font-style: italic;
            margin-top: 10px;
            font-size: 14px;
}
.correctArticle {
color:#000!important;
}
.wrongArticle{
color:#ed1b2f!important;
}
.correct {
text-align:center;
color:#31a508!important;
}
.examples {
margin-top:10px;
}        
ul {
            line-height: 1.8;
        }
        .wrong {
            border-color: red;
            color: red;
            font-weight: bold;
        }
.category {
font-weight:bold;
}
        #next-btn {
            margin-top: 15px;
            padding: 10px 20px;
            background-color: #ed1b2f;
            color: #fff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            display: none;
            transition: background-color 0.3s, transform 0.2s;
            font-size: 1rem;
        }
        #next-btn:hover {
            background-color: #29296d;
            transform: translateY(-2px);
        }
        .options {
            margin-top: 20px;
        }
        .option-btn {
            display: block;
            padding: 12px 20px;
            margin: 8px 0;
            background-color: #000;
            color: #fff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            width: 100%;
            max-width: 500px;
            text-align: center;
            transition: background-color 0.3s, transform 0.2s;
            font-size: 1rem;
            /*text-shadow: 1px 1px 2px #000;*/
        }
        .option-btn:hover {
            background-color: #fff;
            color: #000;
            transform: translateY(-2px);
        }





.table-container {
            width: 100%;
            overflow: auto; /* Enables both horizontal and vertical scrolling */
            cursor: grab; /* Changes the cursor to indicate that it's draggable */
        }



            /* Make the first column sticky */
            .table-container table tr th:first-child, .table-container table tr td:first-child {
                position: sticky;
                left: 0;
                z-index: 3; /* Ensures the first column stays above other content */
                /*width:20px!important*/
            }

        /* Make the top row sticky */
        .table-container table tr th {
            position: sticky;
            top: 0;
            z-index: 2; /* Ensures the top row stays above other content */
        }

        /* Optional: Add background color for the sticky first column */
        .table-container table tr td:first-child {
            background-color: #f9f9f9;
        }

        /* Optional: Active state for dragging */
        .table-container:active {
            cursor: grabbing;
        }

        /* Popup styles */
        .header-popup {
            position: fixed;
            top: 10px;
            left: 50%;
            transform: translateX(-50%);
            padding: 10px 20px;
            background-color: #333;
            color: #fff;
            border-radius: 5px;
            opacity: 0;
            transition: opacity 0.5s ease-in-out;
            z-index: 100; /* Ensure it appears on top */
        }

            .header-popup.show {
                opacity: 1;
            }




        .visual-section {
            margin: 5px 0px 20px 0;
            padding: 10px;
            background-color: #ed1b2f!important;
            border: 1px solid #ed1b2f;
            border-radius: 8px;
            box-sizing: border-box;
        }
            .visual-section h3,.visual-section p {
            color:#fff;
            }
        .example {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            margin: 10px 0;
        }
        .box {
            padding: 5px; /* Reduced padding */
            border: 2px solid #000!important;
            margin: 3px; /* Reduced margin */
            border-radius: 4px;
            text-align: center;
            font-weight: bold;
            background-color: #fff!important;
            flex: 1 1 15%; /* Adjusted flex to fit in a single row */
            min-width: 50px; /* Reduced min-width */
            font-size: 14px; /* Reduced font size */
            box-sizing: border-box;
        }
        .arrow {
            margin: 2px; /* Reduced margin */
            font-size: 18px; /* Reduced font size */
            color: #fff;
            flex: 0 1 5%; /* Adjusted flex */
            text-align: center;
        }

input {
            padding: 10px;
            /*width: calc(100% - 22px);*/
            border: 1px solid #ed1b2f;
            border-radius: 4px;
            margin-bottom: 10px;
            margin-top: 10px;
            width:100%;
        }
.clsSelectButtons {
    margin-top:90px;
}
        .highlight {
            background-color: #e0f7fa;
        }
        .highlightArticle {
            background-color: #ed1b2f;
            padding:0 5px;
            color:#fff;
        }
        .highlightArticleRight {
            background-color: #000;
            padding:0 5px;
            color:#fff;
        }
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}
html, body {
            margin: 0;
            /*overflow: visible;
            touch-action: none;*/ 
            /* Prevent default touch actions */
        }
body {
    user-select: none;
    background: linear-gradient(135deg, #fff 0%, #fff 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.container {
    width: 400px;
    min-height:100vh;
}

.header {
            display: flex;
    font-size: 26px;
    font-weight: 700;
    color: #ed1b2f;
    margin-bottom: 20px;
}
.header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
.cardLanguageLevel {
    background: linear-gradient(135deg, #29296d 0%, #29296d 100%);
    border-radius: 10px;
    /*padding: 20px;
            margin-bottom: 20px;*/
    color: white;
    text-align: center;
    padding-top: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: inline-block;
    width: 50px;
    height: 50px;
    font-size: 20px;
}

.card {
    background: linear-gradient(180deg, #29296d 0%, #29296d 100%);
    border-radius: 20px;
    padding: 10px 20px;
    margin-bottom: 20px;
    color: white;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

    .card:hover {
        transform: scale(1.05);
    }

    .card h1 {
        font-size: 28px;
        font-weight: 600;
        padding:0px;
        margin:0px
    }

    .card p {
        font-size: 18px;
        font-weight: 300;
        padding:0px;
        margin:0px
    }

.subjects {
    display: flex;
    flex-wrap: wrap; /* This allows the subjects to wrap to the next line */
    justify-content: space-around;
    margin-bottom: 30px;
}

.subject {
    text-align: center;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex: 1 1 35%; /* Flex basis to handle the responsive layout */
    margin: 10px;
    transition: transform 0.3s ease;
}

    .subject:hover {
        transform: translateY(-10px);
    }

    .subject img {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }

    .subject p {
        font-size: 16px;
        color: #333;
        margin-top: 10px;
    }
    .subject a {
        text-decoration: none;
    }

.video-course {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    background: linear-gradient(0deg, #29296d 0%, #ed1b2e 100%);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;

}

    .video-course:hover {
        transform: translateY(-10px);
    }

    .video-course img {
        height: 60px;
        border-radius: 50%;
        margin-right: 15px;
    }

    .video-course .info {
        display: flex;
        flex-direction: column;
    }

        .video-course .info h4 {
            font-size: 20px;
            margin-bottom: 5px;
            font-weight: 600;
            color: #fff;
        }

        .video-course .info p {
            font-size: 14px;
            color: #fff;
        }

.nav-bar {
    z-index:10;
    display: flex;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 15px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 15px 15px 0 0;
}

    .nav-bar img {
        width: 30px;
        height: 30px;
    }

    .nav-bar a {
        text-align: center;
        text-decoration: none;
        color: #29296d;
        font-size: 14px;
    }

        /* Side Panel Styling */
.side-panel {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    background-color: #fff;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

    .side-panel a {
        padding: 10px 15px;
        text-decoration: none;
        font-size: 18px;
        color: #ed1b2f;
        display: block;
        transition: 0.3s;
    }

        .side-panel a:hover {
            color: #333;
        }

    .side-panel .close-btn {
        position: absolute;
        top: 15px;
        right: 25px;
        font-size: 36px;
    }

.profile-options {
    margin-top: 20px;
    padding-left: 15px;
}

    .profile-options label {
        display: block;
        margin-bottom: 5px;
        font-weight: 600;
        font-size: 16px;
        color: #333;
    }

    .profile-options input {
        padding: 10px;
        margin: 5px 0;
        width: 90%;
        border: 1px solid #ccc;
        border-radius: 8px;
        background-color: #f9f9f9;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

.update-btn {
    padding: 10px 15px;
    font-size: 14px;
    color: white;
    background-color: #ed1b2f!important;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    width: 90%;
}

    .update-btn:hover {
        background-color: #e04444!important;
    }

.bottom-buttons {
    display: flex;
    justify-content: space-between;
    width: 90%;
    position: absolute;
    bottom: 80px;
    left:10px;
    text-align:center;
}

.logout-btn, .change-password-btn {
    background-color: #000;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display:inline-block;
}

    .logout-btn:hover, .change-password-btn:hover {
        background-color: #fff;
    color: #000;
    }

.bottom-buttons .logout-btn {
    margin-left: auto;
}

.header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #333;
}

.back-button {
    font-size: 24px;
    text-decoration: none;
    color: #ed1b2f;
}

/* Material section */
        .materials-section {
            background: white;
            border-radius: 20px;
            padding: 20px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }

        .materials-section img {
            width: 100px;
            height: auto;
            display: block;
            margin: 0 auto 20px;
        }

        .tabs {
            display: flex;
            justify-content: space-around;
            margin-bottom: 20px;
        }

        .tab {
            padding: 10px 15px;
            background-color: #f9f9f9;
            border-radius: 20px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            color: #333;
            transition: background-color 0.3s ease;
        }

        .tab:hover {
            background-color: #ececec;
        }

        .tab.active {
            background-color: #ed1b2f;
            color: #fff;
        }

        .materials-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
            width: 360px;
        }

        .material-item {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: flex-start;
            background-color: #fff;
            border-radius: 15px;
            padding: 15px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            position: relative;
            
        }

        .material-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        }

        .material-header {
            display: flex;
            justify-content: space-between;
            width: 100%;
        }

        .material-header div {
            display: flex;
            flex-direction: column;
        }

        .material-header h3 {
            font-size: 16px;
            font-weight: 600;
            color: #333;
            margin-bottom: 5px;
        }

        .material-header p {
            font-size: 14px;
            color: #888;
        }

        .progress-circle {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: 600;
            color: #fff;
            background: conic-gradient(
                #ed1b2f calc(var(--progress) * 1%), 
                #eaeaea 0
            );
            position: relative;
        }

        .progress-circle span {
            position: absolute;
            font-size: 16px;
            font-weight: 600;
            color: #333;
        }

        /* Topics inside the material-item */
        .topics {
            display: none;
            padding-top: 10px;
            width: 100%;
        }

        .topics p {
            margin: 25px 0;
            font-size: 14px;
            color: #666;
            padding-left: 20px;
            border-left: 2px solid #ed1b2f;
        }
            .topics p a {
                text-decoration:none;
            color: #666;
            }
.chat-box {
    height: 55vh;
}
/*.content-section {
    overflow:scroll!important
}*/
        .content {
            background-color: #fff;
            border: 2px solid #ed1b2f;
            padding: 20px 5px 20px 5px;
            width: 100%;
            border-radius: 8px;
        }
            .content ul {
            padding-left:20px;
            }
.content-section h2 {
    font-size: 22px;
    font-weight: 600;
    color: #ed1b2f;
    
}
.content-section ul {
padding-left:20px;
}
        .alphabet-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 10px;
        }
        .alphabet-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
            cursor: pointer;
        }
        .alphabet-item:hover {
            background-color: #ed2024;
        }
        .play-icon {
            width: 20px;
            height: 20px;
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8 5v14l11-7z"/></svg>');
            background-size: contain;
            background-repeat: no-repeat;
        }

        #gameContainer {
            display: flex;
            flex-direction: column;
            align-items: center;
            background-color: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
        }

        canvas {
            border: 2px solid #000;
            background-color: #fff;
        }

        #startButton {
            transition: background-color 0.3s;
            padding: 10px 15px;
            font-size: 14px;
            color: white;
            background-color: #ed1b2f;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            margin-bottom:10px;
            width: 90%;
        }

            #startButton:hover {
                background-color: #333;
            }

        #scoreBoard {
            font-size: 20px;
            color: #d32f2f;
            margin-bottom: 10px;
        }

        #speedControl {
            margin-bottom: 20px;
            font-size: 20px;
        }

                /* Buttons for Learning and Practicing */
        .action-buttons {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-top: 20px;
        }
            .action-buttons a {
            text-decoration:none;
            }

        .action-button {
            background-color: #ed1b2f;
            color: white;
            border: none;
            padding: 15px;
            border-radius: 10px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.3s ease;
            text-align: center;
        }

        .action-button:hover {
            background-color: #e04444;
        }

        
        .tblListing {
            width: 400px;
            max-width: 100%;
            border-collapse: collapse;
            border: 1px solid #ed1b2f;
        }
        .tblListing th, td {
            border: 1px solid #ed1b2f;
            padding: 8px 12px;
            text-align: left;
        }
        .tblListing th {
            background-color: #ed1b2f;
            color: #fff;
        }
        .tblListing td {
            color: #333;
        }
        
        #gameContainerGreetings {
            background-color: #ed1b2f; /* Primary color */
            padding: 20px;
            border-radius: 10px;
            /*box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3);*/
            box-sizing: border-box;
            width: 400px;
            max-width: 100%;
            color: #fff;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        #instructions {
            margin-bottom: 20px;
            text-align: center;
            font-size: 16px;
        }
        .match-section {
            display: flex;
            justify-content: space-between;
            width: 100%;
            margin-bottom: 20px;
        }
        .column {
            width: 45%;
        }
        .column h2 {
            text-align: center;
            color: #fff;
            border-bottom: 2px solid #fff;
            padding-bottom: 5px;
        }
        .draggable {
            background-color: #fff;
            color: #ed1b2f;
            padding: 10px 5px;
            margin: 15px 0;
            border: 2px solid #ed1b2f;
            border-radius: 5px;
            cursor: grab;
        }
        .droppable {
            text-align:right;
            background-color: #f2f2f2;
            color: #ed1b2f;
            padding: 10px 5px;
            margin: 15px 0;
            border: 2px dashed #ed1b2f;
            border-radius: 5px;
            min-height: 20px;
            display: flex;
            align-items: right;
            justify-content: right;
        }
        .droppable.correct {
            background-color: #d4edda;
            border-color: #28a745;
            color: #155724;
        }
        .droppable.incorrect {
            background-color: #f8d7da;
            border-color: #dc3545;
            color: #721c24;
        }
        #feedback {
            margin-top: 10px;
            font-size: 16px;
            text-align: center;
            color: #fff;
            font-weight: bold;
            
        }
        #feedbackArticle {
            margin-top: 10px;
            font-size: 16px;
            text-align: center;
            color: #fff;
            font-weight: bold;
            
        }
        #nextButton {
            padding: 10px 20px;
            font-size: 16px;
            background-color: #fff;
            color: #ed1b2f;
            border: 2px solid #ed1b2f;
            border-radius: 5px;
            cursor: pointer;
            display: none;
            transition: background-color 0.3s, color 0.3s;
        }
        #nextButton:hover {
            background-color: #ed1b2f;
            color: #fff;
        }

        
        select, button {
            padding: 10px;
            width: 100%;
            border: 1px solid #ed1b2f;
            border-radius: 4px;
            margin: 10px 0;
            font-size: 16px;
        }
        button {
            background-color: #ed1b2f;
            color: #fff;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        button:hover {
            background-color: #29296d;
        }
        #feedback {
        }
@media (max-width: 768px) {
    /*.subject {
                flex: 1 1 100%; 
            }*/
    .syntax {
                flex-direction: column;
                align-items: stretch;
            }
    .progress-circle {
                width: 40px;
                height: 40px;
            }

            .progress-circle span {
                font-size: 12px;
            }

            .material-header h3 {
                font-size: 14px;
            }

            .material-header p {
                font-size: 12px;
            }

            .topics p {
                font-size: 12px;
            }
            .action-button {
                font-size: 16px;
                padding: 12px;
            }
             .nav-bar img {
                width: 25px;
                height: 25px;
            }

            .nav-bar a {
                font-size: 12px;
            }
}
@media (max-width: 600px) {
            #gameContainer {
                width: 100vw;
                justify-content: center;
                padding: 0;
                box-shadow: none;
            }

            canvas {
                width: 90vw;
                height: 100vw;
                border: none;
            }

            #startButton {
                font-size: 16px;
                padding: 10px 20px;
            }

            #scoreBoard {
                font-size: 16px;
            }

            #speedControl {
                width: 90vw;
            }
            .box {
                flex: 1 1 100%; /* Full width on small screens */
                min-width: auto;
            }
            .arrow {
                font-size: 16px;
                flex: 1 1 20px; /* Reduce arrow size */
            }
            
            .option-btn, #next-btn {
                font-size: 14px;
                padding: 8px;
            }
        }
@media (max-width: 480px) {
            .syntax span {
                font-size: 14px;
            }
        }
@media (max-width:400px) {
    .container {
    width: 100%;
}
    .tblListing {
                width: 100%;
            }
    #gameContainerGreetings {
                width: 100%;
                padding: 10px;
            }
            .match-section {
                flex-direction: column;
                align-items: center;
            }
            .column {
                width: 100%;
            }

}
@media (max-width:380px) {
        
        .materials-list {
            width: 100%;
        }
        .content {
            width: 100%;
        }
            }

