<div class="messages-container">
    {% if messages %}
        {% for message in messages %}
            <div class="w3-panel w3-green w3-display-container">
            <span onclick="this.parentElement.style.display='none'" class="w3-button w3-large w3-display-topright">&times;</span>
                <p>{{ message }}</p>
            </div>
        {% endfor %}
    {% endif %}
</div>

