/*  regole generali della pagina */
* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

/* font */
body {
  font-family: 'Roboto', sans-serif;
  overflow: hidden;
}

/* DEBUG:  */
/* div {
  border: solid 1px;
}
section {
  border: solid 1px red;
}
main {
  border: solid yellow;
} */


.avatar {
  width: 50px;
  margin-left: 10px;
}
.avatarTop{
  width: 50px;
  margin-left: 10px;
}
.avatarUser{
  width: 50px;
  margin-left: 10px;
}

/* bloccone di pagina */

.blocconedipagina {
  display: flex;
  width: 100vw;
  height: 100vh;
}

/* bloccone left */

.blocconeleft {
  width: 35%;
  height: 100%;
}

.stato {
  height: 60px;
  background-color: #EEEEEE;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-right: 1px solid lightgrey;
}
.iconcine {
  display: flex;
  justify-content: flex-end;
}

.icona {
  margin-left: 10px;
  margin-right: 10px;
}

/* NOTIFICATIONS */

.notifiche {
  height: 70px;
  background-color: #9DE1FE;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 20px;
}

.bell {
  font-size: 18px;
  color: #9DE1FE;
  padding: 12px;
}
.belldiv {
  background-color: white;
  border-radius: 50%;
}

.textnotifiche {
  margin-left: 15px;
  display: flex;
  flex-direction: column;

}

.searchbar {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 20px;
  background-color: #eaf6f9;
}
.barraricerca {
  width: 80%;
  height: 30px;
  margin-left: 10px;
  border-radius: 100px;
}

.navlaterale {
  /* display: flex;
  flex-direction: column; */
  height: calc(100% - 180px);
  overflow: auto;
}

.utentelaterale {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: solid 1px lightgrey;
}
/* UTENTE LATERALE */
.fotoute{

}
.nomeute {
  font-size: 18px;
  width: 75%;
}
.lastmsg {
  color: grey;
  font-size: 13px;
}

.orarioute {
 margin-right: 10px;
}

/* Selezionatore grigetto */
.selected {
  background-color: #EEEEEE;
}

/* BLOCCONE RIGHT *//* IDEA:  *//* IDEA:  */

.blocconeright {
  width: 65%;
  height: 100%;
  /* display: flex; */
}

/* UTENTE TOP */

.utenteselezionatotop {
  height: 60px;
  background-color: #EEEEEE;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* MAIN MESSAGGI */

.mainmessaggi {
  height: calc(100% - 120px);
  overflow: auto;
  /* overflow-x: hidden; */
  background-image: url("../img/sfondochat.jpg");
  display: none;
}

.selectedChat {
  display: block !important;
}




/* TYPE MSG */

.typemsg {
  /* display: flex;
  justify-content: flex-end; */
  height: 60px;
  background-color: #EEEEEE;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-left: solid 1px lightgrey;
}

.messagediv {
  width: 80%;
}

.message {
  width: 100%;
  height: 30px;
  border-radius: 5px;
}

.sendmsg {
  font-size: 30px;
  margin-right: 30px;
}

/* JS and JQ:  */

.containermessaggi{
  width: 100%;
  display: flex;
  word-wrap: break-word;
}

.msg {
  max-width: 50%;
  padding: 5px;
  border-radius: 5px;
  margin-top: 10px;
  justify-content: flex-end;
}

/* INVIATI */

.send {
  justify-content: flex-end;
}
.send > .msg {
  background-color: #DCF8C6;
  margin-right: 100px;
  padding: 10px;
}

/* RICEVUTI */

.received {
  justify-content: flex-start;
}
.received > .msg {
  background-color: #eee;
  margin-left: 100px;
  padding: 10px;
}

.msgreceived {
  background-color: white;
  width: 50%;
}

/* PARTE DI TEMPLATING:  */
#template {
  display: none;
}
