body {
    font-family: Arial, sans-serif;
    background-color: #1e1e1e;
    color: #fff;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#chat-container {
    width: 100%;
    max-width: 90%;
    background: linear-gradient(145deg, #323232, #1a1a1a);
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5);
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

#chat-box {
    background-color: #2b2b2b;
    border-radius: 5px;
    padding: 10px;
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 10px;
    box-shadow: inset 0px 5px 15px rgba(0, 0, 0, 0.5);
}

#chat-messages {
    overflow-y: auto;
    height: auto;
}

/* Scrolls oscuros para los mensajes del chat */
#chat-box::-webkit-scrollbar {
    width: 10px; /* Ancho del scrollbar */
}

#chat-box::-webkit-scrollbar-track {
    background: #1e1e1e; /* Fondo del track */
}

#chat-box::-webkit-scrollbar-thumb {
    background: #444; /* Color del scrollbar */
    border-radius: 10px; /* Bordes redondeados */
}

#chat-box::-webkit-scrollbar-thumb:hover {
    background: #666; /* Color del scrollbar al pasar el mouse */
}

#chat-form {
    display: flex;
    flex-direction: column;
}

#chat-form input {
    background-color: #1a1a1a;
    color: white;
    border: 1px solid #333;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

#chat-form button {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    flex-grow: 1;
    margin-left: 5px;
    font-weight: bold; /* Texto en negrita */
    font-family: 'Roboto', sans-serif; /* Asegura que use la misma fuente */
    text-shadow: 
        -1px -1px 0 black, 
        1px -1px 0 black,
        -1px 1px 0 black,
        1px 1px 0 black; /* Borde negro alrededor del texto del botón */
}

#chat-form button:hover {
    background-color: #444;
}

p {
    margin: 5px 0;
}

.user-icon {
    background: linear-gradient(45deg, #ff3333, #cc0000); /* Degradado rojo */
    -webkit-background-clip: text; /* Hacer que el fondo del degradado se aplique al texto */
    color: transparent; /* Hacer que el color del texto sea transparente */
    margin-right: 5px;
    display: inline-flex;
}


.user-name {
    color: #ffffff; /* Color blanco */
    font-family: 'Roboto', sans-serif; /* Nueva fuente */
    font-weight: bold; /* Asegura que esté en negrita */
    font-size: 1em; /* Tamaño de fuente ajustado */
    /* Eliminada la propiedad text-shadow */
    margin: 5px; /* Espaciado externo para hacer que el borde parezca externo */
}

#emoji-picker {
    position: absolute;
    z-index: 1000;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Media Queries para resoluciones más pequeñas */
@media (max-width: 600px) {
    #chat-container {
        padding: 10px;
        height: 90vh;
    }

    #chat-form {
        flex-direction: column;
    }

    #chat-form input {
        margin-bottom: 5px;
        margin-right: 0;
        flex: 1;
    }

    .button-container {
        display: flex;
        justify-content: center;
    }

    #chat-form button {
        margin-left: 0;
        flex-grow: 0;
    }
}