@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');
body{
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}


::-webkit-scrollbar {
    width: 12px;
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-image: linear-gradient(90deg, rgba(127, 127, 213, 0.63) 0%, rgba(145, 234, 228, 0.68) 100%);
    border-radius: 10px; /* Optionnel : arrondir la scrollbar */
}


*{
    text-decoration: none;
    color: #000;
}

html{
    scroll-behavior: smooth;
}


#downBTN{
    all: unset;
    width: 64px;
    height: 64px;
    position: fixed;
    top: 20px;
    left: 30px;
    background: linear-gradient(90deg, rgba(127, 127, 213, 0.63) 0%, rgba(145, 234, 228, 0.68) 100%);
    text-align: center;
    border-radius: 20px;
    color: black;
    cursor: pointer;
}
#grid {
    transform: translate(-50%, 0%);
    position: absolute;
    left: 50%;
    width: 55%;
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    }
.AuthorMSG{
    width: 36.50vw;
    overflow: auto;
    border: solid 3px black;
    border-radius: 20px;
    padding: 5px;
}

.myMsg{
    width: 36.50vw;
    border: solid 3px black;
    overflow: auto;
    background: linear-gradient(90deg, rgba(127, 127, 213, 0.63) 0%, rgba(145, 234, 228, 0.68) 100%);    border-radius: 20px;
    padding: 5px;
}
#MSG{
    left: 50%;
    width: 40.56vw;
    margin-bottom: 40vh;
    width: 600px; 
    height: auto;
    border: none;
    word-wrap: break-word;
}

#ladivdubas{
    transform: translate(0, -100%);
    position: fixed;
    top: 100%;
    width: 100%;
    height: 130px;
    background: linear-gradient(90deg, #7F7FD5 0%, #86A8E7 50%, #91EAE4 100%);
    margin: 0;
    padding: 0;

}

#messageInput{
    transform: translate(-50%, -50%);
    position: absolute;
    border: none;
    top: 50%;
    left: 50%;
    width: 50vw;
    height: 59.6px;
    flex-shrink: 0;
    border-radius: 20px;
    border: 3px solid #000;
    background: linear-gradient(90deg, #FFF 0%, #D4D3DD 100%);
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    flex-direction: column;
    justify-content: center;
}

#nameInput{
    transform: translate(-50%, -50%);
    position: absolute;
    border: none;
    top: 50%;
    left: 15%;
    width: 100px;
    height: 60px;
    border-radius: 20px;
    border: 3px solid #000;
    background: linear-gradient(90deg, #FFF 0%, #EBF0FA 100%);
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

#send{
    position: absolute;
    display: inline-flex;
    align-items: center;
    border-radius: 20px;
    border: 3px solid #000;
    background: linear-gradient(90deg, #ACB6E5 0%, #86FDE8 100%);
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(0px);
    top: 35%;
    left: 80%;
    width: 100px;
    height: 60px;
    cursor: pointer;
}
#userDivC {
    text-align: center;
    margin-right: 10px;
    position: fixed;
    margin-top: 7px;
    right: 0; /* La div sera collée à la droite de l'écran */
    border-radius: 20px;
    width: 190px;
    height: 50px;
    border: 1px solid #000;
    background: linear-gradient(90deg, rgba(127, 127, 213, 0.77) 0%, rgba(145, 234, 228, 0.86) 100%);
}



#textCount{
    margin-top: -2px;
    color: #000;
    font-size: 20px;
    font-weight: bold;
    line-height: normal;
}

#led{
    z-index: 2;
    position: relative;
    left: 20%;
    top: 36%;
    width: 16px;
    height: 17px;
    background-color: #05FF00;
    border-radius: 50%;
}


@keyframes messageinput {
    0%{
     left: 50%;
    }
    25%{
        left: 55%;
    }
    50%{
     left: 45%;
    }
    75%{
       left: 55%;
    }
    100%{
        left: 50%;
    }
}


#length{
    margin-top: 5px;
}


#News{
        all: unset;
    width: 64px;
    height: 64px;
    position: fixed;
    top: 20px;
    right: 0;
    background: linear-gradient(90deg, rgba(127, 127, 213, 0.63) 0%, rgba(145, 234, 228, 0.68) 100%);
    text-align: center;
    border-radius: 20px;
    color: black;
    cursor: pointer;
}