*:before,
*:after {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	font-family: 'Times New Roman', cursive;
	font-weight: 500;
}
body {
	height: 100vh;
	background-image: url(images/bg.png);
	
}.container {
	width: 900px;
	top: 0;
	height: auto;
	height: 100vh;

}

.header{
  display: flex;
	align-items: center;
	background: #396353;
	padding: 15px 22px;
	justify-content: space-between;
	border-top-right-radius: 10px;
	border-top-left-radius: 10px;
	font-family: 'Times New Roman', cursive;
	
}
.card {
	position: relative;
    width: 880px;
    height: 100%;
    border-color: #396353;
    border-top-right-radius: 12px;
	border-top-left-radius: 12px;
	background-color: #fff;
	font-family: 'Times New Roman', cursive;
}
.card-header {
	background-color: #fff;

}

.card .header h3{
	color: white;
	justify-content: center;
	font-family: 'Times New Roman', cursive;
}

.header button {
	background: #396353;
	border: none;
	color: #fff;
	height: 40px;
	width: 40px;
	font-size: 1.9rem;
	margin-right: -10px;
	margin-top: 2px;
	padding-top: 2px;
	cursor: pointer;
	border-radius: 50%;
	background: none;
	transition: 0.2s ease;
	border: none;
	outline: none;
}
.unread {
	cursor: pointer;
	background-color: #f4f4f4;
}
.messages-box {
	max-height: 60rem;
	overflow: auto;
	background-color: #fff;
}
.online-circle {
	border-radius: 5rem;
	width: 5rem;
	height: 5rem;
}
.messages-title {
	float: right;
	margin: 0px 5px;
}
.message-img {
	float: right;
	margin: 0px 5px;
}
.message-header {
	text-align: right;
	width: 100%;
	margin-bottom: 0.5rem;

}
.text-editor {
	min-height: 18rem;
}
.messages-list li.messages-you .messages-title {
	float: left;
}
.messages-list li.messages-you .message-img {
	float: left;
}
.messages-list li.messages-you p {
	float: left;
	text-align: left;
	font-family: 'Times New Roman', cursive;
}
.messages-list li.messages-you .messages-p1 {
	float: left;
	text-align: left;
	margin-left: 61px;
	font-family: 'Times New Roman', cursive;
}
.messages-list li.messages-you .message-header {
	text-align: left;
}
.messages-list li p {
	padding: 12px 16px;
	max-width: 75%;
	font-size: 0.95rem;
	background: #5350C4;
	color: #fff;
	border-radius: 13px 13px 3px 13px;
	background: #F2F2FF;
	color: black;
	font-family: 'Times New Roman', cursive;
}
.messages-list li.messages-me p {
	float: right;
	background: #F2F2FF;
	color: black;
	font-family: 'Times New Roman', cursive;
}
.ql-editor p {
	font-size: 1rem;
}
.tool {
	position: relative;
  display: inline-block;
}

.tool .tooltiptext {
  visibility: hidden;
  width: 150px;
  background-color: #396353;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 150%;
  left: 50%;
  margin-left: -125px;
  opacity: 0;
  transition: opacity 0.3s;
  font-family: 'Times New Roman', cursive;
}

.tool .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #396353 transparent transparent transparent;
}

.tool:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.address  {
  position: relative;
  padding: 10px;
  background: #F2F2FF;
  border: 1px solid #ddd;
  border-radius: 13px 13px 3px 13px;
  margin-left: 62px;
  display: flex;
  width: 256px;
  padding: 6px 16px;
  font-family: 'Times New Roman', cursive;
}
.address .trc {
	border: none;
  outline: none;
  width:240px;
  background: #F2F2FF;
}
.address input.text {
  padding: 10px;
  font-size: 18px;
  color: #555;
  border: none;
  outline: none;
  font-family: 'Times New Roman', cursive;
}
.btn {
   padding: 10px;
   background: #F2F2FF;
   color: #396353;
   font-size: 18px;
   border: none;
   outline: none;
   border-radius: 10px;
   cursor: pointer;
   margin-top: 0px;
}
.card-header {
  position: relative;
  padding: 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  display: flex;
  font-family: 'Times New Roman', cursive;
}
.card-header input.text {
  padding: 10px;
  font-size: 18px;
  color: #555;
  border: none;
  outline: none;
  width: 100%;
}

.gallery {
	display: flex;
}

.gallery i {
	font-size: 24px;
	padding: 15px; 
}
.gallery input {
	display: none;
	visibility: none;
}
.payment  {
  width: 280px;
  margin-top: 15px;
  float: right;
}
.payment img {
	margin-top: 15px;
	width: 100%;
	margin-left: -40px;
	border-radius: 12px;

}
.button {
	color: white;
	background-color: #396353;
	border: none;
	outline: none;
	height: 40px;
	width: 70px;
	border-radius: 5px;
}

.avatar-sm {
	width: 50px;
	height: 50px;
}
@media only screen and (max-width: 564px){
    .container {
		width: 100%;
		margin-left:-12px;
		margin-right:auto;
		margin-top: auto;
	}
	.card {
		width: 100%;
		margin-top: 0px;
		height: 100%;
		position: fixed;
	}
	h3 {
		font-size: 16px;
	}
	.header {
		height: 50px;
	}
	.header button  {
		width: 30px;
		font-size: 20px;
	}
	.card-header {
		margin-top: 0px;
	}
	.avatar-sm {
		width: 40px;
		height: 40px;
	}
	.header{
		border-top-right-radius: 0;
		border-top-left-radius: 0;
	}

	.payment  {
		width: 240px;
	}
	.payment img {
		margin-left: -35px;
	}
	.messages-list li.messages-you .messages-p1 {
		margin-left: 49px;
	}
	.address {
		margin-left: 53px;
	}
	.address .trc {
		width: 200px;
	}
}
