.messagesContainer {
  width: 80%;
  height: auto;
  margin-left: 50%;
  transform: translateX(-50%);
  margin-top: 100px;
}

.titleMessage {
  font-size: 40px;
  color: #23364d;
}

@media (max-width: 600px) {
  .titleMessage {
    font-size: 30px;
  }
}

.messageContianer:first-of-type {
  margin-top: 20px;
}

.messageContianer {
  width: 100%;
  height: auto;
  margin-top: 60px;
  position: relative;
}

.userInfo {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.userPersonnalInfo {
  width: auto;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.userPicture {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
}

.userPicture > img {
  width: 80px;
}

.userNameAndPhone {
  width: auto;
  height: 40px;
  display: flex;
  align-content: flex-end;
  flex-wrap: wrap;
}

.userNameAndPhone > p:nth-of-type(1) {
  width: 100%;
  padding-left: 10px;
  color: #23364dcb;
  font-size: 16px;
}

.timeOfsend {
  width: auto;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-right: 5px;
  color: #23364d;
  font-size: 14px;
}

.messageText {
  width: 100%;
  height: auto;
  border-radius: 0px 10px 10px 10px;
  background-color: #edeff2;
  margin-top: 10px;
  padding: 20px;
  color: #23364d;
  font-size: 18px;
}

.deleteMessageButton {
  width: 200px;
  height: 40px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 0px;
  background-color: #fce8e8;
  margin-top: 10px;
  color: red;
  cursor: pointer;
  padding-right: 4px;
}

@media (max-width: 1000px) {
  .messagesContainer {
    width: 94%;
  }
}

@media (max-width: 600px) {
  .userNameAndPhone > p:nth-of-type(1) {
    font-size: 14px;
  }
  .deleteMessageButton {
    width: 100%;
  }
  .messageText {
    padding: 10px;
    font-size: 15px;
  }
}
