  @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

  :root {
      --primary: #ff5722;
      --hover: #e64a19;
  }

  body {
      font-family: 'Poppins', sans-serif;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      height: 90vh;
      margin: 0;
      padding: 20px;
      background-color: #f8f9fa;
      color: #343a40;
  }

  h1 {
      margin-bottom: 30px;
      font-size: 28px;
      font-weight: 600;
      text-align: center;
      color: #343a40;
  }

  .head2 {
      font-size: 88px;

      margin-bottom: 30px;
      text-align: center;
      font-weight: bold;
      background: linear-gradient(to right,
              #ff0000,
              /* Red */
              #ff7f00,
              /* Orange */
              #ffff00,
              /* Yellow */
              #00ff00,
              /* Green */
              #00ffff,
              /* Cyan */
              #0000ff,
              /* Blue */
              #8b00ff,
              /* Violet */
              #ff1493,
              /* Deep Pink */
              #ff69b4,
              /* Hot Pink */
              #ff0000
              /* Red */
          );
      -webkit-background-clip: text;
      color: transparent;
      background-size: 300% 100%;
      animation: rainbow-wave 10s ease-in-out infinite;
  }

  @keyframes rainbow-wave {
      0% {
          background-position: 0% 50%;
      }

      5% {
          background-position: 10% 50%;

      }

      10% {
          background-position: 20% 50%;
      }

      15% {
          background-position: 30% 50%;

      }

      20% {
          background-position: 40% 50%;
      }

      25% {
          background-position: 50% 50%;

      }

      30% {
          background-position: 60% 50%;
      }

      35% {
          background-position: 70% 50%;

      }

      40% {
          background-position: 80% 50%;
      }

      45% {
          background-position: 90% 50%;

      }

      50% {
          background-position: 100% 50%;
      }

      55% {
          background-position: 90% 50%;

      }

      60% {
          background-position: 80% 50%;
      }

      65% {
          background-position: 70% 50%;

      }

      70% {
          background-position: 60% 50%;
      }

      75% {
          background-position: 50% 50%;

      }

      80% {
          background-position: 40% 50%;
      }

      85% {
          background-position: 30% 50%;

      }

      90% {
          background-position: 20% 50%;
      }

      95% {
          background-position: 10% 50%;

      }

      100% {
          background-position: 0% 50%;
      }
  }



  .grade-buttons {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      gap: 15px;
      width: 100%;
      max-width: 600px;
      margin-bottom: 20px;
  }

  .grade-button {
      padding: 15px;
      font-size: 16px;
      font-weight: 600;
      color: #fff;
      background-color: var(--primary);
      border: none;
      border-radius: 5px;
      cursor: pointer;
      transition: background-color 0.3s ease, transform 0.3s ease;
      text-align: center;
  }

  .grade-button:hover {
      background-color: var(--hover);
      transform: translateY(-2px);
  }

  .subject-buttons {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 20px;
      width: 100%;
      max-width: 800px;
  }

  .subject-button {
      padding: 20px;
      font-size: 18px;
      font-weight: 600;
      color: #fff;
      background-color: #72A276;
      border: none;
      border-radius: 8px;
      margin-right: 10px;
      margin-bottom: 10px;
      cursor: pointer;
      transition: background-color 0.3s ease, transform 0.3s ease;
      text-align: center;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .subject-button:hover {
      background-color: #86CD82;
      transform: translateY(-2px);
  }

  footer {
      position: absolute;
      bottom: 20px;
      text-align: center;
      width: 100%;
  }

  .back button {
      background-color: var(--primary);
      border-radius: 30px;
      padding: 10px 15px;
      color: white;
      transition: background-color 0.3s ease, transform 0.3s ease;
      font-size: larger;
      outline: none;
      border: none;
  }

  .back button:hover {
      background-color: var(--hover);
      transform: translateY(-2px);

  }

  .back {
      margin-right: 10px;
  }

  footer a {
      text-decoration: none;
      color: black;
  }

  .head2,
  .sub-head {
      margin: 10px 0;
      text-align: center;
  }

  .generate-question-button {
      padding: 10px 20px;
      margin-top: 20px;
      font-size: 16px;
      font-weight: bold;
      color: #fff;
      transition: background-color 0.3s ease, transform 0.3s ease;

      background-color: #ff5722;
      /* Light theme button color */
      border: none;
      border-radius: 5px;
      cursor: pointer;
  }

  .generate-question-button:hover {
      background-color: #e64a19;
      transform: translateY(-2px);

  }

  /* General styles for the dropdown */
  .lang-select {
      position: fixed;
      /* Fix position relative to the viewport */
      top: 20px;
      /* Distance from the top */
      right: 20px;
      /* Distance from the right */
      z-index: 1000;
      /* Ensure it appears above other content */
  }

  /* Style for the dropdown button */
  .lang-change {
      background-color: #ffffff;
      border: 1px solid #ddd;
      border-radius: 5px;
      cursor: pointer;
      font-size: 16px;
      padding: 10px;
      box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
      transition: background-color 0.3s ease, box-shadow 0.3s ease;
  }

  .lang-change i {
      color: #333;
      font-size: larger;
  }

  .langchange:hover {
      background-color: #f1f1f1;
      box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.2);
  }

  /* Responsive font sizes */
  @media (min-width: 1200px) {
      .head2 {
          font-size: 88px;
      }
  }



  /* Dark theme styles */
  @media (prefers-color-scheme: dark) {
      body {
          background-color: #121212;
          color: #f8f9fa;
      }

      h1 {
          color: #fff;
      }

      footer a {
          color: white;
      }
  }