div#menu_gauche {
    color: #5e5656;
    z-index: 1000;
    position: fixed;
    overflow: hidden;
    width: 26em;
    height: 80%;
    max-width: 50%;
    min-width: 300px;
    left: 3px;
    bottom: 3%;
    display: none;
    font-size:0.85em;
}

/* Sur mobile, 0.85em rend les messages difficiles a lire (~13.6px) : la carte
   n'a plus besoin d'etre aussi compacte vu qu'elle prend deja l'essentiel de
   la largeur de l'ecran (min-width: 300px ci-dessus). */
@media (max-width: 520px) {
    div#menu_gauche {
        font-size: 1em;
    }
}

#img_tchat {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 1001;
    cursor: pointer;
    display:none;
}

#alerte_tchat {
    position:fixed;
    border-radius : 50%;
    background-color: red;
    color:white;
    z-index: 1002;
    text-align:center;
    display:none;
}

#div_tchat {
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    color: #5e5656;
    background-color: rgba(255,255,255,1);
    box-shadow: 0px 4px 4px rgb(0 0 0 / 20%);
    border-radius: 2em;
    line-height: 1.375;
    border: 0.2em solid white;
    overflow: hidden; 
}

div#tchat_header {
    order: 1;
    text-align: center;
    color: white;
    left: 0;
    border-radius: 2em 2em 0px 0px;
    padding: 3%;
    z-index: 1;
  
}

.tchat_header_global{
    background-color: #05948a;
}

.tchat_header_partie{
    background-color: #3b4244;
}



span#tchat_header_title {
    font-family: "Caveat";
    font-size: 2.5em !important;
    line-height: 95%;
}

span#tchat_header_subtitle {
    font-family: 'Comfortaa',cursive;
}


.tchat_header_icone {
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    position: absolute;
    background-size: 80% 80%;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

#pin_tchat {   
    left: 1em;
    background-image: url(../images/pin_tchat.png);
}

#close_tchat {   
    right: 1em;
    background-image: url(../images/close_tchat.png);
}

#pin_tchat.pinned {
    box-shadow: inset 1px 1px 0px 1px #00000047;
    border: 1px solid white;
}

/* Affichage des messages */
div#tchat_container {
    order: 2;
    width: 100%;
    overflow: auto;
    padding-left: 5px;
    flex-grow: 100;
}


.tchat {
    font-size: 0.9em;
    padding-right: 20px;
    list-style: none;
    line-height: 1.1em;
    width: 100%;
    padding-top: 5px;
}

#tchat {
    display :none;
}

.div_tchat_message {
    width: 100%;
    padding-bottom: 0.5em;
    display: flex;
}

.div_tchat_icone_container {
    position: relative;
}

.div_tchat_message_container {
    margin-left: 0.3em;
    order: 2;
    flex-grow: 4;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

.div_tchat_message_sender {
    font-family: 'Comfortaa';
    order: 1;
}

.div_tchat_message_timing {
    order: 2;
    right: 1em;
    color: gray;
    font-size: 0.9em;
}

.div_tchat_message_icone_sender {
    border: 1px solid #383838;
    position: relative;
    top: 0px;
    border-radius: 50%;
    width: 3em;
    height: 3em;
    display: inline-block;
    background-size: 100% 100%;
}

.div_tchat_message_etoiles_sender {
    position: absolute;
    width: 3em;
    top: 2.7em;
    left: 0px;
}

.div_tchat_message_text {
    order: 3;
    border: 1px solid #c3c3c3;
    background-color: #e8e8e8;
    min-height: 2em;
    border-radius: 0px 0.5em 0.5em 0.5em;
    padding: 0.2em;
    min-width: 100%;
    flex-shrink: unset;
}

#tchat_input {
    order: 3;
    width: 95% !important;
    line-height: 2.4em;
    border-radius: 1em;
    width: 100%;
    background-color: rgba(255,255,255,0) !important;
    border: 1px solid gray;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-left: 5px;
}

.tchat_0 {
    color : #c10b0b;;
}

.tchat_1 {
    color : #087dd2;
}

.tchat_2 {
    color : #4f8b46;
}

.tchat_3 {
    color : #ce9b00;
}

div#tchat_switch_container {
    order: 4;
    height: 2.5em;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    background-color: #05948a;
    align-items: flex-start;
    color: white;
}

.tchat_switch {
    flex-grow: 10;
    text-align: center;
    height: 80%;
    cursor: pointer;
    border-radius: 0em 0em 1em 1em;
}

.tchat_switch.selected {
    background-color: white;
    color: #5e5656;
}