/* =========================
    MODAL OVERLAYS TEMPLATE
========================= */

.open-button {
  background-color: #3a3a3a;
  border: none;
  border-radius: var(--button-radius);
  cursor: pointer;
  display: inline-flex;
  width: fit-content;
  height: fit-content;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
  padding: 0;
}

.open-svg {
  width: var(--socials);
  color: var(--light-blue);
}

.open-button .open-svg {
  transition: fill 0.25s ease;
}

.open-button.active {
  background-color: var(--orange);
}

.open-button.active .open-svg {
  fill: var(--white);
}

.open-button:active,
.open-button.pressed {
  transform: scale(0.95);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0s linear 0.25s;
  z-index: 99;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.25s ease,
    visibility 0s linear 0s;
}

.modal {
  background: var(--modal-bg);
  padding: 15px;
  border-radius: 10px;
  width: clamp(260px, 205.71px + 16.964vw, 450px);
  transform: scale(0.95);
  opacity: 0;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.modal-overlay.active .modal {
  transform: scale(1);
  opacity: 1;
}

.modal-close {
  all: unset;
  display: inline-flex;
  cursor: pointer;
}

.modal-close .close {
  width: var(--close-icon);
  height: var(--close-icon);
  fill: var(--light-gray);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  color: var(--white);
  font-size: var(--modal-title);
  margin: 0px;
  text-transform: capitalize;
}
