@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }
  
  @keyframes selectGlow {
    0% { box-shadow: 0 0 5px rgba(52, 152, 219, 0.5); }
    50% { box-shadow: 0 0 20px rgba(52, 152, 219, 0.8); }
    100% { box-shadow: 0 0 5px rgba(52, 152, 219, 0.5); }
  }
  
  body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
  }
  
  .quiz-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    width: 90%;
    animation: fadeIn 1s ease-out;
  }
  
  h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    animation: slideIn 1s ease-out;
  }
  
  form {
    display: flex;
    flex-direction: column;
  }
  
  label {
    margin-bottom: 0.5rem;
    font-weight: bold;
  }
  
  input[type="text"] {
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 2px solid #3498db;
    border-radius: 5px;
    transition: all 0.3s ease;
  }
  
  input[type="text"]:focus {
    outline: none;
    border-color: #2980b9;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
  }
  
  .question-container {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
  }
  
  .question-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .question {
    font-weight: bold;
    margin-bottom: 0.5rem;
  }
  
  .options-container {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
  }
  
  .options-container:hover {
    background-color: #e9ecef;
  }
  
  input[type="radio"] {
    display: none;
  }
  
  input[type="radio"] + label {
    cursor: pointer;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    width: 100%;
  }
  
  input[type="radio"]:checked + label {
    background-color: #3498db;
    color: white;
    animation: selectGlow 1.5s infinite;
  }
  
  input[type="radio"] + label:before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border: 2px solid #3498db;
    border-radius: 50%;
    vertical-align: middle;
    transition: all 0.3s ease;
  }
  
  input[type="radio"]:checked + label:before {
    background-color: white;
    box-shadow: inset 0 0 0 4px #3498db;
  }
  
  button[type="submit"] {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
  }
  
  button[type="submit"]:hover {
    background-color: #27ae60;
    transform: scale(1.05);
  }
  
  @media (max-width: 600px) {
    .quiz-container {
      width: 95%;
      padding: 1rem;
    }
  }