@keyframes glow {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes popup {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes popdown {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}
@keyframes check-anim {
  0% {
    background-image: url(img/check1.svg);
    transform: rotateY(0deg);
  }
  50% {
    background-image: url(img/check-seen.svg);
    transform: rotateY(90deg);
  }
  100% {
    background-image: url(img/check-seen.svg);
    transform: rotateY(0deg);
  }
}
* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", arial;
}

.chatHeader {
  background-color: #6830c2;
  font-size: 1.5rem;
  margin: 0;
  color: white;
  padding: 0.5rem;
  height: 4rem;
  display: flex;
  justify-content: space-between;
}
.chatHeader #chatBack {
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  font-size: 24px;
}
.chatHeader .chatHeader_avatar {
  height: 3rem;
  width: 3rem;
}
.chatHeader .chatHeader_avatar canvas {
  width: 100%;
  height: 100%;
}
.chatHeader .chatHeader_titleWrapper {
  flex-grow: 1;
  padding-left: 10px;
}
.chatHeader .chatHeader_titleWrapper #statusBar {
  font-size: 1rem;
  line-height: 0.5rem;
  display: flex;
}
.chatHeader .chatHeader_titleWrapper #statusBar #statusIcon {
  width: 0;
  height: 0;
  border-radius: 5px;
  border-width: 5px;
  border-style: solid;
  border-color: gray;
  margin-right: 5px;
  margin-top: 2px;
  transition: 1s;
}
.chatHeader .chatHeader_titleWrapper #statusBar #statusIcon.connecting {
  border-color: yellow;
}
.chatHeader .chatHeader_titleWrapper #statusBar #statusIcon.connected {
  border-color: lime;
}

h3 {
  text-align: center;
  padding-top: 30px;
  padding-bottom: 30px;
  margin: 0;
  font-size: 2rem;
}

p {
  margin: 0;
}

.radio {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 5px 7px 10px;
}
.radio input[type=radio] {
  display: none;
}
.radio input[type=radio] + span {
  border-radius: 6px;
  padding: 0px 8px 4px;
}
.radio input[type=radio]:checked + span {
  background-color: #fff;
  color: #6830c2;
}

#more-methods {
  display: none;
}

.arr {
  transform: rotate(90deg) translate(2px);
  display: inline-block;
}

.upper-div {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.window {
  position: absolute;
  display: flex;
  flex-direction: column;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
}
.window.showing {
  display: block !important;
  animation: popup 0.2s ease-in-out;
  transition: 0.2s;
}
.window.showing.flex {
  display: flex !important;
}
.window.showing.hiding {
  opacity: 0;
  transform: scale(0.8);
  /*			animation: popdown 0.2s ease-in-out;*/
}
.window .closeWindowBtn::after {
  content: "+";
  font-weight: bold;
  transform: rotate(45deg);
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  color: #fff;
  font-size: 2rem;
}
.window input[type=text] {
  border: none;
  font-size: 14px;
  border-radius: 6px;
  font-size: inherit;
  padding: 5px 10px;
}
.window button {
  background-color: #fff;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  color: #6830c2;
  width: 250px;
  margin-bottom: 10px;
}

.message {
  text-align: center;
}
.message p {
  font-size: 1.5rem;
  padding-bottom: 20px;
}

.regAvatarHolder {
  display: flex;
  align-items: end;
  justify-content: center;
}
.regAvatarHolder .regAvatar {
  background-color: #fff;
  width: 110px;
  height: 110px;
  padding: 5px;
  user-select: none;
}
.regAvatarHolder .regAvatar div {
  width: 100px;
  height: 100px;
}
.regAvatarHolder .regAvatar div canvas {
  width: 100%;
  height: 100%;
}

#console {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #222;
  color: #0f0;
  padding: 10px;
  font-family: monospace;
  height: 200px;
  overflow: auto;
  /*display: none;*/
}

#chatMenu {
  position: absolute;
  right: 0;
  top: 4rem;
  color: #000;
  z-index: 2;
  background-color: #fff;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
  border-radius: 0.3rem;
}
#chatMenu .chatMenuItem {
  padding: 8px 15px;
  cursor: pointer;
}
#chatMenu .chatMenuItem:hover {
  background-color: #ddd;
}

#initWindow {
  /*background-color: $mainColor;*/
  /*background-image: radial-gradient(circle,rgba(104, 48, 194, 1) 0%, rgba(158, 57, 184, 1) 100%);*/
  color: #fff;
}
#initWindow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle, rgb(104, 48, 194) 0%, rgb(158, 57, 184) 100%);
}
#initWindow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle, rgb(158, 57, 184) 0%, rgb(104, 48, 194) 100%);
  /*background: radial-gradient(circle at center, rgba(158, 57, 184, 1), rgba(104, 48, 194, 1));*/
  animation: glow 2s ease-in-out infinite alternate;
  opacity: 0;
}

#addChat-btn {
  font-size: 2rem;
  font-weight: bold;
  /*position: absolute;*/
  /*right: 10px;*/
  /*top: 10px;*/
  border-radius: 50%;
  color: #6830c2;
  background-color: #fff;
  width: 2rem;
  height: 2rem;
  margin-top: 0.5rem;
  margin-right: 0.5rem;
  text-align: center;
  line-height: 22px;
  cursor: pointer;
}

#newChatWindow {
  /*background-color: $mainColor;*/
  /*background-image: radial-gradient(circle,rgba(104, 48, 194, 1) 0%, rgba(158, 57, 184, 1) 100%);*/
  color: #fff;
  z-index: 2;
}
#newChatWindow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle, rgb(104, 48, 194) 0%, rgb(158, 57, 184) 100%);
}
#newChatWindow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle, rgb(158, 57, 184) 0%, rgb(104, 48, 194) 100%);
  /*background: radial-gradient(circle at center, rgba(158, 57, 184, 1), rgba(104, 48, 194, 1));*/
  animation: glow 2s ease-in-out infinite alternate;
  opacity: 0;
}
#newChatWindow input[type=tel] {
  height: 40px;
  width: 40px;
  font-family: inherit;
  text-align: center;
  font-size: 1.5rem;
  border-radius: 6px;
  border: none;
}
#newChatWindow .mycode input {
  pointer-events: none;
  background-color: rgba(0, 0, 0, 0.3);
  color: #fff;
}

.slider {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.slider .slider-dots {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.slider .slider-dots div {
  border-color: #fff;
  border-style: solid;
  border-width: 5px;
  border-radius: 10px;
  margin-right: 10px;
  transition: 0.3s;
  transition-timing-function: ease-in-out;
  width: 10px;
  box-sizing: border-box;
}
.slider .slider-dots div.active {
  width: 40px;
}

#peers {
  flex-flow: 1;
}
#peers .peer {
  height: 4rem;
  width: 100%;
  display: flex;
  cursor: pointer;
  position: relative;
  border-bottom: 1px solid #eee;
}
#peers .peer div {
  /*border: 1px solid red;*/
}
#peers .peer .name-time {
  display: flex;
  justify-content: space-between;
}
#peers .peer .avatar {
  margin: 0.5rem;
  width: 3rem;
  height: 3rem;
  color: #fff;
  position: relative;
}
#peers .peer .avatar canvas {
  width: 100%;
  height: 100%;
}
#peers .peer .unread {
  position: absolute;
  background-color: blue;
  right: 0.5rem;
  bottom: 0.5rem;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  text-align: center;
  color: #fff;
}
#peers .peer .title {
  flex-grow: 1;
  padding-left: 0.5rem;
}
#peers .peer .title .name {
  font-size: 1.2rem;
}
#peers .peer .title .time {
  font-size: 0.8rem;
  margin-top: 0.2rem;
  margin-right: 0.5rem;
}
#peers .peer .title .last-msg {
  font-size: 1rem;
  color: #333;
  margin-top: 0.5rem;
}

#messages {
  background-color: #feffff;
  background-image: url(img/chat-bg.png);
  background-size: 570px;
  flex-grow: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
  position: relative;
}

#form {
  background-color: #fff;
  height: 3rem;
  display: flex;
  border-top: 1px solid #ddd;
}
#form #textInput {
  flex-grow: 1;
}
#form #textInput textarea {
  border: none;
  width: 100%;
  height: 100%;
  padding: 0.5rem;
  font-size: 1.2rem;
  resize: none;
  padding-left: 14px;
  padding-top: 9px;
}
#form #textInput textarea:focus {
  outline: none;
}
#form .button {
  width: 3rem;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  margin-right: 5px;
  margin-left: 5px;
  cursor: pointer;
}
#form #attachButton {
  background-image: url(img/att.svg);
  background-size: 13px;
}
#form #sendMsgButton {
  background-image: url(img/send.svg);
  background-size: 32px;
}

input {
  font-family: inherit;
}

div {
  box-sizing: border-box;
}

.chat-msg {
  display: flex;
}
.chat-msg.dir-in {
  flex-direction: row;
}
.chat-msg.dir-in .msg-baloon {
  background-color: #fff;
}
.chat-msg.dir-in .msg-baloon::after {
  left: -8px;
}
.chat-msg.dir-out {
  flex-direction: row-reverse;
}
.chat-msg.dir-out .msg-baloon {
  background-color: #CFC;
}
.chat-msg.dir-out .msg-baloon .msg-text {
  margin-right: 3rem;
}
.chat-msg.dir-out .msg-baloon .msg-date {
  right: 1.8rem;
}
.chat-msg.dir-out .msg-baloon .msg-check {
  position: absolute;
  right: 10px;
  bottom: 4px;
  width: 16px;
  height: 11px;
  background-image: url(img/check1.svg);
  transition: 0.5s;
}
.chat-msg.dir-out .msg-baloon::after {
  border-bottom-color: #CFC;
  right: -8px;
}
.chat-msg .msg-avatar {
  height: 3rem;
  width: 3rem;
  border-radius: 1.5rem;
  border: 2px solid #ccc;
}
.chat-msg .msg-baloon {
  background-color: #fff;
  border-radius: 2.5rem;
  margin-bottom: 0.2rem;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 4px;
  padding-bottom: 4px;
  margin-left: 10px;
  margin-right: 10px;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
  position: relative;
  transition: 1s;
  max-width: 75%;
  display: flex;
  position: relative;
}
.chat-msg .msg-baloon .msg-text {
  line-height: 1.1rem;
  padding: 0.3rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-right: 2rem;
}
.chat-msg .msg-baloon .msg-date {
  font-size: 0.75rem;
  text-align: right;
  position: absolute;
  bottom: 2px;
  right: 10px;
}
.chat-msg .msg-baloon::after {
  display: none;
  position: absolute;
  width: 0px;
  height: 0px;
  bottom: 0;
  z-index: 0;
  content: " ";
  border-bottom: 10px solid #fff;
  border-right: 10px solid transparent;
  border-left: 10px solid transparent;
  transition: 1s;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
}

.chat-msg.dir-out.seen .msg-baloon .msg-check {
  animation: check-anim 0.5s;
  background-image: url(img/check-seen.svg);
}

.dir-in + .dir-in .msg-avatar, .dir-out + .dir-out .msg-avatar {
  visibility: hidden;
}

.dir-in + .dir-in .msg-avatar, .dir-out + .dir-out .msg-avatar {
  visibility: hidden;
}

/*.dir-in + .dir-in .msg-baloon:after, .dir-out + .dir-out .msg-baloon:after {
	display: none;
}*/
.dir-out .msg-baloon {
  border-bottom-right-radius: 1rem;
}

.dir-out + .dir-out .msg-baloon {
  border-top-right-radius: 1rem;
}

/*.dir-out + .dir-out .msg-baloon:after{*/
.dir-out:not(:has(+ .dir-out)) .msg-baloon:after {
  display: block;
  border-bottom-color: #CFC;
  /*border-top-right-radius: 10rem;*/
}

.dir-out + .dir-out:has(+ .dir-out) .msg-baloon {
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
}
.dir-out + .dir-out:has(+ .dir-out) .msg-baloon:after {
  display: none;
}

.dir-in .msg-baloon {
  border-bottom-left-radius: 1rem;
}

.dir-in + .dir-in .msg-baloon {
  border-top-left-radius: 1rem;
}

/*.dir-in + .dir-in .msg-baloon:after{*/
.dir-in:not(:has(+ .dir-in)) .msg-baloon:after {
  display: block;
  border-bottom-color: #fff;
  /*border-top-left-radius: 10rem;*/
}

.dir-in + .dir-in:has(+ .dir-in) .msg-baloon {
  border-top-left-radius: 1rem;
  border-bottom-left-radius: 1rem;
}
.dir-in + .dir-in:has(+ .dir-in) .msg-baloon:after {
  display: none;
}

.date-stick {
  display: flex;
  justify-content: center;
  position: sticky;
  top: 5px;
  z-index: 1;
}
.date-stick div {
  background-color: #aaa;
  color: #fff;
  border-radius: 5rem;
  padding: 3px 7px;
  font-size: 0.8rem;
}

.menu {
  display: none;
}
.menu.open {
  display: block;
}

/*# sourceMappingURL=style.css.map */
