/* Learn Hero */

/* .main {
  background-color: white;
  margin: 10px;
}

.learn__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-self: center;
  margin-top: 50px;
  margin-bottom: 50px;
  height: 90vh;
  background-color: red;
  z-index: 1;
  width: 100%;
  max-width: 1300px;
  padding: 0 50px;
} */

/* ✅ Updated Hero Section */
.learn__main {
  background-color: #f1f1f1;
  display: flex;
  justify-content: center;
}

.learn__container {
  display: flex;
  width: 100%;
  max-width: 1300px;
  height: 90vh;
  padding: 20px;
}

/* 📌 Sidebar Navigation */
.lesson__sidebar {
  width: 250px;
  background-color: #2a50a2;
  color: white;
  padding: 20px;
  overflow-y: auto;
  height: 100%;
  scroll-behavior: smooth;
}

.lesson__sidebar h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.lesson-list {
  list-style-type: none;
}

.lesson-item {
  margin-bottom: 10px;
}

.lesson-item a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 10px;
}

.lesson-item a:hover {
  background-color: #1f3d7a;
}

.chapter-list {
  list-style-type: none;
  display: block;
  padding-left: 20px;
}

/* 📌 Content Area */
.lesson__content {
  flex-grow: 1;
  background: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-left: 20px;
  overflow-y: scroll;
  width: 80%;
  max-width: 900px;
}

.lesson__content h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

#chapter-content {
  margin-left: 20px;
}

/* left right containers */
.leftRightContainer {
  display: flex;
  flex-wrap: wrap; /* ✅ Prevents stacking issues */
  justify-content: space-between; /* ✅ Ensures space between columns */
  gap: 20px; /* ✅ Adds spacing */
  width: 100%;
}

.left,
.right {
  flex: 1; /* ✅ Ensures both take equal space */
  min-width: 45%; /* ✅ Prevents columns from collapsing */
  padding: 20px;
  text-align: left;
  box-sizing: border-box; /* ✅ Prevents content from breaking layout */
}

/* oneonetwo containers */
.oneonetwoContainer {
  display: flex;
  flex-wrap: wrap; /* ✅ Prevents stacking issues */
  justify-content: space-between; /* ✅ Ensures space between columns */
  gap: 10px; /* ✅ Adds spacing */
  width: 100%;
}

.one {
  flex: 1; /* ✅ Ensures both take equal space */
  min-width: 20%; /* ✅ Prevents columns from collapsing */
  text-align: left;
  box-sizing: border-box; /* ✅ Prevents content from breaking layout */
  background-color: lightgrey;
  padding: 20px;
}

.two {
  flex: 1; /* ✅ Ensures both take equal space */
  min-width: 45%; /* ✅ Prevents columns from collapsing */
  text-align: left;
  box-sizing: border-box; /* ✅ Prevents content from breaking layout */
  background-color: lightgrey;
  padding: 20px;
}

/* buttons in learn */
.button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  background-color: #2a50a2;
  color: white;
  text-decoration: none; /* Removes underline */
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
}

/* cpd */

#cpd {
  margin-left: 20px;
  position: relative;
  width: 200px;
  height: 300px;
}

#cpd__mini {
  margin-left: 30px;
  position: relative;
  width: 100px;
  height: 150px;
}

/* #lines__mini {
  position: relative;
  justify-content: center; 
  align-items: center; 
  width: 100px;
  height: 150px;
} */

.line {
  position: absolute;
  height: 100%;
  border-left: 6px double black;
  transition: border-style 0.3s ease;
  cursor: pointer;
}

#lines__mini {
  position: relative;
  display: flex;
  justify-content: center; /* horizontally centers children */
  align-items: center;
  width: 100%; /* or set a fixed width if preferred */
  height: 150px;
  gap: 40px; /* controls space between the two lines */
}

/* ch3 line color */
.linecolored {
  position: absolute;
  height: 100%;
  border-left: 6px solid black; /* MUST include this */
  transition: border-style 0.3s ease;
  cursor: pointer;
}

#cp2line1,
#cp4line1 {
  left: 25%;
}
#cp2line2,
#cp4line2 {
  right: 25%;
}

#line1,
#line21,
#line11,
#questionline1,
#questionline5 {
  transform: rotate(45deg);
  top: 0;
  left: 50%;
}

#line2,
#line22,
#line12,
#questionline2,
#questionline6 {
  transform: rotate(90deg);
  top: 50%;
  left: 50%;
  height: 70%;
}

#line3,
#line23,
#line13,
#questionline3,
#questionline7 {
  transform: rotate(-45deg);
  bottom: 0;
  left: 50%;
}

#line4,
#line24,
#line14,
#questionline4,
#questionline8 {
  transform: rotate(90deg);
  bottom: 50%;
  left: 50%;
  height: 70%;
}

.cpd-container {
  display: flex; /* Flexbox layout to align items side by side */
  gap: 30px; /* Add space between the cpd diagrams */
  justify-content: center; /* Center the cpd horizontally */
  align-items: center; /* Align cpd vertically */
}

#question-display {
  font-size: 2.5em; /* Increase the font size, adjust as needed */
  margin-bottom: 5px; /* Add spacing for visual clarity */
  text-align: center; /* Center-align the text */
}

.label {
  position: absolute;
  font-size: 2em;
  font-weight: bold;
  color: black;
}

#labelS {
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
}

#labelP {
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
}

#cpdfeedback {
  margin-top: 20px; /* Adjust the value as needed */
  font-size: 1.2em; /* Optional: Make text more readable */
}

/* end cpd */

/* answer buttons */

.button-container {
  display: flex;
  justify-content: center; /* horizontally center */
  align-items: center; /* vertically center */
}

.check-button {
  background-color: #2a50a2;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

.cpdq-container {
  display: flex;
  justify-content: center; /* horizontally center */
  align-items: center; /* vertically center */
}
