styles.css
body, h1, ul {
  margin: 0;
  padding: 0;
}

body {
  margin:0;
  padding:0;
  height:100%;
}

.linenums {
  list-style-type: none;
 
}

main, .sidebar, .sidebar.right, footer {
  padding: 10px;

}

 

 ul {
  list-style: none;
   
  justify-content: center;
}

ul li a {
  text-decoration: none;
  padding: 5px 10px;
}

main {
  flex: 1;
 


}
.container-fluid {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 90%;
}


.left-sidebar  {
  width: 200px; /* Adjust the width to your desired value */
}

.right-sidebar {
  width: 200px; /* Adjust the width to your desired value */
}

 
/* styles.css */

.popular-certifications-container {
  display: flex; /* Align items in a row */
  flex-wrap: wrap; /* Allow wrapping if not enough space */
  gap: 20px; /* Add some space between items */
  justify-content: center; /* Align items to the center of the container */
}

.popular-certifications-title {
  color: #007bff; /* Theme primary color */
  font-weight: bold; /* Bold font weight */
  margin-bottom: 0; /* Remove default margin */
}



.certification-title-container {
  background-color: #e9ecef; /* Light gray background */
  border-radius: 6px; /* Rounded corners */
  padding: 10px 0; /* Vertical padding */
  margin: 20px 0; /* Top and bottom margin */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.certification-title-container h3 {
  color: #495057; /* Dark gray color */
  font-weight: 600; /* Slightly bold font */
}



 


/* General padding and margin for headings */
h1, h2, h3, h4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* Styling for the container */
.container {
  padding-top: 20px;
  padding-bottom: 20px;
}

.header-container {
  padding: 0% 5% 0% 5%;
}

/* Card styling */
.card {
  background-color: #f8f9fa;
  border-radius: 0.25rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

.card-title {
  font-size: 1.25rem; /* Adjust based on preference */
}

/* Option list styling */
ul {
  list-style-type: none;
  padding-left: 0;
}

/* Correct option styling */
.correct-option {
  color: rgb(218, 193, 69); /* Gold color for correct options */
  font-weight: bold;
}

/* Badge styling for correct/incorrect questions */
.badge-success {
  background-color: #28a745; /* Green */
  color: white;
  font-size: 1.5em;
  margin-right: 5px;
}

.badge-danger {
  background-color: #dc3545; /* Red */
  color: white;
  font-size: 1.5em;
  margin-right: 5px;
}



@media (max-width: 1200px) {
  #left-sidebar, #right-sidebar {
      width: 100%;
      order: 1; /* Move sidebars under the header/main content */
  }

  #main-content {
      width: 100%;
      order: 2; /* Ensure main content takes full width and is displayed between the sidebars */
  }

  #right-sidebar {
      order: 3; /* Move right sidebar to the bottom */
  }
}

.recap {
  display: flex; /* Align bullets in a row */
  flex-wrap: wrap; /* Allow wrapping if not enough space */
  justify-content: start; /* Align items to the start of the container */
  gap: 10px; /* Optional: Adds some space between bullets */
}

.bullet {
  width: 25px; /* Adjust size as needed */
  height: 25px; /* Adjust size as needed */
  border-radius: 50%; /* Makes the bullet round */
  background-color: #ddd; /* Default background color */
  color: #000; /* Text color */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer; /* Changes cursor to indicate clickable */
}

.bullet.answered {
  background-color: #6a60f6; /* Change color to indicate answered */
  color: white;
}

.quiz-navigation {
  display: flex;
}

.quiz-navigation button:last-child {
  margin-left: auto;
}

.quiz-navigation button {
  border-radius: 5px; /* Rounded corners */
  border: 2px solid #007bff; /* Custom border */
  background-color: #007bff; /* Background color */
  color: #fff; /* Text color */
  transition: background-color 0.2s ease-in-out; /* Smooth transition for hover effect */
  padding: 0.5rem 1rem; /* Adjust padding to control size */
  font-size: 1rem; /* Ensure font size is the same */
}

.quiz-navigation button:hover {
  background-color: #0056b3; /* Darker shade on hover */
}

@media (max-width: 768px) {
  .quiz-navigation button {
      width: 100%; /* Full width on smaller screens */
      margin-bottom: 10px; /* Add space between stacked buttons */
  }
}

/* Ensuring uniform styles for both buttons */
.quiz-navigation .btn {
  padding: 0.75rem 1.25rem; /* Adjust padding as needed */
  font-size: 1rem; /* Adjust font size as needed */
  line-height: 1.5; /* Standard line-height for Bootstrap buttons */
  border-radius: 0.25rem; /* Standard border-radius for Bootstrap buttons */
}

/* Ensuring the buttons don't wrap text and have the same width */
.quiz-navigation .btn {
  white-space: nowrap; /* Prevents text from wrapping */
  min-width: 120px; /* Adjust minimum width as needed */
}

/* Optional: Adjust this if buttons look different due to responsive behavior */
@media (max-width: 768px) {
  .quiz-navigation .btn {
      width: 100%; /* Optional: full width on smaller screens */
      box-sizing: border-box; /* Ensures padding is included in the width */
  
  }
  .question {
      font-size: 1.5rem; /* Optional: Larger font size for questions on smaller screens */
  }
  #main-content > div.row.mt-5.mb-5 > div {
      padding: 5; /* Optional: Remove padding for better spacing */
       
  }

  
}

@media (max-width: 1200px) {
    /*justify the content the two extremities of the container left and right*/
    .justify-content-center {
      justify-content: space-between;
    }
}


.explanation {
  margin-top: 20px; /* Add space between question and explanation */
  padding: 20px; /* Add padding to the explanation */
  border-radius: 6px; /* Rounded corners */
  background-color: #f8d7da; /* Light red background */
  color: #721c24; /* Dark red text color */
  border: 1px solid #f5c6cb; /* Light red border */
  overflow-wrap: anywhere; /* Ensure long text wraps */
}

.quiz-timer {
  margin-top: 10px; /* Add space between question and timer */
}

.question {
  font-size: large;
}

.navbar-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Adjust alignment as needed */
  width: 100%;
}



.navbar-logo {
  max-width: 100%; /* Ensures the image is never more than 100% of its container's width */
  height: auto; /* Maintains the image's aspect ratio */
  max-height: 160px; /* Adjust based on your preference and navbar size */
}


/*animate img upon scroll and change pointer*/
img {
  cursor: pointer;
  /*animate img upon hover */
  transition: transform 0.2s;

}


.card .btn-primary {
  width: 100%;
  margin-top: auto;
  height: 40px; /* Sets a fixed height for all buttons */
  display: flex;
  align-items: center;
  justify-content: center;
}



.card-body {
  display: flex;
  flex-direction: column; /* Stack items vertically */
  flex: 1; /* Allows the card body to expand */
  justify-content: space-between; /* Distributes space between items */
}

.card-img-top {
  width: 100%; /* Makes the image fully occupy the card width */
  height: auto; /* Keeps the image aspect ratio */
  object-fit: cover; /* Ensures the image covers the area without stretching */
}
