@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #e5e5e5;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.chat-container {
  width: 100%;
  max-width: 400px;
  background-color: #e8f5e9;
  border-radius: 7px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

header {
  background-color: #1a1a1e;
  color: #fff;
  padding: 15px;
  text-align: center;
}

header h1 {
  font-size: 1.5rem;
  margin: 0;
}

.chat-messages {
  height: 400px;
  overflow-y: auto;
  padding: 20px;
  /* background-color: #f9f9f9; */
  background-color: #dadada;
}

.input-area {
  display: flex;
  padding: 10px;
  background-color: #dadada;
  border-top: 1px solid #e0e0e0;
}

#messageInput {
  flex-grow: 1;
  padding: 10px;
  border: none;
  border-radius: 20px;
  font-size: 1rem;
  outline: none;
  transition: background-color 0.3s;
  /* background-color: #f2f2f2; */
  background-color: #2c2c32;
  color: #fff;
}

#sendButton {
  background-color: #128c7e;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  margin-left: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#sendButton:hover {
  background-color: #075e54;
}

.message {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 12px;
  max-width: 70%;
  position: relative;
  font-size: 0.9rem;
}

.sent {
  background-color: #dcf8c6;
  align-self: flex-end;
  margin-left: auto;
}

.received {
  background-color: #f1f1f1;
  align-self: flex-start;
}

.message strong {
  font-weight: 600;
  color: #333;
  margin-right: 5px;
}

.received strong {
  color: #333;
}

#loginContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#usernameInput {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  outline: none;
  font-size: 1rem;
}

#loginButton {
  padding: 10px 20px;
  background-color: #128c7e;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}
#loginButton:hover {
  background-color: #075e54;
}
