/* body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
} */

.answer-review-list li {
    margin-bottom: 12px;
    font-size: 1.1em;
}

.quiz-logo-bar {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
}

.quiz-logo {
  width: 100%;
  margin: 20px 0 10px 0;
}

.quiz-green-bar {
  width: 100%;
  height: 8px;
  background-color: #2e8b57;
}

.quiz-container {
  width: 80%;
  height: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  overflow: hidden;
  position: relative;
}

.tile {
  display: none;
  padding: 20px;
  text-align: center;
}

.tile.active {
  display: block;
  margin: auto;
  padding: 10px;
}

.tile img {
  object-fit: cover;
  margin-bottom: auto;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: justify; 
  max-width: 80%; 
  height: auto;
}

.question {
  font-size: 18px;
  margin-bottom: auto;
  margin-left: auto;
  margin-right: auto;
}

.options label {
  display: block;
  background: #f9f9f9;
  margin: auto;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid #ddd;
  transition: background 0.3s;
  min-height: 48px;
}

.options input {
  margin-right: auto;
}

.options label:hover {
  background: #e8f0fe;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #007BFF;
  border: none;
  color: #fff;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
}

#prevBtn { left: 10px; }
#nextBtn { right: 10px; }

.submit-btn {
  background: #28a745;
  border: none;
  color: white;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
}

.score-div {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    text-align: center;
}

.main-body {
  margin-left:auto;
  margin-right:auto;
  width:80%;
}

.quiz-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  background: #eef2f7;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  margin-left:auto;
  margin-right:auto;
  width:60%;
}

.quiz-header {
  text-align: center;
  margin-bottom: auto;
}

.quiz-header h2 {
  font-size: 26px;
  color: #333;
  margin: 0;
}

.quiz-navigation {
  display: flex;
  justify-content: space-between;
  width: 80%;
  margin-top: auto;
  position: relative;
}

.nav-btn {
  background: #007BFF;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s;
}

.nav-btn:hover {
  background: #0056b3;
}

@media only screen and (min-width: 400px) {
            .md {
                display: block;
            }
        }
        
@media (max-width: 400px) {

  /* Hide non-essential page elements */
  header,
  footer,
  nav,
  .quiz-logo-bar,
  .quiz-header {
    display: none;
  }

  /* Full-width layout */
  body {
    margin: 0;
    padding: 0;
    background: #eef2f7;
  }

  .main-body,
  .quiz-wrapper {
    width: 100%;
    padding: 10px;
    margin: 0 auto;
  }

  .quiz-container {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  /* Center and scale tile content */
  .tile {
    padding: 16px;
  }

  .tile img {
    max-width: 100%;
    height: auto;
  }

  .question {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 16px;
  }

  .options label {
    font-size: 1rem;
    padding: 14px;
    margin-bottom: 10px;
  }

  /* Disable floating nav arrows */
  .nav-btn {
    position: static;
    transform: none;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 1rem;
  }

  /* Stack navigation buttons */
  .quiz-navigation {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 20px;
  }

  #prevBtn,
  #nextBtn {
    width: 100%;
  }

}

@media (max-width: 768px) {
  .quiz-navigation {
    position: sticky;
    bottom: 0;
    background: #eef2f7;
    padding: 10px 0;
  }
}

