#site-banner {
  width: 100vw;
  max-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

#banner-img {
  max-height: 170px;
  max-width: 100vw;
  object-fit: cover;
  display: block;
  background: transparent;
}

:root {
  --banner-height: 170px;
  --frame-bg: #232837ee;
  --frame-border: #7edfff;
  --frame-accent: #c0c0c0;
  --frame-radius: 20px;
  --frame-shadow: 0 0 24px #7edfff88;
  --font-title: 'Orbitron', sans-serif;
  --font-body: 'Segoe UI', Arial, sans-serif;
  --star-color: #9ddcff;
}

/* Starscape background */
body, html {
  height: 100%;
  margin: 0;
  font-family: var(--font-body);
  background: black;
  overflow-x: hidden;
}
/* Content overlays starscape, starts below banner */
#main-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 2vw;
  justify-content: center;
  align-items: start;
  padding: 2vw 2vw 5vw 2vw;

}



/* Section card */
.section-card {
  background: var(--frame-bg);
  border: 3px solid var(--frame-border);
  border-radius: var(--frame-radius);
  box-shadow: var(--frame-shadow);
  min-width: 260px;
  max-width: 350px;
  flex: 1 1 300px;
  padding: 1.5em 1em;
  margin: 1em 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.3s;
  cursor: pointer;
  position: relative;
}

.section-card:hover {
  box-shadow: 0 0 48px #7edfffcc;
}

/* Expand overlay */
.section-expand {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100%;
  background: linear-gradient(135deg, #1c2242e0 70%, #7edfff22 100%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 0vh;
  animation: expandIn 0.25s;

}

@keyframes expandIn {
  from { opacity: 0; transform: scale(0.95);}
  to   { opacity: 1; transform: scale(1);}
}

/* Frame for expanded section */
.section-frame {
  background: var(--frame-bg);
  border: 3px solid var(--frame-border);
  border-radius: var(--frame-radius);
  box-shadow: var(--frame-shadow);
  width: 90vw;
  max-width: 80vw;
  height: auto;
  padding: 2em 2em 2em 2em;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  color:#ffffff;
  font-family: var(--font-body);
  overflow-y: auto;
}


/* X close button */
.close-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--frame-border);
  color: #1c2242;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  box-shadow: 0 0 8px #7edfff88;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  font-size: 40px;
}

.close-btn:hover {
  background: #fff;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2em;
  color: var(--frame-border);
  margin-bottom: 0.8em;
  text-align: center;
}

.section-summary {
  font-size: 1.1em;
  color: #e4f0ff;
  margin-bottom: 1em;
  text-align: center;
}

.section-image-btn {
  background: none;
  border: none;
  margin-bottom: 1em;
  padding: 0;
  cursor: pointer;
}

.section-image-btn img {
  width: 80px;
  height: 80px;
  border-radius: 30%;

  object-fit: cover;
  background: #1c2242;
}

.book-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
  margin-top: 2em;
}

.book-card {
  background: var(--frame-bg);
  border: 2px solid var(--frame-accent);
  border-radius: var(--frame-radius);
  box-shadow: 0 0 12px #7edfff66;
  width: 180px;
  padding: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.book-card:hover {
  box-shadow: 0 0 24px #7edfff;
}

.book-cover {
  width: 84px;
  height: 130px;
  object-fit: contain;
  margin-bottom: 0.6em;
  background: #1c2242;
  border-radius: 6px;
  box-shadow: 0 0 16px #7edfff44;
  border: 3px solid var(--frame-border);
}

.book-cover-large {
  width: 168px;
  height: 260px;
  object-fit: contain;
  margin-bottom: 0.6em;
  background: #1c2242;
  border-radius: 12px;
  border: 3px solid var(--frame-border);
  box-shadow: 0 0 32px #7edfff44;
}


.book-title {
  font-family: var(--font-title);
  font-size: 1.1em;
  color: var(--frame-border);
  margin-bottom: 0.4em;
  text-align: center;
}

.book-description {
  font-size: 0.95em;
  color: #e4f0ff;
  margin-bottom: 0.5em;
  text-align: left;
}

.book-links {
  display: flex;
  gap: 0.5em;
  margin-top: 0.2em;
}

.book-link-btn {
  background: #7edfff;
  color: #1c2242;
  border: none;
  border-radius: 8px;
  padding: 0.3em 0.7em;
  font-size: 0.9em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 5px #7edfff88;
  transition: background 0.2s;
}

.book-link-btn:hover {
  background: #fff;
}


.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
  margin-top: 2em;
}

.feature-card {
  background: var(--frame-bg);
  border: 2px solid var(--frame-accent);
  border-radius: var(--frame-radius);
  box-shadow: 0 0 12px #7edfff66;
  width: 180px;
  padding: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 0 24px #7edfff;
}

.feature-image {
  width: 130px;
  height: 130px;
  object-fit: cover;
  margin-bottom: 0.6em;
  background: #1c2242;
  border-radius: 6px;
  box-shadow: 0 0 16px #7edfff44;
  border: 3px solid var(--frame-border);
}

.feature-image-large {
  width: 260px;
  height: 260px;
  object-fit: cover;
  margin-bottom: 0.6em;
  background: #1c2242;
  border-radius: 12px;
  border: 3px solid var(--frame-border);
  box-shadow: 0 0 32px #7edfff44;
}


.feature-title {
  font-family: var(--font-title);
  font-size: 1.1em;
  color: var(--frame-border);
  margin-bottom: 0.4em;
  text-align: center;
}

.feature-description {
  font-size: 0.95em;
  color: #e4f0ff;
  margin-bottom: 0.5em;
  text-align: left;
}

.feature-links {
  display: flex;
  gap: 0.5em;
  margin-top: 0.2em;
}

.feature-link-btn {
  background: #7edfff;
  color: #1c2242;
  border: none;
  border-radius: 8px;
  padding: 0.3em 0.7em;
  font-size: 0.9em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 5px #7edfff88;
  transition: background 0.2s;
}

.feature-link-btn:hover {
  background: #fff;
}

/* Responsive */
@media (max-width: 700px) {
  .section-frame {
    width: 98vw;
    max-width: 98vw;
    padding: 1em 0.2em;
    height: auto;
  }

  .section-card {
    min-width: 97vw;
    max-width: 98vw;
    margin: 0.7em 0;
    padding: 1em 0.3em;
  }
  .book-list {
    gap: 1em;
  }
  .book-card {
    width: 95vw;
    margin-bottom: 1em;
  }
  .feature-list {
    gap: 1em;
  }
  .feature-card {
    width: 95vw;
    margin-bottom: 1em;
  }
}

/* Hide scrollbars for overlay */
.section-expand::-webkit-scrollbar {
  display: none;
}
.section-expand {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.shooting-star {
  position: absolute;
  width: 2px;
  height: var(--shooting-length, 120px);
  background: linear-gradient(0deg, #fff, #7edfff00 70%);
  border-radius: 2px;
  opacity: 0.85;
  transform: rotate(var(--shooting-angle, 75deg)) scaleY(0.5);
  pointer-events: none;
  transition: transform 1.1s cubic-bezier(.4,0,.2,1), opacity 1.1s;
}

.shooting-star.shooting {
  opacity: 0.1;
  transform: rotate(var(--shooting-angle, 75deg)) translateY(var(--shooting-length, 120px)) scaleY(1);
}