@import "https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap";
@import "https://fonts.googleapis.com/css2?family=Dosis:wght@800&display=swap";

.alert-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0 auto;
  left: 0;
  top: 0;
  overflow: hidden;
  position: fixed;
  background: rgba(0, 0, 0, 0.3);
}

@keyframes open-frame {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(0.95);
  }
  50% {
    transform: scale(0.97);
  }
  75% {
    transform: scale(0.93);
  }
  100% {
    transform: scale(1);
  }
}

.alert-frame {
  background: #fff;
  min-height: 20em;
 /* max-height: 70vh;*/
  width: 25em;
  max-width: 90vw;
  box-shadow: 0.4em 0.4em 0.8em rgba(0, 0, 0, 0.2);
  border-radius: 0.8em;
  animation: open-frame 0.3s linear;
  display: flex;
  flex-direction: column; /* Dodane: Flexbox do układu */
}

.alert-header {
  display: flex;
  flex-direction: row;
  height: 10em;
  border-top-left-radius: 0.4em;
  border-top-right-radius: 0.4em;
}

.alert-img {
  height: 6.5em;
  position: absolute;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  align-self: center;
}

.alert-close {
  width: 2.5em;
  height: 2.5em;
  color: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: dosis, sans-serif;
  font-weight: 700;
  font-size: 1.33em;
  cursor: pointer;
  line-height: 2.5em;
  transition: color 0.5s;
  margin-left: auto;
  margin-right: 0.4em;
  margin-top: 0.4em;
}

.alert-close-circle {
  width: 1.875em;
  height: 1.875em;
  background: #e4eae7;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.75em;
  margin-top: -0.9375em;
  margin-right: -0.9375em;
  font-family: dosis, sans-serif;
  font-weight: 700;
  font-size: 0.75em;
  cursor: pointer;
  line-height: 1.875em;
  transition: background 0.5s;
  margin-left: auto;
}

.alert-close-circle:hover {
  background: #fff;
}

.alert-close:hover {
  color: rgba(0, 0, 0, 0.5);
}

.alert-body {
  padding: 1em;
  display: flex;
  flex-direction: column;
  text-align: center;
  flex-grow: 1; /* Dodane: Rozciąganie, aby zająć dostępną przestrzeń */
  overflow: auto; /* Dodane: Automatyczne przewijanie, jeśli treść jest za długa */
}

.alert-title {
  font-size: 1.5rem !important;
  font-family: open sans, sans-serif;
  font-weight: 700;
  margin-bottom: 0em;
  color: #222;
  align-self: center;
}

.alert-message {
  font-size: 1rem !important;
  color: #666;
  font-family: open sans, sans-serif;
  font-weight: 400;
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.6;
  align-self: center;
  overflow: auto; /* Dodane: Przewijanie, jeśli wiadomość jest za długa */
  max-height: 10em; /* Dodane: Ograniczenie maksymalnej wysokości */
}

.alert-button {
  min-width: 8em;
  height: 2em;
  border-radius: 1.4em;
  font-family: open sans, sans-serif;
  font-weight: 400;
  font-size: 1em;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.5s;
  padding: 0 1.2em;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto; /* Automatyczne przesunięcie przycisków na dół */
}

.alert-button:focus {
  outline: 0;
}

.question-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-top: auto; /* Automatyczne przesunięcie przycisków na dół */
}

.confirm-button,
.cancel-button {
  min-width: 6.25em;
  height: 2.1875em;
  border-radius: 1.25em;
  font-family: open sans, sans-serif;
  font-weight: 400;
  font-size: 0.9375em;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 0 0.9375em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.confirm-button {
  margin-right: 0.5em; /* Dodano odstęp między przyciskami */
}

.cancel-button {
  margin-left: 0.5em; /* Dodano odstęp między przyciskami */
}

.confirm-button:focus,
.cancel-button:focus {
  outline: 0;
}

@keyframes open-toast {
  0% {
    transform: scaleX(1) scaleY(1);
  }
  20%,
  45% {
    transform: scaleX(1.35) scaleY(0.1);
  }
  65% {
    transform: scaleX(0.8) scaleY(1.7);
  }
  80% {
    transform: scaleX(0.6) scaleY(0.85);
  }
  100% {
    transform: scaleX(1) scaleY(1);
  }
}

.toast-container {
  top: 0.9375em;
  right: 0.9375em;
  overflow: hidden;
  position: fixed;
  border-radius: 0.3125em;
  box-shadow: 0 0 1.25em rgba(0, 0, 0, 0.2);
  animation: open-toast 0.3s linear;
}

.toast-frame {
  padding: 0.3125em 0.9375em;
  display: flex;
  min-width: 6.25em;
  height: 3.75em;
  border-top-left-radius: 0.625em;
  border-top-right-radius: 0.625em;
  align-items: center;
  flex-wrap: wrap;
}

.toast-img {
  height: 2.5em;
}

.toast-message {
  font-size: 0.875em !important;
  font-family: open sans, sans-serif;
  font-weight: 600;
  margin-left: 0.9375em;
  color: #fff;
}

.toast-close {
  color: rgba(0, 0, 0, 0.2);
  font-family: dosis, sans-serif;
  font-weight: 700;
  font-size: 1em;
  cursor: pointer;
  transition: color 0.5s;
  margin-left: 1.5625em;
}

@keyframes timer {
  0% {
    width: 100%;
  }
  25% {
    width: 75%;
  }
  50% {
    width: 50%;
  }
  75% {
    width: 25%;
  }
  100% {
    width: 1%;
  }
}

.toast-timer {
  width: 1%;
  height: 0.3125em;
}

.toast-close:hover {
  color: rgba(0, 0, 0, 0.5);
}

/* Dodatkowe style dla stanów */
.error-bg {
  background: #d85261;
}

.success-bg {
  background: #2dd284;
}

.warning-bg {
  background: #fada5e;
}

.question-bg {
  background: #779ecb;
}

.error-btn:hover {
  background: #e5a4b4;
}

.success-btn:hover {
  background: #6edaa4;
}

.warning-btn:hover {
  background: #fcecae;
}

.info-btn:hover {
  background: #c3e6fb;
}

.question-btn:hover {
  background: #bacee4;
}

.error-timer {
  background: #e5a4b4;
}

.success-timer {
  background: #6edaa4;
}

.warning-timer {
  background: #fcecae;
}

.info-timer {
  background: #c3e6fb;
}

.info-bg {
  background: #88cef7;
}


