/* ================= BODY & LAYOUT ================= */
body {
  font-family: Times New Roman, sans-serif;
  display: flex;
  justify-content: center;   /* center horizontally */
  align-items: flex-start;   /* align from top */
  min-height: 100vh;
  background-color: #f4f2ef;
  /*background-color: white;*/
  padding: 20px;
  background: #f3f4f6;
}

.main-wrapper {
  display: flex;
  flex-direction: column;      /* stack content vertically */
  justify-content: flex-start;  /* top-align content */
  align-items: center;          /* center horizontally */
  gap: 20px;
  padding: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  transition: margin-left 0.3s ease; /* smooth shift */
}


/* ================= STUDY GUIDE ================= */
.review-container {
  text-align: center;
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 650px; /* desktop max */
  min-height: 250px;
  transition: all 0.3s ease;
  /* Align to top */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;  /* top-align content */

}

.review-container h2 {
  margin-bottom: 50px;
  font-size: 1.5em;
  /* color: #0b3b66; */
  font-weight: bold;
}

#progress {
  margin-bottom: 20px;
  font-size: 1.5em;
  /*color: #0b3b66; */
  font-weight: bold;
  }


#review-answer {
  width: 200px;
  /*max-width: 100%; */
  padding: 10px;
  /* margin: 20px 0;*/
  margin: 10px auto 0;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1em;
}

#review-next-btn {
  padding: 8px 14px;
  font-size: 1em;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background-color: #2b6ea3;
  color: white;
  transition: background 0.2s;
  width: 150px;
  margin: 10px auto 0;
}

#review-next-btn:hover {
  background-color: #218838;
}

#review-feedback {
  font-weight: bold;
  margin-bottom: 10px;
}

#review-hint {
  color: #555;
  font-style: italic;
  margin-bottom: 10px;
}

#review-question{
text-align: center;
font-size: 3.0em;
margin-bottom: 20px;
}

/* ================= BACK BUTTON ================= */
.back-btn {
  display: block;
  margin: 20px auto 0;
  text-align: center;
  padding: 10px 16px;
  background-color: #2b6ea3;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  width: 150px;
}

.back-btn:hover {
  background-color: #45a049;
}

.title {
  font-size: 1.5em;
  margin-bottom: 15px;
  /* color: #0b3b66; */
  font-weight: bold;

}

#review-hint-btn {
  padding: 6px 12px;
  font-size: 0.9em;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background-color: #777;
  color: white;
  transition: background 0.2s;
  width: 150px;
  margin: 5px auto;
}

#review-hint-btn:hover {
  background-color: #555;
}

/* ================= LIST DROPDOWN ================= */
.list-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 70px;
}

.list-selector label {
  font-weight: bold;
  font-size: 1em;
  /* color: #0b3b66; */
}

.list-selector select {
  padding: 6px 10px;
  font-size: 1em;
  border-radius: 6px;
  border: 1px solid #ccc;
  cursor: pointer;
}

.list-selector button {
  padding: 6px 12px;
  font-size: 0.9em;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background-color: #2b6ea3;
  color: white;
  transition: background 0.2s;
}

.list-selector button:hover {
  background-color: #45a049;
}

/* ================= STATUS ROW ================= */
.status-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 1em;
  margin-bottom: 20px;
  font-weight: bold;
}

.status {
}

.status.learning {
  color: #c0392b; /* red for still learning */
}

.status.know {
  color: #27ae60; /* green for know */
}

/* ================= STATUS ROW ================= */
.status-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 1em;
  margin-bottom: 20px;
  font-weight: bold;
}

.status.learning {
  color: #c0392b; /* red for still learning */
}

.status.know {
  color: #27ae60; /* green for know */
}

/* ================= END OF SESSION ================= */
.flashcard-end {
  text-align: center;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 20px;
}

.flashcard-end h2 {
  margin-bottom: 0px;
  color: #2b6ea3;
}

.flashcard-review-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.btn-blue {
  background-color: #2980b9;
}
.btn-blue:hover {
  background-color: #3498db;
}

.btn-gray {
  background-color: #7f8c8d;
}
.btn-gray:hover {
  background-color: #95a5a6;
}

/* Keep recap overlay inside container, compact size */
.flashcard-end {
  position: relative;          /* stays in the container flow */
  top: auto;
  left: auto;
  transform: none;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 30px;        /* smaller padding */
  text-align: center;
  display: none;               /* hidden by default */
  flex-direction: column;
  align-items: center;
  margin: 10px 0;             /* small margin above/below */
  line-height: 1.2;           /* tighter lines, remove extra spacing */
  white-space: normal;         /* no forced breaks, text flows naturally */
  width: 400px;
  margin: 10px auto;
}

.flashcard-end h2 {
  margin: 0 0 5px 0;          /* minimal margin below heading */
  font-size: 1.5em;
  color: #2b6ea3;
}

.flashcard-end p {
  margin: 2px 0;              /* tight spacing between lines */
  font-size: 1em;
}

.flashcard-review-controls {
  display: flex;
  justify-content: center;
  gap: 10px;                  /* smaller gap between buttons */
  margin-top: 10px;           /* compact spacing */
}

.flashcard-end.active {
  display: flex;
}


.btn {
  padding: 8px 14px;
  margin: 5px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  font-size: 1em;
}

.btn-blue {
  background: #3a7bd5;
  color: white;
}

.btn-gray {
  background: #e0e0e0;
  color: #333;
}


/* === Review Feedback (same as Flashcard) === */
#review-feedback {
  margin-top: 10px;
  font-size: 1.3em;
  font-weight: bold;
  transition: color 0.3s ease, transform 0.2s ease;
  text-align: center;
  min-height: 1.5em;
}

#review-feedback.correct {
  color: #2ecc71; /* green */
  transform: scale(1.05);
}

#review-feedback.incorrect {
  color: #e74c3c; /* red */
  transform: scale(1.05);
}

/* ✅ Smooth black transparent overlay for "No questions" message */
/* ✨ Smooth black transparent overlay (same vibe as flashcards recap) */
/* ✨ Overlay for 'No Still Learning' message (same as flashcards vibe) */
/* ✨ Centered floating overlay like recap */
.no-learning-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  padding: 20px 20px;
  text-align: center;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 300px;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.no-learning-overlay p {
  display: block;
  opacity: 1;
  color: #fff;
}

/* Mobile view

/* --- Responsive Design --- */
@media (max-width: 768px) {
  body {
    font-size: 1em;
    padding: 10px;
  }

  .review-container {
    width: 100%;
    max-width: 95%;
    padding: 15px;
    box-sizing: border-box;
  }

  .status-row {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
  }

  #review-question {
    font-size: 1.8em;
    word-wrap: break-word;
    margin: 15px 0;
    line-height: 1.2;
  }

  #review-answer {
    width: 100%;
    max-width: 90%;
    font-size: 1em;
    padding: 8px;
  }

  #review-next-btn,
  #review-hint-btn {
    width: 80%;
    font-size: 1em;
    padding: 12px;
    margin-top: 10px;
  }

  #review-hint {
    font-size: 0.9em;
    margin: 8px 0;
  }

  .flashcard-end {
    width: 100%;
    max-width: 90%;
    padding: 15px;
  }

  .flashcard-review-controls {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 80%;
    font-size: 1em;
    padding: 12px;
  }
}

/* --- Extra small screens (phones under 400px) --- */
@media (max-width: 400px) {
  #review-question {
    font-size: 1.4em;
  }

  #review-answer {
    font-size: 0.95em;
  }

  .btn {
    width: 100%;
  }
}



