






/* =====================================
   NOTIFICATION SYSTEM
===================================== */

#notification-container {
  position: fixed;
  top: 95px;
  right: 25px;

  z-index: 9999;

  width: 350px;
  max-width: calc(100% - 30px);

  pointer-events: none;
}

/* Main notification */

.notification {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 18px;

  background: var(--white);

  border: 3px solid var(--black);
  border-radius: 16px;

  box-shadow: 5px 5px 0 var(--black);

  opacity: 0;
  visibility: hidden;

  transform: translateX(120%) rotate(3deg);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;

  pointer-events: auto;
}

/* Visible state */

.notification.show {
  opacity: 1;
  visibility: visible;

  transform: translateX(0) rotate(-1deg);
}

/* Icon */

.notification-icon {
  flex-shrink: 0;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--pink);

  border: 3px solid var(--black);
  border-radius: 12px;

  font-size: 23px;
  font-weight: 900;
}

/* Content */

.notification-content {
  flex: 1;
}

.notification-content h3 {
  font-size: 17px;
  font-weight: 900;

  margin-bottom: 4px;
}

.notification-content p {
  font-size: 13px;
  line-height: 1.4;

  color: var(--gray);
}

/* Close button */

.notification-close {
  align-self: flex-start;

  border: none;
  background: transparent;

  font-size: 24px;
  font-weight: bold;

  cursor: pointer;

  color: var(--gray);
}

.notification-close:hover {
  color: var(--black);
  transform: scale(1.15);
}

/* =====================================
   NOTIFICATION TYPES
===================================== */

/* ERROR */

.notification.error .notification-icon {
  background: var(--pink);
}

/* SUCCESS */

.notification.success .notification-icon {
  background: var(--green);
}

/* WARNING */

.notification.warning .notification-icon {
  background: var(--orange);
}

/* INFO */

.notification.info .notification-icon {
  background: var(--blue);
}

/* =====================================
   MOBILE
===================================== */

@media (max-width: 600px) {
  #notification-container {
    top: 85px;
    right: 15px;
    left: 15px;

    width: auto;
  }

  .notification {
    padding: 15px;
  }
}
