/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    width: 90%;
    max-width: 800px;
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
}

.heading {
    font-size: 2em;
    color: #f1c40f;
    margin-bottom: 20px;
    margin-top: 20px;
}

.heading2 {
    font-size: 1.2em;
    color: #ecf0f1;
    margin-bottom: 30px;
}

.start-Button-container {
    margin-bottom: 20px;
}

.start {
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.start:hover {
    background-color: #2980b9;
}

.quiz-container-style {
    background: #2c3e50;
    border-radius: 8px;
    padding: 30px;
    text-align: left;
    margin-top: 20px;
    /* Added margin-top to separate quiz section */
}

.question {
    font-size: 1.2em;
    margin-bottom: 15px;
    /* Adjusted margin for better spacing */
}

input[type="radio"] {
    margin-right: 10px;
    display: inline-block;
}

label {
    display: inline-block;
    /* Changed to block for better alignment */
    margin-bottom: 10px;
    /* Added margin-bottom for spacing between options */
}

input[type="submit"],
.back-button {
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 18px;
    font-size: 0.8em;
    cursor: pointer;
    margin: 10px 5px;
    transition: background-color 0.3s;
    display: inline-block;
    /* Ensures buttons don't stretch full width */
}

input[type="submit"]:hover,
.back-button:hover {
    background-color: #2980b9;
}

.score-heading {
    margin: 15px;
    font-size: 2.2rem;
}

.thanks-msg {
    margin: 25px;
    font-size: 1.3rem;
}

/* Responsive design */
@media (max-width: 600px) {
    .container {
        width: 100%;
        padding: 10px;
    }

    .heading {
        font-size: 1.5em;
    }

    .heading2 {
        font-size: 1em;
    }

    .start,
    input[type="submit"],
    .back-button {
        width: 100%;
        padding: 15px;
        font-size: 1.2em;
        box-sizing: border-box;
        /* Ensures padding is included in the width */
    }

    .quiz-container-style {
        padding: 10px;
        /* Reduced padding on smaller screens */
    }
}