@font-face {
    font-family: Yekan;
    src: url('Yekan.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
*:before, *:after {
    box-sizing: border-box;
}
a {
    text-decoration: none;
}
body {
    direction: rtl;
    background-color: #050505;
    background-image: url('images/gradient.png');
    background-repeat: no-repeat;
    background-size: 100% 300px;
    background-position: top;
    font-family: Yekan, tahoma;
    color: #fff;
}
#line{
    display: block;
    width: 340px;
    margin: 20px auto;
}
.loginsubmit {
    display: block;
    width: 340px;
    height: 48px;
    border-radius: 30px;
    border: 0;
    color: #fff;
    margin: 10px auto;
    padding: 5px;
    background: url('images/loginbtn.svg');
    background-repeat: no-repeat;
    font-family: Yekan, tahoma;
    font-size: 14px;
    cursor: pointer;
}
#main {
    width: 500px;
    margin: 0 auto;
}
header {
    width: 530px;
    margin: 0 auto;
    position: relative;
    height: 100px;
}
#panellogo {
    position: absolute;
    top: 15px;
    left: 20px;
    width: 80px;
    height: 66px;
}
#panelm {
    position: absolute;
    top: 28px;
    right: 20px;
    width: 40px;
    height: 40px;
}
#paneln {
    position: absolute;
    top: 28px;
    right: 70px;
    width: 40px;
    height: 40px;
}
#news {
    position: absolute;
    top: 69px;
    right: 69px;
    width: 200px;
    height: 0px;
    background: #333;
    border-radius: 10px;
    overflow-y: scroll;
    scrollbar-width: none;
    transition: height ease 1s;
    z-index: 5;
}
#news::-webkit-scrollbar {
    display: none;
}
#news span {
    display: block;
    font-weight: bold;
    margin: 3px 0 0 0;
    color: #eee;
}
#news p {
    font-size: 12px;
    text-align: justify;
    border-bottom: 1px solid #555;
    padding: 0 0 8px 0;
    margin: 10px 20px;
    color: #ccc;
}
#boxshow {
    position: fixed;
    width: 0;
    height: 0;
    top: 0;
    left: 0;
    background: #00000083;
    z-index: 3;
    pointer-events: none;
}
#boxshowbg {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -30%);
    width: 388px;
    min-height: 100px;
    background: url('images/boxcolor1.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity: 0;
    pointer-events: none;
}
#snackbar {
  visibility: hidden;
  width: 88%;
  height: 60px;
  background: #222222f5;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  position: fixed;
  left: 5%;
  right: 5%;
  bottom: 30px;
  padding: 18px 0 0 0;
  font-size: 15px;
  z-index: 5;
}
#snackbar.show {
  visibility: visible;
  transition: background ease 0.5s;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 4.5s;
  animation: fadein 0.5s, fadeout 0.5s 4.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;}
}
#drawableleft{
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    float: left;
    background:#00000050;
    opacity: 0;
    z-index: 5;
}
#drawable{
    position: fixed;
    top: 0;
    right: -65%;
    transition: right 0.5s;
    transition-timing-function: cubic-bezier(0.25,0.1,0.25,1);
    width: 0;
    height: 100%;
    z-index: 6;
}
#drawablemenu {
    width: 100%;
    height: 100%;
    float: right;
    text-align: right;
    background: #000;
    overflow-x:hidden;
    overflow-y:auto;
    scrollbar-width: none;
}
#drawablemenu::-webkit-scrollbar {
    display: none;
}
#drawablemenuprofile {
    background: #4000FF;
    width: 100%;
    height: 200px;
}
#drawablemenuprofile img {
    width: 60px;
    height: 60px;
    margin: 60px 20px 0 0;
    border-radius: 50%;
}
#drawablemenuprofile p {
    margin: 5px 20px 0 0;
}
#drawablemenuprofile span {
    font-family: tahoma;
    font-weight: bold;
}
#drawablemenulinks {
    position: relative;
    background: #000;
    width: 100%;
    height: 100%;
    padding: 10px 20px;
}
#drawablemenulinks ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sub-menu {
    padding: 10px 0;
    border-bottom: 1px solid #555;
}
.sub-menu a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}
.sub-menu-icon {
    width: 20px;
    height: 20px;
    margin: 1px 0 0 15px;
    float: right;
}
.sub-menu-title {
    font-size: 18px;
}
.sub-menu-toggle {
    width: 10px;
    height: 15px;
    float: left;
    margin: 5px 0 0 0;
    transition: transform 0.5s;
}
#drawablemenulinks ul li ul li a {
    padding: 10px 20px;
}
#loading {
    position: fixed;
    top: 0;
    left: 0;
    background: #181818;
    width: 100%;
    height: 100%;
    z-index: 10;
    transition: opacity ease 1s;
    animation-name: color-change;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
}
@keyframes color-change {
  0% {
    background-color: blue;
  }
  50% {
    background-color: red;
  }
  100% {
    background-color: green;
  }
}
#loading img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 155px;
    height: 120px;
}
#chatbox {
    position: fixed;
    bottom: -300px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 25px 25px 0 0;
    width: 460px;
    height: 360px;
    background-color: #050505;
    background-image: url('images/chatbox.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: top;
    transition: bottom 1s;
    z-index: 5;
}
#chatboxheader {
    position: relative;
    height: 60px;
    border-radius: 25px 25px 0 0;
    cursor: pointer;
}
#chatboxcenter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
#chatboximg {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 0 5px 0 0;
}
#chatboxheader p {
    display: inline-block;
    font-size: 18px;
    vertical-align: 4px;
    margin: 0 4px 0 0;
}
#chatboxclose {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    opacity: 0;
    transition: opacity 1s;
}
#chatboxbtns {
    position: relative;
    min-height: 43px;
    opacity: 0;
    transition: opacity 1s;
}
#chatboxbtn1 {
    display: inline-block;
    background: #4F00BF;
    border-radius: 20px;
    padding: 5px 10px 8px 10px;
    margin: 0 15px 0 0;
    cursor: pointer;
}
#chatboxbtn2 {
    display: inline-block;
    background: #333;
    border-radius: 20px;
    padding: 5px 10px 8px 10px;
    margin: 0 8px;
    cursor: pointer;
}
#chataddfriend {
    display: none;
    position: relative;
    width: 410px;
    height: 53px;
    margin: 15px auto 0px auto;
}
#addfriend {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    font-size: 16px;
    font-family: Yekan, tahoma;
    color: #fff;
    background: transparent;
    border: 1px solid #fff;
}
#addfriendbtn {
    position: absolute;
    top: 1px;
    left: 12px;
    width: 100px;
    border-right: 2px solid #555;
    font-size: 16px;
    padding: 9px 5px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
}
#chatboxfriends {
    height: 300px;
    overflow-y: scroll;
    padding: 0 10px 155px 10px;
    transition: opacity 1s;
    scrollbar-width: none;
}
#chatboxfriends::-webkit-scrollbar {
  display: none;
}
.chatboxfriendslist {
    position: relative;
    width: 418px;
    height: 81px;
    background: #333;
    border-radius: 15px;
    margin: 10px auto;
    cursor: pointer;
}
.chatboxfriendslistprofile {
    position: absolute;
    top: 12px;
    right:30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
}
.chatboxfriendsliststatus {
    position: absolute;
    top: 12px;
    right:30px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    z-index: 2;
}
.useronline {
    background: #B0B0B0;
}
.useroffline {
    background: #282828;
}
.chatboxfriendslistuser {
    position: absolute;
    top: 28px;
    right:100px;
}
.chatboxfriendslistunread {
    position: absolute;
    top: 25px;
    left:30px;
    width: 30px;
    height: 30px;
    font-size:12px;
    padding: 6px 0 0 1px;
    text-align: center;
    background: #6400EF;
    border-radius: 50%;
}
.chatboxfriendslistremove {
    display: none;
    position: relative;
    width: 418px;
    height: 39px;
    background: #333;
    border-radius: 15px;
    margin: 10px auto;
}
.chatboxfriendslistremoveprofile {
    position: absolute;
    top: 6px;
    right: 20px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}
.chatboxfriendslistremoveuser {
    position: absolute;
    top: 8px;
    right:65px;
}
.chatboxfriendslistremoveicon {
    position: absolute;
    top: 9px;
    left: 30px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}
#profile {
    display: none;
    position: relative;
    height: 83px;
}
#profile img:nth-child(1) {
    position: absolute;
    top: 10px;
    right: 20px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
}
#profile img:nth-child(2) {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 14px;
    height: 23px;
    cursor: pointer;
}
#profile h2 {
    position: absolute;
    top: 16px;
    right: 88px;
    font-size: 16px;
}
#profile h3 {
    position: absolute;
    top: 38px;
    right: 91px;
    font-size: 12px;
    font-weight: normal;
}
#chatmessageinput {
    display: none;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 93%;
    height: 50px;
    text-align: right;
    color: #fff;
    padding: 11px;
    background: #333;
    border: 0;
    border-radius: 8px;
    font-family: Yekan, tahoma;
    resize: none;
}
#sendheartimg {
    display: none;
    position: absolute;
    bottom: 16px;
    left: 62px;
    width: 35px;
    height: 35px;
    cursor: pointer;
}
#chatmessageimg {
    display: none;
    position: absolute;
    bottom: 25px;
    left: 33px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.chats {
    min-height: 10px;
    margin: 10px;
    overflow: hidden;
}
.chatc {
    width: 60%;
    min-height: 10px;
    border-radius: 10px;
    padding: 10px;
    font-size: 14px;
    text-align: justify;
}
.chatme {
    float: right;
    background: #4F00BF;
}
.chatfriend {
    float: left;
    background: #2E2E2E;
}
.date {
    width: 100%;
    height: 20px;
    padding: 3px 5px;
    font-size: 10px;
    color: #ccc;
}
.dateme {
    float: right;
    text-align: right;
}
.datefriend {
    float: left;
    text-align: left;
}

@media screen and (max-width:695px) { 

    header {
        width: 96%;
        margin: 0 auto;
    }
    #main {
        width: 96%;
        margin: 0 auto;
    }
    #boxshowbg {
        width: 96%;
    }
    #chatbox {
        width: 100%;
    }
    .chatboxfriendslist {
        width: 96%;
    }
    .chatboxfriendslistremove {
        width: 96%;
    }
    #chataddfriend {
        width: 92%;
    }
    
}