:root {
  color-scheme: dark;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: inherit, sans-serif;
}

body {
  transition: 0.3s;
}

#toast-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  max-width: 625px;
  margin: 0 auto;
}

.toast {
  background-color: #333;
  color: #eee;
  padding: 12px 40px 12px 20px;
  width: 100%;
  animation: slideDown 1s forwards;
  border-bottom: 1px solid #555;
  border-right: 1px solid #555;
  border-left: 1px solid #555;
  font-size: 14px;
}
@media all and (min-width: 798px) {
  .toast {
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
  }
}
.toast.hidden {
  animation: slideUp 0.3s forwards;
}
.toast-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #ccc;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  text-align: center;
}
@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes slideUp {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100%);
  }
}
