@font-face {
  font-family: dana;
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/dana/woff2/Dana-Light.woff2") format("woff2"),
    url("../fonts/dana/woff/Dana-Light.woff") format("woff");
}
@font-face {
  font-family: dana;
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/dana/woff2/Dana-Medium.woff2") format("woff2"),
    url("../fonts/dana/woff2/Dana-Medium.woff") format("woff");
}
@font-face {
  font-family: dana;
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/dana/woff2/Dana-DemiBold.woff2") format("woff2"),
    url("../fonts/dana/woff/Dana-DemiBold.woff") format("woff");
}
@font-face {
  font-family: dana;
  font-style: normal;
  font-weight: 900;
  src: url("../fonts/dana/woff2/Dana-Black.woff2") format("woff2"),
    url("../fonts/dana/woff/Dana-Black.woff") format("woff");
}
@font-face {
  font-family: dana;
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/dana/woff2/Dana-Regular.woff2") format("woff2"),
    url("../fonts/dana/woff/Dana-Regular.woff") format("woff");
}
@font-face {
  font-family: Graphy;
  font-weight: 300;
  src: url("../fonts/Graphy/Graphy_W_Lt.woff2") format("woff2"),
    url("../fonts/Graphy/Graphy_W_Lt.woff") format("woff");
}
:root {
  --primary: #e4810d;
}
* {
  /*user-select: none;*/
  cursor: pointer;
  font-family: dana;
  -moz-font-feature-settings: "ss02";
  -webkit-font-feature-settings: "ss02";
  font-feature-settings: "ss02";
}
*,
:after,
:before {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
button {
  cursor: pointer;
}
svg {
  vertical-align: middle;
  width: 30px;
  height: 30px;
}
li,
ul {
  list-style: none;
}
a,
abbr,
acronym,
address,
applet,
article,
aside,
audio,
b,
big,
blockquote,
body,
canvas,
caption,
center,
cite,
code,
dd,
del,
details,
dfn,
div,
dl,
dt,
em,
embed,
fieldset,
figcaption,
figure,
footer,
form,
h1,
h2,
h3,
h4,
h5,
h6,
header,
hgroup,
html,
i,
iframe,
img,
ins,
kbd,
label,
legend,
li,
mark,
menu,
nav,
object,
ol,
output,
p,
pre,
q,
ruby,
s,
samp,
section,
small,
span,
strike,
strong,
sub,
summary,
sup,
table,
tbody,
td,
tfoot,
th,
thead,
time,
tr,
tt,
u,
ul,
var,
video {
  border: 0;
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}
a {
  text-decoration: none;
  color: inherit;
}
h1 {
  font-size: 14px;
  padding: 10px;
}
body {
  margin: 0;
  padding: 0;
  background: #222;
  color: #fff;
  direction: rtl;
  font-size: 14px;
}
.main {
  background: url(http://lovinet.ir/assets/img/new-pattern-6.png);
  background-repeat: no-repeat;
  background-position: center;
  width: 575px;
  height: 100%;
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  overflow: hidden;
  border: 1px solid #3f3f3f;
}
.head {
  background: rgb(32 32 32 / 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  height: 6%;
}
.body-content {
  background: rgb(32 32 32 / 70%);
  height: 87%;
  overflow: hidden;
  overflow-y: auto;
  padding-bottom: 50px;
}
.body-content::-webkit-scrollbar {
  width: 0px;
}
.user-card {
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid #333;
  transition: all 0.5s ease;
}
.user-card:active {
  background: #333;
}
.user-card .user-profile {
  display: flex;
  align-items: center;
}
.user-card .user-profile .profile-image {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 100px;
  overflow: hidden;
}
.user-card .user-profile .profile-image .user-is-online {
  position: absolute;
  bottom: 3px;
  right: 50%;
  transform: translateX(50%);
  width: 10px;
  height: 10px;
  background: #15dd54;
  border-radius: 50px;
  animation: 3s linear infinite spin;
}
@keyframes spin {
    0% {
        box-shadow: 0 0 0px 0 #15dd54;
    }
    50% {
        box-shadow: 0 0 100px 0 #15dd5400;
    }
    100% {
        box-shadow: 0 0 0px 0 #15dd54;
    }
}
.user-card .user-profile .profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-card .user-profile .profile-name {
  padding-right: 15px;
}
.user-card .user-profile .profile-name .display-name {
  font-size: 14px;
  font-weight: 700;
}
.user-card .user-profile .profile-name .last-message {
  font-size: 13px;
  color: #eee;
  margin-top: 5px;
}
.user-card .status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.user-card .status .unread {
    background: #f00;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-size: 12px;
}
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 7%;
}
.foot a {
  width: 100%;
  height: 100%;
  background: rgb(85 85 85 / 10%);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
}
.foot a.active {
  background: rgb(113 113 113 / 30%) !important;
  transition: none;
}
.foot a:active {
  background: rgb(113 113 113 / 30%) !important;
}
#find_username {
  display: flex;
  align-items: end;
  justify-content: center;
  width: 100%;
  height: 100px;
}
#find_username input {
  direction: ltr;
  text-align: center;
  width: 70%;
  background: transparent;
  color: #fff;
  border: none;
  outline: none;
  padding: 10px;
  padding-left: 0;
  border-bottom: 2px solid #444;
}
#result_users {
  display: none;
  margin: 30px;
  margin-top: 50px;
}
#result_users .not-found {
  display: block;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #eee;
}
#result_users .user-item {
  text-align: center;
  text-transform: capitalize;
  background: #252525;
  padding: 15px;
  padding-right: 25px;
  border-radius: 15px;
  margin-bottom: 8px;
  font-weight: 400;
  color: #ccc;
  letter-spacing: 1px;
  font-family: Graphy;
  transition: all 0.5s ease;
}
#result_users .user-item:active {
  background: #333;
}
#change_settings {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#change_settings .profile-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  margin-bottom: 40px;
  margin: 20px;
}
#change_settings .profile-image img {
  width: 300px;
  height: 300px;
  border-radius: 20px;
  object-fit: cover;
}
#change_settings textarea,
#change_settings select,
#change_settings input {
  text-align: center;
  width: 70%;
  background: transparent;
  color: #fff;
  border: none;
  outline: none;
  padding: 10px;
  padding-left: 0;
  border-bottom: 2px solid #444;
  margin-bottom: 30px;
  color: #eee;
}
#change_settings option {
  background: #252525;
}
#change_settings option:hover {
  background-color: #353535;
}
#submit_settings {
  background: #016d2e;
  font-weight: 700;
  border: none;
  outline: none;
  width: 70%;
  padding: 10px;
  color: #fff;
  border-radius: 10px;
  transition: all 0.5s ease;
}
#submit_settings:active {
  background: #038539;
}
#logout {
  background: #a71414;
  font-weight: 700;
  border: none;
  outline: none;
  width: 70%;
  padding: 10px;
  color: #fff;
  border-radius: 10px;
  margin-top: 20px;
  transition: all 0.5s ease;
}
#logout:active {
  background: #cf2323;
}
.in-chat .body-content {
  height: 80%;
}
.in-chat .head {
  background: transparent;
  height: 10%;
  backdrop-filter: blur(5px);
}
.in-chat .display-name {
  font-size: 14px;
  font-weight: 700;
}
.in-chat .last-status {
  font-size: 13px;
  color: #eee;
}
.in-chat .back a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #222;
  border-radius: 10px;
  font-size: 22px;
  box-shadow: 0 0 30px #00000066;
  transition: all 0.5s ease;
}
.in-chat .back a:active {
  background: #333;
}
.in-chat .user-card {
  border: none;
  padding: 0 10px;
  background: transparent !important;
}
.in-chat .foot {
  position: relative;
  height: 9%;
  background: rgb(0 0 0 / 30%);
  backdrop-filter: blur(10px);
}
.in-chat .foot textarea {
  background: transparent;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  color: #fff;
  padding: 15px;
  font-size: 16px;
  font-weight: 300;
  overflow: hidden;
  overflow-y: auto;
  line-height: 25px;
  cursor: text;
  padding-right: 60px;
}
.in-chat .foot textarea::-webkit-scrollbar {
  width: 0px;
}
#submit_send_message {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  outline: none;
}
#send_media {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  outline: none;
}
#send_media i,
#submit_send_message i {
  color: #fff;
  transform: rotate(180deg);
  font-size: 20px;
}
#send_media i:active,
#submit_send_message i:active {
  transform: rotate(180deg) scale(1.2);
}
.in-chat .body-content {
  background: transparent;
  display: flex;
  flex-direction: column-reverse;
  padding: 20px;
}
.in-chat .body-content .message-item {
  display: flex;
  justify-content: start;
  position: relative;
}
.in-chat .body-content .message-item .inner-message {
    width: fit-content;
    position: relative;
}
.in-chat .body-content .message-item.music,
.in-chat .body-content .message-item.video,
.in-chat .body-content .message-item.image {
  position: relative;
  height: 300px;
}
.in-chat .body-content .message-item.video .message,
.in-chat .body-content .message-item.image .message {
  padding: 0;
  padding-bottom: 25px;
}
.in-chat .body-content .message-item.video .message .action,
.in-chat .body-content .message-item.image .message .action {
    margin: 0;
    margin-bottom: 10px;
    margin-right: 10px;
}
.in-chat .body-content .message-item.music .message,
.in-chat .body-content .message-item.video .message,
.in-chat .body-content .message-item.image .message {
  width: 300px;
}
.in-chat .body-content .message-item.image img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}
.in-chat .body-content .message-item.sending {
  opacity: 0.7;
}
.in-chat .body-content .message-item.front {
  justify-content: end;
}
.in-chat .body-content .message-item .message {
  position: relative;
  padding: 10px 14px;
  min-width: 150px;
  background: rgb(104 104 104 / 30%);
  font-size: 13px;
  border-radius: 10px 10px 0 10px;
  margin-top: 10px;
  backdrop-filter: blur(5px);
  max-width: 450px;
}

.in-chat .body-content .message-item .message.video {
    
}

.in-chat .body-content .message-item .message video {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.in-chat .body-content .message-item .message.music,
.in-chat .body-content .message-item .message.image {
    padding-bottom: 10px;
}
.in-chat .body-content .message-item.front .message {
  background: rgb(41 41 41 / 30%);
  border-radius: 10px 10px 10px 0;
}
.in-chat .body-content .message-item .message pre {
  line-height: 30px;
  word-break: break-all;
  overflow-wrap: break-word;
  white-space: break-spaces;

}
.in-chat .body-content .message-item .message .action {
  display: flex;
  align-items: center;
  margin-top: 10px;
}
.in-chat .body-content .message-item .message .action .fa-check-double {
  color: #58ff58;
}
.in-chat .body-content .message-item .message .action small {
  display: block;
  font-size: 10px;
  font-weight: 100;
  margin-right: 5px;
}
#register_form,
#auth_form {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    display: flex;
    flex-direction: column;
    width: 50%;
}
#register_form input,
#auth_form input {
    background: #181818;
    outline: none;
    margin-bottom: 20px;
    border: 1px solid #2d2d2d;
    border-radius: 10px;
    padding: 20px;
    color: #fff;
    text-align: center;
}
#submit_auth {
    padding: 15px;
    border-radius: 50px;
    border: none;
    outline: none;
    background: #07672e;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    transition: all .3s ease;
}
#submit_auth:active {
    background: #08833a;
}
#submit_register {
    padding: 15px;
    border-radius: 50px;
    border: none;
    outline: none;
    background: #121212;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: all .3s ease;
    width: 50%;
    margin: 0 auto;
    margin-top: 20px;
}
#submit_register:active {
    background: #161616;
}
.alert {
    position: fixed;
    bottom: 70px;
    right: 50%;
    transform: translateX(50%) scale(0);
    background: #333;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.alert.show {
    bottom: 70px;
    transform: translateX(50%);
}
.alert .icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(0 0 0 / 30%);
    margin-left: 10px;
    border-radius: 6px;
    display: none;
}
.alert.err {
    background: #bb1818;
}
.alert.ok {
    background: #0c811b;
}
.alert.err .err {
    display: flex;
}
.alert.ok .ok {
    display: flex;
}
.message-music {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.message-music .toggle-play {
    width: 8%;
    font-size: 20px;
}
.message-music .progress-container {
    width: 92%;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateY(15px);
}
.message-music .progress-container .progress-bar {
    position: relative;
    width: 100%;
    height: 5px;
    background: #ccc;
    border-radius: 30px;
}
.message-music .progress-container .buffer_progress_bar {
    position: absolute;
    top: 2.5px;
    left: 0;
    width: 0%;
    height: 5px;
    background: #f00;
    border-radius: 30px;
}
.message-music .progress-container .time-holder {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 30px;
}
#home_screen_page,
#chat_screen_page {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
#chat_screen_page .loading-holder {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgb(0 0 0 / 40%);
    z-index: 1;
    backdrop-filter: blur(10px);
    transition: all .3s ease;
}
#chat_screen_page .loading {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    z-index: 2;
    font-size: 50px;
    transition: all .3s ease;
}
#chat_screen_page.loaded .loading-holder {
    opacity: 0;
    visibility: hidden;
}
#chat_screen_page.loaded .loading {
    opacity: 0;
    visibility: hidden;
}
.button_dl_file {
    display: block;
    text-align: center;
    padding: 15px 30px;
    background: #00000050;
    border-radius: 13px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all .3s ease;
}
.button_dl_file:hover {
    background: #0000006b;
}
.file_name {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    background: #00000030;
    padding: 5px 10px;
    border-radius: 50px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.in-chat .body-content .message-item .copy-message {
    position: absolute;
    bottom: 0;
    left: 0px;
    z-index: -1;
    opacity: 0;
    transition: all .1s ease;
}
.in-chat .body-content .message-item:hover .copy-message {
    left: -40px;
    z-index: 1;
    opacity: 1;
}
.in-chat .body-content .message-item.front .copy-message {
    position: absolute;
    bottom: 0;
    right: 0px;
    z-index: -1;
    opacity: 0;
    transition: all .1s ease;
}
.in-chat .body-content .message-item.front:hover .copy-message {
    left: unset;
    right: -40px;
    z-index: 1;
    opacity: 1;
}
.in-chat .body-content .message-item .copy-message .icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(219 215 215 / 30%);
    padding: 5px;
    border-radius: 5px;
    backdrop-filter: blur(20px);
}
#chat_screen_page .chat-profile {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    background: rgb(0 0 0 / 80%);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
}
#chat_screen_page .chat-profile.active {
    opacity: 1;
    visibility: visible;
}
#chat_screen_page .chat-profile .head {
    width: 90%;
    justify-content: space-between;
    background: transparent;
    backdrop-filter: unset;
}
#chat_screen_page .chat-profile .head .close {
    font-size: 24px;
}
#chat_screen_page .chat-profile .head .menu {
    
}
#chat_screen_page .chat-profile .body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
#chat_screen_page .chat-profile .profile img {
    width: 150px;
    height: 150px;
    border-radius: 100%;
}
#chat_screen_page .chat-profile .display-name {
    font-size: 20px;
}
#chat_screen_page .chat-profile .biography {
    position: relative;
    border: 1px dashed #fff;
    padding: 13px 30px;
    margin: 20px 0;
    border-radius: 10px;
    margin-top: 20px;
    width: 80%;
}
#chat_screen_page .chat-profile .biography span {
    position: absolute;
    top: -13px;
    right: 15px;
    z-index: 1;
    font-size: 11px;
    background: rgb(0 0 0 / 100%);
    padding: 3px 13px;
}
#chat_screen_page .chat-profile .about {
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#chat_screen_page .chat-profile .about .user {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#chat_screen_page .chat-profile .about strong {
    font-size: 14px;
    font-weight: 500;
}
#chat_screen_page .chat-profile .about span {
    font-size: 12px;
    font-weight: 300;
}
#chat_screen_page .chat-profile .about .message {
    background: #061600;
    color: #48f707;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}
@media screen and (max-width: 600px) {
    .main {
        width: 100%;
        height: 100%;
        right: 0;
        transform: none;
        border-radius: 0;
    }
    #register_form,
    #auth_form {
        width: 80%;
    }
    .alert {
        width: 80%;
        bottom: 20px;
    }
    .alert.show {
        bottom: 20px;
    }
}