body{
    width: 100%;
    height: 100vh;
    display: flex;
    background: linear-gradient(to right, #242424, #000000);
    font-family:'Times New Roman', Times, serif !important;
    font-weight: lighter !important;
    margin: 0;
    padding: 0; 
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
}

#chat-container{
    width: 100%;
    max-width: 800px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 0 10 rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

#chat{
    width: 40%;
    height: 70%;
    display: flex;
    flex-direction: column;
}

#messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    box-shadow: 0 5px 100px rgba(255, 0, 0, 0.15);
}

.message{
    max-width: 60%;
    margin-bottom: 10px;
    background: #00e1ff2f;
    padding: 10px;
    border-radius: 10px;
    position: relative;
    display: inline-block;
    clear: both;
    box-shadow: 0 0 5 rgba(0, 0, 0, 0.15);
}

.message.sent{
    background:  #aaddff;
    align-self: flex-end;
    text-align: right;
    font-size: 20px;
}

.message.sent::after{
    content: '';
    position: absolute;
    left: -10px;
    top: 10px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent transparent #aaddff;
}

.message.recived::after{
    content: '';
    position: absolute;
    left: -10px;
    top: 10px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent #bd8d8d transparent transparent;
}

#messageInput{
    border: none;
    padding: 10px;
    width: calc(100% - 22px);
    box-sizing: border-box;
    margin: 10px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 500;
    box-shadow: 0 5px 30px rgba(255, 108, 108, 0.3);
}

#sent {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #d1d1d1;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    box-shadow: 0 5px 60px rgba(255, 208, 0, 0.15);

    width: 100%;
}

#sendButton{
    align-items: center;
    width: 60%;
    padding: 10px;
    margin: 10px;
    background: #000000;;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    border: solid .15rem #000000;;
    cursor: pointer;
    transition: background 0.1s ease;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 600;
}

#sendButton:hover{
    background: #303030;
    border: solid .15rem #ffd900;
    color: #ffd000;
}

#noMessages{
    text-align: center;
    color: #777;
    font-size: 16px;
    font-weight: 600;
}

.listaUsers{
    display: block;
    align-items: center;
    margin-right: 5%;
    width: 15%;
    height: 70%;
    background-color: #ffe600;
    color: #000000;
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    font-family: Arial, Helvetica, sans-serif;
}

h1{
    border: 5px solid #000000;
    border-radius: 20px;
    padding: 10px;
}

#userList{
    width: 100%;
    height: 100%;
    background: #e4e4e4;
    border-right: 1px solid #ccc;
    padding: 10px;
    box-sizing: border-box;
    overflow: auto;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    box-shadow: 0 5px 20px rgba(28, 28, 29, 0.5);
    
}

#userList div {
    display: flex;
    justify-content: space-between; /* Espacia el nombre del usuario y el botón */
    align-items: center; /* Alinea los elementos verticalmente al centro */
    margin-top: 10px;
}


#userList :hover{
    transform: scale(1.0);
    width: 100%;
    background: #c1deff;
    cursor: pointer;
}

input {
    font-family: Arial, Helvetica, sans-serif;
}

button {
    font-family: Arial, Helvetica, sans-serif;
}

/* Estilos generales del botón */
.change-color-button {
    height: 30px;
    width: 30px;
    background-color: #e23f3f; /* Color de fondo verde */
    color: white; /* Color del texto */
    border: none; /* Sin borde */
    padding: 8px 16px; /* Relleno */
    text-align: center; /* Alineación del texto */
    text-decoration: none; /* Sin subrayado */
    display: inline-block; /* Para que se acomode bien al lado del nombre */
    font-size: 14px; /* Tamaño de la fuente */
    cursor: pointer; /* Cambia el cursor a mano */
    border-radius: 5px; /* Bordes redondeados */
    transition: background-color 0.3s ease; /* Transición suave */
    margin-left: 20px;
}

/* Cambio de color cuando el botón está en hover */
.change-color-button:hover {
    background-color: #e71717 !important;  /* Cambio de color a un verde más oscuro */
    margin-left: 0px;
}
