{% extends "base.html" %} {% block title %}CSS Overlay Help - {{ super() }}{% endblock %} {% block content %}

Custom Overlay CSS Guide

This guide will help you create your own custom CSS for the chat overlay. Your CSS is applied on top of a base stylesheet, so you only need to override the styles you want to change.

HTML Structure

Your CSS will be applied to a simple HTML structure. Here are the key classes you can target:

The body of the overlay is transparent by default, so you only need to style the message elements.

Example: "Bubbly" Theme

Here is a simple example to get you started. This creates chat bubbles with a gradient background.

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-size: 18px;
    text-shadow: 1px 1px 2px #333;
}

.chat-message {
    background: linear-gradient(135deg, #7f5af0, #a970ff);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    margin-bottom: 10px;
    display: inline-block;
}

.username {
    font-weight: bold;
    color: #e0e0e0;
}
{% endblock %}