@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #0079A5;
    --secondary-color: #FFB347;
    --background-color: #F0F4F8;
    --text-color: #333333;
    --chat-bg: #F0F4F8;
}

body {
    padding: 10px;
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    height: 100vh;
    display: flex;
    flex-direction: column;
}



.btn {
    background-color: transparent;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    text-align: center;
    margin: 0.5rem;
}




.header {
    width: 100%;
    height: 78px;
    background: #0C359E;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    position: relative;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1rem 0;
}

.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.title {
    font-size: 25px;
    color: #fff;
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
    font-style: normal;
    display: grid;


}

.sm {

    font-size: 12px;
    display: grid;

    place-items: center;
    margin-left: 10px;
}

.cont {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* chatbot */
.chat {
    /*overflow: hidden;*/

    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    /* position: absolute;
    top: 130px;
    left: 70%; */
    width: 350px;
    height: 500px;
    /* border-radius: 20px;
    background: #f9f6ef;
    box-shadow:
    rgba(22, 31, 39, 0.42) 0px 0px 60px -25px,
    rgba(19, 26, 32, 0.08) 0px 0px 60px -35px;
  border-radius: 10px;
  border: 1px solid;
  border-color:
    rgb(213, 220, 226)
    rgb(213, 220, 226)
    rgb(184, 194, 204);*/

}

.chat-title {
    text-transform: uppercase;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 10%;
    color: #000;
    background: white;

    & h2 {
        font-size: 22px;
        font-family: "Libre Baskerville", serif;
        font-weight: 900;

        color: #0079A5;
    }

}

.messages {
    color: rgb(255, 255, 255);
    overflow: hidden;
    position: relative;
    /* background-color: whitesmoke; */
    width: 100%;
    height: 75%;
}

.message-box {
    width: 100%;
    height: 80%;
    display: flex;
    /*justify-content: center;*/
    align-items: center;
    /* border-radius: 25px;*/
    gap: 10px;
}

.mes1 {
    width: 100%;
    height: 15%;
    display: flex;
    justify-content: center;
    align-items: center;
}



.messages .messages-content {
    position: absolute;
    top: 0;
    left: 0;
    height: 101%;
    width: 100%;
    padding: 10px;

}

.messages-content {
    overflow-y: auto;

}

/*.messages-content::-webkit-scrollbar {
    display: none;
}*/

.messages .message {
    clear: both;
    float: left;
    padding: 4px 8px 4px 8px;
    border-radius: 0px 10px 10px 10px;
    background: #fff;
    color: black;
    margin: 15px 0;
    font-size: 14px;
    line-height: 1.4;
    margin-left: 22px;
    max-width: 220px;
    word-wrap: break-word;
    position: relative;
    /* text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);*/
    font-weight: 700;
}

.timestamp {
    left: -2px;
}

.messages .message .timestamp {
    position: absolute;
    font-size: 9px;
    color: black;
    margin-top: 11px;
}

/* 
.messages .message::before {
    content: '';
    position: absolute;
    bottom: -6px;
    border-top: 6px solid #66b3ff;
    left: 0;
    border-right: 7px solid transparent;
} */

.messages .message .avatar {
    position: absolute;
    z-index: 1;
    left: -30px;
    bottom: -2px;
    border-radius: 30px;
    width: 30px;
    height: 30px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    /* border: 1px solid #3e4e5e; */
    background-color: #fdfeff;
}

.messages .message .avatar img {
    width: 100%;
    height: 85%;
    margin-top: 3px;
}

.messages .message.message-personal {
    float: right;
    color: #000000;
    text-align: right;
    background: white;
    box-shadow: 2px 1px 5px lightgray;
    border-radius: 10px 0px 10px 10px;
    font-size: 14px;
    font-weight: bolder;
    text-shadow: 0 1px 1px white;
}

.messages .message.message-personal::before {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 5px solid transparent;
    border-top: 4px solid gray;
    bottom: -4px;
}

.messages .message:last-child {
    margin-bottom: 30px;
}

.messages .message.new {
    -webkit-transform: scale(0);
    transform: scale(0);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-animation: bounce 500ms linear both;
    animation: bounce 500ms linear both;
}

.messages .message.loading::before {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    content: '';
    display: block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgb(0, 0, 0);
    z-index: 2;
    margin-top: 4px;
    -webkit-animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
    animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
    border: none;
    -webkit-animation-delay: .15s;
    animation-delay: .15s;
}

.messages .message.loading span {
    display: block;
    font-size: 0;
    width: 20px;
    height: 10px;
    position: relative;
}

.messages .message.loading span::before {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    content: '';
    display: block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgb(0, 0, 0);
    z-index: 2;
    margin-top: 4px;
    -webkit-animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
    animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
    margin-left: -7px;
}

.messages .message.loading span::after {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    content: '';
    display: block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgb(0, 0, 0);
    z-index: 2;
    margin-top: 4px;
    -webkit-animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
    animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
    margin-left: 7px;
    -webkit-animation-delay: .3s;
    animation-delay: .3s;
}





/*message load
---------*/
.messages .mess {
    clear: both;
    float: right;
    padding: 7px 8px 4px 8px;
    border-radius: 10px 0px 10px 10px;
    background: gray;
    color: white;
    margin: 12px 0;
    font-size: 13px;
    line-height: 1.4;
    margin-left: 35px;
    max-width: 175px;
    word-wrap: break-word;
    position: relative;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.messages .mess.load::before {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    content: '';
    display: block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 2;
    margin-top: 4px;
    -webkit-animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
    animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
    border: none;
    -webkit-animation-delay: .15s;
    animation-delay: .15s;
}

.messages .mess.load span {
    display: block;
    font-size: 0;
    width: 20px;
    height: 10px;
    position: relative;
}

.messages .mess.load span::before {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    content: '';
    display: block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 2;
    margin-top: 4px;
    -webkit-animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
    animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
    margin-left: -7px;
}

.messages .mess.load span::after {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    content: '';
    display: block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 2;
    margin-top: 4px;
    -webkit-animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
    animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
    margin-left: 7px;
    -webkit-animation-delay: .3s;
    animation-delay: .3s;
}

/*--------------------
Message Box
--------------------*/

.label {
    background: silver;
}

.labelName {
    font-weight: 700;
    font-size: 15px;
    color: black;
}

textarea {
    width: 80%;
    background: white;
    border: none;
    outline: none !important;
    resize: none;
    color: black;
    font-size: 13px;
    height: 42px;
    margin: 0;
    padding: 8px 0 0 8px;
    border-radius: 15px;
    height: 35px;
}

#options-container {
    display: grid;
    place-items: center;
    margin-top: 8px;
    position: relative;

    & button {
        padding: 5px;
        border-radius: 10px;
        background-color: white;
        border: 1px dotted black;

    }

}

#options-button {
    margin-bottom: 10px;
    height: 36px;
    /* width: 70px; */
}

#options {
    display: none;
    flex-direction: column;
    position: absolute;
    bottom: calc(100% + 10px);
    /* Position above the button */
    left: 50%;
    width: 150px;
}

#options.show,
#options.active {
    display: flex;
    gap: 10px;
    background-color: white;
}

#options button {
    margin: 0 5px;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-color: white;
    border: none;
    border-bottom: 1px solid black;
    border-radius: 0;

}

#options.show button,
#options.active button {
    opacity: 1;
}

.message-box .message-input1 {
    display: flex;
    width: 100%;
    background: white;
    border: none;
    outline: none !important;
    resize: none;
    color: black;
    font-size: 13px;
    height: 55px;
    margin: 0;
    padding: 2px 10px 2px 2px;
    border-radius: 15px 15px 15px 15px;
    box-shadow: 1px 1px 3px black;
}

.message-box textarea:focus:-webkit-placeholder {
    color: transparent;
}

.message-box .message-submit {

    z-index: 1;

    border: none;
    background: transparent;
    font-size: 10px;
    text-transform: uppercase;
    outline: none !important;
    -webkit-transition: background .2s ease;
    transition: background .2s ease;
}

.message-box .message-submit:hover {
    background: #89a0b6;
    cursor: pointer;
}


/*--------------------
Custom Srollbar
--------------------*/

.mCSB_scrollTools {
    margin: 1px -3px 1px 0;
    opacity: 0;
}

.mCSB_inside>.mCSB_container {
    margin-right: 0px;
    padding: 0 10px;
}

.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

#styled-select {
    width: 100px;
    height: 25px;
    background: white;
    border: 1px solid #ccc;
    margin-left: 5px;
}

#styled-select select {
    width: 150px;
    padding-bottom: 5px;
    line-height: 1;
    border: 0;
    border-radius: 0;
    height: 34px;
    -webkit-appearance: none;
    font-family: helvetica-roman;
    color: black;
    background-color: rgba(0, 0, 0, 0);
    -webkit-appearance: none;
    border: none;
    text-indent: 0.01px;
    text-overflow: '';
}

.mic {
    color: #651f68;
    display: inline;
}

.mute {
    color: #651f68;
    display: none;
}

.mute1 {
    display: none;
}

.unmute {
    display: inline;
}

.button {
    border: none;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    background: #5499df;
    cursor: pointer;
}

/* .button1 {background-color: #66b3ff;}
.button2 {background-color: #66b3ff;}  */

.mn {
    clear: both;
    float: left;
    padding: 4px 8px 4px 8px;
    border-radius: 10px 10px 10px 10px;
    background: #4386c9;
    color: white;
    font-size: 14px;
    line-height: 1.4;
    max-width: 200px;
    word-wrap: break-word;
    position: relative;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.m1 {
    margin-top: 12px;
    margin-left: 35px;
    clear: both;
    float: left;
    padding: 4px 8px 4px 8px;
    border-radius: 10px 10px 10px 10px;
    background: #5499df;
    color: white;
    font-size: 14px;
    line-height: 1.4;
    max-width: 200px;
    word-wrap: break-word;
    position: relative;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.sm1 {
    margin-top: 5px;
    margin-left: 5px;
    clear: both;
    float: left;
    padding: 4px 8px 4px 8px;
    border-radius: 5px 5px 5px 5px;
    background: #fff;
    color: #fff;
    font-size: 10px;
    line-height: 1.4;
    max-width: 200px;
    word-wrap: break-word;
    position: relative;
    text-shadow: 0 1px 1px white;
    margin-bottom: 5px;
    border: 1px solid #4b637a;


}

.sm1 button {
    background-color: #fff;
    color: #000000;
    border: none;
    font-size: 14px;
    text-shadow: 0px 0.5px #4b637a;
    font-weight: 500;

}



.m2 {
    margin-top: -58px;
    margin-left: 150px;
    clear: both;
    float: left;
    padding: 4px 8px 4px 8px;
    border-radius: 10px 10px 10px 10px;
    background: #5499df;
    color: white;
    font-size: 14px;
    line-height: 1.4;
    max-width: 200px;
    word-wrap: break-word;
    position: relative;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.letter {
    display: inline-block;
    font-size: 15px;
    border: 1px solid #2b8a8a;
    width: 28px;
    height: 20px;
    padding-left: 4px;
    padding-bottom: 22px;
    margin-bottom: 5px;
    color: #084351;
    background-color: antiquewhite;
}

table {
    word-break: normal;
}

td,
th {
    border: 1px solid #cecdb9;
    text-align: left;
    padding: 4px;
}

.info {
    font-size: 15px;
    margin-top: 153px;
    padding: 10px;
    word-spacing: 10px;
    width: 65%;
}

.info1 {
    font-size: 15px;
    padding: 10px;
    word-spacing: 10px;
    width: 65%;
}

h5 {
    display: inline;
}

#tags {
    margin-top: 2em;
    border: 1px solid #000;
    font: "serif";
}

.ui-autocomplete.ui-widget {
    font: Helvetica, Sans-serif;
    font-size: 15px;
}

.para {
    height: 65%;
    width: 60%;
    position: relative;
    left: 50px;
    top: 170px;
    font-size: 17px;
    padding: 10px;
    overflow: auto;
    word-spacing: 8px;
}

.pdf {
    margin-top: 10px;
}

fieldset {
    width: 55%;
    height: 55%;
    border: 1px solid #BBB;
    margin-left: 80px;
    margin-right: auto;
    border-radius: 10px;
    text-align: center;
    min-width: 0;
    margin-top: 120px;
    background: #a7c8e3;
}

fieldset div {
    width: 102%;
    height: 102%;
    margin: 5px;
    padding: 6px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: scroll;
    text-align: center;
}

.ans {
    height: 60px;
    width: 54%;
    position: relative;
    left: 85px;
    top: 70px;
    text-align: left;
    background: aliceblue;
    padding: 9px 5px;
    box-sizing: border-box;
    overflow: auto;
    font-size: 18px;
}

#ans1 {
    color: blue;
}

/*--------------------
Bounce
--------------------*/

@-webkit-keyframes bounce {
    0% {
        -webkit-transform: matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        transform: matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    4.7% {
        -webkit-transform: matrix3d(0.45, 0, 0, 0, 0, 0.45, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        transform: matrix3d(0.45, 0, 0, 0, 0, 0.45, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    9.41% {
        -webkit-transform: matrix3d(0.883, 0, 0, 0, 0, 0.883, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        transform: matrix3d(0.883, 0, 0, 0, 0, 0.883, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    14.11% {
        -webkit-transform: matrix3d(1.141, 0, 0, 0, 0, 1.141, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        transform: matrix3d(1.141, 0, 0, 0, 0, 1.141, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    18.72% {
        -webkit-transform: matrix3d(1.212, 0, 0, 0, 0, 1.212, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        transform: matrix3d(1.212, 0, 0, 0, 0, 1.212, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    24.32% {
        -webkit-transform: matrix3d(1.151, 0, 0, 0, 0, 1.151, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        transform: matrix3d(1.151, 0, 0, 0, 0, 1.151, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    29.93% {
        -webkit-transform: matrix3d(1.048, 0, 0, 0, 0, 1.048, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        transform: matrix3d(1.048, 0, 0, 0, 0, 1.048, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    35.54% {
        -webkit-transform: matrix3d(0.979, 0, 0, 0, 0, 0.979, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        transform: matrix3d(0.979, 0, 0, 0, 0, 0.979, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    41.04% {
        -webkit-transform: matrix3d(0.961, 0, 0, 0, 0, 0.961, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        transform: matrix3d(0.961, 0, 0, 0, 0, 0.961, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    52.15% {
        -webkit-transform: matrix3d(0.991, 0, 0, 0, 0, 0.991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        transform: matrix3d(0.991, 0, 0, 0, 0, 0.991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    63.26% {
        -webkit-transform: matrix3d(1.007, 0, 0, 0, 0, 1.007, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        transform: matrix3d(1.007, 0, 0, 0, 0, 1.007, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    85.49% {
        -webkit-transform: matrix3d(0.999, 0, 0, 0, 0, 0.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        transform: matrix3d(0.999, 0, 0, 0, 0, 0.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    100% {
        -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }
}

@keyframes bounce {
    0% {
        -webkit-transform: matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        transform: matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    4.7% {
        -webkit-transform: matrix3d(0.45, 0, 0, 0, 0, 0.45, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        transform: matrix3d(0.45, 0, 0, 0, 0, 0.45, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    9.41% {
        -webkit-transform: matrix3d(0.883, 0, 0, 0, 0, 0.883, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        transform: matrix3d(0.883, 0, 0, 0, 0, 0.883, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    14.11% {
        -webkit-transform: matrix3d(1.141, 0, 0, 0, 0, 1.141, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        transform: matrix3d(1.141, 0, 0, 0, 0, 1.141, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    18.72% {
        -webkit-transform: matrix3d(1.212, 0, 0, 0, 0, 1.212, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        transform: matrix3d(1.212, 0, 0, 0, 0, 1.212, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    24.32% {
        -webkit-transform: matrix3d(1.151, 0, 0, 0, 0, 1.151, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        transform: matrix3d(1.151, 0, 0, 0, 0, 1.151, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    29.93% {
        -webkit-transform: matrix3d(1.048, 0, 0, 0, 0, 1.048, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        transform: matrix3d(1.048, 0, 0, 0, 0, 1.048, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    35.54% {
        -webkit-transform: matrix3d(0.979, 0, 0, 0, 0, 0.979, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        transform: matrix3d(0.979, 0, 0, 0, 0, 0.979, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    41.04% {
        -webkit-transform: matrix3d(0.961, 0, 0, 0, 0, 0.961, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        transform: matrix3d(0.961, 0, 0, 0, 0, 0.961, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    52.15% {
        -webkit-transform: matrix3d(0.991, 0, 0, 0, 0, 0.991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        transform: matrix3d(0.991, 0, 0, 0, 0, 0.991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    63.26% {
        -webkit-transform: matrix3d(1.007, 0, 0, 0, 0, 1.007, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        transform: matrix3d(1.007, 0, 0, 0, 0, 1.007, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    85.49% {
        -webkit-transform: matrix3d(0.999, 0, 0, 0, 0, 0.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        transform: matrix3d(0.999, 0, 0, 0, 0, 0.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    100% {
        -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }
}

@-webkit-keyframes ball {
    from {
        -webkit-transform: translateY(0) scaleY(0.8);
        transform: translateY(0) scaleY(0.8);
    }

    to {
        -webkit-transform: translateY(-10px);
        transform: translateY(-10px);
    }
}

@keyframes ball {
    from {
        -webkit-transform: translateY(0) scaleY(0.8);
        transform: translateY(0) scaleY(0.8);
    }

    to {
        -webkit-transform: translateY(-10px);
        transform: translateY(-10px);
    }
}

.page_no {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sp {
    font-weight: bold;
    font-size: 18px;
    color: #39B5E0;
    cursor: pointer;
}

.close-btn,
.eye-btn {
    display: none;
}




.chat-container {
    width: 550px;
    display: flex;
    flex-direction: column;
    background-color: var(--chat-bg);
   /* border-left: 1px solid #ccc;*/
}

.chat-header {
    background-color: #ffffff;
    color: VAR(--primary-color);
    padding: 1rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}



@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    background-color: #ffffff;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    padding-left: 40px;
    position: relative;
}

.bot-message::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #ffffff;
}

.bot-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.user-message {
    background-color: var(--primary-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.user-message::before {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--primary-color);
}

.chat-input {
    display: flex;
    padding: 1rem;
    background-color: #E1E5E9;
    gap: 0.5rem;
}

.chat-input input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 25px;
    outline: none;
    font-size: 0.9rem;
    background-color: white;
}

.chat-input button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-input button:hover {
    background-color: #FFA500;
}

.chat-input button svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .chat-container {
        width: 100%;
        height: 50vh;
    }
}


.book-display {
    flex: 1;
    background-color: white;
    padding: 0;
    /* Remove padding to allow iframe to fill */
    position: relative;
    overflow: hidden;
    /* Prevent scrollbars unless needed */
}

/* Update iframe styling */
.iframe_box {
    width: 100%;
    height: 100%;
    position: relative;
}

.iframe_box iframe {
    width: 90%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 5%;
    overflow-y: scroll;

}

/* Ensure main-content takes full height */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    height: calc(100vh - 76px);
    /* Subtract header height */
}


.book-display {
    flex: 0 0 70%;
    /* 60% width for large screens */
    background-color: white;
    overflow: hidden;
    position: relative;
}

.chat-container {
    flex: 0 0 30%;
    /* 40% width for large screens */
    display: flex;
    flex-direction: column;
    background-color: var(--chat-bg);
    /*border-left: 1px solid #ccc;*/
    height: 100%;
}

.chat_box {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.chat {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}





.message-box {
    padding: 1rem;
    border-top: 1px solid #ccc;
    background-color: #ffffff;
}

/* Tablet breakpoint */
@media (max-width: 1024px) {
    .book-display {
        flex: 0 0 70%;
        /* 70% width for medium screens */
    }

    .chat-container {
        flex: 0 0 30%;
        /* 30% width for medium screens */
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .main-content {
        flex-direction: column;
    }

    .book-display {
        flex: 0;
        /* Hide book display on mobile */
    }

    .chat-container {
        flex: 1;
        width: 100%;
        height: calc(90vh - 56px);
        /* Full height minus header */
    }

    .message-box {
        padding: 0.5rem;
    }

    .messages {
        padding: 0.5rem;
    }

    .close-btn,
    .eye-btn {
        display: block;
    }

    .iframe_box {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.8);
        z-index: 1000;
    }

    .iframe_box.active {
        display: flex;
        justify-content: center;
        align-items: center;
        background: white;
    }

    .iframe_box .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        color: white;
        font-size: 24px;
        cursor: pointer;
        z-index: 100;
    }

    .chat-title {
        position: relative;
    }

    .eye-btn {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 24px;
        cursor: pointer;
    }

    .eye-btn:hover {
        color: #0C359E;
    }

    iframe {
        width: 100%;
        height: 85vh;
        max-height: 85vh;
    }
}

/* Additional chat component styles */

.message-input1 {
    display: flex;
    align-items: center;
    /* gap: 1rem; */
    padding: 1rem;
}

.message-input {
    flex: 1;
    padding: 0.8rem;
    resize: none;
    min-height: 40px;
}

.message-submit {
    padding: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}


.eye-btn .fas{
color: #0C359E;
}


/*.fas {

    color: #0C359E;
}*/

.chat-title {
    text-transform: uppercase;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 10%;
    color: #000;
    background: white;
    padding: 0 20px;
}

.title-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

h2 {
    margin: 0;
    text-align: center;
    flex: 1;
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    font-family: Arial, sans-serif;
}

.icon {
    display: inline-block;
    width: 20px;
    height: 20px;

    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
}

.tooltip-content {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: white;
    text-align: center;
    border-radius: 5px;
    padding: 0;
    position: absolute;
    z-index: 1;
    top: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip-content::after {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    margin-left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
}

.tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

.keyboard-option {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: block;
    width: 100%;
    border: none;
    background: none;
    color: white;
    text-align: center;
}

.keyboard-option:hover {
    background-color: #444;
}

.keyboard-option:not(:last-child) {
    border-bottom: 1px solid #444;
}

.eye-btn {
    cursor: pointer;
}






ody::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
textarea {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    overflow-y: scroll;
    /* Maintain scroll functionality */
    margin: 0;
    /* Remove default margin to prevent unwanted scrollbars */
    padding: 0;
    /* Remove default padding to prevent unwanted scrollbars */
}



textarea {
    -webkit-overflow-scrolling: touch;
}
