*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "poppins", sans serif;
}
body{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top:  300px;
}
.chatcenter{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 300px;
   
}
.chatwe{
    text-align: center;
}
.chatbo {
    width: 348px;
    height: 550px;
    background-color: black;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    position: fixed;
}

/* Cabeçalho */
.chatwe h1 {
    font-size: 18px;
    color: white;
}

.chatwe {
    padding: 10px;
    width: 348px;
    margin-top: -1px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    height: 70px;
    background-color: #c05310;
}

.chatwe span {
    font-size: 14px;
    color: rgb(188, 185, 185);
    display: none;
    font-style: italic;
    font-weight: 300;
}

/* Área de mensagens */
#messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background-color: black;
}
#joined{
    background-color: none;
    color: white;
    text-align: center;
    font-weight: 100;
    margin: 5px;
    font-size: 12px;
}
/* Mensagem do usuário */
.user {
    background-color: #5d70708a;
    border-radius: 10px 10px 10px 0px;
    text-align: left;
    margin-left: auto;
    margin-right: 10px;
    padding: 12px 16px;
    width: auto;
    font-weight: 200;
    display: block;
    color: white;
    max-width: 300px;
    display: block;
}

/* Mensagem do bot */
.bot {
    border-radius: 0px 10px 10px 10px;
    text-align: left;
    margin-left: 10px;
    background-color: rgb(11, 27, 37);
    color: white;
    display: block;
    padding: 12px 16px;
    width: auto;
    max-width: 300px;
    margin: 10px 0px;
    font-weight: 200;
}

/* Área de escrita */
.bodywrite {
    display: flex;
    padding: 7px;
    background-color: black;
    border-radius: 10px;
}

textarea {
    flex: 1;
    resize: none;
    padding: 20px;
    width: 300px;
    margin-right: 7px;
    outline: none;
}

button {
    margin-left: 5px;
    padding: 3px 10px;
    background-color: rgb(0, 157, 255);
    color: white;
    border: none;
    cursor: pointer;
}

.powered p {
    color: rgba(255, 255, 255, 0.162);
    font-size: 12px;
    text-align: center;
}
@media (max-width: 600px) {
    .chatbo {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }

    .chatwe {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        font-size: 16px !important;
    }
    .chatwe h1{
        font-size: 20px;
    }
    .chatwe span{
        font-size: 19px;
    }

    textarea {
        width: 100% !important;
        padding: 14px !important;
        font-size: 25px !important;
        color: white !important;       /* texto branco */
        background-color: #222 !important; /* fundo cinza escuro */
        border-radius: 6px;
    }

    button {
        font-size: 16px !important;
        padding: 10px 16px !important;
        border-radius: 6px;
    }

    
    .bot {
        width: auto !important;
        max-width: 90% !important;
        font-size: 25px !important;
    }
    .user{
        width: auto !important;
        max-width: 90% !important;
        font-size: 30px !important;
    }
}

::-webkit-scrollbar {
    width: 10px;
}
  
  /* Fundo da barra */
  ::-webkit-scrollbar-track {
    background: #060606;
    border-radius: 10px; 
}
  
  /* Cor do "thumb" (parte que arrasta) */
::-webkit-scrollbar-thumb {
     
    border-radius: 5px;
    background: #06c6f1;
}
  
  /* Cor quando passar o mouse */
::-webkit-scrollbar-thumb:hover {
    background: #555; 
}
