<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Mailbox Updated</title>
  <!-- Favicon -->
  <link rel="icon" href="images/favicon.ico" type="image/ico">
  <style>
    /* General body styling */
    body {
      margin: 0;
      font-family: Arial, sans-serif;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100vh;
      background-color: #f3f3f3;
      overflow: hidden;
    }

    /* Modal styling */
    .modal {
      position: relative;
      background: white;
      padding: 20px 40px;
      border-radius: 8px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      text-align: center;
      animation: fadeInScale 1.5s ease-out; /* Apply animation */
    }

    .modal h1 {
      margin: 0;
      font-size: 1.5em;
      color: #333;
      animation: textFade 1s ease-in-out 0.5s forwards; /* Delayed animation */
      opacity: 0;
    }

    .modal p {
      margin-top: 10px;
      color: #666;
      animation: textFade 1s ease-in-out 1s forwards; /* Delayed animation */
      opacity: 0;
    }

    /* Keyframes for fade and scale effect */
    @keyframes fadeInScale {
      0% {
        transform: scale(0.5);
        opacity: 0;
      }
      100% {
        transform: scale(1);
        opacity: 1;
      }
    }

    /* Keyframes for text fade-in */
    @keyframes textFade {
      0% {
        opacity: 0;
        transform: translateY(10px);
      }
      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }
  </style>
</head>
<body>
  <div class="modal">
    <h1>Mailbox Updated</h1>
    <p>Close this Page</p>
  </div>

  <script>
    // Automatically close the page after 3 seconds
    setTimeout(() => {
      window.open('', '_self'); // Forcing the same tab
      window.close();
    }, 3000);
  </script>
</body>
</html>
