/* General styling for the body to ensure readability */
body {
  font-family: "Comic Sans MS", "Segoe UI", sans-serif;
  background-color: #fffafc;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Header styling */
header {
  background-color: #f8e1e9;
  padding: 10px 20px;
  border-bottom: 1px solid #ddd;
}

/* Site title styling */
.site-title {
  font-size: 2em;
  color: #d64f85;
  font-weight: bold;
  text-decoration: none;
  /* Remove underline for link */
}

/* Hover effect for site title */
.site-title:hover {
  color: #a5446f;
  /* Match hover color with nav-button */
}

/* Footer styling */
footer {
  background-color: #f8e1e9;
  padding: 10px 20px;
  border-top: 1px solid #ddd;
  margin-top: 20px;
}

/* Footer buttons container */
.footer-buttons {
  display: flex;
  gap: 10px;
}

/* Navigation buttons */
.nav-button {
  display: block;
  padding: 10px 20px;
  background-color: #d64f85;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  margin-bottom: 10px;
  width: fit-content;
}

/* Hover effect for navigation buttons */
.nav-button:hover {
  background-color: #a5446f;
}

/* Table of contents links container */

.toc-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.toc-links li {
  list-style-type: disc;
  color: #d64f85;
}

.toc-links a {
  color: #333;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.toc-links a:link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #333;
  bottom: -2px;
  left: 0;
  transition: width 0.3s ease;
}

.toc-links a:link:hover::after {
  width: 100%;
}

.toc-links a:visited::after {
  background-color: #555;
  width: 100%;
}

.toc-links a:hover {
  color: #666;
}

.toc-links a:hover::after {
  background-color: #666;
}

@media (max-width: 600px) {
  .toc-links a {
    font-size: 1em;
  }
}

/* Container aligned to the left */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Heading styles */
h1 {
  color: #d64f85;
  font-size: 2em;
  margin-bottom: 20px;
  text-align: left;
}

/* Other heading styles */
h2 {
  color: #a5446f;
  margin-top: 30px;
  font-size: 1.4em;
  text-align: left;
}

h3 {
  color: #80525e;
  margin-top: 25px;
  text-align: left;
}

/* Media elements (video and images) */
video,
img {
  display: block;
  margin: 20px 0;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Section spacing */
section {
  margin-bottom: 30px;
}

/* Ensure script section (details) is left-aligned */
details {
  text-align: left;
}

/* Ensure paragraphs inside details are left-aligned with wider line spacing */
details p {
  text-align: left;
  margin: 8px 0;
  line-height: 1.8;
}

/* Ordered list for questions */
ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

ol li {
  margin-bottom: 10px;
}

/* Answer field styling */
p {
  font-weight: normal;
  color: #555;
  margin-top: 20px;
  text-align: left;
}

/* Video wrapper for responsive YouTube embeds */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 20px 0;
}

/* Ensure the iframe takes full space within the wrapper */
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive design for smaller screens */
@media (max-width: 600px) {
  .container {
    padding: 10px;
  }

  header,
  footer {
    padding: 8px 10px;
  }

  .site-title {
    font-size: 1.5em;
  }

  h1 {
    font-size: 1.5em;
  }

  h2 {
    font-size: 1.2em;
  }

  h3 {
    font-size: 1.1em;
  }

  ol {
    padding-left: 15px;
  }

  .video-wrapper {
    padding-bottom: 56.25%;
    max-width: 80%;
  }

  .nav-button {
    padding: 8px 16px;
    margin-bottom: 8px;
  }
}

/* table */
.fancy-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 600px;
  margin: 20px 0;
}

.fancy-table th,
.fancy-table td {
  border: 1px solid #333;
  padding: 8px 8px;
  text-align: left;
}



.no-dots {
  list-style-type: none;
  padding-left: 0;
}

.purple {
  color: purple;
  font-weight: bold;
}

select {
  font-size: 1.1em;
  font-weight: normal;
  color: #555;
  padding: 2px 6px;
  margin: 0 4px;
}

.underline {
  text-decoration: underline;
}

.illustration_question {
  margin-bottom: 30px;
  padding: 10px;
  border: 0px solid #ccc;
  width: fit-content;
}

.illustration_question  {
  display: block;
  margin-bottom: 8px;
}

