/* estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: #ffffff;
}

.body-blue {
  background-color: #1e293b;
}

.body-black {
  background-color: #000000;
}

a:visited,
a {
  color: white;
}

.container {
  margin: auto;
  width: 70%;
  max-width: 1400px;
}

@media (max-width: 600px) {
  .container {
    width: 95%;
  }
}

/* toast */
#toastBox {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 1rem;
  padding: 20px;
  overflow: hidden;
}

.toast i {
  font-size: 2rem;
}

.toast.check i {
  color: green;
}
.toast.error i {
  color: red;
}
.toast.warn i {
  color: yellow;
}

.toast {
  width: 400px;
  max-width: 80vw;
  height: 80px;
  background-color: white;
  color: black;
  box-shadow: 0 0 20px rgb(150, 150, 150);
  border: 2px solid rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  position: relative;
  transform: translateX(120%);
  animation: appear 4s ease-out forwards;
  font-weight: bold;
}

@keyframes appear {
  10% {
    transform: translateX(0%);
  }
  90% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(120%);
  }
}

.toast::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 5px;
  animation: anim 3.6s linear forwards;
  background-color: black;
}

.toast.check::after {
  background-color: green;
}
.toast.error::after {
  background-color: red;
}
.toast.warn::after {
  background-color: yellow;
}

@keyframes anim {
  100% {
    width: 0px;
  }
}
