:root {
  --primary-color: #050280;
  --secondary-color: #f9943c;
  --bg-color: #f0f2f5;
  --card-bg-color: #ffffff;
  --highlight-color: #e3f2fd;
  --border-color: #050280;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 20px;
  background-color: var(--bg-color);
  color: #333;
}

.container {
  max-width: 800px;
  margin: 40px auto;
  background: var(--card-bg-color);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

/* Centered introductory page */
#introPage {
  text-align: center;
}

/* Fade transitions for showing/hiding pages */
.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Initially hide the quiz page */
#quizPage {
  display: none;
}

/* Progress bar with a blue gradient */
#progressContainer {
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 30px;
}

#progressBar {
  height: 10px;
  width: 0%;
  background: linear-gradient(90deg, #8AAFF9, #050280);
  transition: width 0.5s ease;
}

/* Container for the questions */
#quizForm {
  min-height: 220px;
  padding: 20px 0;
}

/* Hide the default radio buttons */
.custom-radio {
  display: none;
}

/* Custom labels for options */
.custom-radio-label {
  display: block;
  padding: 14px 20px;
  border: 2px solid #ddd;
  border-radius: 8px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #fff;
}

.custom-radio-label:hover {
  border-color: var(--primary-color);
  transform: scale(1.02);
}

.custom-radio:checked + .custom-radio-label {
  border-color: var(--primary-color);
  background-color: #f0f8ff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Navigation buttons */
.navigation {
  margin-top: 30px;
  text-align: center;
}

button {
  background-color: var(--primary-color);
  color: #fff;
  padding: 12px 28px;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  font-weight: 600;
  margin: 5px;
}

button:hover {
  background-color: #f9943c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Result section styling */
.result {
  margin-top: 30px;
  padding: 30px;
  background-color: var(--highlight-color);
  border-left: 5px solid var(--border-color);
  border-radius: 8px;
}

/* Styling for the certificate section */
#certificateSection {
  text-align: center;
  margin-top: 20px;
  padding: 20px;
  background-color: #fafafa;
}

/* Layout adjustments in the certificate section */
#participantName {
  display: block;
  margin: 10px auto;
  padding: 8px;
  width: 80%;
  max-width: 300px;
  font-size: 16px;
}

#certificateSection button {
  display: block;
  margin: 20px auto 0 auto;
}
