:root {
  --primary-color: #fd6f0a;
  --secondarr-color: #ff6501;
  --green: #0bcc7d;
  --blue: #45A2C0;
  --darkblue: #0f1da0;
  --gold: #fdb40a;
  --red: #FF5722;
  --lime: #CDDC39;
  --yellow: #FFEB3B;
  --orange: #FF9800;
  --purple: #7b04eb;
  --pink: #E91E63;
  --font-color: #222;
  --bg-primary: #fff;
  --bg-primary-dark: rgb(246,246,246);
  --bg-primary-darkest: rgb(236,236,236);
  --bg-secondary: #e93e34;
  --bg-secondary-light: #ec4941;
  --bg-secondary-lightest: #f35951;
  --bg-secondary-dark: #e63229;
  --bg-secondary-darkest: #d8261d;
  --bg-dark: #180a03;
  --bg-dark-dark: #0e0602;
  --bg-dark-light: #1f0d04;
  --hint-color: rgb(129, 129, 129);
  --border-color: #e9e9e9;
  --border-color-dark: #e0e0e0;
  --border-color-darkest: #dfdfdf;
}

[data-theme="dark"] {
  --primary-color: #43b0ff;
  --bg-primary: #17173d;
  --bg-primary-dark: #141425;
  --bg-primary-darkest: #1c1c3a;
  --font-color: #eee;
  --hint-color: rgb(175, 175, 175);
  --border-color: #252525;
  --border-color-dark: #242424;
  --border-color-darkest: #0a0a0a;
  --bg-secondary: #2e2eff;
  --bg-secondary-light: #2f2fff;
  --bg-secondary-lightest: #4a4dfd;
  --bg-secondary-dark: #0a0b9b;
  --bg-secondary-darkest: #070783;
}
/* @media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #43b0ff;
    --bg-primary: #17173d;
    --bg-primary-dark: #141425;
    --bg-primary-darkest: #1c1c3a;
    --font-color: #eee;
    --hint-color: rgb(175, 175, 175);
    --border-color: #424242;
    --border-color-dark: #5f5f5f;
    --border-color-darkest: #969696;
    --bg-secondary: #2e2eff;
    --bg-secondary-light: #2f2fff;
    --bg-secondary-lightest: #4a4dfd;
    --bg-secondary-dark: #0a0b9b;
    --bg-secondary-darkest: #070783;
  }
} */

.bg-primary {
  background-color: var(--bg-primary) !important;
}

.bg-primary-dark {
  background-color: var(--bg-primary-dark) !important;
}

.bg-primary-darkest {
  background-color: var(--bg-primary-dark) !important;
}

@font-face {
  font-family: 'iran';
  src: url('fonts/iran.woff');
  font-weight: normal;
  font-style: normal
}

html {
  direction: rtl !important;
  text-align: right;
}

body {
  background-color: var(--bg-primary);
  text-align: justify;
  font-weight: normal;
  line-height: normal;
  color: var(--font-color);
  font-family: iran;
  font-size: .9em;
}

* {
  text-decoration: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  user-select: none;
}

.t-small {
  font-size: .9em
}

.t-smaller {
  font-size: .8em
}

.t-smallest {
  font-size: .7em
}

.t-big {
  font-size: 1.1em
}

.t-bigger {
  font-size: 1.2em
}

.t-biggest {
  font-size: 1.3em
}

.t-verybig {
  font-size: 1.5em
}

.blur {
  -webkit-filter: blur(5px);
  filter: blur(5px);
}

select {
  text-align-last: center;
}

a,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: inherit;
  text-decoration: none;
  font-size: inherit
}

.mybtn {
  background-color: var(--bg-secondary-light);
  color: #222;
  transition: .3s;
}

.mybtn:hover {
  background-color: var(--bg-secondary-dark);
  color: #000;
}
.pager .page{
  display: none;
}
.pager .page.act{
  display: initial;
}
.gslide{
  background-color: var(--bg-primary);
  display: none;
  width: 100%;
  min-height: 100%;
  position: relative;
}
.gslide.act {
  display: block;
}
input{
  color: var(--font-color);
}
input[type=range] {
  pointer-events: none;
 }
 
 input[type=range]::-webkit-slider-thumb {
  pointer-events:auto;
 }
.btn:focus,
input:focus {
  outline: none !important;
  box-shadow: none !important;
}

.btm-radius {
  border-radius: 0 0 15px 15px;
}

.btm-border {
  border-bottom: 1px solid var(--border-color);
}

.ltr {
  direction: ltr;
}

.rtl {
  direction: rtl;
}

.stretch {
  width: 100%;
}

a:hover {
  color: inherit;
  text-decoration: none;
  font-size: inherit
}

.row {
  margin-right: 0;
  margin-left: 0;
}

.hint {
  color: var(--hint-color);
}

.green {
  color: var(--green) !important;
}

.blue {
  color: var(--blue) !important;
}

.darkblue {
  color: var(--darkblue) !important;
}

.purple {
  color: var(--purple);
}

.gold {
  color: var(--gold);
}

.red {
  color: var(--red) !important;
}

.yellow {
  color: var(--yellow) !important;
}

.orange {
  color: var(--orange);
}

.pink {
  color: var(--pink);
}

.lime {
  color: var(--lime);
}

.primary-color {
  color: var(--primary-color);
}

.container-fluid {
  padding-right: 5px;
  padding-left: 5px;
}

.padd0 {
  padding-left: 0;
  padding-right: 0;
}

.padd2 {
  padding-left: 2px;
  padding-right: 2px;
}

.padd5 {
  padding-left: 5px;
  padding-right: 5px;
}

.padd7 {
  padding-left: 7px;
  padding-right: 7px;
}

.padd10 {
  padding-left: 10px;
  padding-right: 10px;
}

.padd15 {
  padding-left: 15px;
  padding-right: 15px;
}

.padd20 {
  padding-left: 20px;
  padding-right: 20px;
}

.mbot5 {
  margin-bottom: 5px
}

.mbot10 {
  margin-bottom: 10px;
}

.mbot15 {
  margin-bottom: 15px
}

.mbot20 {
  margin-bottom: 20px
}

.mbot25 {
  margin-bottom: 25px
}

.mbot30 {
  margin-bottom: 30px
}

.pbot5 {
  padding-bottom: 5px;
}

.pbot10 {
  padding-bottom: 10px;
}

.pbot15 {
  padding-bottom: 15px;
}

.pbot20 {
  padding-bottom: 20px;
}

.paddall5 {
  padding: 5px
}

.paddall10 {
  padding: 10px
}
.paddall15 {
  padding: 15px
}
.paddall20 {
  padding: 20px
}

.relative {
  position: relative;
}


#vp {
  width: 100%;
  margin: auto;
  transition: .3s;
  max-width: 540px;
  overflow: hidden;
  height: calc(100% - 30px);
  -webkit-transition: .3s -webkit-filter linear;
  -moz-transition: .3s -moz-filter linear;
  -moz-transition: .3s filter linear;
  -ms-transition: .3s -ms-filter linear;
  -o-transition: .3s -o-filter linear;
  transition: .3s filter linear, .3s -webkit-filter linear;
  height: 100%;
  overflow-y: scroll;
  padding: 10px;
}

#vp iframe {
  width: 100%;
  height: 100%;
  border: none;
}

nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  text-align: center;
  background-color: var(--bg-primary-dark);
  z-index: 10;
  max-width: 540px;
  border-top: 1px solid var(--border-color-dark);
}

nav ul {
  width: 100%;
  display: flex;
  height: 100%;
  max-width: 500px;
  margin: auto;
}

nav ul li {
  display: grid;
  width: 20%;
  align-items: center;
  text-align: center;
  list-style-type: none;
  cursor: pointer;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  user-select: none;
  position: relative;
}

.navli .bdg {
  position: absolute;
  width: 18px;
  height: 18px;
  background-color: var(--danger);
  color: white;
  font-size: 10px;
  border-radius: 50%;
  padding-top: 2px;
  text-align: center;
  top: 6px;
  left: calc(50% - 22px);
  display: none;
}

.navli .bdg.act {
  display: initial;
}

.navli.ss img {
  width: 45px;
  height: 45px;
  margin: auto;
  background-color: var(--bg-primary);
  transition: .1s;
  filter: grayscale(1);
}

.navli.ss>i {
  font-size: 2.4em;
}

.navli.ss.act>i {
  color: var(--primary-color);
  font-size: 3.2em;
}

.navli.ss.act img {
  filter: none;
  transform: scale(1.1);
}

.modal-footer>:not(:last-child) {
  margin-left: 5px;
}

.modal-footer>:not(:first-child) {
  margin-left: unset;
}

nav ul li {
  color: var(--font-color);
}
nav ul li>i {
  font-size: 26px;
  transition: .2s;
  position: relative;
}
nav ul li>span {
  font-size: 10px;
}

nav ul li.act {
  color: var(--secondarr-color);
}

nav ul li>i>i {
  font-size: .6em;
  position: absolute;
  top: calc(50% - 20px);
  left: calc(50% - 20px)
}

nav ul li>i.icofont-computer {
  font-size: 2.4em;
  top: 1px;
}

nav ul li.act>i.icofont-computer {
  font-size: 2.6em;
}

nav ul li>i>i.icofont-play-alt-1 {
  font-size: .4em;
  position: absolute;
  top: calc(50% - 9px);
  left: calc(50% - 7px);
}

nav ul li.act>i>i.icofont-play-alt-1 {
  top: calc(50% - 10px);
  left: calc(50% - 8px);
}

.modal-content {
  font-family: iran;
}

.container {
  padding-right: 10px;
  padding-left: 10px;
}

.form-control {
  /* border-radius: 0; */
  padding: 8px 10px 6px 10px !important;
  height: auto !important;
  font-weight: 200 !important;
  -webkit-appearance: unset !important;
  /* border: none; */
  background-color: transparent;
  transition: .3s;
  font-size: .9em;
}

button:focus {
  outline: none
}

.topgap {
  height: 40px;
}

.form-control:focus {
  border-color: #888;
  outline: none;
  box-shadow: none;
}

::placeholder {
  color: var(--hint-color) !important;
}

.help-color {
  border: 2px solid;
  width: 14px;
  height: 14px;
  display: inline-block;
  border-radius: 50%;
  position: relative;
  top: 3px;
}

.notification {
  position: fixed;
  top: 45vh;
  right: 20px;
  width: calc(100% - 40px);
  z-index: 10000
}

.notification>div {
  min-width: 200px;
  padding: 16px 12px;
  border-radius: 5px;
  position: relative;
  margin-bottom: 10px;
  display: none;
  -webkit-animation-duration: .4s;
  animation-duration: .4s;
  cursor: pointer;
}

.pointer {
  cursor: pointer;
}

.notification span {
  text-align: center;
  line-height: 25px;
  display: block;
  font-family: 'iran';
}

.notification .danger {
  background: rgb(240, 74, 54);
  background: linear-gradient(180deg, rgb(245, 50, 28) 3%, rgb(235, 83, 24) 100%);
  color: #fff;
}

.notification .warning {
  background: rgb(240, 74, 54);
  background: linear-gradient(180deg, rgba(240, 74, 54, 1) 3%, rgba(250, 171, 63, 1) 100%);
  color: #fff;
}

.notification .info {
  background-color: #81d4fa;
  color: #01579b;
  border: 1px solid #4fc3f7
}

.notification .success {
  background: rgb(21, 81, 91);
  background: linear-gradient(180deg, rgba(21, 81, 91, 1) 3%, rgba(102, 186, 138, 1) 100%);
  color: white;
}
.bg-success2{
  background: rgb(21, 81, 91) !important;
  background: linear-gradient(180deg, rgba(21, 81, 91, 1) 3%, rgba(102, 186, 138, 1) 100%) !important;
  color: white !important;
}
.no-border{
  border: none !important
}
.notification i {
  position: absolute;
  right: 4px;
  top: 10px;
  font-size: 1.5em
}

.notification .icofont-close {
  left: 0px;
  top: 0px;
  font-size: 1em;
  right: unset;
}

.notification .notif {
  font-size: .9em;
  padding: 7px 38px 7px 16px;
  margin-bottom: 15px;
}

.notification .notif .pic {
  background-image: url(img/noimg0.jpg);
  width: 50px;
  min-width: initial;
  height: 50px;
  background-size: cover;
  background-position: center;
  padding: 0;
  margin: 0;
  position: absolute;
  border-radius: 50%;
  top: calc(50% - 25px);
  right: -12px;
}

.notif.warning .pic {
  border: 3px solid #fdd735;
}

.notif.success .pic {
  border: 3px solid #81c784;
}

.notif.danger .pic {
  border: 3px solid #ef9a9a;
}

.radius {
  border-radius: 30px
}

#splash {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: #000;
  z-index: 1050;
}

#splashvideo {
  width: 100%;
    height: 100%;
    object-fit: cover;
}

#splash .mafia {
  position: absolute;
  width: 120px;
  bottom: 10px;
  left: calc(50% - 57px);
  transition: 2.5s;
}

#splash .mafia.big {
  position: absolute;
  width: 300%;
  bottom: calc(50% - 600px);
  left: calc(50% - 150%);
}

#splash .rubeno {
  position: absolute;
  width: 80px;
  bottom: 35px;
  left: calc(50% - 40px);
}

#splash .ss {
  position: absolute;
  width: 60px;
  bottom: 30px;
  left: calc(73% - 30px);
}

#splash .forgrand {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: .3s;
}

.beforeicon::before {
  font-family: 'icofont';
  content: attr(icon);
  position: absolute;
  right: -10px;
  top: 0;
  color: var(--primary-color);
  font-size: 17px;
}

.beforeicon::after {
  content: attr(label);
  position: absolute;
  right: 11px;
  top: 0;
  color: var(--primary-color);
  font-size: 12px;
}

.aftericon::after {
  font-family: 'icofont' !important;
  content: attr(icon) !important;
  position: absolute !important;
  right: 0 !important;
  bottom: 2px !important;
  color: var(--primary-color) !important;
  font-size: 18px !important;
  -webkit-text-security: initial;
}

[contenteditable=true] {
  outline: none;
  border-bottom: 1px solid #007eb5;
  ;
  padding: 2px 25px 3px 10px;
  color: var(--font-color);
  word-wrap: break-word;
  margin-bottom: 8px;
  display: block;
  position: relative;
}

[contenteditable=true]:empty:before {
  content: attr(placeholder);
  color: var(--hint-color);
}

[contenteditable=true]:empty {
  content: attr(placeholder);
  -webkit-text-security: initial;
}

[contenteditable=true]::after {
  content: "\ea54";
  font-family: 'icofont';
  position: absolute;
  right: -2px;
  bottom: 4px;
  color: var(--primary-color);
  font-size: 1.3em;
}

.editmode .hideedit {
  display: none !important;
}

.editmode .editcontent {
  display: inline-block !important;
}

.editmode .editcontent.d-block {
  display: block !important;
}

.editcontent,
.editcontent.d-block {
  display: none !important;
}

.password.act {
  -webkit-text-security: initial;
}

.password {
  -webkit-text-security: disc;
}

.msgrow {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--bg-secondary);
  padding: 3px 0;
  cursor: pointer;
  line-height: 18px;
}

.msgrow .hint {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.msgrow .align-self-center {
  overflow: hidden;
}

.msgrow .picbox {
  width: 18vw;
  height: 18vw;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--bg-secondary);
  margin: auto;
}

.msgrow .picbox .pic {
  width: 100%;
  height: 100%;
  background-size: cover;
  border: 2px solid var(--bg-primary);
  border-radius: 50%;
}

.msgrow .icofont-ui-press {
  color: var(--bg-secondary);
}

.msgrow.online .picbox {
  border: 3px solid var(--green);
}

.msgrow.online .icofont-ui-press {
  color: var(--green);
}

.msgrow .unread {
  background-color: var(--primary-color);
  color: white;
  padding: 3px 0;
  border-radius: 50%;
  width: 21px;
  height: 21px;
  display: block;
  text-align: center;
  font-size: 10px;
  font-family: iran;
}


#mloaderbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 11;
  background-color: var(--bg-primary);
  display: none;
}

#mloader {
  width: 100%;
  max-width: 540px;
  margin: auto;
  height: 100%;
  overflow-y: scroll;
  background-color: var(--bg-primary);
  position: relative;
}

#ploaderbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  display: none;
  padding: 0px;
  background-color: rgba(0, 0, 0, 0);
  transition: 5s !important;
}

#ploaderbox.act {
  background-color: rgba(0, 0, 0, .4);
}

#ploader {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 5%;
  bottom: 4%;
  overflow-y: scroll;
  background-color: white;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  margin: auto;
  box-shadow: 0 0 8px #000000ad;
}

#msgloader {
  background-color: var(--bg-secondary);
  padding: 65px 0px 100px;
  font-size: .8em;
  color: white;
  min-height: 100%;
}

#premsgbtn {
  position: fixed;
  left: 5px;
  bottom: 60px;
  font-size: 1.6em;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 10px 7px 6px 8px;
  border-radius: 50%;
  opacity: .5;
  transition: .3s;
  z-index: 2;
}

#premsgbtn.act {
  opacity: 1;
}

#premsgbtn:hover {
  opacity: 1;
}

#premsghelp {
  position: fixed;
  left: 34px;
  bottom: 67px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  font-size: 13px;
  padding: 2px 0 2px 0;
  z-index: 1;
  border-radius: 5px;
  z-index: 1;
  width: 0px;
  overflow: hidden;
  white-space: nowrap;
  transition: .3s;
}

#premsghelp.act {
  width: 120px;
  padding: 2px 8px 2px 20px;
}

#msgloader>div {
  margin-bottom: 10px;
  padding: 21px 5px 4px;
  transition: .3s;
  height: max-content;
  overflow: hidden;
}

#msgloader>div.delete {
  height: 0 !important;
  padding: 0;
  margin: 0;
}

#msgloader>div.selected {
  background-color: var(--bg-primary);
}

#msginputbox {
  padding: 6px;
  position: fixed;
  bottom: 0;
  background-color: var(--bg-primary);
  width: 100%;
  left: 0;
  z-index: 2;
}

#msginputbox .inputbox {
  width: calc(100% - 110px);
  position: relative;
}

#msginputbox .inputbox i {
  font-size: 1.8em;
  position: absolute;
  right: 5px;
  top: 6px;
}

#msginputbox .cam {
  margin-left: 6px;
  font-size: 2.5em;
}

#msginputbox .inputbox input {
  width: 100%;
  border: 1px solid var(--bg-secondary);
  border-radius: 20px;
  font-size: .8em;
  padding: 4px 45px 4px 10px;
  height: 40px;
  background-color: var(--bg-secondary-light);
  color: var(--font-color);
}

#msginputbox .sendbtn {
  font-size: 2.5em;
  margin-right: 6px;
}

#msgloader .send {
  position: relative;
  justify-content: space-between;
}

#msgloader .send .pic {
  border: 3px solid white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  position: absolute;
  right: 5px;
  top: 0;
  z-index: 1;
  background-size: cover;
}

#msgloader .text .chatpic {
  width: 100%;
  height: 133px;
  margin: 10px auto;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  border: 3px solid white;
}

#msgloader .send .text {
  width: calc(100% - 100px);
  background-color: var(--primary-color);
  margin-right: 20px;
  padding: 16px;
  border-radius: 10px;
  position: relative;
}

.showmore span {
  background-color: var(--bg-primary);
  color: var(--hint-color);
  padding: 7px 10px;
  border-radius: 7px;
  font-size: .8em;
  cursor: pointer;
}

#msgloader .send .text::after {
  content: "\eed8";
  font-family: 'icofont';
  position: absolute;
  left: 9px;
  bottom: 4px;
  color: var(--bg-secondary);
  font-size: 1.1em;
}

#msgloader .send .text::before {
  content: "\eed8";
  font-family: 'icofont';
  position: absolute;
  left: 3px;
  bottom: 4px;
  color: var(--bg-secondary);
  text-shadow: 0 0 2px var(--primary-color), 0 0 2px var(--primary-color), 0 0 2px var(--primary-color);
  font-size: 1.1em;
  z-index: 1;
}

#msgloader .send.unread .text::after {
  content: "\eed8";
  font-family: 'icofont';
  position: absolute;
  left: 4px;
  bottom: 4px;
  color: var(--bg-secondary);
  font-size: 1.2em;
}

#msgloader .send.unread .text::before {
  content: "";
}

#msgloader .send.sending .text::after {
  content: "\eff6";
  font-family: 'icofont';
  position: absolute;
  left: 4px;
  bottom: 4px;
  color: var(--bg-secondary);
  -webkit-animation: spin 2s linear infinite;
  -moz-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

#msgloader .send.sending .text::before {
  content: "";
}

.msgrow .chk::after,
.msgrow .dblchk::after {
  content: "\eed8";
  font-family: 'icofont';
  position: absolute;
  left: 0px;
  top: 15px;
  color: var(--hint-color);
}

.msgrow .dblchk::before {
  content: "\eed8";
  font-family: 'icofont';
  position: absolute;
  left: 5px;
  top: 15px;
  color: var(--hint-color);
}

@-moz-keyframes spin {
  100% {
    -moz-transform: rotate(360deg);
  }
}

@-webkit-keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

#msgloader .send .time {
  align-self: center;
  color: var(--hint-color);
  font-size: .8em;
  margin-left: 5px;
  text-align: center;
}

#msgloader .get {
  position: relative;
  justify-content: space-between;
  direction: ltr;
}

#msgloader .get .pic {
  border: 3px solid white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  position: absolute;
  left: 5px;
  top: 0;
  background-size: cover;
}

#msgloader.online .get img {
  border: 3px solid var(--green);
}

#msgloader .get .text {
  width: calc(100% - 100px);
  background-color: #202036;
  margin-left: 20px;
  padding: 16px;
  border-radius: 10px;
  text-align: right;
}

#msgloader .get .time {
  align-self: center;
  color: var(--hint-color);
  font-size: .8em;
  margin-right: 5px;
  text-align: center;
}

.emojilist {
  position: absolute;
  border: 1px solid var(--bg-secondary);
  bottom: 43px;
  padding: 4px;
  border-radius: 5px;
  background-color: var(--bg-primary);
  width: 120%;
  left: -10%;
  font-size: 1.5em;
  height: 250px;
  overflow-y: scroll
}

.emojilist span {
  padding: 0 2px;
}

.stbtn {
  text-align: center;
  background-color: var(--bg-primary);
  margin-bottom: 10px;
  border-radius: 5px;
  padding: 10px 5px;
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.stbtn i {
  display: block;
  margin-bottom: 6px;
  font-size: 1.4em;
}

.stbtn span {
  font-size: .66em;
}

.stbtn .bdg {
  position: absolute;
  width: 18px;
  height: 18px;
  background-color: var(--danger);
  color: white;
  font-size: 10px;
  border-radius: 50%;
  padding-top: 2px;
  text-align: center;
  top: 6px;
  left: calc(40% - 22px);
  display: none;
}

.stbtn .bdg.act {
  display: initial
}

.settingsbody .dtl {
  background-color: var(--bg-primary);
  padding: 10px;
  text-align: center;
  font-size: .8em;
  border-radius: 5px;
}

.btngrp {
  display: inline-flex;
}

.btngrp>.btn {
  color: var(--font-color);
  background-color: var(--bg-secondary-light);
  border: 1px var(--bg-secondary) solid;
  padding: 4px 10px;
  font-size: .75em;
  display: inline-flex;
  border-radius: 0 !important;
}

.btngrp>.btn:first-child {
  border-radius: 0 5px 5px 0 !important;
}

.btngrp>.btn:last-child {
  border-radius: 5px 0 0 5px !important;
  border-right: none !important;
}

.btngrp>.btn:not(:first-child) {
  border-right: none !important;
}

.btngrp>.btn.act {
  background-color: var(--bg-primary);
}

.multibtn,
.multiselect {
  display: flex;
  flex-flow: wrap;
}

.multibtn>.btn,
.multiselect>.btn {
  color: white;
  background-color: var(--bg-secondary-light);
  border: 2px var(--bg-secondary) solid;
  padding: 4px 10px 4px 2px;
  font-size: .84em;
  flex: auto;
  border-radius: 4px;
  margin: 3px;
  cursor: pointer;
  position: relative;

}

.multibtn>.btn.act,
.multiselect>.btn.act {
  border: 2px var(--bg-secondary-darkest) solid;
  color: white;
  background-color: var(--bg-secondary-darkest);
}

.multibtn>.btn i,
.multiselect>.btn i {
  position: absolute;
  right: 3px;
  top: calc(50% - 10px);
  font-size: 19px;
}

.multibtn>.btn .ic2,
.multiselect>.btn .ic2 {
  font-size: 15px;
  position: absolute;
  right: 5px;
  top: 4px;
}

.biobox .bio .label {
  font-size: .86em;
  /* color: var(--primary-color); */
  margin-bottom: 2px;
}


.loading,.loading2 {
  width: 70px;
  height: 70px;
  left: calc(50% - 35px);
  bottom: 70px;
  z-index: 1000;
  position: fixed;
}

.loading img,.loading2 img {
  width: 70px;
  height: 70px;
  transition: 1.2s;
  border-radius: 50%;
  -webkit-filter: drop-shadow(2px 3px 5px black);
          filter: drop-shadow(2px 3px 5px black);
          animation: loadinganimate;
          -webkit-animation: loadinganimate;
}
@keyframes loadinganimate {
  0% {
       transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}


.regbox,
.loginbox,
.frgbox {
  -webkit-animation-duration: 0.6s !important;
  animation-duration: 0.6s !important;
}

.panel {
  background-color: var(--bg-secondary);
  border: 1px solid var(--bg-secondary-light);
  border-radius: 10px;
}

.panel-heading {
  background-color: var(--bg-secondary-light);
  text-align: center;
  padding: 3px;
  border-radius: 10px 10px 0 0;
  color: var(--font-color);
}

.panel-body {
  padding: 10px 5px;
}

.icofont-toggle-on {
  color: var(--primary-color);
}

.icofont-toggle-off {
  color: var(--hint-color);
}

.table {
  color: var(--font-color) !important;
}

.adminmsgbox {
  background-color: var(--bg-secondary);
  padding: 5px 8px 15px 8px;
  position: relative;
  border-radius: 5px;
}

.adminmsgbox .time {
  position: absolute;
  left: 5px;
  top: 5px;
}

.adminmsgbox .sender {
  color: var(--primary-color);
  position: relative;
  padding-right: 30px;
}

.adminmsgbox .sender i {
  position: absolute;
  right: 0;
  top: -2px;
}

.modal-footer {
  justify-content: flex-start !important;
  padding: 15px !important;
  border-top: 1px solid var(--border-color) !important;
}

.modal-content {
  background-color: var(--bg-primary) !important;
}

.modal-header {
  background-color: var(--primary-color);
  color: white;
  border-bottom: none;
  padding: 8px 10px !important;
}

.form-control {
  color: var(--font-color) !important
}

.helpbg {
  background-color: var(--helpbg);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: none;
}

header {
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border-color-dark);
  padding: 5px 8px;
  height: 48px;
}

header i {
  position: relative;
  font-size: 29px;
  top: 3px;
  margin: 0 4px;
}

header .title {
  font-size: 15px;
    margin-right: 4px;
    position: relative;
    top: -3px;
}

@keyframes logoanimate {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(8deg);
  }

  50% {
    transform: rotate(0deg);
  }

  75% {
    transform: rotate(-8deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.subheader {
  background-color: var(--bg-primary-dark);
  border-bottom: 1px solid var(--border-color);
  padding: 5px;
}

.subheader.yearbox {
  overflow-x: scroll;
}

.yearbox .multibtn {
  width: max-content;
}

.yearbox .multibtn .btn {
  padding: 3px 9px 1px;
  margin: 2px 4px;
}

.yearbox .addyear {
  font-size: 1.5em;
  margin-top: 4px;
  color: var(--green);
  margin-right: 6px;
  cursor: pointer;
}

.goalsbox .goal {
  background-color: var(--bg-primary);
  padding: 5px;
  margin-bottom: 1px;
  border-left: 4px solid transparent;
}

.goalsbox .goal .title {
  font-size: .9em;
  margin-bottom: 2px;

}

.goalsbox .goal .title i {
  font-size: 1.4em;
  position: relative;
  margin-left: 5px;
  top: 2px;
}

.goalsbox .goal .title i.icofont-ban {
  color: var(--red);
}

.goalsbox .goal .title i.icofont-clock-time {
  color: #ff9800;
}

.goalsbox .goal .title i.icofont-checked {
  color: var(--green)
}

.goalsbox .goal .text {
  font-size: .75em;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin-bottom: 3px;
  color: var(--hint-color);
  padding-right: 2px;
}

.optionmenu {
  position: absolute;
  width: max-content;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  font-size: .8em;
  list-style-type: none;
  display: none;
  animation-duration: .3s !important;
  -webkit-animation-duration: .3s !important;
}

.optionmenu::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 2px;
  width: 9px;
  transform: skew(-39deg, 22deg)rotate(201deg);
  background-color: var(--bg-primary);
  height: 5px;
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

.optionmenu li {
  padding: 3px 26px 3px 13px;
  margin: 3px 0;
  position: relative;
}

.optionmenu li i {
  position: absolute;
  right: 4px;
  top: 4px;
  font-size: 1.32em;
}


.loginbox input#phone {
  font-size: 1.5em;
  padding: 5px 5px 2px !important;
  width: calc(100% - 40px);
  border-radius: 5px 0 0 5px;
  float: left;
}

.loginbox .phonebtn {
  display: block;
  width: 41px;
  height: 41px;
  background-color: var(--bg-secondary);
  color: white;
  text-align: center;
  font-size: 33px;
  padding-top: 4px;
  position: absolute;
  right: 0;
  top: 0;
  border-radius: 0 5px 5px 0;
  opacity: .75;
  transition: .3s;
}

.loginbox .phonebtn.act {
  opacity: 1;
}

.loginbox .logindigit {
  display: inline-block;
  width: 38px;
  height: 37px !important;
  text-align: center;
  font-size: 20px;
}

.loginbox #loginbtn {
  opacity: .75;
}

.loginbox #loginbtn.act {
  opacity: 1;
}




@media all and (min-width: 541px) {
  nav {
    left: calc(50% - 270px);
  }

  .fixed-top {
    position: fixed;
    top: 0;
    right: unset;
    z-index: 2;
    left: calc(50% - 270px);
    width: 100%;
    max-width: 540px
  }

  #msginputbox {
    left: calc(50% - 270px);
    max-width: 540px
  }

  #vp,
  #mloader {
    box-shadow: 0 0 2px #e0e0e0
  }

}


