body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
}

body {
   font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    margin: 0; /* Reset margin to ensure full viewport height */
    padding: 0; /* Reset padding to ensure full viewport height */
    height: 100vh;
}

/* Header Styles */
.navbar-logo{
    width: 15%;
}
.navbar-logo{
    width: 15%;
}
header {
    background-color: #ffffff;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center; 
}

header h1 {
    margin: 0;
}

/* Navigation Styles */
nav {
    display: inline-block;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline-block;
    margin-right: 20px;
}

nav ul li:last-child {
    margin-right: 0;
}

nav ul li a {
    color: #007bff; /* Change text color to blue */
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
    transition: all 0.1s;
}

/* Animated Underline Effect */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #007bff; /* Change underline color to blue */
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s;
}

/* Apply the underline when the link is clicked */
nav ul li a:hover {
    background-color: #007bff;
    color: #ffffff;
    padding: 10px 15px; /* Adjust padding for the button */
    border-radius: 8px; /* Add rounded corners */
    transition: all 0.3s ease; /* Add a smooth transition effect */
    display: inline-block; /* Ensure the button expands properly */
}

.login-link, .signup-link {
    display: inline-block;
}

.login-link a, .signup-link a {
    color:#007bff;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #333;
    border-radius: 5px;
}

.login-link a:hover, .signup-link a:hover {
    background-color: #007bff;
    color: #ffffff;
    padding: 10px 15px; /* Adjust padding for the button */
    border-radius: 8px; /* Add rounded corners */
    transition: all 0.3s ease; /* Add a smooth transition effect */
    display: inline-block; /* Ensure the button expands properly */
}


.quiz-container {
    width: 85%;
    min-width: 90%;
    height: 67%;
    align-self: center;
    font-size: large;
    border-radius: 10px;
    margin-left: 5%;
    margin-top: 2%;
    background-color: whitesmoke;
    border: 2px solid  #007bff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column; /* Align children vertically */
}

.question-block {
    display: none;
    
    margin-left: 1%;
    height: 90%;
    padding: 20px; /* Increase padding around each question block */
}

.question-block p {
   margin-top: 20px; /* Add spacing between paragraphs */
}

.question-block label {
    display: block;
    margin-bottom: 200px; /* Add spacing between options */
}

.nav-buttons {
    margin-top: auto; /* Push buttons to the bottom */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px; /* Add spacing between questions and buttons */
}

button {
    margin: 10px;
    padding: 20px 40px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    background-color: #007bff; /* Default button color */
    color: #fff;
    border: 2px solid #333; /* Add a border to the button */
    transition: background-color 0.3s, border-color 0.3s; /* Add transition for both background and border color */
}

button:hover {
    background-color: #0056b3; /* Button color when hovered */
  
}

button:active {
    background-color: #333; /* Button color when clicked */
   
}


/* Style for the "Next" button with an arrow ▶ */
.next-button {
    background-color: #4CAF50;
    color: white;
    border: none;
}

/* Style for the "Previous" button with an arrow ◀ */
.prev-button {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ccc;
}

/* Style for the "Submit" button at the end */
.submit-button {
    background-color: #2196F3;
    color: white;
    border: none;
}

.qchap {
    
    font-size: 35px;
    font-weight: bolder;
}

.qq {
    
    font-size: 20px;
    font-weight: bold;
}

.qa {
    margin-top: 20px;
}

.examheader {
    margin-top: 40px;
    text-align: center;
    font-size: 50px;
}

@media (max-width: 1200px) {
    .nav ul li:not(.login-link):not(.signup-link) {
        display: none; /* Hide navigation links on mobile */
    }
  
    .login-link, .signup-link {
        margin-top: 10px; /* Add space between login/signup link and navigation */
        display: block; /* Show login/signup links on mobile */
    }
}
