.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 9, 225, 0.95);
    justify-content: center;
    align-items: center;
    z-index: 999;
    color: white;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: fade-out 1s ease;
  }
  
  .overlay.active {
    display: flex;
    opacity: 1;
    animation: fade-in 1s ease;
  }
  
  @keyframes fade-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes fade-out {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }