/* This lets the bar to transform into a 'X' when it is clicked. */
#hamburger.active .bar:nth-of-type(1) {
  transform: rotate(45deg) translateY(10px);
}
#hamburger.active .bar:nth-of-type(2) {
  display: none;
}
#hamburger.active .bar:nth-of-type(3) {
  transform: rotate(-45deg) translateX(-4px) translateY(-5px);
}

html {
  scroll-behavior: smooth;
}
.button {
  display: inline-flex;
  padding: 0.625rem 0.875rem;
  column-gap: 0.5rem;
  align-items: center;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  background: #6366f1;
  border: none;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  cursor: pointer;
}
.button:hover {
  background: #4f46e5;
}

.button-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: -0.125rem;
}

.alert {
  position: fixed;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  width: 200px;
  padding: 1rem;
  border-radius: 0.375rem;
  background: #f0fdf4;
  transition: all 0.5s ease-in-out;
}

.alert.active {
  animation: slide-in 0.5s ease-in-out;
}

.alert.hide {
  animation: slide-out 0.5s ease-in-out;
}

@keyframes slide-in {
  from {
    transform: translate(-50%, -100%);
  }
  to {
    transform: translate(-50%, 0);
  }
}

@keyframes slide-out {
  from {
    transform: translate(-50%, 0);
  }
  to {
    transform: translate(-50%, -100%);
  }
}

.alert-inner {
  display: flex;
}

.alert-left {
  flex-shrink: 0;
}

.alert-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #4ade80;
}

.alert-body {
  margin-left: 0.75rem;
}

.alert-title {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: #166534;
}

.alert-text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #15803d;
}

@media (min-width: 640px) {
  .alert {
    bottom: 4%;
    right: 2%;
  }
}

.nav-active {
  background-color: #000;
  box-shadow: 5px -1px 12px -5px grey;
}
