  /* Basic Styles */
body {

    
    font-family: Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;

}

/* Header */
.main-header {
    background: #fff;
    color: #333;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo h1 {
    margin: 0;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav li {
    margin-left: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #007bff;
}

/* Hero Section */
.hero-section {

            background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('bg.JPG') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 8rem 2rem;
    

    
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-button {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #0056b3;
}

/* Features Section */
.features-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 4rem 2rem;
    text-align: center;
}

.feature {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex: 1;
    max-width: 300px;
}

.icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Footer */
.main-footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        flex-direction: column;
        margin-top: 1rem;
    }

    .main-nav li {
        margin: 0.5rem 0;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }

    .features-section {
        flex-direction: column;
        align-items: center;
    }

       
}



#exam-container {
  max-width: 900px;
  margin: 40px auto;
  background: #fff;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 20px;
}

/* Header and Timer */
#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

#timer {
  font-size: 20px;
  font-weight: bold;
  color: #ff4d4d;
}

button {
  background-color: #00cc7a;
  color: white;
  border: none;
  padding: 8px 16px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}

/* Question Palette */
#question-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

#question-palette button {
  width: 40px;
  height: 40px;
  font-weight: bold;
  border-radius: 50%;
  background-color: #f0f0f0;
  color: #333;
}

#live-students{
  color: #336699;
  font-size: 20px;
  font-weight: bold;
}

#question-palette button.answered {
  background-color: #c8e6c9;
}

#question-palette button.current {
  border: 2px solid #007bff;
}

/* Question Box */
#question-box {
  margin-bottom: 20px;
}

#question-text {
  font-size: 22px;
  margin-bottom: 10px;
}

#question-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* Options */
#options-list {
  list-style: none;
  padding: 0;
}

#options-list li {
  background-color: #f9f9f9;
  padding: 10px 15px;
  margin-bottom: 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#options-list li:hover {
  background-color: #e0f7fa;
}

#options-list li.selected {
  background-color: #d0f0c0;
  border-left: 5px solid #4caf50;
}

/* Review Box */
#review-box {
  background-color: #fefefe;
  border-top: 2px solid #007bff;
  padding-top: 20px;
}

#review-box h3 {
  color: #007bff;
}

.correct {
  color: green;
  font-weight: bold;
}

.wrong {
  color: red;
  font-weight: bold;
}

/* Responsive Design */
@media screen and (max-width: 600px) {
  #question-palette {
    justify-content: center;
  }

  button {
    padding: 6px 12px;
    font-size: 14px;

  }

  #question-text {
    font-size: 18px;
  }
}

