:root {
  --body-bg: url("") no-repeat center center fixed;
  --msger-bg: #fff;
  --border: 2px solid #ddd;
  --left-msg-bg: #ececec;
  --right-msg-bg: #EB4F5F;
}

html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-image: var(--body-bg);
  font-family: Roboto, sans-serif;
  backdrop-filter: blur(2px);
  background-size: cover;
  font-size: 14px;
  line-height: 1.4;
  background-color: #fff;
  background-size: cover;
  background-position: center center;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(5px);
  height: 100vh;
  margin: 0;
  padding: 0;
}

.msger {
  display: flex;
  flex-flow: column wrap;
  justify-content: space-between;
  width: 100%;
  max-width: 867px;
  margin: 25px 10px;
  height: calc(100% - 30px);
  background: var(--msger-bg);
}

.msger-header {
  /* display: flex; */
  font-size: medium;
  justify-content: space-between;
  border-bottom: 1px solid #ccc;
  background: #fff;
  color: #666;
  height: auto;
  padding: 0 5px 5px 5px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 205px;
  width: 100%;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.06);
  /* Inside auto layout */
  flex: none;
  order: 0;
  align-self: stretch;
  flex-grow: 0;
}

.msger-chat {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.msger-chat::-webkit-scrollbar {
  width: 6px;
}

.msger-chat::-webkit-scrollbar-track {
  background: #ddd;
}

.msger-chat::-webkit-scrollbar-thumb {
  background: #bdbdbd;
}

.msg {
  display: flex;
  align-items: flex-end;
  margin-bottom: 10px;
}

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

.msg-bubble {
  max-width: 450px;
  padding: 15px;
  border-radius: 15px;
  background: var(--left-msg-bg);
  padding: 10px;
}

.msg-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

.msg-info-name {
  margin-right: 10px;
  font-weight: bold;
}

.msg-info-time {
  font-size: 0.85em;
}

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

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

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

.right-msg .msg-img {
  margin: 0 0 0 10px;
}

.msger-inputarea {
  display: flex;
  border-top: var(--border);
  background: #fff;
  padding: 10px 15px;
}

.msger-inputarea {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 10px;
}

.msger-input {
  font-size: 14px;
  border: 0px;
  width: calc(100% - 30px);
}

input.msger-input:focus-visible {
  border: 0;
  outline: 0;
}

.msger-send-btn {
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  border: none;
  background-color: transparent;
}

@keyframes gradient-bg {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: -100% 0;
  }
}

.msger-chat {
  background-color: #fcfcfe;
}