/* Global Styles */
body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

/* Default Colors */
:root {
    --bg-color: #121212; /* Dark mode background by default */
    --text-color: #ffffff; /* Dark mode text color by default */
}

body.light-mode {
    --bg-color: #ffffff;
    --text-color: #000000;
}

h1 {
    text-align: center;
}

form {
    max-width: 600px;
    margin: 0 auto;
}

fieldset {
    margin-bottom: 20px;
    padding: 10px;
}

input[type="radio"] {
    margin-right: 10px;
}

input[type="submit"],
button {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #bb86fc; /* Dark mode button default color */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

input[type="submit"]:hover,
button:hover {
    background-color: #9b63db;
}

/* Light mode button color */
body.light-mode input[type="submit"],
body.light-mode button {
    background-color: #4CAF50;
}

body.light-mode input[type="submit"]:hover,
body.light-mode button:hover {
    background-color: #45a049;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

table th {
    background-color: #f4f4f4;
}

table td {
    background-color: #fff;
}

/* Correct and Incorrect answers */
.result-table .correct {
    color: green;
    font-weight: bold;
}

.result-table .incorrect {
    color: red;
    font-weight: bold;
}

/* Dark mode styles */
body.dark-mode .result-table th {
    background-color: #333333;
}

body.dark-mode .result-table td {
    background-color: #232323;
}

.bottom-right-corner {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 5%;
    z-index: 1000;
}