/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  text-align: center; /* Center-align text globally */
}

/* Header Styles */
/* header {
  background-color: #47dce1;
  color: #fff;
  padding: 1rem;
  background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), 
                    url('/images/CrocoQuizLowHightBanner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 150px; /*Adjust height as needed
} */
header { 
  background-color: #47dce1; /* Fallback color */ 
  color: #fff; 
  padding: 1rem; 
  background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),  
                    url('/images/CrocoQuizLowHightBanner.png'); 
  background-size: 100% 100%; /* Stretch the image to fit the header */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat; /* Prevents the image from repeating */ 
  height: 150px; /* Adjust height as needed */
}

/* Navigation Menu */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #333;
  padding: 10px 20px;
}

.navbar .logo img {
  border: 2px solid #fff;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 10;
  padding: 10;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 2rem;
}

.nav-links li a:hover {
  color: #47dce1; /* Highlight color on hover */
}

/* Section Above Main */
.section-above {
  background-color: #fff;
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.section-above h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-above p {
  font-size: 1.2rem;
  color: #555;
}

/* Main Content Styles */
main {
  padding: 20px;
  max-width: 1200px; /* Limit width for better readability */
  margin: 0 auto; /* Center the main content */
  display: flex; /* Use flexbox to align sections side by side */
  gap: 20px; /* Add space between the sections */
  align-items: flex-start; /* Align items to the top */
}

.quiz-category, .quiz-category-1 {
  flex: 1; /* Allow the quiz category to take up remaining space */
}

.quiz-list, .quiz-list1 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; /* Center-align quiz cards */
}

.quiz-card, .quiz-card1 {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  width: calc(25% - 20px); /* 4 cards per row on desktop */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center; /* Center-align card content */
}

.quiz-card h3, .quiz-card1 h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.quiz-card p, .quiz-card1 p {
  margin: 0 0 15px;
  font-size: 1rem;
}

.start-quiz, .start-quiz1 {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}

.start-quiz:hover, .start-quiz1:hover {
  background-color: #0056b3;
}

/* Quiz Container Styles */
.quiz-container {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  max-width: 300px; /* Set a fixed width for the quiz container */
  width: auto; /* Ensure it takes full width within its flex container */
  text-align: center;
  margin: 0; /* Remove auto margin to align it to the right */
  position: relative; /* Make it stick to the top */
  top: 65px; /* Add some space from the top */
}

.quiz-container.hidden {
  display: none;
}

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

.option {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  margin: 5px;
  cursor: pointer;
  width: 50%; /* Full width for mobile */
}

.option:hover {
  background-color: #0056b3;
}

.option:disabled {
  background-color: #ccc; /* Gray out disabled buttons */
  cursor: not-allowed;
}

#next-button {
  background-color: #28a745;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  display: none; /* Hidden by default */
}

#next-button:hover {
  background-color: #218838;
}

/* Section Below Main */
.section-below {
  background-color: #f9f9f9;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid #ddd;
}

.section-below h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-below p {
  font-size: 1.2rem;
  color: #555;
}

/* Footer Styles */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding-top: 100px;
  padding: 10px;
  width: 100%;
}

/* Media Queries for Responsiveness */

/* For tablets and smaller desktops */
@media (max-width: 768px) {
  main {
    flex-direction: column; /* Stack sections vertically on smaller screens */
  }

  .quiz-container {
    max-width: 100%; /* Full width on smaller screens */
  }

  .quiz-card, .quiz-card1 {
    width: calc(50% - 20px); /* 2 cards per row on tablets */
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
  }
}

/* For mobile devices */
@media (max-width: 480px) {
  .quiz-card, .quiz-card1 {
    width: 100%; /* 1 card per row on mobile */
  }

  .navbar .logo img {
    width: 80px; /* Smaller logo for mobile */
  }

  .nav-links li a {
    font-size: 0.9rem; /* Smaller font size for mobile */
  }

  .section-above h2, .section-below h2 {
    font-size: 1.5rem; /* Smaller font size for mobile */
  }

  .section-above p, .section-below p {
    font-size: 1rem; /* Smaller font size for mobile */
  }
}