body {
    font-family: 'Kanit', 'Prompt', sans-serif;
  }
  
  .bg-hospital {
    background-image: url('images/bed.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
  }
  
  .glass-effect {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .text-glow {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }
  
  button:active:not(:disabled) {
    transform: scale(0.95);
  }
  
  .fade-in {
    animation: fadeIn 0.5s ease-in;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  #blood-type-result {
    text-shadow: 0 0 15px rgba(220, 38, 38, 0.7);
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }
  
  @keyframes glow {
    0%, 100% { text-shadow: 0 0 10px rgba(255, 0, 0, 0.7), 0 0 20px rgba(255, 0, 0, 0.5); }
    50% { text-shadow: 0 0 15px rgba(255, 0, 0, 0.9), 0 0 30px rgba(255, 0, 0, 0.7); }
  }
  
  .glow-text {
    animation: glow 2s infinite;
  }
  
  .typewriter-effect span {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2s steps(9, end) forwards;
    width: 0;
  }
  
  @keyframes typing {
    from { width: 0 }
    to { width: 100% }
  }
  
  /* อนิเมชันสำหรับนาฬิกา */
  @keyframes shake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(0.5deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-0.5deg); }
    100% { transform: rotate(0deg); }
  }
  
  .shake-effect {
    animation: shake 0.2s ease-in-out;
  }
  
  .pulse-animation {
    animation: pulse-animation 2s infinite;
  }
  
  @keyframes pulse-animation {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
  }
  
  .alarm-sound-waves {
    display: flex;
    justify-content: center;
    gap: 8px;
  }
  
  @media (max-width: 640px) {
    .container {
      padding: 0.75rem;
    }
    
    h1 {
      font-size: 1.75rem;
    }
    
    .text-3xl {
      font-size: 1.5rem;
    }
    
    #question-container p, #question-container h2 {
      font-size: 0.95rem;
    }
  }