<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>Payload Too Large - RTube</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
            background-color: #1a1a1a;
            color: #fff;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .error-container {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 40px 20px;
        }

        .error-code {
            font-size: 120px;
            font-weight: bold;
            color: #444;
            margin: 0;
            line-height: 1;
        }

        .error-title {
            font-size: 28px;
            margin: 20px 0 10px 0;
            color: #fff;
        }

        .error-message {
            font-size: 16px;
            color: #888;
            margin-bottom: 30px;
            max-width: 500px;
        }

        .error-suggestions {
            text-align: left;
            color: #888;
            font-size: 14px;
            margin-bottom: 30px;
        }

        .error-suggestions ul {
            margin: 10px 0;
            padding-left: 20px;
        }

        .error-suggestions li {
            margin: 8px 0;
        }

        .btn-home {
            display: inline-block;
            padding: 12px 24px;
            background-color: #4CAF50;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            transition: background-color 0.2s;
            font-size: 16px;
        }

        .btn-home:hover {
            background-color: #45a049;
        }

        footer {
            padding-top: 20px;
            border-top: 1px solid #333;
            text-align: center;
            color: #666;
            font-size: 12px;
        }
    </style>
    <link rel="icon" type="image/x-icon" href="{{ url_for('static', filename='favicon.ico') }}">
    <link rel="icon" type="image/png" href="{{ url_for('static', filename='favicon.png') }}">

</head>

<body>
    <div class="error-container">
        <p class="error-code">413</p>
        <h1 class="error-title">Payload Too Large</h1>
        <p class="error-message">The file you are trying to upload exceeds the maximum allowed size.</p>
        <div class="error-suggestions">
            <p>Please try the following:</p>
            <ul>
                <li>Compress your video file to reduce its size</li>
                <li>Split the video into smaller parts</li>
                <li>Check the upload limits in the documentation</li>
            </ul>
        </div>
        <a href="/" class="btn-home">Return to Home</a>
    </div>
    <footer>RTube v{{ rtube_version }}</footer>
</body>

</html>