@import url('../style.css');


body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast > button {
  padding: var(--spacing-padding);
  border-radius: var(--border-radius);
  border: none;
  background-color: var(--color-button-text);
  color: var(--color-primary);
  cursor: pointer;
  transition: background-color 0.3s;
}

.toast > button:hover {
  background-color: var(--color-secondary);
  color: var(--color-button-text);
}

#toast-message {
  visibility: hidden;
  background-color: var(--color-toast-bg);
  color: var(--color-text); 
  min-width: 250px;
  margin-left: -125px;
  text-align: center;
  border-radius: var(--border-radius-toast);
  padding: 16px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 30px;
}

#toast-message.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
  from { bottom: 0; opacity: 0; }
  to { bottom: 30px; opacity: 1; }
}

@keyframes fadein {
  from { bottom: 0; opacity: 0; }
  to { bottom: 30px; opacity: 1; }
}

@-webkit-keyframes fadeout {
  from { bottom: 30px; opacity: 1; }
  to { bottom: 0; opacity: 0; }
}

@keyframes fadeout {
  from { bottom: 30px; opacity: 1; }
  to { bottom: 0; opacity: 0; }
}