<!DOCTYPE html>
<html>
<head>
  <title>Moving Doctor & Patient</title>
  <style>
    body {
      margin: 0;
      background: #f4f9ff;
      font-family: Arial, sans-serif;
      overflow-x: hidden;
    }

    .section {
      height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
    }

    h1 {
      color: #0A66C2;
      margin-bottom: 40px;
    }

    .image-container {
      position: relative;
      width: 300px;
      animation: moveSide 3s infinite alternate ease-in-out;
    }

    .image-container img {
      width: 100%;
      border-radius: 20px;
      box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }

    /* Animation */
    @keyframes moveSide {
      from {
        transform: translateX(-40px);
      }
      to {
        transform: translateX(40px);
      }
    }

    /* Button */
    button {
      margin-top: 40px;
      padding: 12px 25px;
      border: none;
      background: #0A66C2;
      color: white;
      font-size: 16px;
      border-radius: 8px;
      cursor: pointer;
    }

    button:hover {
      background: #084a91;
    }
  </style>
</head>
<body>

<div class="section">
  <h1>Book Doctors Easily</h1>

  <div class="image-container" id="moveImage">
    <img src="https://images.unsplash.com/photo-1584515933487-779824d29309" alt="Doctor and Patient">
  </div>

  <button onclick="stopMove()">Stop Animation</button>
</div>

<script>
  function stopMove() {
    document.getElementById("moveImage").style.animation = "none";
  }
</script>

</body>
</html>

