/* -------------------------------------
   GLOBAL STYLES
------------------------------------- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Baskerville', Times, serif;
    color: white;
    background: linear-gradient(to bottom, #3e5071ff 90%, #e3edfdff);
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column; /* Allow vertical stacking */
    min-height: 100vh; /* Ensure page is at least viewport height */
    
}


/* Add layered effects: bubbles and rays */
body::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('Ichisozai/bubble.png');
    background-repeat: repeat;
    background-size: auto; /* Ensures it keeps original size */
    background-position: top left;
    filter: brightness(400%);
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
}


body::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('Ichisozai/ray.png') center center / cover no-repeat;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

/* Water graphic at top */
.water-top {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 370px;
    background: url('Ichisozai/water.png') center top / contain no-repeat;
    transform: rotate(180deg);
    opacity: 0.3;
    filter: brightness(400%);
    z-index: 1;
    pointer-events: none;
}

/* Wrapper for all content (stack vertically) */
.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    z-index: 1; /* Above backgrounds */
}

/* -------------------------------------
   TITLE & SUBTITLE
------------------------------------- */
.container {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.container.opening-active {
    opacity: 1;
    transform: translateY(0);
}

.title {
    font-size: 3rem;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
}

/* -------------------------------------
   CURTAIN ANIMATION
------------------------------------- */
.curtain {
    position: fixed;
    top: 0;
    width: 50vw;
    height: 100vh;
    background-color: black;
    z-index: 9999;
    transition: transform 1.5s ease-in-out;
}

.left-curtain {
    left: 0;
    transform: translateX(0);
}

.right-curtain {
    right: 0;
    transform: translateX(0);
}

.curtain.open {
    transform: translateX(-100%);
}

.right-curtain.open {
    transform: translateX(100%);
}

/* -------------------------------------
   TEXT FRAME
------------------------------------- */
.text-frame {
    max-width: 750px; /* or any width you find comfortable */
    margin: 0 auto;
    padding: 40px 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
        background-color: rgba(0, 0, 0, 0.1); /* Optional: subtle dark background */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4); /* Faint grey glow around the box */
    border-radius: 10px; /* Optional: soft rounded corners */
}
.text-frame.show {
    opacity: 1;
    transform: translateY(0);
}



/* pick a god and pray */
.story-section p {
    font-size: 1.2rem;         /* Increase text size (adjust to your liking) */
    line-height: 1.8;          /* More space between lines */
    margin-bottom: 2em;        /* More space between paragraphs */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.story-section .visible {
    opacity: 1;
    transform: translateY(0);
}



.story-section p em {
    display: block;
    text-align: center;
    font-style: italic;
}

.centered-line {
    text-align: center;
}




/* PRAY */
.return-link {
  font-family: 'Baskerville', Times, serif;
  position: absolute;
  top: 10px;
  left: 10px;
  color: white;
  text-decoration: underline;
  font-size: 20px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
  z-index: 10000; /* higher than the curtains */

}
.return-link:hover {
  opacity: 0.8;
}
