.alert-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 400px;
  min-width: 400px;
}

.alert {
  display: block;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  position: relative;
  margin: 5px;
}

.alert-close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}


.error {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.info {
  background-color: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
}

.success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.warning {
  background-color: #fff3cd;
  border-color: #ffeeba;
  color: #856404;
}


@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.alfade-in {
  animation: slideIn 0.5s forwards;
}

.alfade-out {
  animation: slideOut 0.5s forwards;
}

.error .error-progress,
.info .info-progress,
.success .success-progress,
.warning .warning-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  animation: alprogress 5s linear forwards;
  border-bottom-left-radius: 5px;
}



@keyframes alprogress {
  0% {
    width: 100%;
  }

  100% {
    width: 0;
  }
}

@media (max-width: 720px) {
  .alert {
    top: 60px;
  }

  .alert-container {
    top: 10px;
    max-width: 250px;
    min-width: 250px;
  }
}

.info-progress,
.error-progress,
.success-progress,
.warning-progress {
  z-index: 10000;
  opacity: 1 !important;
  visibility: visible !important;
}