.modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999;
	background: #333;
	opacity: 0.3;
}
.progress {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 32px;
	height: 32px;
	margin-left: -16px;
	margin-top: -16px;
	z-index: 1000;
}

#snackbar {
  visibility: hidden;

  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 2px;
  padding: 16px;
  position: fixed;
  z-index: 1111;
  left: 25px;
  right: 25px;
  bottom: 30px;
  font-size: 15px;
}

#snackbar.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
  from {bottom: 0; opacity: 0;} 
  to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {bottom: 30px; opacity: 1;} 
  to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

#chat-dialog {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 990;
	background: #FFF;
}

#chat-dialog .header {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 60px;
}
#chat-dialog .header .counter {
	min-height: 14px;
	width: 70px;
	background: #333;
	color: #FFF;
	margin:5px;
	margin-right: 10px;
	border-radius: 5px;
	padding:3px;
	box-shadow: 1px 1px 6px 0px rgba(0,0,0,0.7);
	font-size: 12px;
	text-align: center;
}
#chat-dialog .header h4 {
	margin: 0;
	padding: 0;
	color: #333;
}
#chat-dialog .chat-body {
	position: absolute;
	top: 60px;
	right: 0;
	left: 0;
	bottom: 61px;
	overflow: auto;
	background-color: #FBFBFB;
}

#chat-dialog .footer {
	position: absolute;
	bottom: 0;
	right: 0;
	height: 60px;
	background-image: url(../images/bg-01.jpg);
	background-size: 100% 100%;
	left: 0;
}
::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #FFF;
  opacity: 1; /* Firefox */
}
#chat-dialog .footer .message {
	border: solid 1px #CCC;
	background-color: transparent;
	padding: 5px;
	border-radius: 5px;
	height: 100%;
	width: 100%;
	color: #FFF;
}
.chat-list {
	list-style-type: none;
	margin: 0;
	padding: 0;
}
.chat-list li {
	height:auto;
}
.sent-message tr td,.received-message tr td {
	position: relative;
	height: auto;
}
.sent-message .message,.received-message .message {
	min-height: 55px;
	padding: 5px;
	-webkit-box-shadow: 1px 1px 6px 0px rgba(0,0,0,0.75);
	-moz-box-shadow: 1px 1px 6px 0px rgba(0,0,0,0.75);
	box-shadow: 1px 1px 6px 0px rgba(0,0,0,0.75);
	border-radius: 5px;
}
.sent-message .message {
	background: #FFF;
	margin:0;
	color: #666;
}
.received-message .message {
	background: PURPLE;
	margin: 0;
	color: #FFF;
}
.sent-message .photo, .received-message .photo{
	margin:0;
	margin-top: 10px;
	margin-bottom: 10px;
	height:45px;
	width: 45px;
	background: #CCC;
	border-radius: 50%;
	overflow: hidden;
	text-align: center;
	position: relative;
}
.sent-message .photo img, .received-message .photo img {
	height: 100%;
	position: absolute;
	left: 50%;
	margin-left: -45px;
}
