
  


  /* Modal Styles */
  .demo-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto; /* Enables scrolling for small devices */
  }
  
  .demo-modal-content {
    background: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-in-out;
  }
  
  /* Add a subtle animation for the modal */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: scale(0.9);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  /* Close Button */
  .demo-close-btn {
    color: #6c757d;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .demo-close-btn:hover {
    color: #f04438;
  }
  
  /* Responsive Video */
  .demo-responsive-video {
    width: 100%;
    height: auto;
    max-height: 80vh; /* Ensures video doesn't overflow on smaller screens */
    border-radius: 5px;
    outline: none;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .demo-modal-content {
      width: 95%; /* Adjust width for tablets */
      margin: 15% auto;
    }
  
    .demo-close-btn {
      font-size: 20px;
    }
  }
  
  @media (max-width: 480px) {
    .demo-modal-content {
      width: 100%; /* Full width for small devices */
      padding: 15px;
    }
  
    .demo-close-btn {
      font-size: 18px;
    }
  }
  