/* Global Styles & Background */
body {
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
  /* Responsive background image */
  background: url('images/background.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #333;
}

/* Book List Container */
#book-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 95vh; /* Ensures the container fills the viewport height */
}

/* Book List */
#books {
  list-style-type: none;
  padding: 0;
  width: 100%;
}

#books li {
  margin: 5px 0;
  padding: 5px;
  border-bottom: 1px solid #ccc;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer under Book List */
.book-list-footer {
  font-size: 0.8em;
  text-align: left;
  max-width: 600px;
  margin: -12px auto 0 auto;
  margin-left: 670px; /* Adjust this value as needed to shift right */
  color: #555;
}


/* Quiz Container */
#quiz-container {
  display: none;  /* When visible, JS sets this to flex */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  transform: translateY(70px); /* Shifts content 20px down; adjust as needed */
}

/* Quiz Question */
#quiz-question {
  font-size: 1.5em;
  margin-bottom: 20px;
}

/* Dropdowns */
#answer-section select {
  width: 40%;
  padding: 5px;
  margin: 5px;
}

/* Buttons */
button {
  padding: 10px 20px;
  margin: 10px;
  cursor: pointer;
}

/* Feedback area with reserved space */
#feedback {
  font-size: 1.5em;
  margin-top: 20px;
  min-height: 40px; /* Reserve space so layout doesn't shift */
}

/* Feedback Animations */
.correct {
  color: green;
  animation: slide 1s ease-out;
}

.incorrect {
  color: red;
  animation: slide 1s ease-out;
}

@keyframes slide {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Next Question Button (hidden but space reserved) */
#next-question {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-top: 20px; /* Adjust the value as needed */
}

#book-list h1 {
  margin-bottom: -5px; /* reduce this value as needed */
}

#back-to-booklist {
  margin-top: 130px; /* Adjust this value as needed */
}

#answer-section {
  margin-top: 20px;  /* Increase this value as needed */
  margin-bottom: 20px; /* Adjust the value as needed */
}

#quiz-question {
  max-width: 900px;
  margin: 0 auto;
  text-align: left; /* Add this line to left align the text */
}
