body {
    background: radial-gradient(circle, rgba(240, 240, 240, 0.9) 20%, transparent 20%) 0 0 / 10px 10px, 
                radial-gradient(circle, rgba(229, 229, 229, 0.9) 20%, transparent 20%) 5px 5px / 10px 10px, 
                linear-gradient(to right, #f0f0f0, #e5e5e5);
    font-family: Arial, sans-serif;
    background-color: #e0f7fa;
    color: #333;
}

#chat-container {
    width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.message {
    display: flex;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.avatar img {
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    border: 3px solid #ff0000; 
    object-fit: cover; 
    margin-right: 10px; 
}

.message-content {
    margin-top: 10px;
    flex: 1;
}

.pseudo {
    font-weight: bold;
    color: #333;
}

.message-text {
    font-size: 14px;
    color: #555;
}

.message-time {
    font-size: 12px;
    color: #999;
    text-align: left;
    margin-top: 5px;
}

#pseudo, #message, #avatar, #envoyer {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    background-color: #fff;
    transition: all 0.3s ease-in-out; 
}

#avatar {
    margin-top: 10px;
    cursor: pointer;
}

#envoyer {
    background-color: #ff0000;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#envoyer:hover {
    background-color: #000000;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

body.vibration {
    animation: vibration 0.5s infinite alternate;
}

@keyframes vibration {
    0% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
    100% { transform: translateX(5px); }
}

h1 {
    text-align: center;
    color: #333;
}

#affiche {
    margin-bottom: 20px;
    height: 300px;
    overflow-y: auto;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

#pseudo, #message {
    margin-top: 10px;
}

.message {
    margin-bottom: 15px;
}

select#avatar {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s ease;
}

