/* ================= RESET ================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-size: 15pt;
  background-image: url("bgindex.webp");
  background-size: cover;
  background-position: center;
  font-family:"Times New Roman", Times, serif;
}

/* ================= VISIBILITY TOGGLES ================= */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

/* ================= DESKTOP LAYOUT ================= */

.viewport-scale {
  width: 1200px;
  height: 800px;
  margin: 0 auto;
  transform: translateY(80px);
}

.astersitting {
  position: relative;
}

/* Desktop image */
.astersitting img {
  width: 460px;
  height: auto;
  transform: translateY(10px) translateX(150px);
  position: relative;
  z-index: 2;
  pointer-events: none;
}

/* Parchment square */
.square {
  position: absolute;
  width: 500px;
  height: 400px;
  background-color: #E8DFB1;
  left: 35%;
  top: -15px;
  z-index: 1;

  padding: 40px;
  display: flex;
  flex-direction: column;

  -webkit-mask:
    radial-gradient(40px at 40px 40px, transparent 98%, black) -40px -40px;
  mask:
    radial-gradient(40px at 40px 40px, transparent 98%, black) -40px -40px;

  box-shadow: inset 0 0 0 10px #D8C198;
  border: 3px solid #4F3D1E ;
}

.squaretext {
  flex: 1;
  overflow-y: auto;
  text-align: center;
  font-family:"Times New Roman", Times, serif;
}

.squaretext h1 {
  margin: 3px;
  line-height: 1.3;
}

.squaretext p {
  margin: 5px 70px;
  font-size: 1rem;
}

.squarelink {
  position: relative;
  transform: translateY(15px) translateX(180px);
}

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

.page {
  min-height: 100vh;
  padding: 30px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scroll-panel {
  width: 100%;
  max-width: 420px;
  background: #efe6b8;
  padding: 35px 25px 40px;

  -webkit-mask:
    radial-gradient(30px at 30px 30px, transparent 98%, black) -30px -30px;
  mask:
    radial-gradient(30px at 30px 30px, transparent 98%, black) -30px -30px;

  box-shadow:
    inset 0 0 0 8px #d6c48d,
    0 10px 30px rgba(0,0,0,.3);
    
    border:2px solid #4F3D1E;
}

.title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 25px;
  font-weight: 700;
}

.text {
  text-align: center;
  line-height: 1.6;
  margin: 12px 0;
  font-size: 1rem;
}

.banner {
  height: 150px;
  background: #8ec9b8;
  border-radius: 12px;
  margin: 25px 0;
  background-image: url("ourcross.webp");
  background-position:  20%;
			background-size: cover;
}



.accept-btn {
  margin: auto;
  width: 100%;
  padding: 12px;
  font-size: 1.1rem;
  background: none;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

/* ================= RESPONSIVE SWITCH ================= */

@media (max-width: 768px) {

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

}