:root {
      --primary-color: #00BFA5;
      --secondary-color: #0B3954;
      --option-color: #00E676;
      --button-blue: #2196F3;
      --attempted-green: #00C853;
      --not-attempted-red: #FF1744;
      --palette-yellow: #FFB300;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: Arial, sans-serif;
    }

    body {
      background-color: #f5f5f5;
      padding: 20px;
    }

    /* .quiz-container { */
      /* max-width: 1200px; */
      /* margin: 0 auto; */
	  /* height:auto; */
      /* display: grid; */
      /* grid-template-columns: 1fr 250px; */
	  /* box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1); */
      /* gap: 20px; */
    /* } */

    .main-content {
      background: white;
      padding: 10px;
      border-radius: 10px;
      box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
      overflow: hidden;
      position: relative;
    }

    .question-counter {
      color: #757575;
    }

    .question-hindi {
      font-size: 18px;
      margin-bottom: 10px;
      font-weight: 700;
    }

    .question-english {
      color: #FF4081;
      font-size: 16px;
      margin-bottom: 20px;
      font-weight: 700;
    }

    .options-container {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .option-button {
      background-color: #fff;
      color: var(--secondary-color);
      font-weight: 700;
      border: 2px solid #007bff;
      padding: 10px;
      border-radius: 5px;
      text-align: left;
      cursor: pointer;
      font-size: 16px;
      transition: all 0.3s ease;
    }

    .option-button:hover {
      background-color: #070239;
      transform: translateX(10px);
      color: #fff;
    }

    .option-button.selected {
      background-color: #070239;
      font-weight: 700;
      color: #fff;
    }

    .navigation {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 30px;
    }

    .nav-button {
      background-color: var(--button-blue);
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 5px;
      cursor: pointer;
      transition: background-color 0.3s;
    }

    .nav-button:disabled {
      background-color: #BDBDBD;
      cursor: not-allowed;
    }

    .sidebar {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .stats-container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .stat-box {
      text-align: center;
    }

    .stat-header {
      background-color: var(--attempted-green);
      color: white;
      padding: 8px;
      border-radius: 5px 5px 0 0;
    }

    .stat-header.not-attempted {
      background-color: var(--not-attempted-red);
    }

    .stat-value {
      background: white;
      padding: 8px;
      border: 1px solid #e0e0e0;
      border-radius: 0 0 5px 5px;
    }

    .palette-container {
      background-color: var(--secondary-color);
      border-radius: 10px;
      overflow: hidden;
    }

    .palette-header {
      background-color: var(--secondary-color);
      color: white;
      padding: 10px;
      text-align: center;
      font-weight: bold;
    }

    .palette-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 5px;
      padding: 5px;
      background-color: white;
    }

    .palette-button {
      background-color: var(--palette-yellow);
      border: none;
      width: 35px;
      height: 35px;
      border-radius: 5px;
      color: white;
      cursor: pointer;
      font-weight: bold;
      transition: all 0.3s ease;
    }

    .palette-button:hover {
      transform: scale(1.1);
    }

    .palette-button.current {
      background-color: var(--button-blue);
    }

    .palette-button.attempted {
      background-color: var(--attempted-green);
    }

    .timer-container {
      background-color: #333;
      color: white;
      padding: 10px;
      border-radius: 5px;
      text-align: center;
      margin-bottom: 20px;
    }

    .progress-bar {
      width: 100%;
      height: 4px;
      background-color: #de0769;
      margin-top: 5px;
      border-radius: 2px;
      overflow: hidden;
    }

    .progress {
      height: 100%;
      background-color: var(--attempted-green);
      width: 100%;
      transition: width 1s linear;
    }

    .results-container {
      margin-top: 20px;
    }

    .results-header {
      display: flex;
      justify-content: space-between;
      margin-bottom: 20px;
    }

    .results-button {
      background-color: var(--button-blue);
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 5px;
      cursor: pointer;
      transition: background-color 0.3s;
    }

    .results-button.active {
      background-color: var(--attempted-green);
    }

    .answer-item {
      margin-bottom: 20px;
      padding: 15px;
      border-radius: 5px;
      position: relative;
    }

    .answer-item.correct {
      background-color: rgba(0, 200, 83, 0.1);
      border: 1px solid var(--attempted-green);
      font-size: 20px;
      font-weight: bold;
    }

    .answer-item.incorrect {
      background-color: rgba(255, 23, 68, 0.1);
      border: 1px solid var(--not-attempted-red);
      color: red;
      font-size: 16px;
      font-weight: bold;
    }

    .answer-star {
      position: absolute;
      top: 20px;
      right: 50px;
      font-size: 30px;
      font-weight: 700;
    }

    .answer-star.correct {
      color: var(--attempted-green);
    }

    .answer-star.incorrect {
      color: var(--not-attempted-red);
    }

    .correct-option {
      color: var(--attempted-green);
      font-weight: 700;
      font-size: 20px;
    }

    .trophy {
      font-size: 150px;
      color: gold;
      text-align: center;
    }

    .celebration-message {
      font-size: 20px;
      color: green;
      margin-top: 20px;
      text-align: center;
    }
	
@media (max-width: 1024px) {
  .quiz-container {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

/* Small Tablets and Large Phones (max-width: 768px) */
@media (max-width: 768px) {
  .quiz-container {
    grid-template-columns: 1fr;
    padding: 15px;
    gap: 15px;
  }

  .palette-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .nav-button {
    font-size: 14px;
    padding: 8px 15px;
  }

  .sidebar {
    display: none;
  }

  .sidebar-toggle {
    display: block;
    background-color: var(--button-blue);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
  }

  .sidebar.sidebar-open {
    display: block;
  }

  .question-counter {
    font-size: 14px;
  }
}

/* Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
  .quiz-container {
    padding: 10px;
    box-shadow: none;
  }

  .palette-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

    /* ---------------------------
       Improved Slide Transition
    */

    /* Slide-Out Left (for Next button) */
    @keyframes slideOutLeft {
      0% { transform: translateX(0); opacity: 1; }
      100% { transform: translateX(-100%); opacity: 0; }
    }

    /* Slide-In Right (for Next button) */
    @keyframes slideInRight {
      0% { transform: translateX(100%); opacity: 0; }
      100% { transform: translateX(0); opacity: 1; }
    }

    /* Slide-Out Right (for Previous button) */
    @keyframes slideOutRight {
      0% { transform: translateX(0); opacity: 1; }
      100% { transform: translateX(100%); opacity: 0; }
    }

    /* Slide-In Left (for Previous button) */
    @keyframes slideInLeft {
      0% { transform: translateX(-100%); opacity: 0; }
      100% { transform: translateX(0); opacity: 1; }
    }

    /* Classes to trigger animations */
    .animate-slide-out-left {
      animation: slideOutLeft 0.15s forwards;
    }

    .animate-slide-in-right {
      animation: slideInRight 0.15s forwards;
    }

    .animate-slide-out-right {
      animation: slideOutRight 0.15s forwards;
    }

    .animate-slide-in-left {
      animation: slideInLeft 5s forwards;
    }