/* ========== Global Styles ========== */

/* Reset default browser styles and set box-sizing */
*, html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Apply consistent base styling across all pages (home, quiz, results) */
body {
  font-family: "Segoe UI", sans-serif;
  background-color: #fdf5e6;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* ========== Home Page Styles ========== */

/* Main container for the home page */
.home-container {
  text-align: center;
  background-color: #fff8dc;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  max-width: 500px;
}

/* Logo/title styling */
.logo {
  font-size: 2.5rem;
  color: #ff7f50;
  margin-bottom: 10px;
}

/* Tagline text under the logo */
.tagline {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 30px;
}

/* Start Quiz button styling */
.start-btn {
  background-color: #ff7f50;
  color: white;
  padding: 12px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Hover and active effects for Start Quiz button */
.start-btn:hover,
.start-btn:active {
  background-color: #ff6347;
  text-decoration: underline;
}

/* Instructions section */
.instructions {
  margin-top: 30px;
  font-size: 0.95rem;
  color: #555;
  text-align: left;
}

.instructions h3 {
  color: #333;
  margin-bottom: 10px;
}

.instructions ul {
  list-style-type: disc;
  padding-left: 20px;
}

/* ========== Quiz Page Styles ========== */

/* Container for quiz content */
.quiz-container {
  background: #fff8dc;
  padding: 40px;
  border-radius: 20px;
  max-width: 600px;
  margin: 50px auto;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Score and timer section */
.score-timer-bar {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  margin-bottom: 10px;
  color: #333;
}

/* Progress bar container */
.progress-bar {
  background-color: #e0e0e0;
  height: 20px;
  border-radius: 10px;
  margin: 10px 0 20px;
  overflow: hidden;
}

/* Fill element for dynamic progress */
.progress-fill {
  height: 100%;
  width: 0%;
  background-color: #20b2aa;
  transition: width 0.3s ease;
}

/* Baby animal image styling */
.image-box img {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 10px;
}

/* Question text */
.question {
  font-size: 1.5rem;
  margin: 20px 0;
  color: #333;
}

/* Container for answer options */
.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

/* Individual option buttons */
.option-btn {
  background-color: #f0a500;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.option-btn:hover {
  background-color: #c17a01;
}

/* Navigation buttons (e.g., next/prev) */
.nav-buttons{
  display: flex;
  justify-content: space-between;
}
.nav-buttons button {
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.nav-buttons #prevBtn {
  background-color: #6c757d;
}
.nav-buttons #nextBtn {
  background-color: #20b2aa;
}
.nav-buttons #submitBtn {
  background-color: #4caf50;
}
.nav-buttons button:hover {
  text-decoration: underline;
}
/* Score alignment */
.score {
  text-align: right;
  font-size: 1rem;
  margin-bottom: 10px;
  color: #333;
}

/* ========== Results Page Styles ========== */

/* Container for final result display */
.results-container {
  background-color: #fff8dc;
  padding: 40px;
  text-align: center;
  border-radius: 20px;
  max-width: 500px;
  margin: 60px auto;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Result title */
.results-container h1 {
  color: #ff7f50;
}

/* Final score display */
#final-score {
  font-size: 3rem;
  color: #20b2aa;
}

/* all P tags style */
.results-container p {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #333;
}

/* Generic button style */
.results-container .btn {
  background-color: #ff7f50;
  color: white;
  padding: 12px 24px;
  font-size: 1rem;
  margin: 18px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}

/* Hover effect for buttons */
.results-container .btn:hover {
  background-color: #ff6347;
  text-decoration: underline;
}

/* Share button specific style */
.share-btn {
  background-color: #4682b4;
}

/* Hover effect for share button */
.share-btn:hover {
  background-color: #4169e1;
}
