@import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,700&display=swap');

html, body {
  padding: 0;
  margin: 0;
  font-family: 'PT Sans', sans-serif;

  /* background */
  background: #f7d5f7 url("https://64.media.tumblr.com/96caa6a563b16e19897379894918bce5/bee67635c0004629-54/s2048x3072/cceff0e3a3c1ce311f6f6e7475c3183106879d02.jpg") no-repeat center center fixed;
  background-size: cover;
}

body {
  margin: 0;
  font-family: Verdana, Arial, sans-serif;
  font-size: 12px;
}

a {
	text-decoration: underline;
	color: #83b1b5;
}

a:hover {
	text-decoration: underline;
}

.title {
	font-weight: 600;
	color: #FFF;
	font-size: 24px;
	line-height: 32px;
}

.subtitle {
	margin-bottom: 24px;
}

.wrapper {
  width: 1000px;
  margin: 20px auto;
  background-color: #ffffff;
  border: 1px solid #999;
}

.header {
  background-color: #2f3a4a;
  color: white;
  padding: 10px;
}

.header h1 {
  margin: 0;
  font-size: 18px;
}

.userbar {
  font-size: 11px;
  margin-top: 5px;
}

.content {
  display: flex;
}

.sidebar {
  width: 220px;
  background-color: #f2f2f2;
  border-right: 1px solid #ccc;
  padding: 10px;
}

.sidebar h2 {
  font-size: 13px;
  margin-top: 15px;
  border-bottom: 1px solid #ccc;
}

.sidebar ul {
  list-style: none;
  padding-left: 0;
}

.sidebar li {
  margin: 5px 0;
}

.sidebar a {
  text-decoration: none;
  color: #003366;
}

.messages-panel {
  flex: 1;
  padding: 15px;
}

#messages-container {
  margin-top: 10px;
}

.message {
  border: 1px solid #ccc;
  margin-bottom: 10px;
  background-color: #f9f9f9;
}

.message-header {
  background-color: #e2e2e2;
  padding: 5px;
  font-size: 11px;
}

.message-body {
  padding: 10px;
  font-size: 12px;
}
  
.compose-box {
  margin-top: 20px;
  border-top: 1px solid #ccc;
  padding-top: 10px;
}

.compose-box textarea {
  width: 100%;
  height: 80px;
  font-family: Verdana, Arial, sans-serif;
  font-size: 12px;
  resize: none;
}

.compose-box button {
  margin-top: 5px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}

.compose-box {
  margin-top: 20px;
  border-top: 1px solid #ccc;
  padding-top: 10px;
  width: 100%;
  box-sizing: border-box;
}

.compose-box textarea {
  width: 100%;
  height: 100px;
  box-sizing: border-box;
}

.compose-box {
  display: none;
}

#messages-container {
  margin-top: 10px;
  height: 350px;    
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.message {
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
}

/* other people's messages */
.received {
  background: #f1f1f1;
}

/* your messages */
.sent {
  background: #ffffff;
}