@keyframes fadeOutAndHide {
    0% {
      opacity: 1;
      transform: translateY(0);
    }
    99% {
      opacity: 0;
      transform: translateY(200px);
    }
    100% {
      opacity: 0;
      transform: translateY(200px);
      display: none; /* This will be handled by transition-behavior */
    }
  }

  @keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
  }

  .ToastMsgAnim {
    position: fixed;
    top: 220px;
    left: 50%;
    height:60px; width:auto;
    transform: translateX(-50%);
    background-color: #d17416;
    color: white;
    padding: 15px 10px;
    border-radius: 10px;
    border-style:dashed;
    border-width:2px;
    border-color:#b86512;
    opacity: 0; /* Hidden by default */
    visibility: hidden; /* Hidden by default */
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out; /* Smooth transition for fade */
    z-index: 500;
  }


  .ToastMsgAnim.show {
    opacity: 1;
    visibility: visible;
  }

  .toast.hide {
    animation: fadeOut 0.5s ease-out forwards;
    pointer-events: none; /* Prevent interaction during fade out */
  }


  @media screen and (max-width: 768px) {

    .ToastMsgAnim {
        position: fixed;
        bottom: 220px;
        left: 50%;
        height:60px; width:70%;
        justify-items: center;
        transform: translateX(-50%);
        background-color: #d17416;
        color: white;
        padding: 15px 10px;
        border-radius: 10px;
        border-style:outset;
        border-width:2px;
        border-color:#b86512;
        opacity: 0; /* Hidden by default */
        visibility: hidden; /* Hidden by default */
        transition: opacity 0.5s ease-out, visibility 0.5s ease-out; /* Smooth transition for fade */
        z-index: 1000;
      }

  }