/* ─── Base Reset & Typography ─── */
:link, :visited {
  text-decoration: none;
  outline: none;
}
ul, ol {
  list-style: none;
}
ul, ol, li, h1, h3, h4, h5, h6, blockquote, pre, form, body, html, fieldset, input {
  margin: 0;
  padding: 0;
}
a img, :link img, :visited img {
  border: none;
}
address {
  font-style: normal;
}

/* ─── Global Body Settings ─── */
body {
  text-align: left;
  color: #676767;
  background-color: #f0f0f0;
  font: 62.5% "Lucida Grande", "Lucida Sans", "Trebuchet MS", Tahoma, Geneva, Arial, Helvetica, sans-serif;
  min-width: 1420px;
  min-height: 920px;
  overflow: auto;

}

/* ─── Custom Font ─── */
@font-face {
  font-family: 'Y1BunanMarker';
  src: url('https://charadri.us/res/Y1BunanMarkerRegular.eot');
       url('https://charadri.us/res/Y1BunanMarkerRegular.woff') format('woff'),
       url('https://charadri.us/res/Y1BunanMarkerRegular.ttf') format('truetype'),
       url('https://charadri.us/res/Y1BunanMarkerRegular.svg') format('svg');
  font-weight: normal;
  font-style: normal;
}

/* ─── Background Image (#bg2) ─── */

#bg2 {
  background: url(https://charadri.us/res/bg1-edit.png) no-repeat;
  top: 0;
  left: 0;
  height: 877px;
  width: 789px;
  margin-top: 0;
  z-index: -1;            /* behind other elements */
  pointer-events: none;   /* don’t block scrollbars */
}


/* ─── Wrapper: Fixed Desktop Layout Container ─── */
#wrapper {
  position: relative;
  width: 1920px;
  height: 1080px;  /* Set this to your design’s full height */
  margin: 0 auto;
}


a:link, a:visited {
	color: #000000;
}
	
a:hover, a:active {
	color: #000000;
}

/* ─── Navigation (#navi) ─── */
/* Changed from fixed to absolute relative to #wrapper */
#navi {
  position: absolute;
  top: 555px;
  left: 758px;  /* 39.5% of 1920 is about 758px */
  transform: translateX(-50%);
  padding: 30px 0;
  font: 2.85em Y1BunanMarker, "Lucida Grande", "Lucida Sans", Verdana, sans-serif;
  text-align: center;
  font-weight: bold;
}
#navi a {
  margin: 0 13px;
  color: #eacb90;
}
#navi a:hover,
#navi a:active {
  border-bottom: 4px solid #fedb5d;
  border-top: 4px solid #fedb5d;
  text-decoration: none;
}


/* ─── Main Content (#main) ─── */
/* Changed from fixed to absolute relative to #wrapper */
#main {
  position: absolute;
  top: 50px;
  left: 870px;
  width: 507px;
  height: 650px;  /* Inner content scrolls vertically */
  overflow-y: auto;
  /* Allow a small horizontal scroll if content overflows */
  overflow-x: auto;
  /* Extra right padding gives a slight margin for horizontal scroll */
  padding: 10px 20px 10px 10px;
  box-sizing: border-box;
  line-height: 16px;
  text-align: justify;
  font-size: 1.3em;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}


 .spoiler {
  filter: blur(5px);
  cursor: pointer;
  transition: filter 0.3s ease;
}

.spoiler.revealed {
  filter: blur(0);
}


#main a:link, #main a:visited {
border-bottom: 2px solid #fedb5d;
 }
#main a:hover {
	border-color: #b8e2f3;
}

#main a.no-border {
  border-bottom: none;
}

#main a:has(> img) {
  border-bottom: none;
}

 blockquote {padding: 10px 20px 10px 20px; margin-top: 10px; margin-bottom: 10px;
	 color: #ffffff; background-color: #000000;
	 	font: 1.4em "Futura", "Lucida Grande", "Lucida Sans", "Trebuchet MS", Tahoma, Geneva, Arial, Helvetica, sans-serif;

 }
 
blockquote a:link, blockquote a:visited,  blockquote b {
  	color: #c8ab8f; border-bottom: 0 !important;
	  font-weight: normal;
  }

i, em {color: #94c6e8; }
b {color: #8e8ed5;}

@media (max-width: 768px) {
  /* Enable page scrolling on mobile */
  html, body {
    overflow: auto;
  }
  
  /* Make #navi responsive for mobile */
  #navi {
    position: relative;       /* Remove fixed positioning */
    top: 175px;                /* Reset top */
    left: auto;               /* Reset left */
    transform: none;          /* Remove transform */
    padding: 20px 0;          /* Use a simpler, vertical padding */
    margin: 0 auto;           /* Center the nav container */
    display: flex;            /* Use flex to lay out the links */
    flex-wrap: wrap;          /* Allow wrapping if needed */
    justify-content: center;  /* Center the nav items */
    font-size: 1.8em;         /* Scale down the font size if necessary */
  }
  
  /* Adjust spacing for nav links */
  #navi a {
    margin: 10px 15px;        /* Add horizontal spacing between links */
  }
  
  /* Adjust the main content container */
  #main {
    width: 95%;               /* Use most of the viewport width */
    height: auto;             /* Let the content height adjust naturally */
    margin: 20px auto;        /* Center it and add vertical spacing */
  }
}



/* ─── Subcontent (#subcontent) – Items Below #main ─── */
/* Changed from fixed to absolute relative to #wrapper */
#subcontent {
  position: absolute;
  top: calc(40px + 650px + 20px); /* 50px (top of #main) + 600px (height of #main) + 20px gap */
  left: 870px;
  width: 507px;
  text-align: center;
}

/* ─── Alternative Quote Style (instead of <blockquote>) ─── */
.quote {
  padding: 10px 20px;
  margin: 10px 0;
  background-color: #000;
  color: #fff;
  font: 1.4em "Futura", "Lucida Grande", "Lucida Sans", "Trebuchet MS", Tahoma, Geneva, Arial, Helvetica, sans-serif;
}

/* ─── Headings ─── */
h1 {
  margin: 4px 0 6px 20px;
  color: #ffffff;
  background-color: #0f0f0f;
  font-size: 1.4em;
  border-bottom: 5px solid transparent;
  font-weight: normal;
  font-family: "Oswald", "Lucida Grande", "Lucida Sans", "Trebuchet MS", Tahoma, Geneva, Arial, Helvetica, sans-serif;
}


.gallery {
	text-align: left;
}
.gallery img {
	padding: 3px; border: 3px solid #f8f3f9;
}
.gallery a:link, .gallery a:visited {
	border-bottom: 0 !important;
}
.gallery img:hover {border-color: #88ced0;}

