.content-container {
  max-width: 800px;
  margin: auto;
}

.btn-outline-primary {
  --bs-btn-hover-color: #000;
}

.fs-7 {
  font-size: 0.8rem;
}

.main-menu a {
  text-decoration: none;

}

#main-menu-wrap {
  display: flex;
}

canvas {
  /* background-color: aqua;
    transform: scale(0.25,0.25)*/
  transform-origin: left top;
}

.ground {
  width: 400px;
  margin: auto;
}

.stage {
  width: 390px;
  max-height: 800px;
  position: relative;
  background-image: url("../images/phonegags-intro.png");
  background-repeat: no-repeat;
  background-position: center 0;
}

.stage img {
  width: 390px;
}

.stage-inner {
  width: 390px;
  height: 800px;
}

#stage-scroll {
  position: absolute;
  top: 138px;
  height: 510px;
  overflow: auto;
  width: 364px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  z-index: 2;
}

#stage-scroll-inner{
  width: 100%;
  overflow: hidden;
  padding-left: 29px;
  box-sizing: border-box;
}
}

#stage-scroll::-webkit-scrollbar {
  width: 0.5rem;
  height: 4rem;
  display: block;
}

#stage-scroll>div {}

.footer-strip {
  background-color: var(--bs-gray-700);
  color: #fff;
}

.footer-strip a {
  color: #fff;
  display: block;
}

.options {}

.option-header {
  text-decoration: none;
  display: block;
}

.gray {
  background-color: var(--bs-gray-200);
  border-radius: 5px;
}

.option-header span,
.option-header span:hover {
  display: block;
  text-decoration: none;
}

.option-header span.title {
  color: #000;
  position: relative;
}

.bi-caret-down-fill::before {
  position: absolute;
  right: 0;
  color: var(--bs-gray-500);
}

.option-header span.desc {
  color: #666;
}

.contact-image {
  width: 48px;
  height: 48px;
  border-radius: 48px;
}

.content-image-change {
  bottom: -2px;
  left: 48px;
  color: var(--bs-gray-600);
}

#msgdate {
  display: none;
}

.face {
  background-image: url("../images/faces.jpg");
  background-repeat: no-repeat;
}

.facelist a {
  display: inline-block;
  margin: 0 0.5rem 0.5rem 0;
}

#preview img {
  max-width: 50px;
  max-height: 50px;
  display: block;
  margin-left: 0.5rem;
}

.m-contact {
  line-height: 0.5;
  font-size: 75%;
  color: #777;
}

header {
  height: 70px;
  padding: 0.25rem 1rem;
  background-color: var(--bs-gray-100);
  box-shadow: 0 5px 5px #ccc;
  margin-bottom: 20px;
}

header>.container,
.logo,
.main-menu {
  display: flex;
}

header h1 {
  align-self: center;
  line-height: 1.6rem;
}

.logo {
  flex: 1 1 auto;
}

.main-menu {
  align-self: center;
}

.main-menu a {
  padding: 0.5rem;
  margin-left: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
  line-height: 1;
  color:var(--bs-white);
}

.main-menu a label {
  cursor: pointer;
}

.main-menu a:hover {
  text-decoration: none;
  background-color: var(--bs-gray-100);
  
}
.main-menu a:hover label, .main-menu a:hover span {
  color:#5d20d3;
}

.main-menu a:hover,
.main-menu a:hover * {
  color: #fff;
}

.phone-contaner {
  margin: auto;
  overflow: hidden;
}

.right-ad-space,
.left-ad-space {
  /* margin-left: auto;
  margin-right: auto;*/
  width: 100%;
}

.msg {
  position: relative;
}

.msg .premium {
  position: absolute;
  top: -5px;
  right: 0;
  color: #ffbc3b;
  font-size: 2rem;
}

.msg-voice:hover,
.msg-photo:hover,
.msg-video:hover {
  color: #000;
}

._server_error {
  color: #FF0000;
}

.messages {
  min-height: 500px;
}

/************************************************/
.ti_tx,
.mi_tx,
.mer_tx {
  width: 100%;
  text-align: center;
  margin: 10px 0;
}

.time,
.mins,
.meridian {
  width: 60px;
  float: left;
  margin: 0;
  font-size: 20px;
  color: #2d2e2e;
  font-family: arial;
  font-weight: 700;
}

.prev,
.next {
  cursor: pointer;
  padding: 18px;
  width: 28%;
  border: 1px solid #ccc;
  margin: auto;
  background: url(../images/arrow.png) no-repeat;
  border-radius: 5px;
}

.prev:hover,
.next:hover {
  background-color: #ccc;
}

.next {
  background-position: 50% 150%;
}

.prev {
  background-position: 50% -50%;
}

.time_pick {
  position: relative;
}

.timepicker_wrap {
  padding: 10px;
  border-radius: 5px;
  z-index: 998;
  display: none;
  box-shadow: 2px 2px 5px 0 rgba(50, 50, 50, 0.35);
  background: #f6f6f6;
  border: 1px solid #ccc;
  float: left;
  position: absolute;
  top: 27px;
  left: 0;
  min-width: 240px;
}

.arrow_top {
  position: absolute;
  top: -10px;
  left: 20px;
  background: url(../images/top_arr.png) no-repeat;
  width: 18px;
  height: 10px;
  z-index: 999;
}

input.timepicki-input {
  background: none repeat scroll 0 0 #FFFFFF;
  border: 1px solid #CCCCCC;
  border-radius: 5px 5px 5px 5px;
  float: none;
  margin: 0;
  text-align: center;
  width: 70%;
}

a.reset_time {
  float: left;
  margin-top: 5px;
  color: #000;
}

label.error {
  color: var(--bs-red);
}

input.error,
select.error,
textarea.error {
  border-color: var(--bs-red);
  background-color: #ffe3e3;
}

/*****************************************************/
#message-date,
#message-time,
#message-field {
  width: 100%;
}

.align-content-end {
  text-align: right;
}

.editing {
  background-color: #f4f4f4;
  padding: 0.5rem;
}

.editing>div {
  height: auto;
}

.m-row {
  display: flex;
  background-color: #fff;
  border: #ccc solid 1px;
  border-top-width: 0;
}

.m-row:first-child {
  border-top-width: 1px;
}

.m-row img {
  max-width: 160px;
  max-height: 80px;
}

.m-msg {
  flex: 1 1 auto;
  padding: 0.5rem;
}

.m-move,
.m-edit,
.m-del {
  background-position: center;
  background-repeat: no-repeat;
  min-width: 2.5rem;
}

.m-edit {
  background-image: url("../images/pen_icon.png");
  border-left: #ccc solid 1px;
  cursor: pointer;
}

.m-del {
  background-image: url("../images/trash_icon.png");
  border-left: #ccc solid 1px;
  cursor: pointer;
}

.m-move {
  width: 10%;
  background-image: url("../images/navigation_icon.png");
  cursor: move;
}

.outgoing {
  background-color: var(--bs-gray-200);
  color: var(--bs-body);
}

.export-icons {
  width: 150px;
  margin: auto;
  text-align: center;
  display: block;
  /* border: var(--bs-btn-border-color) solid 1px;*/
}

.export-message,
.export-frame {
  width: 64px;
  height: 64px;
  margin: 0.2rem auto;
  background-position: center;
  background-repeat: no-repeat;
  display: block;
}

.export-message {
  background-image: url("../images/export-message.png");
}

.export-frame {
  background-image: url("../images/export-frame.png");
}

.btn-login {
  width: 50%;
}

.mini-gag {
  width: 72px;
  height: 80px;
  background-image: url("../images/phonegags-small.png");
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  right: -40px;
  top: 0;
}

/********* Layout ******************/
.main {
  display: block
}

.main-menu a span {
  font-size: 1.5rem;
}

.main-menu a label {
  display: none;
  font-size: 1.2rem;
}

#toast-container {
  position: fixed;
  top: 4.5rem;
  left: 1rem;
  z-index: 101;
  max-width: 300px;
}

#toast-container .toast {
  margin-top: 0.5rem;
}

#blocker {
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: none;
}

.narrow-container {
  width: 500px;
  margin: auto;
  position: relative;
}

.contact-options {
  width: 180px;
  padding: 1rem;
  background-color: #fff;
  position: absolute;
  z-index: 900;
}

.contact-options a {
  width: 100%;
}

@keyframes progressBarAnimation {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

.in-progress {
  animation: progressBarAnimation 5s linear infinite;
}

/************ Responsive ***************/
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .phone-contaner {
    width: 400px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .ground {
    width: 768px;
  }

  .phone-contaner {
    width: 824px;
    display: flex;
  }

  .main-menu a {
    padding: 0.5rem 1rem;
    margin-left: 0;
  }

  .main-menu a span {
    display: none;
  }

  .main-menu a label {
    display: block;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .ground {
    width: 800px;
  }

  .main {
    display: flex
  }

  .left-ad-space {
    margin-left: auto;
    margin-right: 0;
  }

  .right-ad-space {
    margin-right: auto;
    margin-left: 0;
  }

  .phone-contaner {
    margin: 0;
  }

}

.brush-banner {
  background-image: url('../images/brush-banner.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {

  .right-ad-space,
  .left-ad-space {

    width: calc((100% - 825px)/2);
  }
}

/*  XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {}