#flash {
  position:fixed;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  flex-direction: column;
  align-items: center;

  max-width: 100%;
  width: max-content;
  padding: 0 1rem;
}

.flash__message {
    padding: 1rem;
    animation: appear-then-fade 8s both;
    border-radius: 999px;
}

.alert {
    background-color: #9c0a16;
    color: #ffffff;
}

.notice {
    background-color: #0f910b;
    color: #ffffff;
}

@keyframes appear-then-fade {
  0% {
    opacity: 0;
    transform: translateY(-1rem);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  90% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-1rem);
  }
}