body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+/Edge */
  user-select: none; /* Standard */
}
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.01);
}

.container::before {
  content: "";
  position: fixed; /* Keeps it fixed while scrolling */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centers the image */
  width: 40rem; /* Set width */
  height: 12rem; /* Set height */
  background-image: url("./img/logo.png");
  background-repeat: no-repeat;
  background-size: contain; /* Ensures proper scaling */
  opacity: 0.1; /* Keep the logo faded */
  z-index: -1; /* Keeps it behind content */
  pointer-events: none; /* Ensures it doesn't interfere with user interaction */
}
h1,
h2 {
  color: #0c417d;
  text-align: center;
}
.form-group {
  margin-bottom: 15px;
}
label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  margin-left: 3.5rem;
}
input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 80%;
  padding: 10px;
  margin-left: 3.5rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}
button {
  background-color: #4caf50;
  display: flex;
  justify-content: center; /* Center the buttons */
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  align-items: center;
  display: block;
  margin: 20px auto;
  width: 200px;
}
.view-explanation{
  align-items: center;
}
button:hover {
  background-color: #45a049;
}
.question {
  margin-bottom: 20px;
  background-color: #ffffffc7;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.options {
  margin-top: 9px;
}
.option {
  display: flex;
  align-items: center;
  gap: 3px; /* Reduce space further */
  margin-bottom: 10px;
}

.option label {
  display: inline-block; /* Ensures text is aligned properly */
  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
th,
td {
  border: 1px solid #716969;
  padding: 12px;
  text-align: left;
}
th {
  background-color: #ffffffc7;
}
tr:nth-child(even) {
  background-color: #ffffffc7;
}
.status-correct {
  color: green;
  font-weight: bold;
}
.status-incorrect {
  color: red;
  font-weight: bold;
}
.score-highlight {
  font-size: 24px;
  font-weight: bold;
  color: #4caf50;
  text-align: center;
  margin: 20px 0;
}
.hidden {
  display: none;
}
.progress {
  height: 10px;
  background-color: #edeff6;
  border-radius: 5px;
  margin-bottom: 20px;
}
.progress-bar {
  height: 100%;
  background-color: #4caf50;
  border-radius: 5px;
  width: 0%;
}
/* Container for the charts */
.charts-container {
  display: flex; /* Display charts in a row */
  justify-content: space-between; /* Space between charts */
  align-items: center; /* Center charts vertically */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  gap: 20px; /* Add spacing between charts */
  margin-top: 20px;
}

/* Wrapper for each chart */
.chart-wrapper {
  flex: 1; /* Each chart takes equal space */
  min-width: 200px; /* Minimum width for each chart */
  text-align: center; /* Center the chart title */
  padding: 10px; /* Add padding around each chart */
  background-color: #ffffff76; /* Light background for each chart */
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Canvas styling */
.chart-wrapper canvas {
  max-width: 100%; /* Ensure charts don't overflow */
  height: auto; /* Maintain aspect ratio */
}

/* Button styling */
/* Ensure .result-but spans full width */
.result-but {
  display: flex;
  justify-content: center; /* Center the buttons horizontally */
  align-items: center; /* Align them vertically */
  gap: 10px; /* Space between buttons */
  width: 100%; /* Ensure it takes full width */
  margin-top: 20px; /* Optional: Add spacing */
}

/* Style for buttons */
#back-to-results,
#download-pdf {
  padding: 15px 20px;
  font-size: 15px;
  color: white;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease-in-out;
  text-align: center;
  max-width: 160px;
  display: flex; /* Ensure proper alignment */
  justify-content: center; /* Center the text inside */
  align-items: center;
}

/* Hover Effect */
#back-to-results:hover,
#download-pdf:hover {
  background-color: #0056b3;
  transform: scale(1.1);
}

/* Analytics section styling */
#analytics-section {
  padding: 20px;
  background-color: #eceaea6a;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Analytics user info styling */
#analytics-user-info {
  margin-bottom: 20px;
}

#analytics-user-info p {
  margin: 5px 0;
  font-size: 16px;
}

/* Final score styling */
#analytics-final-score {
  font-weight: bold;
  color: #4caf50; /* Green color for score */
}
#previous-button {
  background-color: #f0ad4e; /* Orange color for Previous button */
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

#previous-button:hover {
  background-color: #ec971f; /* Darker orange on hover */
}
#custom-message {
  margin-top: 20px;
  padding: 20px;
  background-color: #f5efefd4;
  border-radius: 10px;
  text-align: left;
}

#message-text {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

#message-links a {
  display: block;
  color: #007bff;
  text-decoration: none;
  font-size: 16px;
}

#message-links a:hover {
  text-decoration: underline;
}
#timer {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  background: #333;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
}
.table-options {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.table-options td {
  border: 1px solid #ffffffc7;
  padding: 10px;
  text-align: center;
}
.highlighted {
  background-color: yellow; /* Highlight color */
  font-weight: bold; /* Optional: Make the text bold */
}
.g_id_signin {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}
/* Header Styling */
.analytics-header {
  display: flex;
  align-items: center;
  background-color: #cbdbffd1;
  color: rgb(32, 31, 31);
  padding: 18px;
  text-align: left;
  border-radius: 12px;
}

.company-logo {
  height: 50px;
  margin-right: 15px;
}

.company-info h1 {
  margin: 0;
  font-size: 20px;
}

.company-info p {
  margin: 5px 0 0;
  font-size: 14px;
}
/* Footer */
.analytics-footer {
  background-color: #bacdfada;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  margin-top: 0px;
}



/* Responsive Design */
@media (max-width: 1024px) {
  .container::before {
    width: 30rem;
    height: 10rem;
  }
  input[type="text"],
  input[type="email"],
  input[type="tel"] {
    width: 90%;
    margin-left: 1rem;
  }
}

@media (max-width: 780px) {
  .container::before {
    width: 25rem;
    height: 8rem;
  }
  h1, h2 {
    font-size: 20px;
  }
  label {
    margin-left: 1rem;
  }
  input[type="text"],
  input[type="email"],
  input[type="tel"] {
    width: 90%;
    margin-left: 0;
  }
  button {
    width: 30%;
  }
  .charts-container {
    flex-direction: column;
    align-items: center;
  }
  .chart-wrapper {
    width: 60%;
  }
  .result-but {
    flex-direction: column;
    align-items: center;
  }
  .analytics-header {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }
  .company-logo {
    height: 40px;
    margin-bottom: 10px;
  }
  .company-info{
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container::before {
    width: 20rem;
    height: 6rem;
  }
  h1, h2 {
    font-size: 18px;
  }
  input[type="text"],
  input[type="email"],
  input[type="tel"] {
    font-size: 14px;
    padding: 8px;
  }
  button {
    font-size: 14px;
    padding: 10px;
  }
  .option {
    flex-direction: column;
    align-items: flex-start;
  }
  .option label {
    margin-left: 5px;
  }
  .table-options td {
    padding: 8px;
  }
  #timer {
    font-size: 18px;
    padding: 8px 15px;
  }
  .analytics-header {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }
  .company-logo {
    height: 40px;
    margin-bottom: 10px;
  }
  .company-info{
    flex-direction: column;
  }

}
/* Explanation Section Styles */
#explanation-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
}

.explanation-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  padding: 10px;
  background: #eef2f5;
  border-radius: 5px;
}

.explanation-card {
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

/* Question styling */
#explanation-question-text h4 {
  color: #2c3e50;
  font-size: 1rem;
  margin-bottom: 10px;
  border-bottom: 2px solid #eaeaea;
  padding-bottom: 10px;
}

/* Options and passage styling */
.passage-container {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  margin: 15px 0;
}

.passage-text p {
  margin: 8px 0;
  padding: 5px;
  line-height: 1.6;
}

.correct-selection {
  background-color: #e6f7e6;
  border-left: 4px solid #28a745;
  font-weight: bold;
}

.correct-not-selected {
  background-color: #fff8e6;
  border-left: 4px solid #ffc107;
}

.incorrect-selection {
  background-color: #ffebee;
  border-left: 4px solid #dc3545;
  font-weight: bold;
}

/* Table choice styling */
.table-choice-explanation {
  margin: 15px 0;
  overflow-x: auto;
}

.table-choice-explanation table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}

.table-choice-explanation th, 
.table-choice-explanation td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: center;
}

.table-choice-explanation th {
  background-color: #f2f2f2;
}

/* Options list styling */
.options-list ul {
  list-style-type: none;
  padding: 0;
  margin: 10px 0;
}

.options-list li {
  padding: 8px 12px;
  margin: 5px 0;
  border-radius: 4px;
  border-left: 4px solid #ddd;
}

.options-list li.correct-selection {
  background-color: #e6f7e6;
  border-left-color: #28a745;
  font-weight: bold;
}

.options-list li.correct-not-selected {
  background-color: #fff8e6;
  border-left-color: #ffc107;
}

.options-list li.incorrect-selection {
  background-color: #ffebee;
  border-left-color: #dc3545;
  font-weight: bold;
}

/* Answer comparison styling */
.answer-comparison {
  display: flex;
  gap: 20px;
  margin: 2px 0;
}

.user-answer-content, .correct-answer-content {
  flex: 1;
  padding: 15px;
  border-radius: 5px;
}

.user-answer-content {
  background-color: #fff3f3;
  border-left: 4px solid #dc3545;
}

.correct-answer-content {
  background-color: #f0fff0;
  border-left: 4px solid #28a745;
}

.user-answer-content h3 {
  color: #dc3545;
  margin-top: 0;
}

.correct-answer-content h3 {
  color: #28a745;
  margin-top: 0;
}

/* Explanation content styling */
.explanation-content {
  background: #f8f9fa;
  padding: 10px;
  border-radius: 5px;
  margin-top: 2px;
}

.explanation-content h3 {
  color: #2c3e50;
  margin-top: 0;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}

.explanation-text {
  line-height: 1.8;
  margin-bottom: 15px;
}

.explanation-text p {
  margin: 10px 0;
}

.explanation-image {
  margin: 20px 0;
  text-align: center;
}

.explanation-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.additional-notes {
  background: #e3f2fd;
  padding: 12px;
  border-radius: 4px;
  margin-top: 15px;
  border-left: 4px solid #2196f3;
}

/* Navigation buttons */
.explanation-nav-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.explanation-nav-bottom button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

#back-to-results-from-explanation {
  background: #6c757d;
  color: white;
}

#prev-explanation, #prev-explanation-bottom {
  background: #4a6fa5;
  color: white;
}

#next-explanation, #next-explanation-bottom {
  background: #4a6fa5;
  color: white;
}
.explanation-image-container {
  margin: 20px 0;
  text-align: center;
  border: 1px solid #eee;
  padding: 15px;
  border-radius: 8px;
  background: white;
}

.explanation-image {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 10px;
}

.image-caption {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  margin-top: 8px;
}


.text-sections-container {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.text-section {
  flex: 1;
  padding: 15px;
  background: #f9f9f9;
}

.text-section h4 {
  margin-top: 0;
  color: #0c417d;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}

.left-section {
  border-right: 1px solid #eee;
}

.section-content {
  line-height: 1.6;
}
.user-selection {
  background-color: #e6f7e6;
  border: 1px solid #28a745;
}




