* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  height: 100vh;
  margin: 0;
  background-color: #b2c7d9;
}

.container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.chat-screen {
  background-color: #b2c7d9;
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
}

.chat-screen__bar {
  background-color: #f7e600;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user {
  display: flex;
  align-items: center;
}

.user__pic {
  width: 50px;
  height: 50px;
  background-color: #f9e000;
  border-radius: 50%;
  margin-right: 10px;
}

.user__nick {
  font-weight: bold;
}

.chat-screen__messages {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.message {
  background-color: white;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  max-width: 70%;
}

.message.sent {
  align-self: flex-end;
  background-color: #f7e600;
}

.message.received {
  background-color: white;
}


.message__author {
  font-weight: bold;
  margin-bottom: 5px;
}

.message__text {
  line-height: 1.4;
}

.chat-form {
  background-color: white;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.chat-form__field {
  margin-bottom: 10px;
}

.chat-form__msg {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  resize: none;
}

.chat-form__util {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-form__submit {
  background-color: #f7e600;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.friends-screen {
  padding: 20px;
}

.friends-header {
  margin-bottom: 20px;
}

.friends-header__title {
  font-size: 24px;
  font-weight: bold;
}

.friends-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.friends-list__item {
  margin-bottom: 10px;
}

.friends-list__item a {
  text-decoration: none;
  color: inherit;
}

.welcome-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.welcome-header__title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
}

.friends-link {
  font-size: 20px;
  text-decoration: none;
  color: #333;
  background-color: #f7e600;
  padding: 10px 20px;
  border-radius: 5px;
}


