/* ./public/style.css */
* {
  box-sizing: border-box;
  transition: all .3s ease;
}

html, body {
  /* background: #eee; */
  background:#282830;
  width: 100%;
  /* height: 100%; */
  margin: 0;
  padding: 0;
  font-family: verdana;
}

main {
  width: calc(100% - 20px);
  max-width: 500px;
  margin: 0 auto;
  font-family: Helvetica, Arial, Sans, sans-serif;
}

h1, .user-count {
  margin: 0;
  padding: 10px 0;
  font-size: 32px;
}

.user-count {
  float: right;
  padding: 20px 0;
}

.imagebtn {
  float: right;
  /* padding: 20px 20px; */
  /* margin: 20px;
  margin-right: auto; */
}


.badge {
  position: relative;
  background-color: rgba(255, 255, 255, 0.215);
  color:#333;
  text-align:center;
  border-radius:50%;
  padding: 5px;
  font-size: medium ;
}

.badge:empty {
  display: none;
}

.right-badge {  
  right: -20px;
  top:-5px;
}

.left-badge {  
  left: -20px;
  top:-5px;  
}

.chat {
  background-image: url("./images/image1.jpg");
  content: '';
  width: 100%;
  height: calc(100vh - 280px);
  /* background: whitesmoke; */
  /* background-color: #303030 ;   */
  padding: 5px 5px;
  font-size: small;     
  /* filter: grayscale(1000); */
}

.chat p {
  margin: 0 0 5px 0;
}

input, button {
  width: 100%;
  font: inherit;
  background: #282830;
  border: none;
  margin-top: 10px;
  padding: 9px 10px;
  color: whitesmoke;
}



.emoji {
  margin-left: 5px;
  background-image: url( '1f606.png');
  margin-top:5px;
  margin-right:0;
  color: skyblue; 
  background-color: #282830;
  border: none;
  width: 30px;
  height: 30px;
  background-size: 25px 25px;
  background-repeat: no-repeat;
  background-position: center;
}

.emoji:hover {
  cursor: pointer;
  background-image: url( '1f606.png');
  background-color: unset !important;
  background-size: 28px 28px;
  background-repeat: no-repeat;
  background-position: center;
}

.send {
  padding-left: 15px;

  background-image: url( 'send.png');
  margin-top:5px;
  margin-left:20px;
  color: skyblue; 
  background-color: #282830;
  border: none;
  width: 30px;
  height: 30px;
  background-repeat: no-repeat;
  background-position: center;
}

.send:hover {
  cursor: pointer;
  background-image: url( 'send.png');
  background-color: unset !important;
  background-size: 28px 28px;
  background-repeat: no-repeat;
  background-position: center;
}

button:hover {
  background-image: url( 'send.png');
  cursor: pointer;
  background: #ddd;
}

@media all and (min-width: 500px) {
  .chat {
    height: calc(100vh - 280px);
  }
  input {
    width: calc(100% - 160px);
  }
  button {
    float: right;
    width: 150px;
  }
}

/* Chat containers */
/* .container {
  border: 2px solid #dedede;
  background-color: #f1f1f1;
  border-radius: 5px; 
  padding: 10px;
  margin: 10px 0;
} */

.container2 {
  border: 2px solid #dedede;
  background-color: #f1f1f1;
  width: 85%;
  border-radius: 5px;
  padding: 5px;
  margin: 5px 0;
}

.container3 {
  width: 100%;
  text-align: center;
}

/* Darker chat container */
.darker {
  border-color: rgb(211, 57, 57);
  background-color: #ddd;
}

/* Clear floats */
.container::after {
  content: "";
  clear: both;
  display: table;
}

/* Style images */
.container img {
  float: left;
  max-width: 60px;
  width: 100%;
  margin-right: 20px;
  /* border-radius: 50%; */
}

/* Style the right image */
.container img.right {
  float: right;
  margin-left: 20px;
  margin-right:0;
}

/* Style time text */
.time-right {
  float: right;
  color: #aaa;
}

.right-img {
  display: none;
}

/* Style time text */
.time-left {
  float: left;
  color: #999;
}

.msg {
  display: flex;
  align-items: center;
  margin-bottom: 3px;
}

.system-msg {
  display: flex;
  align-items: flex-end;
}

.left-msg .msg-bubble {
  border-bottom-left-radius: 0;
}

.right-msg {
  flex-direction: row-reverse;
}

.right-msg .msg-bubble {
  background: var(--right-msg-bg);
  border-bottom-right-radius: 0;
}

.msg-bubble {
  max-width: 275px;
  padding: 2px 8px 2px 8px;
  /* border-radius: 8px;
  color: #fff; */
  
  background: var(--left-msg-bg);

  /* background-color: #2D2B2C !important; */
  border: 2px solid #393738 !important;
  
  /* border-radius: 4px !important; */
  margin: 5px !important;
  color: whitesmoke !important;
}

.currentTime {
  /* color: #8BC34A; */
  color: white  ;
}

.msg-bubble.left{
  border-top-color: #579ffb !important;
}

.quote.left{
  color: wheat;
}
.msg-bubble.right{
  /* border-top-color: #ACCEEF !important; */
  border-top-color: #00FF00 !important;
}

.quote.right{
  color: #ACCEEF;
}

:root {
  --body-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --msger-bg: #fff;
  --border: 2px solid #ddd;
  --left-msg-bg: #383742;
  --right-msg-bg: #579ffb;

  --right-msg-bg:#2D2B2C;
  --left-msg-bg: #383742;
}

/* :root {
  --body-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --msger-bg: #171b1f;
  --border: 2px solid #ddd;
  --left-msg-bg: #323c40;
  --right-msg-bg: #124052;
} */

.msg-img {
  width: 35px;
  height: 35px;
  margin-left: 10px;
  margin-right: 0px;
  margin-bottom: 10px;
  background: #ddd;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 50%;
  max-width: 35px;
  max-height: 35px;
  min-width: 35px;
  min-height: 35px;
}

.status {
  color: lightseagreen;
  margin-top: 5px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: smaller;
}

.shortcut {
  display: flex;
  background-color: white;
  margin: 10px;
  margin-top: 10px;
}

a img {
  margin: 20px;
}

a p {
  margin: 20px;  
  align-self: center;
}

.fakea{
  color: red;
  display: flex;
  margin: 15px;
  margin-top: 0px;
  margin-bottom: 0px;
  text-decoration: none;
}

blockquote {
  display: block;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  margin-left: 20px;
  margin-right: 20px;
}

input[type="button"] {
  background: #eee;
  color: #333;
  width: 132px;
  padding: 6px;
  margin: 25px 8px 10px 0;
  border: solid 0px #ddd;
  font-size: 14px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: bold;
  border: solid 0.5px #ddd;
}

.emoji-text {
  width: 20px;
  height: 20px;
}

.emoji-text-single {
  width: 40px;
  height: 40px;
}

#message img {
  width: 20px;
  height: 20px;
}

blockquote:empty {
  display: none;
}
        
blockquote {
  border-left: solid 2px #c9c9c9;
  margin: 0 0 0.5em 0;
  padding: 0.5em 0 0.5em 2em;
}

