.mainbody {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh;
    margin: 0;
}
body{
    margin: 0;
}
.quiz-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h2 {
    margin-bottom: 20px;
}

#difficulty-selection {
    margin-bottom: 20px;
}

.difficulty-btn {
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #007BFF;
    color: white;
    transition: background-color 0.3s ease;
}

.difficulty-btn:hover {
    background-color: #0056b3;
}

.hidden {
    display: none;
}

#question-box {
    margin-bottom: 20px;
}

.btn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.answer-btn {
    display: block;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.answer-btn:hover {
    background-color: #ddd;
}

.answer-btn:active {
    transform: scale(0.98);
}

.correct {
    background-color: #28a745;
    color: white;
}
.correct:hover{
    background-color: #28b649;
}
.incorrect:hover{
    background-color: #b62828;
}

.incorrect {
    background-color: #dc3545;
    color: white;
}

#result-message {
    margin-top: 20px;
}

#next-btn {
    padding: 10px 20px;
    margin-top: 20px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #007BFF;
    color: white;
    transition: background-color 0.3s ease;
}

#next-btn:hover {
    background-color: #0056b3;
}
#progress-bar {
    background-color: #e0e0e0;
    border-radius: 5px;
    margin-bottom: 20px;
    height: 20px;
    width: 100%;
    overflow: hidden;
}

#progress {
    background-color: #007BFF;
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.hidden {
    display: none;
}

#explanation-box {
    margin-top: 20px;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}
header{
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
}
.homes{
    text-decoration: none;
    color: black;
    font-size: 20px;
    padding: 0 20px;
}
