@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500&display=swap');

:root {
	--p: #7a8afd;
	--h: #d5d9f4;
	--h: #7a8afd4d;

	--fc: #7a7a7a;
	--hc: #222;
	--l: #f1f1f1;
	--sd: #0000000d 0 6px 24px 0px, #00000014 0 0 0 1px
}
@font-face {
font-family: font;
src: url('5.ttf')
}
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	color: #222;
	font-family: 'jost';
	
}

::selection {
	background: #222;
	color: #fff
}

html {
	scroll-behavior: smooth
}

body {
	display: flex;
	transition: .5s ease;
	background: #fff;
	background: #fafafa;
	color: #333;
	font-size: 1rem
}

body::-webkit-scrollbar {
	width: 0
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--hc) !important
}

p,
span {
	color: var(--fc);
	font-size: .85rem;
	line-height: 24px
}

body>div {
	height: 100vh;
	background: #fff;
	border-right: 1px solid var(--l)
}

.d1 {
	min-width: 90px
}

.d2 {
	min-width: 300px
}

.d3 {background-color: #efebe3;
	background-image: url(../../assets/images/bg.png);
	min-width: calc(100% - 690px);
	
}

.d4 {
	min-width: 300px
}

.top_div {
	min-width: 100%;
	height: 70px;
	background: #fff;
	border-bottom: 1px solid var(--l)
}

.chat_div {
	min-width: 100%;
	height: calc(100vh - 140px);
	overflow-y: auto;
	overflow-x: hidden
}

.chat_div::-webkit-scrollbar,
.overflow-y::-webkit-scrollbar,
.friends::-webkit-scrollbar {
	width: 7px
}

.chat_div::-webkit-scrollbar-track,
.overflow-y::-webkit-scrollbar-track,
.friends::-webkit-scrollbar-track {
	background: var(--h)
}

.chat_div::-webkit-scrollbar-thumb,
.overflow-y::-webkit-scrollbar-thumb,
.friends::-webkit-scrollbar-thumb {
	background: var(--p);
	cursor: pointer
}

.btm_div {
	min-width: 100%;
	height: 60px;
	background: #fff;
	border-top: 1px solid var(--l);
	display: flex;
	align-items: center;
	position: relative
}

.btm_div>form>input {
	border: none;
	outline: none;
	height: 50px;
	padding: 0 15px;
	margin-left: 10px;
	font-size: .85rem;
	background: var(--l);
	width: 100%;
	border-radius: 30px
}

.btm_div>form {
	width: 100%;
	display: flex;
	align-items: center
}

.reply_box {
	position: absolute;
	bottom: 60px;
	left: 0;
	width: 100%;
	padding: 20px;
	background: var(--l);
	border-radius: 0;
	display: flex
}

.reply_box_text {
	overflow: hidden;
	border-left: 3px solid var(--p);
	padding: 0 10px;
	font-size: .85rem;
	line-height: 20px
}

.reply_close>i {
	cursor: pointer;
	color: #333;
	font-size: 20px
}

.image_prev_ {
	position: absolute;
	bottom: 60px;
	left: 10px;
	display: flex;
	align-items: flex-start
}

.image_prev_hide,
.file_prev_hide {
	display: none
}

.image_prev>img {
	width: 100px;
	height: 100px;
	border-radius: 10px;
	box-shadow: #000 1px -2px 5px -5px;
	object-fit: cover
}

.prev_close {
	margin-left: -15px;
	cursor: pointer
}

.show_sent_image {
	max-width: 200px;
	max-height: 200px;
	border-radius: 5px;
	object-fit: contain
}

.file_prev_ {
	bottom: 60px;
	display: flex;
	background: red;
	padding: 20px;
	position: absolute;
	background: var(--l);
	width: 100%
}

.file_prev {
	border-left: 3px solid var(--p);
	padding-left: 10px;
	text-transform: uppercase;
	color: var(--p)
}

.file_icon_ {
	color: #fff;
	font-size: 16px padding:10px;
	margin: 10px;

}

.flex {
	display: flex
}

.flex-direction-column {
	flex-direction: column
}

.align-items {
	align-items: center
}

.justify-content {
	justify-content: space-around
}

.icon_div {
	height: calc(100% - 70px)
}

.pointer {
	cursor: pointer;
}

.icon {
	cursor: pointer;
	height: 60px;
	width: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 10px;
	margin-bottom: 10px
}

.icon>i {
	font-size: 20px;
	transition: .1s ease;
	color: var(--h)
}

.icon:hover i {
	color: var(--p) !important
}

.active {
	color: var(--p) !important
}

.logo {
	width: 50px;
	height: 50px;
	object-fit: cover
}

.logo_ {
	display: flex;
	align-items: center;
	justify-content: center
}

.ico {
	min-width: 45px;
	height: 45px;
	display: flex;
	transition: .1s ease-in;
	align-items: center;
	justify-content: center;
	background: var(--h);
	cursor: pointer;
	margin-left: 15px;
	border-radius: 50px;
	position: relative
}

.files_menu {
	position: absolute;
	bottom: 0;
	display: block;
	border-radius: 50px;
	transform: translateX(100px);
	transition: .1s ease-in;
	height: 170px;
	z-index: -1
}

.files_menu>div {
	background: #fff;
	padding: 0;
	box-shadow: #00000026 1.95px 1.95px 2.6px;
	border-radius: 50px
}

.files_menu>div>div {
	height: 50px;
	width: 50px;
	display: flex;
	align-items: center;
	transition: .1s ease;
	position: relative;
	justify-content: center;
	border-radius: 50px;
	border-radius: 50px
}

.files_menu>div>div>input {
	cursor: pointer;
	position: absolute;
	height: 50px;
	opacity: 0;
	width: 50px;
	border-radius: 50px
}

.files_menu>div>div:hover {
	background: var(--h)
}

.files_menu>div>div>i {
	color: var(--p) !important
}

.ico:hover>.files_menu {
	z-index: unset;
	transform: translateX(0px)
}

.link_ico {
	line-height: 0;
	font-size: 20px;
	color: var(--p)
}

.ico:hover {
	background: var(--p)
}

.ico:hover i {
	color: #fff
}

i {
	transition: .1s ease-in;
	line-height: 0
}

.send {
	padding: 0 20px;
	border: none;
	outline: none;
	height: 70px;
	background: transparent;
	cursor: pointer
}

.send>i {
	font-size: 20px;
	color: var(--p)
}

.top_head {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin-left: 20px
}

.search_friend {
	height: 60px;
	display: flex;
	align-items: center;
	border-bottom: 1px solid var(--l)
}

.search_friend>i {
	color: var(--h);
	font-size: 20px;
	padding-left: 20px
}

.search_friend>input {
	border: none;
	font-size: 16px;
	outline: none;
	width: 100%;
	background: transparent;
	height: 60px;
	padding-left: 15px
}

.friends {
	height: calc(100vh - 130px);
	display: flex;
	flex-direction: column;
	overflow-y: auto
}

.friend {
	min-height: 70px !important;
	border-bottom: 1px solid var(--l);
	display: flex;
	align-items: center;
	transition: .1s ease-in;
	cursor: pointer
}

.friend:hover {
	background: var(--h)
}

.friend_name {
	line-height: 0;
	margin-top: 13px
}

.friend>.image>img {
	height: 50px;
	width: 50px;
	border-radius: 50px;
	background: var(--h)
}

.friend>.image {
	height: 50px;
	padding-left: 10px
}

.justify-content-between {
	justify-content: space-between
}

.text {
	width: 100%;
	padding: 0 10px
}

.chat_num {
	height: 10px;
	width: 10px;
	display: flex;
	align-items: center;
	color: #fff;
	justify-content: center;
	background: var(--p);
	border-radius: 20px;
	font-size: 13px;
	line-height: 0
}

.chat_time {
	font-size: 13px
}

.chat_user_logo {
	width: 55px;
	margin-left: 10px;
	height: 55px;
	border-radius: 50px
}

.chat_friend>div {
	height: 70px
}

.justify-content-center {
	justify-content: center;
	margin-left: 10px
}

.online-status {
	font-size: 13px;
	line-height: 20px
}

.demo_mess {
	font-size: .85rem
}

.typing {
	color: var(--p)
}
/* The switch - adapted from w3schools.com */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 15px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input.private_chat:checked + .slider {
    background-color: var(--p);
}

input.private_chat:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input.private_chat:checked + .slider:before {
    -webkit-transform: translateX(15px);
    -ms-transform: translateX(15px);
    transform: translateX(15px);
}

.padl-20 {
	padding-left: 20px
}

.show_more_info_close {
	padding-right: 20px;
}

.heading {
	height: 50px;
	width: 100%;
	padding: 0 20px
}

.chat_shared_images {
	padding: 0 20px 20px;
	border-bottom: 1px solid var(--l)
}

.bold {
	font-weight: 700;
	color: #444
}

.media_ {
	display: flex;
	flex-wrap: wrap;
	justify-content: center
}

.media_>img {
	width: 110px;
	background: var(--h);
	height: 70px;
	object-fit: cover;
	margin: 5px;
	border-radius: 10px;
	border: 1px solid var(--h);
	cursor: pointer
}

.space {
	min-width: 10px
}

.files_icon {
	margin-right: 0;
	height: 35px;
	width: 35px;
	background: var(--h);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 5px;
	font-size: 15px
}

.files_,
.links_,
.media_ {
	padding: 0
}

.files_>div,
.links_>div {
	height: 60px;
	margin-bottom: 0;
	padding: 0 20px;
	cursor: pointer;
	transition: .1s ease-in
}

.overflow-y {
	overflow-y: auto;
	height: calc(100vh - 70px)
}

.file_share_time {
	font-size: 12px;
	line-height: 20px
}

.file_name {
	font-size: 14px;
	font-weight: bolder;
	color: #111;
	line-height: 20px
}

.files_>div:hover,
.links_>div:hover {
	background: var(--h)
}

.file_size {
	font-size: 14px;
	color: var(--p);
	font-weight: 700
}

ul li {
	list-style: none
}

#chat_ul li {
	padding: 0 19px
}

#chat_ul h2,
#chat_ul h3 {
	display: inline-block;
	font-size: 11px;
	font-weight: 400
}

#chat_ul h3 {
	color: #444
}

#chat_ul .entete {
	margin-bottom: 5px
}

#chat_ul .message {
	word-wrap: break-word;
	color: #fff;
	cursor: pointer;
	line-height: 25px;
	padding: 6px 15px;
	max-width: 90%;
	display: inline-block;
	text-align: left;
	border-radius: 5px;
	font-size: 14px

}

#chat_ul .me {
	text-align: right;filter: drop-shadow(1px 1px 1px rgba(17, 17, 26, 0.1));
}
#chat_ul .you{
	filter: drop-shadow(-.1px 1px 1px rgba(17, 17, 26, 0.1));
}
#chat_ul .you .message {

	background-color: #fff;
	color: var(--hc);
	border-radius: 0 8px 8px 8px
}

#chat_ul .me .message {
	background-color: var(--p);
	border-radius: 8px 0 8px 8px
}

#chat_ul .triangle {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 10px 10px
}

#chat_ul .you .triangle {
	border-color: transparent #fff transparent transparent;
	margin-left: -19px;
	transform: translateY(9.7px)
}

#chat_ul .me .triangle {
	border-color: transparent transparent transparent var(--p);
	margin-left: 100%;
	transform: translateY(9.7px)
}

.mess {
	font-size: 1rem;
	color: #fff;
}

.you .mess {
	color: #333
}

.me .its_reply {
	padding: 10px;
	color: #dadada;
	background: #6b78d8;
	border-left: 3px solid var(--h);
	margin: 10px 0;
	border-radius: 5px
}

.you .its_reply {
	padding: 10px;
	color: var(--hc);
	background: var(--l);
	border-left: 3px solid var(--p);
	margin: 10px 0;
	border-radius: 5px
}

.nav_icon {
	height: 30px;
	width: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 20px;
	cursor: pointer
}

.nav_icon>i {
	font-size: 17px;
	color: var(--fc);
	transition: .1s ease-in
}

.nav_icon:hover i {
	color: var(--p)
}

.btm_div_i {
	display: none
}

.btm_div_icons {
	border-top: 1px solid var(--l);
	display: flex;
	align-items: center;
	justify-content: space-around;
	height: 50px
}

.btm_icon {
	cursor: pointer;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center
}

.btm_icon i {
	color: var(--h)
}

.btm_icon:hover i {
	color: var(--p)
}

.back_icon {
	width: 40px;
	height: 70px;
	justify-content: center;
	cursor: pointer
}

.back_icon>i {
	font-size: 20px
}

.hide_show {
	display: none;
	width: 40px;
	height: 70px
}

.black_friends {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background: #000000a3;
	display: none
}

.search_friends {
	width: 500px;
	max-width: 90%;
	border-radius: 10px;
	background: #fff;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	position: absolute
}

.h_ {
	padding: 20px;
	border-bottom: 1px solid #999
}

.search_content {
	padding: 40px 20px
}

.search_content input {
	width: 100%;
	background: transparent;
	border-radius: 5px 0 0 5px;
	outline: none;
	height: 45px;
	padding: 20px;
	border: 1px solid #999
}

.search_content button {
	cursor: pointer;
	background: var(--p);
	color: #fff;
	height: 45px;
	padding: 0 20px;
	border: none;
	border-radius: 0 5px 5px 0
}

.set_black {
	background: #000000ab;
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	width: 100%;
	display: none
}

.myimg {
	width: 150px;
	position: relative;
	height: 150px;
	border-radius: 50%;
	margin: 30px auto
}

.myimg>img,
.my_change_image {
	width: 150px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	height: 150px;
	display: block;
	border-radius: 50%;
	cursor: pointer
}

.my_change_image {
	opacity: 0
}

.user_info img {
	width: 100px;
	height: 100px;
	margin: auto;
	border-radius: 50%
}

.user_info p {
	padding: 10px 20px
}

.user_info {
	display: flex;
	flex-direction: column;
	align-items: center
}

.about_me_ {
	display: block
}

.about_me form input {
	width: 100%;
	display: flex;
	height: 45px;
	border: none;
	outline: none;
	border: 1px solid var(--p);
	background: transparent;
	border-radius: 5px;
	padding: 0 20px;
	margin-top: 15px
}

.about_me form button {
	height: 45px;
	border: none;
	display: block;
	outline: none;
	border: 1px solid var(--p);
	border-radius: 5px;
	background: var(--p);
	color: #fff;
	padding: 0 20px;
	margin-top: 15px;
	cursor: pointer
}

main {
	background: #FFF;
	width: 550px;
	max-width: 90%;
	margin: 100px auto;
	padding: 10px 30px 50px;
	box-shadow: 0 3px 5px #0003
}

main input,
main section {
	clear: both;
	padding-top: 10px;
	display: none
}

main label {
	font-weight: 700;
	font-size: 14px;
	display: block;
	float: left;
	padding: 10px 30px;
	border-top: 2px solid transparent;
	border-right: 1px solid transparent;
	border-left: 1px solid transparent;
	border-bottom: 1px solid var(--p)
}

main label:hover {
	cursor: pointer;
	color: var(--p)
}

#tab1:checked~#content1,
#tab2:checked~#content2,
#tab3:checked~#content3,
#tab4:checked~#content4 {
	display: block
}

main input:checked+label {
	text-decoration: none;
	border-color: var(--p) var(--p) transparent
}

.auth_left {
	flex: 1.3;
	background-repeat: no-repeat;
	background-size: cover;
	height: 100vh;
	background-image: url(../../assets/images/chat.jpg);
}

.auth_right {
	flex: 1;
	height: 100vh
}

.login_form,
.signup_form {
	height: 100vh;
	transition: .1s ease-in
}

.signup_form {
	transform: translateX(500px)
}

.login_details {
	padding: 30px;
	max-width: 400px;
	margin: auto;
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center
}

.login_details>img {
	width: 100px;
	height: 100px
}

a {
	text-decoration: none
}

.text_log {
	margin-top: 10px
}

.login_details>form>div {
	margin-top: 20px
}

.login_details input {
	border: none;
	outline: none;
	background: transparent;
	height: 50px;
	font-size: 16px;
	padding: 0 15px;
	width: 100%;
	transition: .1s ease-in;
	margin-top: 10px;
	border-bottom: 2px solid transparent;
	border-radius: 5px;
	border: 2px solid var(--l)
}

.login_details input:focus {
	border-bottom: 2px solid var(--p)
}

.login_btn {
	border-radius: 5px;
	transition: .1s ease-in;
	padding: 0 10px;
	background: var(--p) !important;
	border-bottom: 0 solid transparent !important;
	cursor: pointer;
	color: #fff
}

.login_btn:hover {
	background: #999
}

.f_pass {
	margin-top: 10px;
	display: flex;
	justify-content: flex-end
}

.sign_ {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 50px
}

.media_black,
.files_black {
	width: 100%;
	height: 100vh;
	position: fixed;
	top: 0;
	display: none;
	left: 0;
	background: #0000006b
}

.all_files_,
.all_media_ {
	position: absolute;
	top: 50%;
	left: 50%;
	background: #fff;
	width: 800px;
	overflow-y: auto;
	max-width: 90%;
	border-radius: 5px;
	height: 500px;
	max-height: 90vh;
	transform: translate(-50%, -50%)
}

.media_show>img {
	width: 100px;
	height: 70px;
	object-fit: cover;
	margin: 5px;
	cursor: pointer;
	border-radius: 5px
}

.media_show {
	flex-wrap: wrap
}

.file_show {
	display: flex;
	flex-wrap: wrap
}

.file_show>div {
	margin: 10px;
	transition: .1s ease-in;
	border-radius: 5px;
	border: 1px solid var(--l)
}

.file_show>div:hover {
	background: var(--h)
}

.hh_ {
	height: 50px;
	padding: 0 20px;
	border-bottom: 1px solid var(--l)
}

@media only screen and (max-width: 1100px) {
	.d4 {
		display: none
	}

	.d3 {
		width: calc(100% - 370px)
	}

	.nav_icon {
		margin-right: 10px
	}
}

@media only screen and (max-width: 670px) {
.file_show{
	flex-direction: column;
}.file_show>div{
	width: 90%!important;
	margin: auto;
	margin-top: 10px;
}.auth_left{
    display: none;
}
	.d3,
	.d1 {
		display: none
	}

	.d2 {
		width: 100%
	}
.d1{
	position: absolute;
    box-shadow: var(--sd);
}
	.friend {
		padding: 0 10px
	}

	.btm_div_i {
		display: block
	}

	.chat_user_logo {
		margin-left: 0
	}

	.hide_show {
		display: block
	}

	.d3 {
		position: absolute;
		width: 100%
	}

	.mess {
		font-size: .85rem !important
	}

	.d3 {
		overflow-y: hidden
	}

	.chat_div {
		overflow-x: hidden
	}

	.chat_div::-webkit-scrollbar,
	.overflow-y::-webkit-scrollbar,
	.friends::-webkit-scrollbar {
		width: 0
	}
}