[contenteditable] {
  -webkit-user-modify: read-write-plaintext-only;
}


hr {
    margin: 20px 0;
    height: 5px;
    background: linear-gradient(to right, #7CC263, #BDE0B0, #7CC263);
}

.header {
    margin: 20px 3%;
    display: flex;
    justify-content: center;
    font-weight: bold;
}

.img--container {
    margin: 0 3%;
}

.study--record {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 5px auto;
}

.study--record div {
    background-color: #DDEBF7;
    padding: 10px;
    text-align: center;
    margin: 0 3%;
}


.speed--controller {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px auto;
}

.speed--description {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.speed_control_items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.controlBtns--container {
    display: flex;
    position: relative;
    justify-content: center;
    gap: 10px;
}

.control--text {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 20px;
    margin: 0 3%;
}

.controlBtns-item {
    padding: 8px 20px;
    border-radius: 20px;
    background-color: #ED7D32;
    color: white;
    cursor: pointer;
    
}

.playButton {
    /*padding-right: 50px;*/
   
}

.playBtnContainer {
     position: relative;
}
.repeatSelectContainer {
    position: absolute;
    height: 60%;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    background-color: transparent;
    padding-right: 10px;
    display: flex;
    align-items: center;
}

.repeatSelect {
    position: relative;
    z-index: 99;
    height: 60%;
    border: none;
    background-color: transparent;
    color: white;
    cursor: pointer;
}



.hiddendata {
    background-color: #DDEBF7;
    padding: 1px;
    line-height: 1.5;
    margin: 20px 3%;
}



.questions--container{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.questions--item{
    display: flex;
    flex-direction: column;
    background-color: #E2F0D9;
    
   
}


.questions--item-blue {
    display: flex;
    flex-direction: column;
    background-color: #DAE3F4;
    
}


.below--chatarea {
    margin: 0 3%;
    padding: 0;
    background-color: #E2F0D9;
}


.chat--area-container textarea {
    
    padding: 10px 15px;
    width: 90%;
    border-radius: 30px;
    border: 2px solid #7CC263;
    font-size: 15px;
    margin: 0 8%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 40px;
    white-space: pre-wrap; 
    resize: vertical; 
    overflow-y: auto;
    
    
}

.chat--area-container textarea:focus, .chat--area-container textarea:active {
    border: none;
}

.hidden-scrollbar {
    overflow-y: scroll; /* Ensure the content is scrollable */
    scrollbar-width: none; /* For Firefox */
}

.hidden-scrollbar::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}

.chat--area-container, .correct--answer-container, .original--answer-container, .rephrased--answer-container{
    display: flex;
    position: relative;
    margin: 2px 0 5px 0;
    background-color: #E2F0D9;
    line-height: 1.5px;
    
}

.chat--area-send {
    width: 100px;
    background-color: #ED7D32;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 16px;
}

.correct--answer-container .importedText, .rephrased--answer-container .rephrasedText, .original--answer-container .original-answer {
    
    padding: 10px;
    width: 100%;
    border: none;
    background-color: white;
    border-radius: 0;
    height: auto;
}


.chatlogs {
    display: flex;
    padding: 20px;
    width: 100%;
    border: none;
    background-color: white;
    height: 600px;
    overflow-y: auto;
    position: relative;
    border-radius: 3px;
}


#chatlogs--container {
    position: relative;
}





.no-disc li {
    position: relative;
}

.student .import-btn {
    position: absolute;
    bottom: -5px;
    right: -10px;
    width: 20px;
    opacity: .6;
    
}

.teacher .import-btn {
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 20px;
    opacity: .6;
    
}
.student, .teacher {
    position: relative;
}


.student .chat--text, .teacher .chat--text{
    position: relative;
}



.student .chat--text {
    display: inline-block;
    
    padding: 15px;
    text-align: left;
    background-color: #FBFDF4;
    background-color: rgba(226, 240, 217, .3);
    border-radius: 16px 16px 16px 0;
}

.teacher .chat--text {
    display: inline-block;
    float: right;
    padding: 15px;
    text-align: right;
    background-color: rgba(241, 241, 241, 0.5);
    border-radius: 16px 16px 0 16px;
}

.studentedit {
    display: none;
}

.teacheredit {
    display: none;
}

.chat--content-left {
    flex: 0 0 25%;
    background-color: lightgray;
    padding: 10px;
    box-sizing: border-box;
}

.chat--content-right {
    flex: 1; 
    overflow-y: auto; 
    background-color: white;
    padding: 10px;
    box-sizing: border-box;
}
.import-btn img{
    cursor: pointer;
}
.student .avatar {
    position: absolute;
    left: -60px;
    top: -3px;
    border: 1px solid #ccc;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(255, 192, 203, 0.6);
    
}

.student .name {
    position: absolute;
    left: 5px;
    top: -15px;
    font-size: 12px;
    opacity: .7;
    color: gray;
}

.teacher .name {
    position: absolute;
    right: 5px;
    top: -15px;
    font-size: 12px;
    opacity: .7;
    color: gray;
}

 .scroll-down-btn {
            position: absolute;
            bottom: 10px;
            right: 20px;
            display: none;
            padding: 6px 10px 10px 10px;
            background-color: #06B0F0;
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            height: 30px;
            width: 30px;
            
        }
        



 
.item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1px;
    background: linear-gradient(to right, #7CC263, #A3D491, #BDE0B0);
    color: white;
    padding: 5px;
    
}

.just--labels {
    color: white;
    
}


.quest_sp_blue_bg{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1px;
    padding: 5px;
    background-color: #5B9BD5;
    color: white;
}


.quest_lp_blue_bg{
    background-color: #DAE3F4;
    
}

.quest_lp_black_text {
    color: black;
}

button {
    border: none;
    text-decoration: none
}



.orignal-answer {
    background-color: white;
    
    
}

.importedText, .original-answer, .rephrasedText {
    margin: 0 1%;
    line-height: 1.5;
}

.rephrasedText{
    background-color: white;
}

#rephrasedText {
    margin: 0 3%;
    background-color: white;
}

.question-each {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px;
    font-weight: bold;
    font-size: 16px;
    
}

.question-each-additional {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    font-weight: bold;
    font-size: 16px;
    
}

.question-each-additional span {
    flex-shrink: 0;
}


.editable-div {
    min-height: 30px; /* Example height */
    padding: 10px; /* Example padding */
    border: 1px solid #ccc; /* Example border */
    color: #333; /* Example text color */
    font-size: 14px; /* Example font size */
}

.editable-div.empty {
    color: #999; /* Lighter text color for placeholder */
}

.question--container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.swith--container {
    position: relative;
    margin-right: 1%;
}

.swith--container .slider-text {
    position: absolute;
    top: 15px;
    right: 10px;
    font-size: 12px;
}
.switch {
            position: relative;
            display: flex;
            flex-direction: column;
            width: 50px; /* Adjusted width */
            height: 15px; /* Adjusted height */
            
        }

        /* Hide default HTML checkbox */
        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        /* The slider */
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 15px; /* Adjusted border radius */
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 13px; /* Adjusted size */
            width: 13px; /* Adjusted size */
            left: 1px; /* Adjusted position */
            bottom: 1px; /* Adjusted position */
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }

        input:checked + .slider {
            background-color: #2196F3;
        }

        input:checked + .slider:before {
            transform: translateX(35px); /* Adjusted translation */
        }

.showButtons {
    padding: 5px 10px;
    border: none;
    background-color: #DDEBF7;
    box-shadow: 3px 3px 2px rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    cursor: pointer;
    transition: .2s;
    
}

.showButtons:hover {
    box-shadow: 0 1px 1px rgba(221, 235, 247, 0.9);
    transition: .2s;
}

.disabledButtons {
    
    padding: 5px 10px;
    border: none;
    background-color: #DDEBF7;
    box-shadow: 3px 3px 2px rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    cursor: default;
    transition: .2s;
}


.sectionbtnscontainer {
    display: flex;
    flex-wrap: wrap;
    margin: 40px 3%;
    gap: 5px;
    justify-content: center;
    
    
}

.sectionbtnscontainer div {
    padding: 10px 20px;
    background-color: #f2f2f2;
    text-align: center;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    
}

.sectionbtnscontainer div:hover {
    border-bottom: 1px solid orange;
    box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.5), 0 0 1px 0 rgba(255, 165, 0, 0.5);
}


.hidden--script {
    display: none;
}
.visible--script {
    display: block;
}

 .active-section {
   background-color: orange !important;
}

.section--text {
    line-height: 1.5;
}

.chat--student-info {
    border-bottom: 1px solid green;
    box-sizing: border-box; /* Includes padding and border in width */
    width: calc(100% - 6%); /* Adjust width to accommodate margin */
    padding: 10px 10px 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: auto 3%;
}

.chat--targetid {
   font-size: 16px;
   border: none;
   text-align: center;
   background-color: lightgray;
   background: linear-gradient(to bottom, white, lightgray);
   padding: 5px 3px;
   border-radius: 6px;
}

.chatoptionreload {
   border: none;
   text-align: center;
   font-size: 16px;
   background-color: lightgray;
   background: linear-gradient(to bottom, white, lightgray);
   padding: 7px 10px;
   border-radius: 6px;
   cursor: pointer;
   
}


.chatoptionreload:hover {
    background: linear-gradient(to bottom, white, silver);
}

.chat--student-info .left-items {
    display: flex;
    gap: 10px; /* Adjust spacing between the left items */
    justify-content: space-between;
    align-items: center;
    
}

.chat--student-info .right-item {
    margin-left: auto; /* Pushes this item to the far right */
    cursor: pointer;
}

.additional_questions {
    width: 100%;
}

.additional_questions input {
    width: 100%;
    padding: 5px 10px;
    border: none;
    border-bottom: 1px solid #ccc;
    font-size: 16px;
    font-weight: bold;
}





#add-content-button {
    margin: 3% auto;
    padding: 10px 15px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    background: linear-gradient(to right, #7CC263, #A3D491, #BDE0B0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border-radius: 20px;
    color: white;
}

#add-content-button:hover {
    background: linear-gradient(to right, #7CC263, #BDE0B0, #BDE0B0);
}

#ask_studentid {
  position: fixed;         /* Fix it to the viewport */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.99); 
  display: flex;
  justify-content: center; /* Center content horizontally */
  align-items: center;     /* Center content vertically */
  z-index: 9999;           /* High z-index to be on top */
}

.ask--content {
    display: flex;
    box-shadow: 0 4px 8px 0 #ccc; 
}

/* Hide the overlay initially */
#ask_studentid.hidden {
  display: none;
}

/* Style for the input and button */
#ask_studentid input{
  margin: 5px;
  padding: 10px;
  font-size: 16px;
  background: linear-gradient(to right, #7CC263, #BDE0B0, #BDE0B0);
  border: none;
}

#ask_studentid input:focus, #ask_studentid input:active {
    border: none;
}

#ask_studentid button {
  margin: 5px;
  padding: 10px;
  font-size: 16px;
  color: green;
}

.entered--student-id{
    margin: 0 3%;
    border: 1px solid #ccc;
    padding: 5px 10px;
}

.entered--student-id form {
    display: flex;
    gap: 15px;
}

.entered--student-id input {
    height: 30px;
    padding: 3px 5px;
    border: 1px solid rgba(204, 204, 204, .2);
    border-bottom: 1px solid lightblue;
    box-shadow: 0 4px 8px 0 rgba(173, 216, 230, 0.6);
    color: #00b4d8;
    text-align: center;
}

.entered--student-id button {
    padding: 5px 20px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    border-bottom: 1px solid lightblue;
    box-shadow: 0 4px 8px 0 rgba(173, 216, 230, 0.6);
    border-radius: 25px;
    color: #00b4d8;
}

.entered--student-id input:hover, .entered--student-id button:hover {
    box-shadow: 0 4px 15px 0 rgba(173, 216, 230, 0.6);
    
}

.mid--div {
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px 0 #ccc; 
    width: 1px;
}


.question_challenge {
    margin-top: 20px;
}

@media (max-width: 550px) {  
    
    
    .entered--student-id{
    margin: 0 3%;
    border: 1px solid #ccc;
    padding: 5px 10px;
}

.entered--student-id form {
    display: flex;
    justify-content: center;
    gap: 15px;
    box-sizing: border-box;
}

.entered--student-id input {
    height: 30px;
    width: 35%;
    padding: 3px 5px;
    border: 1px solid rgba(204, 204, 204, .2);
    border-bottom: 1px solid lightblue;
    box-shadow: 0 4px 8px 0 rgba(173, 216, 230, 0.6);
    color: #00b4d8;
    text-align: center;
    flex: 1 1 auto;
}

.entered--student-id button {
    padding: 5px 20px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    border-bottom: 1px solid lightblue;
    box-shadow: 0 4px 8px 0 rgba(173, 216, 230, 0.6);
    border-radius: 25px;
    color: #00b4d8;
    flex: 1 1 auto;
}
    
.mid--div {
    display: none;
}    
}
