* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-size: 100%;
}

body, html {
    height: 100%;
    /* display: flex; */
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #fff;
    font-family: "Roboto" !important;
    font-size: 17px !important;
    letter-spacing: 0.1px;
    color: #32465a;
    text-rendering: optimizeLegibility;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
    -webkit-font-smoothing: antialiased;
}

#frame {
    width: 100%;
    min-width: 360px;
    height: 100vh;
    min-height: 300px;
    background: #fff;
}

textarea {
    /* without this the height will be changed a few letters too early */
    overflow: hidden;
    /* disable the resize handle */
    resize: none;
    /* disable the border */
    border: none;
}

::-webkit-input-placeholder {
    /* text-align: center; */
    /* padding-left:20px;
    padding-top:10px; */
    font-family: Roboto;
}
:-moz-placeholder {
text-align: center;
}

@media screen and (max-width: 360px) {
    #frame {
        width: 100%;
        height: 100vh;
    }
}

#frame #sidepanel {
    float: left;
    min-width: 280px;
    max-width: 340px;
    width: 40%;
    height: 100%;
    background: #2c3e50;
    color: #fff;
    overflow: hidden;
    position: relative;
}

@media screen and (max-width: 735px) {
    #frame #sidepanel {
        width: 58px;
        min-width: 58px;
    }
}

#frame #sidepanel #profile {
    width: 80%;
    margin: 25px auto;
}

@media screen and (max-width: 735px) {
    #frame #sidepanel #profile {
        width: 100%;
        margin: 0 auto;
        padding: 5px 0 0 0;
        background: #32465a;
    }
}

#frame #sidepanel #profile.expanded .wrap {
    height: 140px;
    line-height: initial;
}

#frame #sidepanel #profile.expanded .wrap p {
    margin-top: 20px;
}

#frame #sidepanel #profile.expanded .wrap i.expand-button {
    -moz-transform: scaleY(-1);
    -o-transform: scaleY(-1);
    -webkit-transform: scaleY(-1);
    transform: scaleY(-1);
    filter: FlipH;
    -ms-filter: "FlipH";
}

#frame #sidepanel #profile .wrap {
    height: 60px;
    line-height: 60px;
    overflow: hidden;
    -moz-transition: 0.3s height ease;
    -o-transition: 0.3s height ease;
    -webkit-transition: 0.3s height ease;
    transition: 0.3s height ease;
}

@media screen and (max-width: 735px) {
    #frame #sidepanel #profile .wrap {
        height: 55px;
    }
}

#frame #sidepanel #profile .wrap img {
    /* width: 50px;
    border-radius: 50%; */
    padding: 3px;
    /* border: 2px solid #e74c3c; */
    height: auto;
    float: left;
    /* cursor: pointer; */
    -moz-transition: 0.3s border ease;
    -o-transition: 0.3s border ease;
    -webkit-transition: 0.3s border ease;
    transition: 0.3s border ease;
}

@media screen and (max-width: 735px) {
    #frame #sidepanel #profile .wrap img {
        width: 40px;
        margin-left: 4px;
    }
}

#frame #sidepanel #profile .wrap img.online {
    border: 2px solid #2ecc71;
}

#frame #sidepanel #profile .wrap img.away {
    border: 2px solid #f1c40f;
}

#frame #sidepanel #profile .wrap img.busy {
    border: 2px solid #e74c3c;
}

#frame #sidepanel #profile .wrap img.offline {
    border: 2px solid #95a5a6;
}

#frame #sidepanel #profile .wrap p {
    float: left;
    margin-left: 15px;
}

@media screen and (max-width: 735px) {
    #frame #sidepanel #profile .wrap p {
        display: none;
    }
}

#frame #sidepanel #profile .wrap i.expand-button {
    float: right;
    margin-top: 23px;
    font-size: 0.8em;
    cursor: pointer;
    color: #435f7a;
}

@media screen and (max-width: 735px) {
    #frame #sidepanel #profile .wrap i.expand-button {
        display: none;
    }
}

#frame #sidepanel #profile .wrap #status-options {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    width: 150px;
    margin: 70px 0 0 0;
    border-radius: 6px;
    z-index: 99;
    line-height: initial;
    background: #435f7a;
    -moz-transition: 0.3s all ease;
    -o-transition: 0.3s all ease;
    -webkit-transition: 0.3s all ease;
    transition: 0.3s all ease;
}

@media screen and (max-width: 735px) {
    #frame #sidepanel #profile .wrap #status-options {
        width: 58px;
        margin-top: 57px;
    }
}

#frame #sidepanel #profile .wrap #status-options.active {
    opacity: 1;
    visibility: visible;
    margin: 75px 0 0 0;
}

@media screen and (max-width: 735px) {
    #frame #sidepanel #profile .wrap #status-options.active {
        margin-top: 62px;
    }
}

#frame #sidepanel #profile .wrap #status-options:before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid #435f7a;
    margin: -8px 0 0 24px;
}

@media screen and (max-width: 735px) {
    #frame #sidepanel #profile .wrap #status-options:before {
        margin-left: 23px;
    }
}

#frame #sidepanel #profile .wrap #status-options ul {
    overflow: hidden;
    border-radius: 6px;
}

#frame #sidepanel #profile .wrap #status-options ul li {
    padding: 15px 0 30px 18px;
    display: block;
    cursor: pointer;
}

@media screen and (max-width: 735px) {
    #frame #sidepanel #profile .wrap #status-options ul li {
        padding: 15px 0 35px 22px;
    }
}

#frame #sidepanel #profile .wrap #status-options ul li:hover {
    background: #496886;
}

#frame #sidepanel #profile .wrap #status-options ul li span.status-circle {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 5px 0 0 0;
}

@media screen and (max-width: 735px) {
    #frame #sidepanel #profile .wrap #status-options ul li span.status-circle {
        width: 14px;
        height: 14px;
    }
}

#frame #sidepanel #profile .wrap #status-options ul li span.status-circle:before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    margin: -3px 0 0 -3px;
    background: transparent;
    border-radius: 50%;
    z-index: 0;
}

@media screen and (max-width: 735px) {
    #frame #sidepanel #profile .wrap #status-options ul li span.status-circle:before {
        height: 18px;
        width: 18px;
    }
}

#frame #sidepanel #profile .wrap #status-options ul li p {
    padding-left: 12px;
}

@media screen and (max-width: 735px) {
    #frame #sidepanel #profile .wrap #status-options ul li p {
        display: none;
    }
}

#frame #sidepanel #profile .wrap #status-options ul li#status-online span.status-circle {
    background: #2ecc71;
}

#frame #sidepanel #profile .wrap #status-options ul li#status-online.active span.status-circle:before {
    border: 1px solid #2ecc71;
}

#frame #sidepanel #profile .wrap #status-options ul li#status-away span.status-circle {
    background: #f1c40f;
}

#frame #sidepanel #profile .wrap #status-options ul li#status-away.active span.status-circle:before {
    border: 1px solid #f1c40f;
}

#frame #sidepanel #profile .wrap #status-options ul li#status-busy span.status-circle {
    background: #e74c3c;
}

#frame #sidepanel #profile .wrap #status-options ul li#status-busy.active span.status-circle:before {
    border: 1px solid #e74c3c;
}

#frame #sidepanel #profile .wrap #status-options ul li#status-offline span.status-circle {
    background: #95a5a6;
}

#frame #sidepanel #profile .wrap #status-options ul li#status-offline.active span.status-circle:before {
    border: 1px solid #95a5a6;
}

#frame #sidepanel #profile .wrap #expanded {
    padding: 100px 0 0 0;
    display: block;
    line-height: initial !important;
}

#frame #sidepanel #profile .wrap #expanded label {
    float: left;
    clear: both;
    margin: 0 8px 5px 0;
    padding: 5px 0;
}

#frame #sidepanel #profile .wrap #expanded input {
    border: none;
    margin-bottom: 6px;
    background: #32465a;
    border-radius: 3px;
    color: #fff;
    padding: 7px;
    width: calc(100% - 43px);
}

#frame #sidepanel #profile .wrap #expanded input:focus {
    outline: none;
    background: #435f7a;
}

#frame #sidepanel #search {
    /*border-top: 1px solid #32465a;
    border-bottom: 1px solid #32465a;*/
    font-weight: 300;
}

@media screen and (max-width: 735px) {
    #frame #sidepanel #search {
        display: none;
    }
}

#frame #sidepanel #search label {
    position: absolute;
    margin: 10px 0 0 20px;
}

#frame #sidepanel #search input {
    font-family: "proxima-nova", "Source Sans Pro", sans-serif;
    padding: 10px 0 10px 46px;
    width: calc(100% - 25px);
    border: none;
    background: #32465a;
    color: #fff;
}

#frame #sidepanel #search input:focus {
    outline: none;
    background: #435f7a;
}

#frame #sidepanel #search input::-webkit-input-placeholder {
    color: #fff;
}

#frame #sidepanel #search input::-moz-placeholder {
    color: #fff;
}

#frame #sidepanel #search input:-ms-input-placeholder {
    color: #fff;
}

#frame #sidepanel #search input:-moz-placeholder {
    color: #fff;
}

#frame #sidepanel #contacts {
    height: calc(100% - 177px);
    /* overflow-y: scroll; */
    overflow-x: hidden;
}

@media screen and (max-width: 735px) {
    #frame #sidepanel #contacts {
        height: calc(100% - 149px);
        overflow-y: scroll;
        overflow-x: hidden;
    }
    #frame #sidepanel #contacts::-webkit-scrollbar {
        display: none;
    }
}

#frame #sidepanel #contacts.expanded {
    height: calc(100% - 334px);
}

#frame #sidepanel #contacts::-webkit-scrollbar {
    width: 8px;
    background: #2c3e50;
}

#frame #sidepanel #contacts::-webkit-scrollbar-thumb {
    background-color: #243140;
}

#frame #sidepanel #contacts ul li.contact {
    position: relative;
    padding: 10px 0;
    font-size: 0.9em;
    cursor: pointer;
}

@media screen and (max-width: 735px) {
    #frame #sidepanel #contacts ul li.contact {
        padding: 6px 0px 0px 8px;
    }
}

#frame #sidepanel #contacts ul li.contact:hover {
    background: #32465a;
}

#frame #sidepanel #contacts ul li.contact.active {
    background: #2f5f7f;
    border-right: 5px solid #5f9f9f;
}

#frame #sidepanel #contacts ul li.contact.active span.contact-status {
    border: 2px solid #32465a !important;
}

#frame #sidepanel #contacts ul li.contact .wrap {
    width: 88%;
    margin: 0 auto;
    position: relative;
}

@media screen and (max-width: 735px) {
    #frame #sidepanel #contacts ul li.contact .wrap {
        width: 100%;
    }
}

#frame #sidepanel #contacts ul li.contact .wrap span {
    position: absolute;
    left: 0;
    margin: -2px 0 0 -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #2c3e50;
    background: #95a5a6;
}

#frame #sidepanel #contacts ul li.contact .wrap span.online {
    background: #2ecc71;
}

#frame #sidepanel #contacts ul li.contact .wrap span.away {
    background: #f1c40f;
}

#frame #sidepanel #contacts ul li.contact .wrap span.busy {
    background: #e74c3c;
}

#frame #sidepanel #contacts ul li.contact .wrap img {
    width: 40px;
    border-radius: 50%;
    float: left;
    margin-right: 10px;
}

@media screen and (max-width: 735px) {
    #frame #sidepanel #contacts ul li.contact .wrap img {
        margin-right: 0px;
    }
}

#frame #sidepanel #contacts ul li.contact .wrap .meta {
    padding: 5px 0 0 0;
}

@media screen and (max-width: 735px) {
    #frame #sidepanel #contacts ul li.contact .wrap .meta {
        display: none;
    }
}

#frame #sidepanel #contacts ul li.contact .wrap .meta .name {
    font-weight: 600;
    padding: 8px 0;
}

#frame #sidepanel #contacts ul li.contact .wrap .meta .preview {
    margin: 5px 0 0 0;
    padding: 0 0 1px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -moz-transition: 1s all ease;
    -o-transition: 1s all ease;
    -webkit-transition: 1s all ease;
    transition: 1s all ease;
}

#frame #sidepanel #contacts ul li.contact .wrap .meta .preview span {
    position: initial;
    border-radius: initial;
    background: none;
    border: none;
    padding: 0 2px 0 0;
    margin: 0 0 0 1px;
    opacity: .5;
}

#frame #sidepanel #bottom-bar {
    position: absolute;
    width: 100%;
    bottom: 0;
}

#frame #sidepanel #bottom-bar button {
    float: left;
    border: none;
    width: 50%;
    padding: 10px 0;
    background: #32465a;
    color: #fff;
    cursor: pointer;
    font-size: 0.85em;
    font-family: "proxima-nova", "Source Sans Pro", sans-serif;
}

@media screen and (max-width: 735px) {
    #frame #sidepanel #bottom-bar button {
        float: none;
        width: 100%;
        padding: 15px 0;
    }
}

#frame #sidepanel #bottom-bar button:focus {
    outline: none;
}

#frame #sidepanel #bottom-bar button:nth-child(1) {
    border-right: 1px solid #2c3e50;
}

@media screen and (max-width: 735px) {
    #frame #sidepanel #bottom-bar button:nth-child(1) {
        border-right: none;
        border-bottom: 1px solid #2c3e50;
    }
}

#frame #sidepanel #bottom-bar button:hover {
    background: #435f7a;
}

#donevc {
    background: #32465a;
}

#donevc:hover {
    background: #435f7a;
}

#frame #sidepanel #bottom-bar button i {
    margin-right: 3px;
    font-size: 1em;
}

@media screen and (max-width: 735px) {
    #frame #sidepanel #bottom-bar button i {
        font-size: 1.3em;
    }
}

@media screen and (max-width: 735px) {
    #frame #sidepanel #bottom-bar button span {
        display: none;
    }
}

#frame .content {
    float: right;
    width: 60%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

@media screen and (max-width: 735px) {
    #frame .content {
        width: calc(100% - 58px);
        min-width: 300px !important;
    }
}

@media screen and (min-width: 900px) {
    #frame .content {
        width: calc(100% - 340px);
    }
}

#frame .content .contact-profile {
    width: 100%;
    height: 60px;
    line-height: 60px;
    background: #fff;
}

#frame .content .contact-profile img {
    width: 40px;
    border-radius: 50%;
    float: left;
    margin: 9px 12px 0 9px;
}

#frame .content .contact-profile p {
    float: left;
}

#frame .content .contact-profile .social-media {
    float: right;
}

#frame .content .contact-profile .social-media i {
    margin-left: 14px;
    cursor: pointer;
}

#frame .content .contact-profile .social-media i:nth-last-child(1) {
    margin-right: 20px;
}

#frame .content .contact-profile .social-media i:hover {
    color: #435f7a;
}

/* #frame .content .messages {
    height: auto;
    min-height: calc(100% - 93px);
    max-height: calc(100% - 93px);
    overflow-y: scroll;
    overflow-x: hidden;
} */

@media screen and (max-width: 735px) {
    #frame .content .messages {
        max-height: calc(100% - 105px);
    }
}

#frame .content .messages::-webkit-scrollbar {
    width: 8px;
    background: transparent;
}

#frame .content .messages::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
}

#frame .content .messages ul > li > h1 {
    margin-top: 50px;
}

#frame .content .messages ul > li {
    display: inline-block;
    clear: both;
    float: left;
    margin: 15px 15px 5px 15px;
    width: calc(100% - 25px);
    font-size: 0.9em;
}

#frame .content .messages > ul > li:nth-last-child(1) {
    margin-bottom: 20px;
    padding-bottom: 50px;
}

#frame .content .messages ul > li:nth-last-child(1) ul li {
    margin-bottom: 0;
    padding-bottom: 0;
}

#frame .content .messages ul > li.replies img {
    margin: 6px 8px 0 0;
}

#frame .content .messages ul > li.sent {
    margin-bottom: 50px;
    width: 75%;
}

#frame .content .messages ul > li.replies p {
    color: #32465a;
    background: white;

    /* background: #435f7a; */
    /* color: #fff; */
    outline: transparent solid 1px;
    /* box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px; */
    word-wrap: break-word;
}

#frame .content .messages ul > li.replies div {
    color: #32465a;
    background: white;
    line-height: 1.8em;
}

#frame .content .messages ul > li.sent img {
    float: right;
    margin: 6px 0 0 8px;
}

#frame .content .messages ul > li.sent p {
    float: left;
    font-size: 2em;
    font-weight: bold;
    /* background: #fff; */
    /* float: right; */
    background: white;
    outline: transparent solid 1px;
    /* box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px; */
    word-wrap: break-word;
}

#frame .content .messages ul > li img {
    width: 22px;
    border-radius: 50%;
    float: left;
}

#frame .content .messages ul > li p {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 20px;
    /* max-width: 205px; */
    line-height: 140%;
}

@media screen and (min-width: 735px) {
    #frame .content .messages ul > li p {
        max-width: 800px;
    }
}

#frame .content .message-input {
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 99;
}

#frame .content .message-input .wrap {
    position: relative;
}

#frame .content .message-input .wrap input {
    font-family: "proxima-nova", "Source Sans Pro", sans-serif;
    float: left;
    border: none;
    width: calc(100% - 90px);
    padding: 11px 32px 10px 8px;
    /* font-size: 0.8em; */
    color: #32465a;
}

@media screen and (max-width: 735px) {
    #frame .content .message-input .wrap input {
        padding: 15px 32px 16px 8px;
    }
}

#frame .content .message-input .wrap input:focus {
    outline: none;
}

#frame .content .message-input .wrap .attachment {
    position: absolute;
    right: 60px;
    z-index: 4;
    margin-top: 10px;
    font-size: 1.1em;
    color: #435f7a;
    opacity: .5;
    cursor: pointer;
}

@media screen and (max-width: 735px) {
    #frame .content .message-input .wrap .attachment {
        margin-top: 17px;
        right: 65px;
    }
}

#frame .content .message-input .wrap .attachment:hover {
    opacity: 1;
}

#frame .content .message-input .wrap button {
    float: right;
    border: none;
    width: 50px;
    padding: 12px 0;
    cursor: pointer;
    background: #32465a;
    color: #fff;
}

@media screen and (max-width: 735px) {
    #frame .content .message-input .wrap button {
        padding: 16px 0;
    }
}

#frame .content .message-input .wrap button:hover {
    background: #435f7a;
}

#frame .content .message-input .wrap button:focus {
    outline: none;
}

/* wait animate */

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.name {
    -webkit-user-select: none;
    /* Chrome all / Safari all */
    -moz-user-select: none;
    /* Firefox all */
    -ms-user-select: none;
    /* IE 10+ */
    user-select: none;
    /* Likely future */
}

.wait {
    position: absolute;
    border: 2px solid #66708d;
    border-radius: 50%;
    border-top: 2px solid #0af54a;
    width: 40px;
    height: 40px;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
    z-index: 1;
    display: none;
}

p>b {
    color: #cccccc;
    font-weight: 600;
}

.badge {
    position: relative;
}

.badge[data-badge]:after {
    content: attr(data-badge);
    position: absolute;
    margin-left: 10px;
    font-size: .7em;
    background: rgba(22, 120, 110, .85);
    color: white;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    border-radius: 50%;
    box-shadow: 0 0 1px #333;
}

/* hide empty badge */

.badge[data-badge=""]:after {
    content: none;
}

.btn {
    border: 1px solid #dbdbdb !important; 
    width: 400px !important; /* Set width to match the largest button */
    border-radius: 15px !important; 
    background-color: rgb(255, 255, 255) !important; 
    color: black !important; 
    cursor: pointer !important;
    font-size: 14px;
    transition: border 0.25s ease-in-out;
}

/*make button slightly darker on hover by adding black background color with opacity 0.1*/
.btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid #9c9c9c !important; 
    /*make cursor a pointer when hovering over button*/
    cursor: pointer;
}

/* is typing... */

#channel-user-typing {
    padding-left: 8px;
    color: gray;
    font-size: 8pt;
    display: none;
}

/* FontAwesome Hovers for my Pencil & Trash icons */
.fa-pencil:hover {
    /*Keep white but make it slightly darker*/
    color: rgba(255,255,255,0.5);
}
.fa-trash:hover {
    /*Keep white but make it slightly darker*/
    color: rgba(255,255,255,0.5);
}

/*For the sup tag*/
.sup {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    vertical-align: top;
    top: -1px;
    margin: 0px 2px;
    min-width: 14px;
    height: 14px;
    border-radius: 3px;
    text-decoration-color: transparent;
    outline: transparent solid 1px;

    /*Change the background color here*/
    background-color: #f44336;
    color: #fff;
}

abbr {
    /* font-style: italic; */
    position: relative
}
  
abbr:hover::after {
    background: #fff;
    border-radius: 10px;
    bottom: 100%;
    content: attr(aria-title);
    display: block;
    left: 100%;
    padding: 1em;
    position: absolute;    
    width: 200px;
    z-index: 1;
    color: #000;
    text-decoration: none;
    pointer-events: none;
}
/*Make a div have the same properties as the abbr tag*/
/*Div with id of "abbr"*/
#abbr {
    /* font-style: italic; */
    position: relative
}
#abbr:hover::after {
    background: #fff;
    border-radius: 10px;
    bottom: 100%;
    display: block;
    content: attr(aria-title);
    left: 100%;
    padding: 1em;
    position: absolute;    
    width: 200px;
    z-index: 1;
    /*Give it the same blue color as hyperlinks*/
    color: #0000EE !important;
    text-decoration: none;
    pointer-events: none;
    font-size: 12px;
}


/*For p with id of "urlTitle"*/
#urlTitle {
    font-size: 20px;
    font-weight: bold;
}
/*For p with id of "urlLink"*/
#urlLink {
    font-size: 12px;
}

/*Animations of chat buttons*/
.btnctrl {
    position: relative;
    left: 0;
    display: flex;
    flex-direction: row;
}

/* .chatbtn {
    position: absolute;
    opacity: 0; 
    transform: translateY(-5px); 
    transition: all 0.5s ease; 
    visibility: hidden; 
} */

/* .replies:hover .chatbtn {
    opacity: 1; 
    transform: translateY(5px); 
    visibility: visible; 
} */

.chatbtn:hover {
    filter: brightness(0.5) !important;
}

.chatbtn:active {
    filter: brightness(0.25) !important;
}

.chatbtn {
    opacity: 1;
    transform: translateY(5px);
    transition: all 0.5s ease;
    visibility: visible;
    cursor: pointer;
    scale: 1;
    border-radius: 0;
    filter: brightness(0.65);
    overflow: visible;
}

.v2text {
    opacity: 0;
    transform: translateX(5px);
    transition: all 0.5s ease;
    visibility: hidden;
}

.v2info:hover .v2text {
    opacity: 1;
    transform: translateX(-5px);
    visibility: visible;
}

.v2img:hover {
    filter: brightness(0.5) !important;
}

.v2img:active {
    filter: brightness(0.25) !important;
}

/*City Logos CSS*/
/* Container for the image viewer */
/* Container for the image viewer */
/* Container for the image viewer */
.cl-image-container {
    position: relative;
    width: 1120px; /* Set width of the container to match the image */
    height: 375px; /* Height of the "view window" */
    overflow: hidden; /* Hide the overflow */
    scale: 0.8;
    /* Fading effect */
    background-color: white; /* Ensure the fade transitions into white */
    mask-image: linear-gradient(to bottom, black, transparent 90%);
    -webkit-mask-box-image: linear-gradient(to bottom, black, transparent 90%);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 90%);
  }
  
  /* Inner container for the image scroll effect */
  .cl-image-viewer {
    position: absolute;
    width: 1120px; /* Same as image width */
    height: 9040px; /* Full height of the image */
    transform: translateY(0); /* Start at the top */
    transition: transform 0.1s ease-out;
  }
  
  /* Image itself */
  .cl-scrollable-image {
    width: 1120px; /* Keep the width of the image intact */
    height: auto; /* Maintain aspect ratio */
    pointer-events: none; /* Disable direct interaction with the image */
  }
  
  #text {
    box-shadow: none;
    transition: box-shadow 1s ease-in-out; /* Adds a smooth transition effect */
}

#text:hover {
    box-shadow: rgba(78, 80, 93, 0.2) 0px 4px 20px 0px;
}

/* Headers for markdown */
h1 {
    font-size: 2.25em; /* 36px if the base size is 16px */
    font-weight: bold;
}

h2 {
    font-size: 1.875em; /* 30px if the base size is 16px */
    font-weight: bold;
}

h3 {
    font-size: 1.5em; /* 24px if the base size is 16px */
    font-weight: bold;
}

h4 {
    font-size: 1.25em; /* 20px if the base size is 16px */
    font-weight: bold;
}

h5 {
    font-size: 1em; /* 16px if the base size is 16px */
    font-weight: bold;
}

h6 {
    font-size: 0.875em; /* 14px if the base size is 16px */
    font-weight: bold;
}

strong {
    font-weight: bold;
}

/*Loading bars for chat*/
.grey-bar {
    opacity: 1;
    width: 100%;
    height: 16px;
    background-color: #8E929A !important;
    border-radius: 4px;
    position: relative;
    margin-bottom: 8px;
  }
  
  .blue-bar {
    position: absolute;
    width: 200%;
    height: 16px;
    background: linear-gradient(
      135deg, 
      rgba(0, 122, 255, 0) 30%, 
      rgba(0, 122, 255, 1) 50%, 
      rgba(0, 122, 255, 0) 70%
    ) !important;
    mix-blend-mode: screen; /* Blend with the grey background */
    animation: diagonal-slide 3s linear infinite;
    will-change: transform;
    left: -50%;
    opacity: 0; /* Initially hidden */
    animation-fill-mode: forwards; /* Ensure visibility updates after the first frame */
  }
  
  @keyframes diagonal-slide {
    from {
      transform: translateX(-50%); /* Start slightly off the left edge */
      opacity: 1;
    }
    to {
      transform: translateX(50%); /* End slightly off the right edge */
      opacity: 1;
    }
  }
  /* Delayed start for offset1 and offset2 */
.offset1 {
    animation-delay: 0.35s;
}

.offset2 {
    animation-delay: 0.7s;
}

@media (max-width: 768px) {
    #search-container {
      width: 90% !important;
      max-width: 90% !important;
    }
    .cl-image-container {
        top: 50% !important;
        left: 50% !important;
        transform: translate(-63%, -40%) scale(0.5) !important;
    }
    #infoleft {
        grid-template-columns: none !important;
    }
    #infoleft > :nth-child(n+3) {
        display: none; /* Hide all children starting from the 3rd */
    }
    #credits {
        bottom: 0 !important;
        width: 100%;
        position: absolute;
        margin-bottom: 20px;
        display: flex;
        flex-direction: row;
        place-content: center;
    }
    #ShieldTexas, #UIL {
        fill: #32465a !important;
    }
    #ahrefutexas {
        margin-left: 0 !important;
    }
    #about {
        width: 100% !important;
    }
    #bottom-bar {
        display: flex;
        flex-direction: column;
    }
    #vc {
        height: auto !important;
        width: 100% !important;
    }
    #vcimg {
        position: inherit !important;
    }
    .popup-content {
        width: auto !important;
        height: auto !important;
        margin-top: 50% !important;
    }
    #popupimg {
        position: relative !important;
        padding-top: 5%;
        left: 0 !important;
        padding-bottom: 2.5%;
    }
    #popuph2 {
        padding-top: 0 !important;
    }

    .messages {
        max-width: 100% !important;
        margin-left: 0 !important;
        height: 80vh !important;
    }
    .anscontainer {
        flex-direction: column !important;
    }
    #frame .content .messages ul > li.sent {
        width: 100% !important;
        margin-bottom: 50px !important;
    }
    .citescontainer {
        flex-direction: row !important;
        gap: 40px !important;
        min-width: max-content !important;
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }
    #frame .content .messages ul > li {
        margin: 0 !important;
        width: 100% !important;
    }
    #loading-bars {
        max-width: 100vw !important;
    }
  }

  .anscontainer {
    display: flex;
    flex-direction: row;
  }

  .temp {
    width: 90%;
    display: none;
  }

  .reply {
    width: 90%;
  }

  .temp > * {
    opacity: 0; /* Start fully transparent */
    animation: fadeInRow 1s forwards;
    animation-delay: calc(var(--order) * 0.2s); /* Delay based on the custom order */
  }
  
  @keyframes fadeInRow {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  

  /*Citation Boxes*/
  
  .cite-carousel {
    margin: 0 -1rem;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-behavior: smooth;
    background-color: transparent;
    border: 1px solid #dbdbdb !important; 
    border-radius: 15px;
    transition: border 0.25s ease-in-out;
    max-width: 335px;
  }

.cite-carousel:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid #9c9c9c !important; 
    /*make cursor a pointer when hovering over button*/
    cursor: pointer;
}

  
  .cite-carousel::-webkit-scrollbar {
    display: none;
  }
  
  .cite-carousel-items {
    display: grid;
    grid-auto-flow: column;
    gap: 0.5rem;
    padding: 0 1rem;
  }
  
  .cite-carousel-item {
    width: 40vw;
  }
  
  .cite-card {
    width: 100%;
  }
  
  .cite-card-link {
    display: flex;
    width: 100%;
    cursor: pointer;
    align-items: stretch;
    height: 100%;
    text-decoration: none;
  }
  
  .cite-card-content {
    width: 100%;
  }
  
  .cite-card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.5rem;
    gap: 0.25rem;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
    transition: background-color 300ms;
  }
  
  .cite-card-title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    text-align: left;
    font-family: sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #32465a !important;
  }
  
  .cite-card-footer {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  
  .cite-card-source {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  
  .cite-source-icon {
    flex: none;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
  }
  
  .cite-source-icon img {
    display: block;
    height: 22px;
    width: 22px;
    margin: 0 8px 0 0;
  }
  
  .cite-source-name {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    font-family: sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
  }
  
  .citescontainer {
    max-width: 25%;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .suggestions {
    display: flex;
    flex-direction: column;
    min-width: 87.5%;
    max-width: 87.5%;
    margin-top: 30px;
  }

  .suggestion {
    background-color: rgb(255, 255, 255);
    cursor: pointer;
    padding: 15px;
    border-top: 1px solid #dbdbdb !important;
    border: none;
    position: relative;
    width: 400px !important;
    cursor: pointer !important;
    font-size: 16px;
    transition: border-top 0.25s ease-in-out, border-bottom 0.25s ease-in-out;
    min-width: 100%;
    max-width: 100%;
    color: #32465a;
  }

  .suggestion:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #161e27;
    /*make cursor a pointer when hovering over button*/
    cursor: pointer;
  }

  .suggestion svg {
    filter: brightness(0.7);
    right: 0;
    position: absolute;
    margin-top: -10px;
  }

  .suggestion:hover svg {
    filter: brightness(0.5);
  }

  .copysvg {
    scale: 1.15;
  }

  .reloadsvg {
    scale: 0.8;
  }

  .replies h1 {
    font-size: 1.75em;
    font-weight: bold;
    margin-bottom: 0.5em;
  }

.replies h2 {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 0.45em;
}

.replies h3 {
    font-size: 1.25em;
    font-weight: bold;
    margin-bottom: 0.4em;
}

.replies h4 {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 0.35em;
}

.replies h5 {
    font-size: 0.875em;
    font-weight: bold;
    margin-bottom: 0.3em;
}

.replies h6 {
    font-size: 0.75em;
    font-weight: bold;
    margin-bottom: 0.25em;
}

.replies strong {
    font-weight: bold;
}

.replies p {
    font-size: 1em;
    font-weight: normal;
}

.replies a {
    color: #007bff;
    text-decoration: none;
}

.replies a:hover {
    text-decoration: none;
}

.replies ul {
    list-style-type: disc;
}

.replies ol {
    list-style-type: decimal;
}

.replies ul, .replies ol {
    margin-left: 20px;
}

.replies blockquote {
    border-left: 4px solid #007bff;
    padding-left: 15px;
    margin-left: 0;
}

.replies code {
    font-size: 0.875em;
    background-color: #f8f9fa;
    padding: 0.25em 0.5em;
    border-radius: 0.25em;
}

.replies pre {
    font-size: 0.875em;
    background-color: #f8f9fa;
    padding: 0.5em;
    border-radius: 0.25em;
    overflow-x: auto;
}

.replies img {
    max-width: 100%;
    height: auto;
}

.replies table {
    width: 100%;
    border-collapse: collapse;
}

.replies th, .replies td {
    border: 1px solid #dee2e6;
    padding: 0.5em 1em;
}

.replies th {
    background-color: #f8f9fa;
}

.replies thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.replies tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

.replies tbody tr:nth-child(even) {
    background-color: #fff;
}

.replies tbody tr:hover {
    background-color: #e9ecef;
}
