/* Colors used in adult mode:
 * #333 - Dark grey (text, header, footer background)
 * #fff - White (header text, content background)
 * #f5f5f5 - Light grey (body background)
 * #e0e0e0 - Light grey (header h2 text)
 * #0056b3 - Blue (selector label, link color)
 * #ccc - Light grey (week border, questions li border)
 * #666 - Medium grey (week hover border)
 * #ddd - Light grey (content border)
 * #f9f9f9 - Very light grey (questions li background)
 * #555 - Medium grey (text reference color)
 * #003d80 - Dark blue (link hover)
 * #2196f3 - Light blue (toggle switch)
 */

/* General Styles */
body {
  font-family: "Arial", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333; /* Dark grey text */
  background-color: #f5f5f5; /* Light grey background */
  margin: 0;
  padding: 0;
}

header {
  background: #333; /* Dark grey header */
  color: #fff; /* White text */
  padding: 1rem 0;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 1.5rem;
  margin: 0.5rem 0.5rem;
}

header h2 {
  font-size: 1rem;
  margin: 0;
  color: #e0e0e0;
}

main {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#week-selector {
  display: flex; /* Use flexbox for alignment */
  align-items: center; /* Vertically align label and dropdown */
  justify-content: center; /* Center the content */
  gap: 0.5rem; /* Add spacing between label and dropdown */
  margin-bottom: 0.5rem; /* Reduce space between selector and next content div */
  text-align: center;
}

#week-selector label {
  font-size: 1.2rem; /* Keep enhanced font size */
  font-weight: bold; /* Keep bold styling */
  color: #0056b3; /* Keep distinct color */
  margin-bottom: 0; /* Remove bottom margin */
  display: inline; /* Ensure it stays inline */
}

#week {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc; /* Light grey border */
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  color: #333; /* Dark grey text */
  background-color: #fff; /* White background */
}

#week:hover {
  border-color: #666; /* Medium grey on hover */
}

#content {
  background: #fff; /* White content background */
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  width: 90%;
  margin: 1.5rem auto;
  color: #333; /* Dark grey text */
  border: 1px solid #ddd; /* Light grey border */
  margin-bottom: 0.5rem; /* Reduce space between content div and footer */
}

#questions {
  list-style: none;
  padding: 0;
  margin: 0;
}

#questions li {
  margin: 1rem 0;
  padding: 1rem;
  background: #f9f9f9; /* Very light grey for list items */
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  color: #333; /* Dark grey text */
  border: 1px solid #ccc; /* Light grey border */
}

#questions li:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#text-reference {
  font-size: 1.2rem; /* Increase font size */
  color: #555;
  text-align: center;
  margin-bottom: 1rem;
}

#text-link {
  text-decoration: none;
  color: #0056b3;
  font-size: 1.2rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

#text-link:hover {
  color: #003d80;
}

footer {
  background: #333; /* Dark grey footer */
  color: #fff; /* White text */
  text-align: center;
  padding: 1rem 0;
  margin-top: 1rem;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

footer a {
  text-decoration: none;
  color: #fff; /* Match footer text color */
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}

/* Toggle Switch */
.mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  margin-right: 0.5rem;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
}

.switch input:checked + .slider {
  background-color: #2196f3;
}

.switch input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.slider.round {
  border-radius: 20px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Kids Mode Styles */
body.kids-mode {
  font-family: "Open Sans", "Segoe UI", sans-serif;
  background-color: #eef7fb; /* Very light blue */
  color: #223344; /* Dark navy blue text */
}

body.kids-mode header {
  background: #223344; /* Dark navy blue */
  padding: 1.2rem 0;
}

body.kids-mode header h1 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #ffffff; /* White */
}

body.kids-mode header h2 {
  color: #d0e2f2; /* Light blue grey */
}

body.kids-mode #content {
  background: #ffffff; /* White */
  border: 1px solid #d8e5f0; /* Very soft blue grey */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(34, 51, 68, 0.05); /* Subtle shadow using dark navy */
}

body.kids-mode #questions li {
  background: #f1faf9; /* Very light mint */
  border-left: 3px solid #00a8cc; /* Bright teal */
  border-top: none;
  border-right: none;
  border-bottom: 1px solid #cbd5e1; /* Soft grey */
  border-radius: 0;
  transition: all 0.2s ease;
  color: #223344; /* Dark navy blue text */
}

body.kids-mode #questions li:hover {
  background: #eef7fb; /* Very light blue */
  transform: translateX(3px);
  box-shadow: 0 1px 5px rgba(0, 168, 204, 0.1); /* Subtle shadow using bright teal */
}

body.kids-mode footer {
  background: #223344; /* Dark navy blue */
  color: #ffffff; /* White */
}

body.kids-mode #week-selector label {
  color: #00a8cc; /* Bright teal */
  font-weight: bold;
}

body.kids-mode #text-reference {
  color: #5f7990; /* Muted blue grey */
  font-weight: 500;
}

body.kids-mode .switch input:checked + .slider {
  background-color: #4fc3f7; /* Bright sky blue */
}

body.kids-mode #week {
  border: 1px solid #8da9c4; /* Medium blue grey */
  color: #223344; /* Dark navy blue */
}

body.kids-mode #week-title {
  color: #00a8cc; /* Bright teal */
}

body.kids-mode a {
  color: #00a8cc; /* Bright teal */
}

body.kids-mode a:hover {
  color: #0086a3; /* Deep teal */
}

/* Responsive Design */
@media (max-width: 600px) {
  body {
    font-size: 0.9rem;
  }

  #week {
    width: 100%;
  }

  #content {
    padding: 1rem;
    width: 92%;
  }
}
