.message-box form {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.main-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  width: 100%;
}

.message-box {
  transition: all 0.2s ease-out;
}

.email-row {
  width: 100%;
  margin-top: 0.5rem;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.2s ease-out;
  margin-top: 0;
}

.email-row[disabled] {
  opacity: 0;
  transform: translateY(-20px);
  margin: 0;
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.message-box input {
  background-color: rgba(1, 1, 1, 0.05);
  border: none;
  height: 2rem;
  padding: 1.1rem 1rem;
  box-sizing: border-box;
  border-radius: 10px;
  width: 70%;
  flex-grow: 1;
  font-size: 15px;
  font-family: "Graphik";
  color: #585858;
}

.message-box input:focus {
  outline: 1px solid rgba(1, 1, 1, 0.15);
}

.message-box button {
  background-color: rgba(1, 1, 1, 0.05);
  border: none;
  height: 2rem;
  aspect-ratio: 1;
  box-sizing: border-box;
  border-radius: 10px;
  flex-grow: 1;
  font-size: 16px;
  font-family: "Instrument Sans";
  margin-left: 10px;
}

.message-box form button {
  transition: all 0.1s ease-out;
  position: absolute;
  top: 20px;
  right: 20px;
}

.message-box form button[disabled] {
  opacity: 0;
}

.emoji-container {
  display: flex;
  align-items: center;
}

.emoji {
  font-size: 18px;
  margin-left: 10px;
  cursor: pointer;
  transition: all 0.2s ease-out;
}

.emoji:hover {
  scale: 0.85;
}

input::-webkit-input-placeholder {
  color: #999999;
}


.message-history {
  margin-bottom: 20px;
  text-align: right !important;
  display: flex;
  flex-direction: column;
  align-items: flex-end !important;
  gap: 10px;
  max-height: 400px;
  overflow-y: scroll;
}

.message-item {
  padding: 10px 15px;
  background: #f5f5f5;
  display: inline-block;
  max-width: 80%;
  margin: 0;
  border-radius: 16px !important;
  border-bottom-right-radius: 5px !important;
  color: #3f3f3f;
}

.message-item.left {
  text-align: left;
  align-self: start;
  border-bottom-right-radius: 16px;
  border-bottom-left-radius: 5px;
}

.message-timestamp {
  font-size: 0.8em;
  color: #7b7b7b;
  margin-top: 5px;
}