/* Reset and base */
* { box-sizing: border-box; }
html, body { height: 100%; }
:root {
    /* 0 = no fade/shift, 1 = fully faded/shifted */
    --fade: 0;
    /* How far the image slides up at full fade (tweak) */
    --bg-shift: -20%;
    /* Color the hero fades into; match next section background */
    --fade-color: #111;
    --mainTextColour: white;
    --darkBlueTextColour: rgb(18, 10, 69);
}
body {
    margin: 0;
    font-family: 'Fjalla One', -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #fff;
    line-height: 1.6;
    background: #ffffff; /*was 000 black*/

}

#containerForZoom {
    width: 1400px; /*600px;*/
    height: 700px; /*400px;*/
    overflow: hidden;
    position: relative;
}

#bgpic {
    position: absolute;
    transform-origin: bottom right;/*top left;*/
    transition: transform 1.3s ease; /*speed was 0.3s*/
}


/* Fixed background image layer */
.bg-wrapper {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -2;
}
:root {
  --fade: 0;
  --bg-shift: -20%;       /* how far the image slides up */
  --fade-color: #111;     /* background color of next section */
}


@media (max-width: 769px) {
.bg {
  background-image: url('https://www.ignoranceparadox.com/images/2balls-539px.jpg');

  }
}
@media (min-width: 768px) {
.bg {
  position: absolute;
  inset: 0;
  background-image: url('https://www.ignoranceparadox.com/images/2balls-925px.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  will-change: transform;
  transform: translateY(calc(var(--fade) * var(--bg-shift)));
  transition: transform 200ms linear;
  }
}


/* Fixed fading overlay to dark/solid color */
.fade-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--fade-color);
  /* Fade in as we progress through the spacer */
  opacity: var(--fade);
  pointer-events: none;
}

/* Content wrapper: start text halfway down the first viewport */
.content {
  padding-top: 60vh;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
  padding-bottom: 8rem;
  max-width: 50ch;
  margin: 0 auto;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  position: relative;
  z-index: 0;
}
.contentSmall {
    padding-top: 60vh;
    padding-left: clamp(3rem, 5vw, 4rem); /*min preferred max*/
    padding-right: clamp(3rem, 5vw, 4rem);
    padding-bottom: 2rem;
    max-width: 50ch;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    position: relative;
    z-index: 0;
}

.contentLayerBehind {
    padding-top: 60vh;
    padding-left: clamp(1rem, 3vw, 2rem);
    padding-right: clamp(1rem, 3vw, 2rem);
    padding-bottom: 8rem;
    max-width: 72ch;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    position: relative;
    z-index: -5;
}

/* Content wrapper: start text halfway down the first viewport */
.content50 {
    padding-top: 50vh;
    padding-left: clamp(1rem, 3vw, 2rem);
    padding-right: clamp(1rem, 3vw, 2rem);
    padding-bottom: 8rem;
    max-width: 72ch;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Subtle backdrop behind text for readability black was 0.5 now 0.85 */
.intro, .body {
  backdrop-filter: blur(2px);
  background: rgba(0, 0, 0, 0.85);
  border-radius: 12px;
  padding: 1.25rem;
}
.introPurple {
    backdrop-filter: blur(2px);
    background: rgb(42, 6, 95, 0.85);
    border-radius: 12px;
    padding: 1.25rem;
}
.introFaintGreyHue {
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    background: rgb(128, 121, 138, 0.45);
    border-radius: 12px;
    padding: 1.25rem;
}

.introFaintYellowHue {
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    background: rgb(177, 160, 27, 0.45);
    border-radius: 12px;
    padding: 1.25rem;
}

.introFairWhite {
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 0.5rem; /*space around text in box*/
}
.introBlackMinM {
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    background: rgba(5, 5, 5, 0.8);
    border-radius: 12px;
    padding: 0.5rem; /*space around text in box*/
    margin:2px;
}

h1, h2 { line-height: 1.5; margin: 0 0 0.5rem 0; }
h1 {
  font-size: 2.5em; /* 2 times the size of the parent element's font size */
}


/*p { margin: 0.75rem 0; }   I removed in beggar  shifted text up */

/* Spacer that defines the fade zone */
.fade-out-spacer {
  height: 30vh; /* longer = more gradual fade/shift */
}

/* Next section with text boxes */
.text-boxes {
  background: var(--fade-color);
  padding: 4rem 2rem;
  color: #fff;
  margin-left: calc(-1 * clamp(1rem, 3vw, 2rem));
  margin-right: calc(-1 * clamp(1rem, 3vw, 2rem));
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

.text-boxes h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.box-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  max-width: 1000px;
  margin: 0 auto;
}

.box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, background 0.2s ease;
}
.box:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.15);
}

.textLeft{
   text-align: left;
}
.textRight{
   text-align: right;
}
.centerMedium{
  text-align: center;
  padding: 1.5rem;
  font-size: 2.5em;
}
.center15{
  text-align: center;
  padding: 1rem;
  font-size: 1.5em;
}
.center10 {
    text-align: center;
    /*text-justify: inter-word;*/
    padding: 0.8rem;
    font-size: 1em;
    color: var(--mainTextColour);
}
.center12 {
    text-align: center;
    /*text-justify: inter-word;*/
    padding: 0.2rem;
    margin: 0px;
    font-size: 1em;
    color: var(--mainTextColour);
}
.justfied10 {
    text-align: justify;
    /*text-justify: inter-word;*/
    padding: 0.8rem;
    font-size: 1em;
    color: var(--mainTextColour);
}
.justfied12 {
    text-align: justify;
    /*text-justify: inter-word;*/
    padding: 1rem;
    font-size: 1em;
    color: var(--mainTextColour);
}
.revelationText {
    text-align: justify;
    /*text-justify: inter-word;*/
    padding: 1.2rem;
    font-size: 1.2em;
    color: var(--darkBlueTextColour);
    opacity: 0;
}
.center10Blue {
    text-align: justify;
    /*text-justify: inter-word;*/
    padding: 1.2rem;
    font-size: 1em;
    color: var(--darkBlueTextColour);
}
.center20SmallMargin {
    text-align: center;
    padding: 0.5rem;
    font-size: 2em;
    margin: 4px 4px 4px 4px;
/*    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);*/
    padding: 1px 1px 1px 1px;
}
.center12Justified {
    text-align: justify;
    padding: 0.5rem;
    font-size: 1.2em;
    margin: 4px 4px 4px 4px;
}
.center10Justified {
    text-align: justify;
    padding: 0.5rem;
    font-size: 1.2em;
    margin: 4px 4px 4px 4px;

}



.gap4 {
    width: 100px;
    height: 200px;
    background-color: rgba(0,0,0,0);
    margin: 120px; /* Space outside the element */
    padding: 10px; /* Space inside the element */
}

  .gap3 {
    width: 100px;
    height: 150px;
    background-color: rgba(0,0,0,0);
    margin: 90px; /* Space outside the element */
    padding: 10px; /* Space inside the element */
  }

  .gap2 {
    width: 100px;
    height: 100px;
    background-color: rgba(0,0,0,0);
    margin: 60px; /* Space outside the element */
    padding: 10px; /* Space inside the element */
  }
.gap1 {
    width: 100px;
    height: 100px;
    background-color: rgba(0,0,0,0);
    margin: 30px; /* Space outside the element */
    padding: 10px; /* Space inside the element */
}
.gap05 {
    width: 100px;
    height: 50px;
    background-color: rgba(0,0,0,0);
    margin: 20px; /* Space outside the element */
    padding: 8px; /* Space inside the element */
}

.buttonContainer {
    padding-top:40px;
    width: 100%;
    height: 8vh;
    /*    padding: 3px 3px 3px 3px;
    margin: 0px;
    display: contents;*/
    /*    display:inline-block;*/
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
}
.pButtonSingle {

    padding: 0.8rem;
    font-size: 1em;
    color: var(--mainTextColour);
}
.imgPlayButton {
    width: 80px;
    height: auto;
    margin: 0px;
    padding: 3px;
    /*    position:center;*/
}
.questionButton {
    padding: 0.8rem;
    font-size: 1em;
    color: var(--darkBlueTextColour);
    opacity: 0.75;
    margin: 20px 10px 10px 20px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
}

/*img {
    width: 100%;*/ /* Makes the image fill the container */
    /*padding: 40px;*/ /* Space inside the element */
    /*object-fit: scale-down;*/ /* Options: contain, fill, cover, scale-down, none */
/*}*/

.imgLogo {

  transform: scale(0.4); /* Shrinks the image to 50% of its original size */
  transform-origin: center; 
}
.imgShadow {
    border: 1px solid var(--mainTextColour);
    border-radius: 10px;
    display: inline-block;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
    padding: 1px 1px 1px 1px;
}

.textBlue {
    color: #1DC0FB;
}


@media (max-width: 767px) {
    .imgMain {
        padding: 0px;
        /*    object-fit: fill;*/
        width: 100vw; /* Full width of the viewport */
        height: 100vh; /* Full height of the viewport */
        object-fit: cover; /* Ensures the image covers the screen */
        object-position: center; /* Centers the image */
        /*opacity: 0;*/ /* Fully transparent */
        /*    position: sticky;*/
    }
}
.imgMain40 {
    padding: 0px;
    /*    object-fit: fill;*/
    width: 100vw; /* Full width of the viewport */
    height: 40vh; /* Full height of the viewport */
    object-fit: cover; /* Ensures the image covers the screen */
    object-position: center; /* Centers the image */
    /*opacity: 0;*/ /* Fully transparent */
/*    position:fixed;
    z-index: 5;*/
}
.img200Wide {
    width:200px;
    height:auto;
    padding: 2px 2px 2px 2px;
    margin: 0px;
}
.panel {
    height: 100vh;
    background-size: cover;
    background-position: center;
}
/*my fade in code*/
/*.fade-in {
    opacity: 0;
    transition: opacity 2s ease-in-out;
}
.visible {
    opacity: 1;
}
.invisible {
    opacity: 0;
}*/

.bookButton {
    background-color: rgba(0,0,0,0);
    border-radius: 30px;
    /*background: url('images/apple-logo150.png') no-repeat center center;*/
    /*background-size: cover;*/
    /*width: 50%;*/
}
.bookButton img {
    width: 150px; /* Adjust image size relative to the button */
    height: auto; /* Maintain aspect ratio */
}
/* Responsive tweak */
@media (min-width: 900px) {
    .content { max-width: 68ch; }
}



