/* ✅ General Styling for Test Page */
.test__main {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* ✅ Question Blocks & CPD Block */
.question-block,
.cpd-block {
  background: #f8f9fa;
  padding: 15px;
  margin: 15px 0;
  border-radius: 5px;
  border-left: 5px solid #007bff;
}

/* ✅ MCQ Option Styling */
.option-label {
  font-size: 1em;
  cursor: pointer;
}

/* ✅ Submit Button */
.submit-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: #007bff;
  color: white;
  font-size: 1.2em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: #0056b3;
}

/* ✅ Feedback Styling */
.feedback {
  margin-top: 10px;
  font-size: 1em;
}

.correct {
  color: green;
  font-weight: bold;
}

.incorrect {
  color: red;
  font-weight: bold;
}

.warning {
  color: orange;
  font-weight: bold;
}

/* ✅ Final Score Section */
.final-score {
  text-align: center;
  margin-top: 20px;
  padding: 15px;
  background: #e9ecef;
  border-radius: 5px;
}

/* ✅ Restart Button */
.restart-btn {
  padding: 10px;
  background: #28a745;
  color: white;
  font-size: 1em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s;
}

.restart-btn:hover {
  background: #218838;
}

/* ✅ CPD Model Styling */
.cpd-block {
  text-align: center;
}
/* cpd */

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

.line {
  position: absolute;
  height: 100%;
  border-left: 6px solid black; /* Use border-left for thickness */
  transition: border-style 0.3s ease;
  cursor: pointer;
}

#line1 {
  transform: rotate(45deg);
  top: 0;
  left: 50%;
}

#line2 {
  transform: rotate(90deg);
  top: 50%;
  left: 50%;
  height: 70%;
}

#line3 {
  transform: rotate(-45deg);
  bottom: 0;
  left: 50%;
}

#line4 {
  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: 3.5em; /* Increase the font size, adjust as needed */
  margin-bottom: 20px; /* Add spacing for visual clarity */
  text-align: center; /* Center-align the text */
}

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

/* Position "S" on the left */
#labelS {
  left: -40px; /* Move left */
  top: 50%;
  transform: translateY(-50%); /* Center vertically */
}

/* Position "P" on the right */
#labelP {
  right: -40px; /* Move right */
  top: 50%;
  transform: translateY(-50%); /* Center vertically */
}

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

/* end cpd */

/* Main Practice Page Styling */
.practice__main {
  background-color: #f1f1f1;
  display: flex;
  justify-content: center;
}

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

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

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

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

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

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

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

/* 📌 Content Area */
.pracq__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;
  width: 80%;
  max-width: 900px;
  overflow-y: auto; /* Enables scrolling when content overflows */
  max-height: 90vh; /* Prevents excessive scrolling */
}

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

/* 📌 Question Formatting */
.question {
  padding: 15px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  border-radius: 5px;
  margin-bottom: 10px;
}

.question p {
  font-weight: bold;
}

.question input {
  margin-right: 10px;
}

#feedback {
  max-height: 250px; /* Limits the height */
  overflow-y: auto; /* Enables vertical scrolling when content exceeds height */
  padding: 10px;
  border: 1px solid #ccc;
  margin-top: 10px;
  background: #f9f9f9;
  border-radius: 5px;
  width: 100%; /* Ensure it doesn't overflow horizontally */
  box-sizing: border-box; /* Prevents width issues */
}

/* 📌 Buttons */
button {
  display: block;
  margin-top: 15px;
  padding: 10px 15px;
  border: none;
  background-color: #2a50a2;
  color: white;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #1f3d7a;
}

/* cpd */
/* 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,
#prem1line1,
#prem2line1,
#concLine1 {
  transform: rotate(45deg);
  top: 0;
  left: 50%;
}

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

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

#line4,
#line24,
#line14,
#questionline4,
#questionline8,
#prem1line4,
#prem2line4,
#concLine4 {
  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 */
}

/* 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;
}

/* 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 */
}
