@keyframes fadeOutUp {
  0% {
    opacity: 1;
    transform: translateY(0);
    max-height: 10rem;
    overflow: hidden;
  }
  100% {
    opacity: 0;
    transform: translateY(-1.2rem);
    max-height: 0;
    padding: 0;
    margin: 0;
    display: none;
  }
}

.fade-out {
  animation: fadeOutUp 0.5s ease-out forwards;
}
