/* General Quiz Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
  }
  
  .quiz-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  button {
    margin-top: 20px;
    padding: 12px 24px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background-color: #ff99cc;
    color: white;
    font-size: large;
  }
  
  #prev {
    background-color: #d5d4d4;
    color: #333;
  }
  
  button:hover {
    background-color: #ff66b3;
  }
  
  /* Timeline Styles */
  .timeline {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    position: relative;
  }
  
  .timeline::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 4px;
    background-color: #ffb3d9;
    z-index: 0;
  }
  
  .step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: lightgray;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    position: relative;
    z-index: 1;
  }
  
  .step.active {
    background-color: #ff66b3;
  }
  
  .step::after {
    content: "✓";
    font-size: 18px;
    color: white;
    display: none;
  }
  
  .step.active::after {
    display: block;
  }
  
  /* Error Message Style */
  #error-message {
    color: red;
    margin-top: 10px;
    display: none;
  }
  
  .question h2 {
    font-size: 1.2em;
  }
  .question h3 {
    font-size: .8em;
  }
  .result h2 {
    font-size: .8em !important;
  }

  /* Full Block Selection Fields */
.option {
    display: flex;
    align-items: center;
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    border: 2px solid #ffb3d9;
    cursor: pointer;
    background-color: #fff0f6;
    width: 100%; /* Makes the field full width */
    box-sizing: border-box;
  }
  
  .option input[type="radio"] {
    margin-right: 10px;
    accent-color: #ff66b3; /* Rounded check mark color */
    transform: scale(1.5); /* Makes the check mark larger */
  }
  
  .option:hover {
    background-color: #ffebf5; /* Slight color change on hover */
  }
  
  /* Enlarged Result Image */
  .result .img {
    width: 50%; /* Larger image for result display */
    height: auto;
    margin-right: 20px;
  }
/* customise Image dev style */
  .quiz-image {
    display:flex;
    align-items:center; 
}
/* customise Image tag style */
  .quiz-image img {
   width:50%;
}


  /* Responsive Styling for Mobile Devices */
@media (max-width: 768px) {
    .quiz-container {
      width: 95%; /* Full width for quiz on mobile */
      padding: 10px;
    }
    .quiz-image {
        flex-wrap:wrap;
    }
  
    .result .quiz-image img {
      display:block;  
      width: 100%; /* Full block width for result image */
      height: auto;
      margin: 0 auto; /* Center the image */
    }
   
  
    /* Adjust padding for mobile view */
    .option {
      padding: 12px;
    }
  }