.alert-bg {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: 100dvw;
  height: 100dvh;
}
.alert {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s;
  width: 50em;
  height: 10em;
  padding: 2em 4em 6em;
  background-color: aliceblue;
  flex-direction: column;
  justify-content: space-between;
  display: flex;
}
.alert.warning .alert-btn {
  background-color: #b1b110;
}
.alert-text {
  font-size: 3em;
}
.alert-btn {
  width: fit-content;
  padding: 0.3em 1.2em;
  font-size: 2em;
  border-radius: 0.3em;
  color: aliceblue;
  font-weight: 700;
}
.alert.hidden {
  top: 0%;
  transform: translate(-50%, -100%);
}
.alert-bg.hidden {
  animation: hideBg 0.3s forwards;
}
@keyframes hideBg {
  0% {
    top: 0%;
  }
  99% {
    top: 0%;
  }
  100% {
    top: -100%;
  }
}
@media (max-width: 720px) {
  .alert {
    font-size: 1.5vw;
  }
}
