@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300&family=Playfair+Display&display=swap');

body {
  margin: 0;
  padding: 0;
  background-image: url("MESS-BG5.jpg");
  background-size: cover;
  background-position: center;
  font-family: Arial, sans-serif;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.8) blur(1px);
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: rgba(255,255,255,0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  font-family: 'Lucida Console', monospace;
  font-size: 12px;
  color: black;
  z-index: 100;
  box-sizing: border-box;
}

.messenger-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  height: 100vh;
}


.chat-window {
  width: 500px;
  height: 500px;
  background-color: #f2f2f2;
  border: 2px solid #b3b3b3;
  display: flex;
  flex-direction: column;
}

.chat-header,
.friends-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #d9eaff;
  border-bottom: 1px solid #b3b3b3;
  padding: 4px 8px;
  font-weight: bold;
  height: 28px;
  box-sizing: border-box;
}

.controls {
  display: flex;
  gap: 4px;
}

.controls button {
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-family: 'Lucida Console', monospace;
  border: 1px solid #888;
  background-color: #ffffff;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.controls button:hover {
  background-color: #c8dfff;
}


.chat-messages {
  flex: 1;
  padding: 10px;
  background-color: #ffffff;
  overflow-y: auto;
  border-bottom: 1px solid #b3b3b3;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.message {
  padding: 6px 10px;
  border-radius: 8px;
  max-width: 75%;
  word-wrap: break-word;
  font-size: 13px;
}

.message.received {
  background-color: #e6f0ff;
  align-self: flex-start;
  text-align: left;
}

.message.sent {
  background-color: #d6ffd6;
  align-self: flex-end;
  text-align: right;
}

.chat-input {
  display: flex;
  border-top: 1px solid #b3b3b3;
  background-color: #f0f0f0;
  padding: 8px;
}

.friends-window {
  width: 200px;
  height: 500px;
  background-color: #f2f2f2;
  border: 2px solid #b3b3b3;
  display: flex;
  flex-direction: column;
  font-family: 'Lucida Console', monospace;
}

.friends-list {
  flex: 1;
  background-color: #ffffff;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.friend {
  background-color: #e6f0ff;
  border: 1px solid #b3b3b3;
  padding: 6px;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
}

.friend:hover {
  background-color: #c8dfff;
}