/* Reset and base styles */
html, body {
  margin: 0;
  padding: 0;
  height: 100%; /* Ensure full height */
  font-family: Arial, sans-serif;
  color: #a0d6a0;
  overflow-x: hidden;
  background-color: #000;
}

/* Background image on body */
body {
  background-image: url('https://leons-bible.com/header.png');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 1000px auto; /* Fixed width, auto height */
  background-attachment: scroll; /* Normal scroll */
  min-height: 900px; /* Ensure enough height so image is visible */
}

@media (max-width: 900px) {
  body {
    background-size: cover;
    background-position: top center;
    min-height: 200px;
  }

  main {
    max-width: 90%;         /* narrower content */
    padding-top: 160px;     /* slightly higher */
    transform: scale(0.95); /* shrink everything slightly */
    transform-origin: top center;
  }

  h1 {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }

  .panel, .phase-panel {
    padding: 0.6rem 0.8rem;
    margin: 1rem 0;
  }

  .subpoint-button {
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }

  .subpoint-title {
    font-size: 0.9rem;
  }

  .subpoint-desc {
    font-size: 0.7rem;
  }

  .info-box {
    font-size: 0.8rem;
    padding: 0.6rem 0.9rem;
  }

  .emblem-text {
    font-size: 0.9rem;
  }

  .emblem-text span {
    font-size: 0.75rem;
  }
}





/* Main content wrapper */
main {
  padding-top: 450px; /* Space below image (adjust if needed) */
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  background-color: transparent;
}

/* Headings */
h1 {
  text-align: center;
  color: #7fffbf;
  font-weight: 900;
  margin-bottom: 0.1rem;
  text-shadow: 4px 2px 8px #000000;
}

h2 {
  text-align: center;
  font-style: italic;
  font-weight: 600;
  color: #55cc55;
  margin-top: 0;
  margin-bottom: 3rem;
  text-shadow: 2px 1px 6px #000000;
}

/* Panels */
.panel, .phase-panel {
  background-color: rgba(16, 25, 16, 0.85);
  backdrop-filter: blur(5px);
  border: 3px solid #339933;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
  padding: 1rem 2rem;
  margin: 2rem 0;
}

.phase-panel {
  padding-bottom: 2rem;
}

/* Phase Titles */
.phase-title {
  color: #7fff7f;
  font-size: 1.7rem;
  font-weight: 900;
  margin-bottom: 0.3rem;
}

/* Phase subtitles */
.phase-subtitle {
  font-style: italic;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #66bb66;
}

/* Buttons */
.subpoint-button {
  display: block;
  width: 100%;
  background-color: rgba(20, 51, 20, 0.9);
  color: #d4f8d4;
  border: none;
  border-radius: 6px;
  padding: 1rem 1.5rem;
  margin: 0.7rem 0;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background-color 1.2s ease, color 1.2s ease;
  white-space: normal;
  box-shadow: 0 0 10px #113311;
}

.subpoint-button:hover {
  background-color: #59c859;
  color: #003300;
}



.subpoint-title {
  font-weight: 900;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.subpoint-desc {
  font-weight: 400;
  font-size: 0.9rem;
  color: #a4d9a4;
  transition: color 0.3s ease;
}

.subpoint-button:hover .subpoint-desc {
  color: #000000;
}

.subpoint-button.auto-width {
  display: inline-block;
  width: auto;
  max-width: 100%;
  padding: 1rem 1.5rem;
}

.info-box {
  max-width: 900px;            /* much narrower */
  margin: 1rem auto;           /* smaller vertical margin */
  padding: 0.5rem 1rem;        /* less padding */
  background-color: rgba(10, 40, 10, 0.9);
  border: 2px solid #4CAF50;  /* slightly thinner border */
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0, 128, 0, 0.7);
  color: #c8f5c8;
  font-size: 0.8rem;           /* smaller font */
  line-height: 1.3;            /* tighter line height */
  font-weight: 600;
  text-align: center;
  user-select: text;
}


/* Emblem box */
.emblem-box {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 2rem 0 3rem 0;
}

.emblem-text {
  color: #a0d6a0;
  font-weight: 900;
  font-size: 1.3rem;
  line-height: 1.2;
}

.emblem-text span {
  font-weight: 400;
  color: #7fff7f;
  font-size: 1rem;
}

.nav-box-button {
  display: block;
  background-color: rgba(20, 40, 20, 0.7);
  border: 1.5px solid #44cc44;
  border-radius: 5px;
  padding: 0.4rem 0.7rem;
  margin: 0.7rem 0;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 0 8px #113311;
  transition: all 0.6s ease;
  width: fit-content;
  transform: scale(0.95); /* slight global scale down */
}

.nav-box-button:hover {
  background-color: rgba(40, 80, 40, 0.8);
  border-color: #7fff7f;
  box-shadow: 0 0 10px #22ff88;
}

.nav-box-title {
  color: #7fffbf;
  font-weight: bold;
  font-size: 0.95rem; /* smaller */
  margin-bottom: 0.1rem;
}

.nav-box-desc {
  color: #a0d6a0;
  font-size: 0.75rem; /* smaller */
  opacity: 0.85;
}

.nav-box-container {
  display: flex;
  justify-content: flex-start;
  gap: 1.1rem; /* slightly smaller gap */
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

#floating-logo {
  position: fixed;
  top: 20px;      /* distance from top */
  left: 20px;     /* distance from left */
  width: 100px;    /* size of the bubble */
  height: 100px;
  border-radius: 50%;       /* circle shape */
  overflow: hidden;
  box-shadow: 0 0 10px #44cc44;  /* subtle green glow */
  cursor: pointer;
  z-index: 1000;   /* above everything */
  background-color: #0a140a; /* dark background to blend with theme */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s ease;
  /* Added for mobile fix */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

/* Hide on mobile */
@media (max-width: 768px) {
  #floating-logo {
    display: none;
  }
}

#floating-logo img {
  width: 110%;   /* keep some padding inside bubble */
  height: auto;
  display: block;
  user-select: none;
  pointer-events: none; /* so click triggers the <a> */
}

#floating-logo:hover {
  box-shadow: 0 0 20px #7fff7f;
}