@import url(https://fonts.googleapis.com/css?family=Lato:100,300,400,700);
@import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css);

html,
body {
  font-family: "Lato", sans-serif;
  margin: 0px auto;
}
::selection {
  background: rgba(82, 179, 217, 0.3);
  color: inherit;
}
.img_bg {
  display: none;
  /* background-image: url("./frontend/bg3.webp"); */
}
.img_bg2 {
  position: fixed;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  top: 0;
}
a {
  color: rgba(82, 179, 217, 0.9);
}

/* M E N U */

.menu {
  align-items: center;
  position: fixed;
  display: flex;
  justify-content: space-around;
  top: 0px;
  /* left: 0px; */
  /* right: 0px; */
  width: 100%;
  height: 50px;
  background: #992e4f;
  z-index: 110;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.back {
  position: absolute;
  width: 90px;
  height: 50px;
  top: 0px;
  left: 0px;
  color: #fff;
  line-height: 50px;
  font-size: 30px;
  padding-left: 10px;
  cursor: pointer;
}
.back img {
  position: absolute;
  top: 5px;
  left: 30px;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.98);
  border-radius: 100%;
  -webkit-border-radius: 100%;
  -moz-border-radius: 100%;
  -ms-border-radius: 100%;
  margin-left: 15px;
}
.back:active {
  background: rgba(255, 255, 255, 0.2);
}
.name {
  /* margin-top: 9px; */

  font-family: "Lato";
  font-size: 20px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.98);
  cursor: default;
}
.last {
  /* margin-top: 9px; */
  top: 30px;
  font-family: "Lato";
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  cursor: default;
}

.chat {
  list-style: none;
  background: none;
  margin: 0;
  padding: 0 0 50px 0;
  margin-top: 60px;
  margin-bottom: 10px;
}
.chat li {
  padding: 0.5rem;
  overflow: hidden;
  display: flex;
}
.chat .avatar {
  width: 40px;
  height: 40px;
  position: relative;
  display: block;
  z-index: 2;
  border-radius: 100%;
  -webkit-border-radius: 100%;
  -moz-border-radius: 100%;
  -ms-border-radius: 100%;
  background-color: rgba(255, 255, 255, 0.9);
}
.chat .avatar img {
  width: 40px;
  height: 40px;
  border-radius: 100%;
  -webkit-border-radius: 100%;
  -moz-border-radius: 100%;
  -ms-border-radius: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.chat .day {
  position: relative;
  display: block;
  text-align: center;
  color: #c0c0c0;
  height: 20px;
  text-shadow: 7px 0px 0px #e5e5e5, 6px 0px 0px #e5e5e5, 5px 0px 0px #e5e5e5,
    4px 0px 0px #e5e5e5, 3px 0px 0px #e5e5e5, 2px 0px 0px #e5e5e5,
    1px 0px 0px #e5e5e5, 1px 0px 0px #e5e5e5, 0px 0px 0px #e5e5e5,
    -1px 0px 0px #e5e5e5, -2px 0px 0px #e5e5e5, -3px 0px 0px #e5e5e5,
    -4px 0px 0px #e5e5e5, -5px 0px 0px #e5e5e5, -6px 0px 0px #e5e5e5,
    -7px 0px 0px #e5e5e5;
  box-shadow: inset 20px 0px 0px #e5e5e5, inset -20px 0px 0px #e5e5e5,
    inset 0px -2px 0px #d7d7d7;
  line-height: 38px;
  margin-top: 5px;
  margin-bottom: 20px;
  cursor: default;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.other .msg {
  order: 1;
  border-top-left-radius: 0px;
  box-shadow: -1px 2px 0px #992e4f;
  max-width: 75%;
}
.other:before {
  content: "";
  position: relative;
  top: 0px;
  right: 0px;
  left: 40px;
  width: 0px;
  height: 0px;
  border: 5px solid #992e4f;
  border-left-color: transparent;
  border-bottom-color: transparent;
}

.self {
  justify-content: flex-end;
  align-items: flex-end;
}
.self .msg {
  order: 1;
  border-bottom-right-radius: 0px;
  box-shadow: 1px 2px 0px #992e4f;
  max-width: 75%;
}
.self .avatar {
  order: 2;
}
.self .avatar:after {
  content: "";
  position: relative;
  display: inline-block;
  bottom: 19px;
  right: 0px;
  width: 0px;
  height: 0px;
  border: 5px solid #992e4f;
  border-right-color: transparent;
  border-top-color: transparent;
  box-shadow: 0px 2px 0px #992e4f;
}

.msg {
  background: white;
  min-width: 50px;
  padding: 10px;
  border-radius: 17px;
  box-shadow: 0px 2px 0px rgba(0, 0, 0, 0.07);
}
.msg p {
  font-size: 0.8rem;
  margin: 0 0 0.2rem 0;
  color: #777;
}
.msg img {
  position: relative;
  display: block;
  width: 450px;
  border-radius: 5px;
  box-shadow: 0px 0px 3px #eee;
  transition: all 0.4s cubic-bezier(0.565, -0.26, 0.255, 1.41);
  cursor: default;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
@media screen and (max-width: 800px) {
  .msg img {
    width: 300px;
  }
}
@media screen and (max-width: 550px) {
  .msg img {
    width: 200px;
  }
}

.msg time {
  font-size: 0.7rem;
  color: #ccc;
  margin-top: 3px;
  float: right;
  cursor: default;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.msg time:before {
  content: "\f00c";
  color: #ddd;
  font-family: FontAwesome;
  display: inline-block;
  margin-right: 4px;
}

@-webikt-keyframes pulse {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.5;
  }
}

::-webkit-scrollbar {
  min-width: 12px;
  width: 12px;
  max-width: 12px;
  min-height: 12px;
  height: 12px;
  max-height: 12px;
  background: #e5e5e5;
  box-shadow: inset 0px 50px 0px rgba(82, 179, 217, 0.9),
    inset 0px -52px 0px #fafafa;
}

::-webkit-scrollbar-thumb {
  background: #bbb;
  border: none;
  border-radius: 100px;
  border: solid 3px #e5e5e5;
  box-shadow: inset 0px 0px 3px #999;
}

::-webkit-scrollbar-thumb:hover {
  background: #b0b0b0;
  box-shadow: inset 0px 0px 3px #888;
}

::-webkit-scrollbar-thumb:active {
  background: #0a6320;
  box-shadow: inset 0px 0px 3px #0a6320;
}

::-webkit-scrollbar-button {
  display: block;
  height: 26px;
}

/* T Y P E */

input.textarea {
  position: fixed;
  bottom: 0px;
  left: 0px;
  right: 0px;
  width: 100%;
  height: 50px;
  z-index: 99;
  background: #fafafa;
  border: none;
  outline: none;
  padding-left: 55px;
  padding-right: 55px;
  color: #666;
  font-weight: 400;
}
.emojis {
  position: fixed;
  display: block;
  bottom: 8px;
  left: 7px;
  width: 34px;
  height: 34px;
  background-image: url(https://i.imgur.com/5WUpcPZ.png);
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 100;
  cursor: pointer;
}
.emojis:active {
  opacity: 0.9;
}

form {
  z-index: 120;
  width: 100%;
  /* justify-content: center; */
  /* align-items: center; */
  position: fixed;
  bottom: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}
form input {
  /* align-items: center; */
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid rgb(0, 0, 0);
  border-radius: 10px;
  outline: none;
  position: sticky;
  bottom: 0;
}
form input[type="text"] {
  width: 80%;
}
form input[type="submit"] {
  width: 18%;
  cursor: pointer;
}
.message-list {
  overflow-y: auto;
}
.chat {
  overflow-y: auto;
}
.msg_left {
  cursor: pointer;
}
.msg {
  cursor: pointer;
  background-color: #992e4f;
  color: #fff;
}
.close {
  display: flex;
  cursor: pointer;
}
#reply-box {
  display: flex;
  justify-content: space-between;
  margin-left: 5px;
  align-items: start;
  width: 81%;
  list-style: none;
  background-color: #962f51;
  padding: 5px;
  border-radius: 5px;
  color: #fff;
}
.input_text {
  width: 100%;
  display: flex;
  /* background-color: #992e4f; */
}
.message-input::placeholder {
  color: rgb(208, 205, 205); /* Change placeholder color */
  opacity: 1;
}
input[type="text"] {
  background-color: #992e4f;
  color: white;
}

.reply {
  background-color: #6c223b;
  padding: 5px;
  border-radius: 5px;
}
.icon {
  width: 10px;
  height: 10px;
}
.user_name {
  display: block;
  color: #3fa0b8;
}
.reply_user_name {
  display: block;
  color: #3fa0b8;
}
.msg p {
  color: #fff;
}
.msg .user_name {
  color: rgb(83 189 235);
}

@media (max-width: 600px) {
  .menu .name,
  .last {
    font-size: 16px;
  }
  .img_bg2 {
    display: none;
  }
  .img_bg {
    display: block;
    position: fixed;
    z-index: -1;
    width: 100vw;
    height: 100vh;
    top: 0;
  }
  form {
    z-index: 200;
  }
  .send-btn {
    visibility: hidden;
    display: none;
  }
  form input[type="text"] {
    width: 100%;
  }
  #reply-box {
    width: 97%;
    margin: 0 auto;
  }
}
