/* -------------------------
RESET
------------------------- */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: serif;
  overflow-x: hidden;
  overflow-y: auto;
}

.text h1 {
  font-size: clamp(1.5rem, 4vw, 3rem);
}

.text p {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
}

img {
  max-width: 100%;
  height: auto;
}

.click {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 18;
  font-size: 100pt;
  text-align: center;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

.click a:link,
.click a:visited {
  color: #00ffff;
}

.click a:hover {
  color: #ffffff;
}

.section-title-img {
  width: 100%;
  max-width: 600px;
  display: block;
  margin: 0 auto 1em auto;
}

.end-image {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 3em auto 0 auto;
  padding: 0;
}

/* -------------------------
LEFT PANEL
------------------------- */
.left-panel {
  position: fixed;
  left: 0;
  top: 0;
  width: 50vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
}

#scrollVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: fill;
  z-index: 1;
  pointer-events: none;
  filter: brightness(140%);
}

.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  filter: brightness(140%);
  z-index: 0;
}

.text-frame {
  position: fixed;
  top: 49%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: 100vw;
  max-width: 750px;
  height: 74vh;
  padding: 50px 40px 30px 40px;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 370px 370px 0 0;
  box-shadow: 0 0 80px 40px rgba(255, 255, 255, 0.9);
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: none;
  background-clip: padding-box;
  box-sizing: border-box;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgb(255, 255, 255);
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.arch-video {
  position: relative;
  width: 100%;
  max-width: 750px;
  height: 74vh;
  border-radius: 420px 420px 0 0;
  overflow: hidden;
  box-shadow: none;
  clip-path: polygon(
    0% 100%,
    0% 20%,
    50% 0%,
    100% 20%,
    100% 100%
  );
}

.arch-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.click {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  text-align: center;
}

.click a {
  color: #00ffff;
  font-size: 130pt;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  display: block;
  text-decoration: none;
  transition: opacity 0.5s ease;
  pointer-events: auto;
  opacity: 1;
}

.text-frame::-webkit-scrollbar {
  display: none;
}

.bible-text {
  padding-top: 10%;
  font-size: 22px;
  line-height: 1.4;
  color: #8b8b8b;
  position: relative;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  max-width: 620px;
  margin: 0 auto;
}

.bible-text p {
  margin-bottom: 1em;
  text-align: justify;
  line-height: 1.4;
}

.bible-text i {
  font-weight: bold;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}

.bible-text section p:last-of-type {
  margin-bottom: 5em;
}

.bible-text section:last-of-type p:last-of-type {
  margin-bottom: 0;
}

h1 {
  text-align: center;
  font-size: 70px;
}

/* -------------------------
INDEX PAGE
------------------------- */
.white-mask {
  position: fixed;
  top: 49%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 750px;
  height: 74vh;
  border-radius: 370px 370px 0 0;
  z-index: 2;
  box-shadow: 0 0 0 100vmax white;
  pointer-events: none;
}

#flash-link {
  transition: opacity 0.5s ease;
}

/* -------------------------
CLICK BACKGROUND
------------------------- */
.click-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  pointer-events: none;
}

.click-lines {
  width: 100%;
  text-align: center;
}

.click-line {
  display: block;
  font-size: 64px;
  font-weight: 900;
  color: #1a3a7a;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  border-bottom: 4px solid #1a3a7a;
  padding: 8px 20px;
  opacity: 0;
  transition: opacity 0.5s ease;
  text-shadow:
    0 0 30px rgba(58, 95, 160, 0.8),
    0 0 60px rgba(58, 95, 160, 0.6),
    3px 3px 6px rgba(0, 0, 0, 0.5);
}

.click-line.visible {
  opacity: 1;
}

/* -------------------------
PAGE TRANSITIONS
------------------------- */
body {
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* -------------------------
FLOATING ELEMENTS
------------------------- */
.fly img {
  position: absolute;
  top: 45%;
  left: 151%;
  z-index: 10;
  height: 30px;
}

.cloud1 {
  position: fixed;
  top: 10px;
  left: 20px;
  height: 250px;
  z-index: 10;
  filter: brightness(160%);
}

.cloud2 {
  position: fixed;
  top: 140px;
  left: 1200px;
  height: 250px;
  z-index: 10;
  filter: brightness(120%);
}

/* =========================
DESKTOP ONLY
========================= */
@media (min-width: 769px) {
  .click-background {
    position: fixed;
    bottom: 0;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 750px;
    height: auto;
    align-items: flex-end;
    justify-content: flex-end;
  }

  .click-lines {
    width: 750px;
  }
}

/* =========================
MOBILE LAYOUT
========================= */
@media (max-width: 768px) {

  body {
    overflow-y: auto;
  }

  h1 {
    font-size: 36px;
    word-break: break-word;
  }

  .left-panel,
  .right-panel {
    position: relative;
    width: 100vw;
    height: auto;
  }

  #background {
    display: none;
  }

  #background2 {
    display: none;
  }

  #scrollVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: fill;
    z-index: 0;
  }

  .right-panel {
    position: relative;
    background: transparent;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .text-frame {
    width: 90vw;
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 40px;
    padding: 40px 20px 30px 20px;
    border-radius: 300px 300px 0 0;
    box-sizing: border-box;
    position: fixed;
    top: 44%;
  }

  .text-frame h1 {
    font-size: 28px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .text-frame p {
    font-size: 15px;
    line-height: 1.4;
  }

  .bible-text {
    max-width: 100%;
    padding: 0;
    font-size: 16px;
  }

  .bible-text section:last-of-type p:last-of-type {
    margin-bottom: 1em;
  }

  .end-image {
    margin-top: 0.5em;
  }

  .click-line {
    font-size: 20px;
  }

  .click {
    font-size: 20pt;
    width: 90vw;
  }

  .click a {
    font-size: 20pt;
  }

  .white-mask {
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    transform: none;
    border-radius: 0;
    box-shadow: none;
  }

  #back-link {
    display: none;
  }

}