#flash {
  position: fixed;
  z-index: 1000;
  right: 0;
  bottom: 0px;
  padding: 20px 0;
  max-width: 600px;

  .flash_message {
    background-color: var(--success);
    color: white;
    padding: 20px 40px;
    border-radius: 6px 0 0 6px;
    position: relative;
    right: -100%;
    animation: slideInOut 5s forwards;
    display: flex;
    gap: 10px;
    align-items: flex-start;
  }

  .danger, .error {
    background-color: var(--danger);
  }

  .seconds-10 {
    animation: slideInOut 10s forwards;
  }

  .persistent {
    animation: slideIn 0.5s forwards;
  }
}

@keyframes slideInOut {
  0% {
    right: -100%;
  }

  10% {
    right: 0;
  }

  90% {
    right: 0;
  }

  100% {
    right: -100%;
  }
}

@keyframes slideIn {
  0% {
    right: -100%;
  }

  100% {
    right: 0;
  }
}
