:root {
    --background-color: #f4f4f4;
    --text-color: #333;
    --container-bg: white;
    --button-bg: #007BFF;
    --button-hover-bg: #0056b3;
    --button-color: white;
}

[data-theme="dark"] {
    --background-color: #121212;
    --text-color: #f4f4f4;
    --container-bg: #1e1e1e;
    --button-bg: #BB86FC;
    --button-hover-bg: #9a4cfc;
    --button-color: #121212;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    text-align: center;
    padding: 0;
    margin: 0;
}

header {
    background-color: var(--container-bg);
    padding: 15px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 20px;
    color: var(--text-color);
}

.theme-toggle {
    background: var(--button-bg);
    color: var(--button-color);
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

.theme-toggle:hover {
    background: var(--button-hover-bg);
}

.container {
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
    background: var(--container-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

h2 {
    color: var(--text-color);
}

.message {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
}

.correct {
    color: green;
}

.wrong {
    color: red;
}

.option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

input[type="checkbox"] {
    transform: scale(1.3);
}

/* Container for buttons */
.button-container {
    display: flex; /* Arrange buttons side by side */
    gap: 10px; /* Add space between buttons */
    justify-content: center; /* Center the buttons */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-top: 15px; /* Add spacing above the container */
}

/* Common styles for buttons */
.button-container input[type="submit"],
.button-container button {
    flex: 1 1 auto; /* Make buttons flexible and take equal space */
    background: var(--button-bg);
    color: var(--button-color);
    border: none;
    padding: 12px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* Hover styles for both buttons */
.button-container input[type="submit"]:hover,
.button-container button:hover {
    background: var(--button-hover-bg);
}

/* Restart button specific styling */
.button-container button {
    background-color: #ff4d4d; /* Red for Restart button */
    color: white;
}

.button-container button:hover {
    background-color: #e60000; /* Darker red for Restart button on hover */
}

/* Responsive: Ensure good layout on smaller screens */
@media (max-width: 768px) {
    .button-container {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }
}

.btn {
    display: inline-block;
    background: var(--button-bg);
    color: var(--button-color);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 16px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: var(--button-hover-bg);
}
/* Base Header Styling */
header {
    background-color: var(--container-bg);
    padding: 15px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left: Logo */
.logo {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: var(--text-color);
}

/* Middle: Full Menu */
.menu-list {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-list li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.menu-list li a:hover {
    background-color: var(--button-hover-bg);
    color: var(--button-color);
}

footer {
    background-color: var(--container-bg);
    color: var(--text-color);
    padding: 20px 0;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
}

footer a {
    color: var(--button-bg);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--button-hover-bg);
}

