body {
    font-family: 'Arial', sans-serif;
    background-color: #e3f2fd; /* Light Blue */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 80%;
    max-width: 800px;
}

h1 {
    color: #000000; /* Purple */
    margin-bottom: 20px;
}

.subjects {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align to the left */
    margin-bottom: 30px;
    text-align: left; /* Ensure text is left-aligned */
}

.subject {
    margin-bottom: 15px;
}

.levels {
    margin-left: 20px;
    display: none;
}

.levels label {
    display: block;
    margin-bottom: 8px;
}

.expand-button {
    margin-left: 10px;
    cursor: pointer;
    background-color: #5e97ff; /* Light Purple */
    color: #38353b; /* Dark Purple */
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.expand-button:hover {
    background-color: #848484; /* Slightly Darker Purple */
}

#start-button {
    background-color: #007BFF; /* Purple */
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

#start-button:hover {
    background-color: #0056b3; /* Darker Purple */
}

/* Quiz Styles */
#timer {
    font-size: 24px;
    color: #9c27b0; /* Purple */
    margin-bottom: 20px;
}

#question-container {
    margin-bottom: 30px;
}

#question {
    font-size: 22px;
    color: #4a148c; /* Dark Purple */
    margin-bottom: 15px;
}

#options-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.option {
    padding: 12px;
    margin: 8px 0;
    border: 2px solid #e1bee7; /* Light Purple */
    border-radius: 6px;
    background-color: white;
    color: #4a148c; /* Dark Purple */
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.option:hover {
    background-color: #e1bee7; /* Light Purple */
    color: white;
}

.navigation {
    display: flex;
    justify-content: space-between;
}

.navigation button {
    background-color: #9c27b0; /* Purple */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.navigation button:hover {
    background-color: #7b1fa2; /* Darker Purple */
}

/* Result Styles */
#result {
    font-size: 28px;
    color: #9c27b0; /* Purple */
    margin-bottom: 30px;
}

#questions-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

#questions-table th,
#questions-table td {
    border: 1px solid #e1bee7; /* Light Purple */
    padding: 10px;
    text-align: left;
}

#questions-table th {
    background-color: #e1bee7; /* Light Purple */
    color: #4a148c; /* Dark Purple */
}

#restart-button {
    background-color: #9c27b0; /* Purple */
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

#restart-button:hover {
    background-color: #7b1fa2; /* Darker Purple */
}

/* Navigation Bar Styles */
#navigation-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.navigation-button {
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #9c27b0; /* Purple */
    border-radius: 5px;
    background-color: white;
    color: #4a148c; /* Dark Purple */
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.navigation-button:hover {
    background-color: #e1bee7; /* Light Purple */
}

.navigation-button.answered {
    background-color: #9c27b0; /* Purple */
    color: white;
}
