/* styles.css — shared for HTML preview and EPUB */
#bg-layer {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: "Helvetica", "Arial", sans-serif;
  color: white;
  overflow: auto;
}

/* Full background GIF or image */
.cover {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: url("../media/background.gif") no-repeat center center fixed;
  background-size: cover; /* Ensures full coverage */
  z-index: -1;
}

/* Transparent dark overlay for readability */
.overlay {
  position: relative;
  background-color: rgba(0, 0, 0, 0.65);
  padding: 2em;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Typography */
h1, h2, h3, p {
  margin: 0.5em 0;
}
h1 { font-size: 2.2em; letter-spacing: 1px; }
h2 { font-size: 1.4em; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 0.2em; }
h3 { font-weight: normal; color: #ddd; }

/* Lists */
ul {
  list-style: square;
  margin-left: 1.2em;
}
li { margin: 0.3em 0; }

/* Gallery thumbnails */
.gallery {
  margin-top: 1.5em;
}
.gallery .thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.gallery img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.5);
  transition: transform 0.3s ease;
}
.gallery img:hover {
  transform: scale(1.05);
}

/* Footer */
footer {
  margin-top: 2em;
  font-size: 0.9em;
  color: #ccc;
  text-align: right;
}

/* Overlay gradient above background but BELOW text */
#overlay-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    
    /* soft gradient — NOT black screen */
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.30),
        rgba(0,0,0,0.50)
    );

    z-index: 1;
}

/* Put all content ABOVE the gradient */

/* MAIN CONTENT WRAPPER — centered, balanced spacing */

/* ADJUSTABLE CONTENT PADDING — OLD LAYOUT RESTORED */
.shell {
    position: relative;
    z-index: 2;

    width: 100%;
    /* max-width: 1200px;  same as before, keeps center layout */

    margin: 0 auto;  /* centers the block — do not change */

    /* ✔ Adjustable padding controls */
    padding-top: 60px;
    padding-bottom: 80px;
    padding-left: 60px;
    padding-right: 60px;

    box-sizing: border-box;
}

@media (max-width: 600px) {
  .shell {
    padding: 1.25rem; /* tighter mobile spacing */
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .category-line {
    font-size: 1rem;
  }
}
