/* Shared site styles for generated HTML files (moved to assets/) */
body {
  font-family: system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  padding: 48px;
  min-height: 100vh;
  color: #fff;
  margin: 0;
  background-color: #00000000;
  /* Fountain image lives in the same assets/ folder as this stylesheet */
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#mobilecontent
{
    position:absolute; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    top: 0px; 
    background-color: #000000FF;
    overflow: hidden;
}

/* Hide scrollbars across browsers but preserve scrolling */
html, body {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none;   /* Firefox */
}
html::-webkit-scrollbar, body::-webkit-scrollbar {
  width: 0;  /* Safari/Chrome/WebKit */
  height: 0;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2 {
  margin-top: 1.1em;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
}

blockquote {
  margin: 0 0 1em 0;
  padding-left: 1em;
  color: #555;
  border-left: 4px solid #eee;
}

code {
  background: #191919;
  padding: 0.12em 0.3em;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
}

figure { margin: 0; }
figcaption { color: #666; font-size: 0.95em; }

/* Page content container kept on the left so it doesn't overlap white parts */
.content {
  position: static;
  max-width: 48%;
  padding: 28px;
  box-sizing: border-box;
  background: rgba(0,0,0,0.45); /* semi-opaque panel for legibility */
  color: #f1f1f1;
  border-radius: 8px;
  margin-left: 6vw;
}

/* Make sure links and headings contrast well against the background overlay */
.content h1, .content h2, .content h3 { color: #e2eaec; }
.content a { color: #ffd966; text-decoration: underline; }


/* On narrow viewports stack content and shrink background image */
@media (max-width: 900px) {
  body { background-size: cover; background-position: top center; }
  .content { max-width: 92%; margin-left: auto; margin-right: auto; background: rgba(0,0,0,0.6); }
}

/* Home button placed on non-index pages */
.home-button {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.home-button:focus,
.home-button:hover {
  background: rgba(0,0,0,0.75);
}

@media (max-width: 480px) {
  .home-button { top: 12px; right: 12px; padding: 6px 10px; }
}

/* Simple fixed nav on the index page */
.nav-menu {
  /* place nav inline above content, centered with the content margin */
  position: relative;
  display: flex;
  flex-direction: row; /* lay out buttons horizontally */
  gap: 12px;
  z-index: 1000;
  margin: 8px 6vw;
}
.nav-menu a {
  background: rgba(255,255,255,0.12);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.nav-menu a:hover, .nav-menu a:focus {
  background: rgba(255,255,255,0.2);
}

@media (max-width: 900px) {
  .nav-menu { margin: 8px 6vw; gap: 8px; }
  .nav-menu a { padding: 6px 10px; }
}

@media (max-width: 480px) {
  .nav-menu { justify-content: center; margin: 12px 4vw; }
  .nav-menu a { padding: 6px 8px; font-size: 0.95em; }
}

/* Right-side variant for pages that should show the vertical menu on the right */
.nav-menu.right {
  /* right-variant: align to the right edge of content area */
  justify-self: end;
  margin-left: auto;
  margin-right: 6vw;
}

@media (max-width: 480px) {
  .nav-menu.right { right: 12px; left: auto; }
}

/* Side image positioned to the right of the main content on wide viewports */
.side-image {
  position: absolute;
  top: 15%;
  right: 25vw; /* moved closer to content (was 6vw) */
  width: 25%; /* reduced from 40% to make image ~50% smaller */
  max-width: 340; /* halved from 480px */
  z-index: 600;
}
.side-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Hide side image on smaller screens to avoid layout conflicts */
@media (max-width: 900px) {
  .side-image { display: none; }
}

