<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Portálfejlesztés .Net Quiz All</title>
    <link rel="shortcut icon" href="{{ url_for('static', filename='images/home/logo.jpg') }}" type="image/x-icon">
    <style>
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(to right, #5a0fb8, #1f65d6);
            color: #fff;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            overflow-x: hidden;
        }

        .container {
            background-color: #ffffff;
            width: 90%;
            max-width: 1200px;
            background: rgba(255, 255, 255, 0.2);
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            height: fit-content;
        }

        h1 {
            text-align: center;
            color: #00ff08;
            margin-bottom: 20px;
        }

        h2 {
            margin-top: 20px;
            font-size: 1.5em;
            color: #e5e5e5;
        }

        p {
            font-size: 1.1em;
            color: #dcdcdc;
        }

        ul {
            list-style: none;
            padding-left: 0;
            margin-bottom: 20px;
        }

        li {
            background: linear-gradient(to right, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.7));
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
            margin-bottom: 12px;
            word-wrap: break-word;
        }

        li strong {
            font-weight: bold;
        }

        .correct-answer {
            color: #4CAF50;
        }

        .user-answer {
            color: #FF5722;
        }

        .mistake-item {
            background-color: #ff6c82;
            border: 1px solid #ff1e35;
        }

        .no-mistakes {
            text-align: center;
            font-size: 1.2em;
            color: #4CAF50;
        }

        a {
            display: block;
            text-align: center;
            margin-top: 20px;
            padding: 10px 20px;
            background-color: #4CAF50;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            font-size: 1.1em;
        }

        a:hover {
            background-color: #45a049;
        }

        .button-container {
            display: flex;
            justify-content: center;
            margin-top: 20px;
            gap: 10px;
        }

        .action-button {
            padding: 12px 20px;
            background-color: #3498db;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 1.2em;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: background-color 0.3s ease, transform 0.2s ease;
            width: 48%;
        }

        .action-button:hover {
            background-color: #2980b9;
            transform: scale(1.05);
        }

        .action-button:active {
            transform: scale(0.98);
        }

        .restart-button {
            background: linear-gradient(to right, #80e27e, #66c466);
        }

        .exit-button {
            background: linear-gradient(to right, #ff8a80, #ff5252); 
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>Programozás .Net ben</h1>

        <p>Here are all the questions that will appear in the quiz!</p>

        <ul>
            {% for question in questions %}
                <li>
                    <strong>{{ question['question'] }}</strong><br>
                    {% for correct in question['correct_answers'] %}
                        <p>{{ correct }}</p>
                    {% endfor %}
                </li>
            {% endfor %}
        </ul>

        <div class="button-container">
            <a href="{{ url_for('uni') }}" class="action-button">Exit to Home</a>
        </div>
    </div>
</body>
</html>
