* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-tap-highlight-color: transparent;
}
:root {
  --primary-color: #009100;
  --secondary-color: #d7001d;
  --third-color: #ff9100;
  --basic-color: #ffffff;
  --text-color: #0000;
}
body {
  width: 100%;
  min-height: 100vh;
  background: var(--basic-color);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.buttons {
  padding: 25px 35px;
  margin: 50px auto;
  /* background: var(--basic-color); */
  background: #f7edff;
  border-radius: 10px;
  border: 2px solid var(--text-color);
}
.buttons button {
  font-size: 16px;
  background: #333;
  color: var(--basic-color);
  border: 0;
  outline: 0;
  width: 120px;
  height: 40px;
  margin: 5px;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.5s ease;
}
.buttons button:hover {
  background: #272727;
}
#toastBox {
  position: absolute;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  overflow: hidden;
  padding: 20px;
}

.toast {
  width: 300px;
  height: 50px;
  border-radius: 5px;
  background: var(--basic-color);
  font-weight: 500;
  margin: 15px 0;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  position: relative;
  transform: translateX(100%);
  animation: moveLeft 0.5s linear forwards;
}
@keyframes moveLeft {
  100% {
    transform: translateX(0);
  }
}
.toast i {
  margin: 0 20px;
  font-size: 35px;
  color: var(--primary-color);
}
.toast.error i {
  color: var(--secondary-color);
}
.toast.invalid i {
  color: var(--third-color);
}
.toast::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 5px;
  background: var(--primary-color);
  animation: anim 5s linear forwards;
}
@keyframes anim {
  100% {
    width: 0;
  }
}
.toast.error::after {
  background: var(--secondary-color);
}

.toast.invalid::after {
  background: var(--third-color);
}
.footer {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 0);
  width: 90%;
  font-size: 12px;
  margin: auto;
  text-align: center;
  font-weight: 400;
  color: black;
}
@media (max-width: 480px) {
  .toast {
    width: 250px;
  }
  .toast i {
    margin: 0 10px;
    font-size: 30px;
  }
  #toastBox {
    bottom: 20px;
    right: 20px;
  }
}
