html {
    font-size: 14px;
    font-family: "Poppins", sans-serif;
    color: #272a2eeb;
}


* {
    margin: 0;
    padding: 0;
    padding-inline-start: 0px;
}

body {
    white-space: nowrap;
    box-sizing: border-box;
    overflow: hidden;
}

header,
.header {
    height: rem;
    width: 100vw;
    background-color: #c5cddd;
    grid-area: header;
    box-shadow: 0px 3px 6px #00000080;
    position: fixed;
    z-index: 3;
}

main {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas:
        'conversation bulles';
    background-color: rgba(114, 157, 220, 0.893);
}

li {
    list-style-type: none;
}



/*   NAV   */
nav {
    display: flex;
    justify-content: space-between;
    align-content: center;
    height: 4rem;
}

.mobNav {
    display: flex;
    align-items: center;
    align-content: center;
}

nav ul {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* conversation */
.conversation,
.mobNav {
    width: 100vw;
}

.bulles,
.color {
    display: none;
}

.conversation {
    padding-top: 4.5rem;
    grid-area: conversation;
    max-height: 100vh;
    box-shadow: 3px 3px 23px #00000060;
    background-color: #ffffff;
}

.contactConv {
    display: grid;
    column-gap: 1rem;
    padding: 0.5rem;
    grid-template-columns: 65px auto 50px;
    grid-template-rows: 40% auto;
    grid-template-areas:
        'photo nom  time'
        ' photo msg notif';
    border-block-end: 1px solid #00000020
}


.photo {
    grid-area: photo;
}

.user {
    width: 60px;
    border-radius: 50%;
    padding: 5Px 5px 0 5px;
}

.nom {
    grid-area: nom;
    font-size: 0.8rem;
    padding: 2px;
}

.msg {
    grid-area: msg;
    color: #00000080;
    padding-bottom: 0%;
    white-space: wrap;
    font-size: 0.8;
}

.time {
    grid-area: time;
    text-align: right;
    padding: 2px;
}

.notif {
    grid-area: notif;
    background-color: #86cb58;
    color: white;
    border-radius: 100%;
    margin: auto;
    text-align: center;
    padding: 2px 5px 8px;
    text-align: center;
    width: 10px;
    font-weight: 500;
}

.time,
.notif {
    width: 1rem;
    height: 1rem;
}

.contactConv ul {
    flex-direction: column;
}


.icon {
    font-size: 1.5rem;
    vertical-align: middle;
    padding: 0 10px;
    font-family: material symbols outlined;
    font-variation-settings: 'FILL' 0,
        'wght' 300,
        'GRAD' 0,
        'opsz' 24
}

nav form {
    border: 0px;
    background-color: #ffffff;
    border-radius: 50px;
    display: flex;
    justify-content: center;
}


input,
button {
    border: none;
    background-color: transparent;
    margin: 5px;
}


/* OPEN CONV */

.bgimg {
    background-position: center;
    vertical-align: bottom;
    background-size: auto;
    background-image:
        url("https://theabbie.github.io/blog/assets/official-whatsapp-background-image.jpg");
}

.bulles {
    grid-area: bulles;
    font-size: 1.2rem;
    display: none;
    z-index: 3;
    height: calc(100vh - 5rem);
}

.color {
    height: calc(100vh - 13rem);
    margin: 2rem 0 4.5rem 0;
    display: flex;
    flex-direction: column-reverse;
    display: none;
    width: calc(100vw - 400px);
}

.color ul {
    padding:
        0.5rem;
    display: flex;
    flex-direction: row;
}

.color :nth-child(odd),
.envoyer {
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
}

.color :nth-child(even) {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.color :nth-child(odd) li {
    background-color: #97da7d !important;
    display: flex;
}

.color :nth-child(even) li {
    background-color: #ffffff !important;
}

.color li,
.today {
    border-radius: 1rem;
    box-shadow: 1px 2px 4px #00000050;
    margin: 0.5rem;
    padding: 0.5rem 1rem;
}

.today {
    margin: auto;
    text-align: center;
    color: #ffffff;
    width: fit-content;
    background-color: #16135f80;
}

.remis {
    display: grid !important;
    text-align: right;
    grid-template-columns: auto auto auto;
    column-gap: 0.5rem;
    grid-template-areas:
        'like heure coche';
    font-size: 0.8rem;
    padding: 0.2rem 0;
}

.rw {
    color: #ffffff !important;
    text-shadow: 0px 0px 8px #00000050;
}

.coche {
    grid-area: coche;
}

.like {
    grid-area: like;
}

.heure {
    grid-area: heure;
}


/* form */
.envoyer {
    position: fixed;
    right: 4.5rem;
    bottom: 1rem;
    display: flex;
}

#form input {
    font-size: 1.2rem;
    height: 2rem;
}

input[type=text] {
    height: 2rem;
}

#form ul {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 1px 2px 4px #00000050;
    width: calc(100vw - 450px);
}

#form li {
    background: none !important;
    box-shadow: none;
}

.typemsg {
    height: 5rem;
}


/* demo */
.demo {
    display: none;
    margin: 0 80px 0 0px;
    padding: 0.2rem;
    justify-content: space-between;
    align-items: center;
}

.demo ul {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.8;
    font-size: 12px;
}

.demo li {
    display: inline-block;
    flex-direction: row;
    padding: 0 4px;
}


.userBan {
    height: 3rem;
    border-radius: 50%;
}



/* responsive */

@media (min-width: 750px) {

    .conversation,
    .mobNav {
        width: 300px;
    }

    .bulles {
        width: auto;
        display: block;
    }
}


.scroll {
    overflow-y: scroll;
    overflow-x: hidden;
    cursor: pointer;
}