    body {
        background-color: #121212;
        color: #ffffff;
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }

    h1 {
        text-align: center;
    }

    h3 {
        font-family: 'Times New Roman', sans-serif;
        color: #E894FF;
        margin-top: 4px;
        margin-bottom: 9px;
        text-align: center;
    }

    .summary {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #1e1e1e;
        padding: 2px 20px;
        z-index: 1000;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    }

    .summary p {
        margin: 5px 0;
        display: inline-block;
        margin-right: 15px;
        font-family: Arial, Helvetica, sans-serif;
    }

    .results {
        font-weight: bold;
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
    }

    .container {
        max-width: 800px;
        margin: 50px auto 20px;
        padding: 20px;
        background-color: #1e1e1e;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    }

    .input-config {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 50px;
    }

    .input-group {
        display: flex;
        flex-direction: column;
        flex: 1 1 200px;
        /* Adjusts width and ensures wrapping */
    }

    label {
        margin-bottom: 0.5rem;
    }


    input {
        padding: 0.5rem;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    input[type=text] {
        border-radius: 0px;
        background-color: #f3e5f5;
        border: 1px solid #CC99FF;
        border-radius: 3px;
        font-weight: bold;
    }

    .question {
        display: flex;
        margin-bottom: 20px;
        padding: 10px;
        background-color: #2c2c2c;
        border-radius: 5px;
    }

    .options {
        display: flex;
        flex-wrap: wrap;
    }

    .question label {
        margin-right: 10px;
    }

    .ques_headings {
        font-weight: bold;
        margin-bottom: 7px;
    }

    input[type="radio"] {
        margin-right: 5px;
    }

    /* Highlight active options with specific colors */
    .question label span {
        color: #ffffff;
        /* Default text color */
    }

    .question label input[type="radio"]:checked+span.correct {
        color: #00ff7f;
        /* Green for correct */
    }

    .question label input[type="radio"]:checked+span.incorrect {
        color: #ff4c4c;
        /* Red for incorrect */
    }

    .question label input[type="radio"]:checked+span.unattempted {
        color: #b0b0b0;
        /* Gray for unattempted */
    }

    .actions {
        text-align: center;
        margin-top: 20px;
    }

    .actions button {
        padding: 10px 20px;
        margin: 5px;
        border: none;
        border-radius: 5px;
        background-color: #333333;
        color: white;
        cursor: pointer;
    }

    .actions button:hover {
        background-color: #444444;
    }

    .btn {

        padding: 0.75rem 1.5rem;
        color: white;
        cursor: pointer;

        box-shadow: inset 0px 1px 0px 0px #efdcfb;
        background-image: linear-gradient(to right, #8000FF, #DE00FF);
        border-radius: 6px;
        border: 1px solid #c584f3;
        color: #ffffff;
        font-family: Arial;
        font-size: 15px;
        font-weight: bold;
        text-decoration: none;
        text-shadow: 0px 1px 0px #9752cc;
    }

    .btn:hover {
        background-color: #bc80ea;
    }

    .btn:active {
        position: relative;
        top: 1px;
    }


    /* General print styles */
    @media print {
        body {
            font-size: 12px;
            line-height: 1.5;
            color: #000;
            margin: 0;
            padding: 0;
        }

        /* Hide unnecessary buttons when printing */
        .btn,
        .actions {
            display: none !important;
        }

        /* Summary box only at the top */
        .summary {
            display: block;
            position: relative;
            margin: 0 auto 20px auto;
            /* Add bottom margin to separate from questions */
            padding: 10px;
            border: 1px solid #ddd;
            background-color: #f9f9f9;
            width: 100%;
            box-sizing: border-box;
        }

        /* Questions styling for print */
        .question {
            border: 1px solid #ddd;
            margin-bottom: 10px;
            padding: 10px;
            page-break-inside: avoid;
            /* Prevents splitting a question between pages */
        }

        .options {
            margin-top: 5px;
        }

        /* Hide radio buttons for print */
        input[type="radio"] {
            display: none;
        }

        label span {
            display: inline-block;
            margin-left: 5px;
        }

        /* Ensure layout is phone-friendly */
        .container {
            max-width: 100%;
            padding: 0 10px;
            margin: 5px !important; /* Removes margin for the container during print */
        }

        /* Prevent summary duplication */
        .summary:not(:first-of-type) {
            display: none !important;
        }
    }