.chat-main-container {
  position: relative;
  margin: 0;
  padding-bottom: 6rem;
  min-height: 100%;
}
.chat-header {
   padding:10px;
}
.chat-body {
   padding:10px;
}
.chat-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: white;
  display: none;
  margin-bottom: 0px;
}
.chat-item {
	padding:0px
}
.chat-page-container{
	display:none;
	min-height:100%;
   	position:relative;
   	padding-top: 3rem;
}
.add-room{
	
}
.chat-text-container {
	overflow:auto;
}
.go-to-rooms{
	text-align: center;
    color: cornflowerblue;
    cursor: pointer;
}
.chat-room-item{
  margin-bottom: 5px;
}
.room-item{
	width: 100%;
	vertical-align: middle;
	display: table-row;
	white-space:normal !important;
	padding-left: 0px;
	padding-right: 0px;
}
.room-name {
    float:left;
    padding-top: 8px;
    display: inline-block;
}
.text-chat{
    overflow: auto;
    height: auto;
    font-size: 16px;
    word-wrap: break-word;
}
.chat-input{
	max-height:25rem;
}
.chat-input-container {
    border-top: 1px solid lightgray;
}
.chat-input-container button{
    font-size: 20px;
}
.chat-input-container button .glyphicon{
    left: -2px;
    top: 3px;
}
.chat-input-container textarea{
    font-size: 16px;
    top: 6px;
    border: none;
    box-shadow: none;
}
.chat-link {
    color: #4C9ED9;
}
.user-image{
    position: relative;
    width: 5rem;
    height: 5rem;
    line-height: 5rem;
    top:1rem;
    float: left;
    position: relative;
    background-size: cover;
    background-color: #9dceff;
    box-shadow: 0 0 6px #B2B2B2;
    color: white;
    text-align: center;
    cursor: pointer;
}
.user-name{
	color: cornflowerblue;
	font-weight:bold;
	padding-left:2rem;
	padding-right:2rem;
	cursor: pointer;
}
.user-time{
    color: grey;
    padding-top:3px;
	padding-left:2rem;
	padding-right:2rem;
}
.send-button{
	padding-left:1rem;
}
.btn-img-upload {
    color: #777;
    background-color: #fff;
    border-color: #ddd;
}
img.chat-image {
    width: 100%;
    max-width: 250px;
}
.autoflow{
	overflow:auto;
}
.bubble{
    max-width: 95%;
    border-radius: .1rem;
    box-shadow: 0 0 .7rem #B2B2B2;
    display: inline-block;
    padding: 1rem 1rem;
    position: relative;
    vertical-align: top;
}
.btn-index-chat {
	color: #1298FF;
	background-color: transparent;
	border-color: transparent;
	position: absolute;
	padding-bottom: 9px;
	font-size: 140%;
	left: -10px;
	margin-left: 1em;
	margin-top: 0.2em;
}
.me{
    float: right;
    max-width: 85%;
}
.me.bubble::before {
   /*  background-color: #e5f7fd;
    content: "\00a0";
    display: block;
    height: 1rem;
    top: 1rem;
    position:absolute;
    transform:             rotate( 29deg ) skew( -35deg );
        -moz-transform:    rotate( 29deg ) skew( -35deg );
        -ms-transform:     rotate( 29deg ) skew( -35deg );
        -o-transform:      rotate( 29deg ) skew( -35deg );
        -webkit-transform: rotate( 29deg ) skew( -35deg );
    width:  .6rem;
    box-shadow: .2rem -.2rem 2rem 0 rgba( 178, 178, 178, .4 );
    right: -.1rem;     */
}
.me.bubble{
    background-color: #e5f7fd;
    margin: 0 2rem 0 5rem;
    margin-left: 28px;
    border-radius: 8px;
    border-bottom-right-radius: 8px;
}
.you {
    float: left;
    max-width: 88%;
}
.you.bubble::before {
   /*  background-color: #c7edfc;
    content: "\00a0";
    display: block;
    height: 1rem;
    top: 1rem;
    position:absolute;
    transform:             rotate( 29deg ) skew( -35deg );
        -moz-transform:    rotate( 29deg ) skew( -35deg );
        -ms-transform:     rotate( 29deg ) skew( -35deg );
        -o-transform:      rotate( 29deg ) skew( -35deg );
        -webkit-transform: rotate( 29deg ) skew( -35deg );
    width: .6rem;
    box-shadow: -.2rem .2rem .2rem 0 rgba( 178, 178, 178, .4 );
    left: -.1rem;    */
}

.you.bubble{
    background-color: #c7edfc; 
    margin: 0 5rem 0 2rem;    
    margin-right: 28px;
    border-radius: 8px;
    border-bottom-left-radius: 8px;
}

.chat-item .img-circle.me {
    position: relative;
    left: -2px;
}
.chat-item .img-circle.you {
    position: relative;
    left: 2px;
}
.chat-item .autoflow {
    margin-bottom: 8px;
}
.chat-item .name {
    margin-bottom: 3px;
}
button.list-group-item{
    border:none !important;
    padding: 10px;
}
button.list-group-item:hover {
    color: #555;
    text-decoration: none;
    background-color: #f5f5f5;
}
.new-messages {
    display: inline-block;
	position: relative;
	left: 16px;
	border-radius: 45%;
	width: auto;
	height: 20px;
	float: left;
	padding-top: 0px;
	padding-right: 6px;
	padding-left: 6px;
	background-color: orange;
	color:white
}
.number-of-messages {
    display: inline-block;
	border-radius: 45%;
	left: -16px;
	position: relative;
	width: auto;
	height: 20px;
	padding-top: 0px;
	background-color: grey;
	padding-right: 6px;
	padding-left: 6px;
	float:right;
	color:white
}

.you.bubbleInfo{
    background-color: #4C9ED9; 
    margin: 0 5rem 0 2rem;         
}
.me-info{
    float: right;
    position: relative;
    left: 50px;
}
.me-info.bubbleInfo{
    background-color: #4C9ED9; 
    margin: 0 5rem 0 2rem;         
}

.bubbleInfo{
  max-width: 80%;
    border-radius: .1rem;
    box-shadow: 0 0 .7rem #B2B2B2;
    display: inline-block;
    padding: 1rem 1rem;
    position: relative;
    vertical-align: top;
}

.you.bubbleInfo::before {
  background-color: #4C9ED9;
  content: "";
  display: block;
  height: 1rem;
  top: 34px;
  position: absolute;
  transform: rotate( 29deg ) skew( -35deg );
  -moz-transform: rotate( 115deg ) skew( -35deg );
    transform: rotate(115deg) skew(-35deg);
  -ms-transform: rotate( 115deg ) skew( -35deg );
  -o-transform: rotate( 115deg ) skew( -35deg );
  -webkit-transform: rotate( 115deg ) skew( -35deg );
  width: 1.6rem;
  box-shadow: -.2rem .2rem .2rem 0 rgba( 178, 178, 178, .4 );
  left: 8.9rem;
  z-index: -1;
}
.me-info.bubbleInfo::before {
  background-color: #4C9ED9;
  content: "";
  display: block;
  height: 1rem;
  top: 34px;
  position: absolute;
  transform: rotate( 29deg ) skew( -35deg );
  -moz-transform: rotate( 115deg ) skew( -35deg );
    transform: rotate(115deg) skew(-35deg);
  -ms-transform: rotate( 115deg ) skew( -35deg );
  -o-transform: rotate( 115deg ) skew( -35deg );
  -webkit-transform: rotate( 115deg ) skew( -35deg );
  width: 1.6rem;
  box-shadow: -.2rem .2rem .2rem 0 rgba( 178, 178, 178, .4 );
  left: 8.9rem;
  z-index: -1;
}


#ChatPage .chat-dropdown { padding:10px 7px; text-align:center; }
#ChatPage .chat-dropdown li.participant { padding:5px 0; text-align:left; border-bottom:1px solid #e6e6e6 }

.chat-templates{
  background-color: white;
  border-color: #c8c8c8;
  border-style: solid;
  border-width: 1px 1px 0px 1px;
  bottom: 0px;
  padding: 5px;
  position: absolute;
  text-align: center;
  width: 100%;
}
#ChatPage .emoji {
  height: 2em;
}
.verify-request {
  text-align: center;
  border-top: 1px solid lightgray;
  vertical-align: middle;
  line-height: 55px;
  font-size: 1.2em;
}

#viewPageModal .modal-dialog {
    height: 95%;
}

#viewPageModal .modal-content {
    height: 95%;
}

#viewPageModal .modal-body {
    height: 90%;
    padding: 15px 4px;
}

#viewPageModal .modal-inputs {
    height: 99%;
}

#externalPage {
    width: 100%;
    height: 100%;
}

/* New CSS */
.chatbox-messages {
    --red: #f75260;
    --blue: #0C6FFD;
    --yellow: #FFC019;
    --green: #188654;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

.chatbox__newmessages{
    display: flex;
    align-items: center;
    gap: 6px;
}

.numberofunread {
    color: var(--green);
    text-decoration: none;
}
.chatbox__message{
    margin: 5px 20px;
    padding: 10px 20px;
    box-shadow: 1px 1px 7px rgba(87, 87, 87, 0.1);
    width: 100%;
    border-radius: 7px;
    transition: 200ms;
    /* font-size: 0.9rem; */
}

.chatbox__newmessages__link{
    text-decoration: none;
}

.chatbox__message-title{
    text-decoration: none;
    color: #188654;
    font-size: 18px;
    font-weight: 600;
}
.chatbox__message-posts {
    font-size: 18px;
}

.message-title{
    word-wrap: break-word;
}
.message--unread{
    box-shadow: 0px 0px 8px rgba(0,0,0,0.2);
    border-left:4px solid  #188654;
}

.message--unread .chatbox__message-title{
    font-weight: 600;
}

.chatbox__message-divideEvenly {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbox__message-totalunread{
    background-color: var(--red);
    color: white;
    border-radius: 50%;
    /* width: 22px; */
    height: 22px;
    /* min-width: 22px; */
    display: inline-block;
    text-align: center;
    padding: 1px 6px;
    box-shadow: 1px 2px 5px rgba(0,0,0,0.2);
}

.chatbox__message:hover{
    background-color: rgb(251, 251, 251);
    cursor: pointer;
}

.chatbox__message-info{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.chatbox__message-hashtags{
    font-style: italic;
    color: rgb(175, 175, 175);
    text-align: right;
}

