/* ---------------------------------------------------------------
   Kastner.com — layout
   Ported verbatim from the Webflow export
   (image-hover-trick-c4e23b.webflow.css), vendor prefixes dropped.
   --------------------------------------------------------------- */

.body {
  justify-content: center;
  align-items: center;
}

/* Full-viewport backdrop. Sits under .bubble-wrapper, which paints its own
   background on top of it — kept because the original kept it. */
.img-bg {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: url('../images/sean-o-kmn4veeepr8-unsplash.jpg');
  background-position: 50% 50%;
  background-size: cover;
  font-family: Montserrat, sans-serif;
  color: #fff;
}

/* The visible backdrop. */
.bubble-wrapper {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  background-image: url('../images/matthew-brodeur-dh_u2av3ngm-unsplash.jpg');
  background-position: 50% 50%;
  background-size: cover;
  transform-origin: 50% 50%;
}

/* The lens. Centred on the wrapper's origin by the negative margins, then
   translated to the cursor by site.js. Morphing border-radius below. */
.bubble {
  position: relative;
  left: 0;
  top: 0;
  z-index: 2;
  overflow: hidden;
  width: 30vw;
  height: 30vw;
  margin-top: -15vw;
  margin-left: -15vw;
  border-radius: 100%;
  transform-origin: 50% 50%;
}

/* Counter-translated by site.js so it stays pinned to the viewport — that
   is what makes the lens read as a window rather than a moving sprite. */
.img-bubble {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  width: 100vw;
  height: 100vh;
  margin-top: 15vw;
  margin-left: 15vw;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: url('../images/happy-art.jpeg');
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
  transform-origin: 50% 50%;
  font-family: Montserrat, sans-serif;
  color: #fff;
}

/* Blob morph — was an inline <style> block in the Webflow head. */
.bubble {
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  animation: morph 8s linear infinite;
  will-change: border-radius;
}

.bubble:before,
.bubble:after {
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  will-change: border-radius;
  animation-delay: 200ms;
}

.bubble:before {
  animation: morph 6s linear infinite;
  animation-duration: 1.5s;
}

@keyframes morph {
  0%, 100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
  34%      { border-radius: 70% 30% 46% 54% / 30% 29% 71% 70%; }
  67%      { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}

@media (prefers-reduced-motion: reduce) {
  .bubble,
  .bubble:before {
    animation: none;
  }
}

/* ---------------------------------------------------------------
   Domain-for-sale modal
   Styling matches the old Popup Maker "Lightbox" theme (theme 11):
   35% black overlay, white 10px-radius card, blue circular close.
   --------------------------------------------------------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1999999999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 100px 0 48px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 350ms ease;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-overlay.is-open {
  opacity: 1;
}

/* Popup Maker's responsive sizing: 95% by default, 60% once past 1024px
   (its "medium" preset). */
.modal-container {
  position: relative;
  width: 95%;
  padding: 18px;
  border: 1px solid #000;
  border-radius: 10px;
  box-shadow: 0 0 30px 0 rgba(2, 2, 2, 0.55);
  background-color: #fff;
}

@media only screen and (min-width: 1024px) {
  .modal-container {
    width: 60%;
  }
}

/* The embedded form makes the card ~700px tall. Popup Maker's fixed 100px top
   offset pushes that off most laptop screens, so it tightens up when short. */
@media only screen and (max-height: 900px) {
  .modal-overlay {
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

/* Was #pum-19 .popmake-content in the site's custom CSS. */
.modal-content {
  max-width: 700px;
  margin: auto;
  padding: 20px 10px;
  color: #000;
  font-size: 16px;
  font-weight: 100;
}

.modal-content h3 {
  margin-top: 0;
  text-align: center;
}

.modal-content p {
  text-align: center;
  line-height: 140%;
}

/* AidaForm embed. The widget injects an iframe sized from data-width /
   data-height and resizes it to its content. */
.modal-form {
  margin-top: 20px;
}

.modal-form iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* Popup Maker hung this half-outside the card corner. On narrow screens that
   overflowed the viewport, so it tucks inside instead. */
.modal-close {
  position: absolute;
  top: -13px;
  right: -13px;
  height: 26px;
  width: 26px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 26px;
  box-shadow: 0 0 15px 1px rgba(2, 2, 2, 0.75);
  background-color: #1e73be;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 100;
  line-height: 24px;
}

@media only screen and (max-width: 480px) {
  .modal-close {
    top: 4px;
    right: 4px;
  }
}
