@import url('https://fonts.googleapis.com/css2?family=Silkscreen&display=swap');

/* Ensure html and body expand to allow full scroll area */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 120vh;
  padding-bottom: 12rem;
  box-sizing: border-box;
  position: relative;
  background-color: #ffffff;
  font-family: 'Courier New', Courier, monospace;
}

.silkscreen-regular {
  font-family: "Silkscreen", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.special-text {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: #2c3e50;
  line-height: 1.6;
}

/* TOP BAR FLEX WRAPPER (FORCES SINGLE LINE FIT) */
.top-bar {
  position: fixed;
  top: 1.25rem;
  left: 1.25rem;
  width: calc(100% - 2.5rem); /* Locks bounds perfectly between left & right margins */
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap; /* Prevents button from ever dropping to a second line */
  box-sizing: border-box;
  z-index: 100;
  pointer-events: none;
}

/* TOP LEFT SITE TITLE */
.site-title {
  font-family: "Silkscreen", sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #000000;
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  pointer-events: auto;
}

/* TOP RIGHT PRAYER BUTTON */
.prayer-btn {
  font-family: "Silkscreen", sans-serif;
  font-size: 0.75rem;
  text-transform: lowercase;
  color: #000000;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  pointer-events: auto;
  transition: all 0.15s ease;
}

.prayer-btn:hover {
  background-color: #000000;
  color: #ffffff;
}

/* Style the shared image wrappers */
.scatter-item {
  position: absolute;
  width: 200px;
  transition: transform 0.3s ease, z-index 0s;
}

.scatter-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Coordinates & rotation */
.img-1 {
  top: 80px;
  left: 15%;
  transform: rotate(-7deg);
}

.img-2 {
  top: 120px;
  left: 45%;
  transform: rotate(5deg);
}

.img-3 {
  top: 340px;
  left: 18%;
  transform: rotate(8deg);
}

.img-4 {
  top: 320px;
  left: 62%;
  transform: rotate(-4deg);
}

.img-5 {
  top: 540px;
  left: 38%;
  transform: rotate(3deg);
}

/* hover over image */
.scatter-item:hover {
  z-index: 10;
  transform: scale(1.05) rotate(0deg);
}

/* Link text styling under images */
.scatter-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  text-decoration: none;
  color: #333;
  font-family: "Silkscreen", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* MODAL OVERLAY */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  box-sizing: border-box;
}

/* MINIMAL FLUSH MODAL BOX */
.modal-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid #000000;
  padding: 1.5rem 1.25rem 1.25rem 1.25rem;
  box-shadow: none;
  box-sizing: border-box;
}

.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  font-family: "Silkscreen", sans-serif;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.1rem 0.3rem;
  color: #000000;
}

.modal-close:hover {
  background-color: #000000;
  color: #ffffff;
}

.modal-label {
  font-family: "Silkscreen", sans-serif;
  font-size: 0.65rem;
  color: #666666;
  text-transform: lowercase;
  margin-bottom: 0.85rem;
}

.modal-quote {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #000000;
  font-style: italic;
  margin-bottom: 1.25rem;
  border-left: 1px solid #000000;
  padding-left: 0.75rem;
}

.modal-sub-btn {
  font-family: "Silkscreen", sans-serif;
  font-size: 0.65rem;
  color: #000000;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-transform: lowercase;
  padding: 0.15rem 0.35rem;
  transition: all 0.15s ease;
}

.modal-sub-btn:hover {
  background-color: #000000;
  color: #ffffff;
}

/* ==========================================
   MOBILE SCATTER LAYOUT (Screens < 768px)
   ========================================== */
@media (max-width: 768px) {
  html, body {
    min-height: 100vh;
    padding-bottom: 16rem;
  }

  /* Scale padding & font sizes slightly so text never collides on small displays */
  .top-bar {
    top: 1rem;
    left: 0.75rem;
    width: calc(100% - 1.5rem);
  }

  .site-title,
  .prayer-btn {
    font-size: 0.6rem;
  }

  /* Scale down the scatter item container for small screens */
  .scatter-item {
    width: 120px;
  }

  /* Reposition elements across the full width & height using responsive percentages */
  .img-1 {
    top: 70px;
    left: 6%;
    transform: rotate(-6deg);
  }

  .img-2 {
    top: 180px;
    left: 48%;
    transform: rotate(5deg);
  }

  .img-3 {
    top: 320px;
    left: 10%;
    transform: rotate(7deg);
  }

  .img-4 {
    top: 450px;
    left: 45%;
    transform: rotate(-5deg);
  }

  .img-5 {
    top: 590px;
    left: 22%;
    transform: rotate(4deg);
  }

  /* Ensure the mobile modal box doesn't overflow screen edges */
  .modal-box {
    width: 100%;
    max-width: 320px;
    padding: 1.25rem 1rem;
  }
}