/* style.css — retro / Neocities-style layout */

/*=======================
  hide the scroll bar
=======================*/
html, body {
  -ms-overflow-style: none;  /* IE 10+ */
  
}

body::-webkit-scrollbar {
  display: none;  /* Chrome, Safari, Opera */
}


:root{
  --bg: #f6f2f8; /*hidden by gif bg*/
  --panel: #8f626200; /*main panel color*/
  --muted: #502727;
  --accent: #dacbcbe0; /*cursor highlight color*/
  --border: #dd00009c; /*main panel border color*/
  --card-border: #efe6f8; /*right panel border color*/
  --maxw: 980px;
  font-family: "Verdana", Geneva, Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*=======================
  background
=======================*/
html, body {
  height: 100%;
  margin: 0;
  background: url('https://files.catbox.moe/nm0sjb.gif') center center / 800px repeat fixed;
  color: #222222;
  font-size: 15px;
  line-height: 1.4;
}

.bg-fixed {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -1;
  background: url('https://files.catbox.moe/nm0sjb.gif') center center / 800px repeat;
  /* Optional: smooth fade for readability */
  opacity: 1;
}

body.has-bg-fixed, html.has-bg-fixed {
  background: none !important;
}

.wrap {
  max-width: var(--maxw);
  margin: 28px auto;
  padding: 18px;
  border: 0px solid var(--border);
  background: var(--panel);
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  border-radius: 6px;
}




/*==========================
 Header 
===========================*/
header {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 2px dashed #ec1515;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

header img.logo {
  width: 72px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #f0dff0;
  align-items: center;
}

header h1 {
  font-size: 20px;
  margin: 0;
  line-height: 1;
}

header .subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* Make header images responsive */
header img {
  max-width: 100%;
  align-content: center;
  height: auto;
  display: block;
  
}

/* On mobile, stack header content vertically */
@media (max-width: 700px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  header img.logo {
    width: 56px;
    height: 56px;
  }
  /* Ensure title gif doesn't overflow */
  header img:not(.logo) {
    max-width: 90vw;
    height: auto;
  }
}



/* Grid layout */
.grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
}

/* Left column / nav */
nav {
  padding: 8px;
  background: linear-gradient(180deg, #bd5050, #fbf7fbb4);
  border: 0px solid #f0e6f3;
  border-radius: 6px;
}

nav .avatar {
  width: 100%;
  height: 150px;
  background: #100611; 
  border-radius: 6px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #a06ba1;
}

nav .links a,
nav .links a:visited {
  display: block;
  color: #2b1b3a;
  text-decoration: none;
  padding: 6px 4px;
  margin-top: 10px;
  border: 1px double #3b0000;
  font-weight: 600;
}

nav .links a:hover {
  background: var(--accent);
  border-radius: 4px;
}

/* Button-like tags in nav */
nav .tag-list {
  margin-top: 10px;
  font-size: 13px;
}

.btn {
  display: inline-block;
  padding: 6px 8px;
  border: 2px solid #ffe6f0;
  background: #fff;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  color: #4b2b4b;
  margin: 4px 6px 0 0;
}

/* Main content */
.main {
  padding: 10px;
  background: linear-gradient(180deg, #c07373, #fbf7fbb4);
  border: 0px solid var(--card-border);
  border-radius: 6px;
}

.main p {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.4;
  color: rgb(27, 15, 15);
}

/* Top section (announcement + counter) */
.main .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main .top .announce strong { font-size: 15px; }
.main .top .counter {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
}

/* Divider */
hr.sep {
  border: none;
  border-top: 1px dashed #efe6f8;
  margin: 12px 0;
}

/* Microblog list */
.microblog {
  list-style: none;
  padding: 0;
  margin: 0;
}

.microblog li {
  padding: 8px 6px;
  border-bottom: 1px dotted #efe6f8;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.microblog .date {
  font-size: 11px;
  color: var(--muted);
  min-width: 80px;
  flex-shrink: 0;
}

.microblog .entry {
  font-size: 14px;
  line-height: 1.35;
  word-wrap: break-word;
}

/* Release block */
.release {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.release img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #f0e6f3;
}

.release .meta {
  font-size: 13px;
  color: var(--muted);
}

/* Footer of main */
.main footer {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px dashed #eee;
  padding-top: 10px;
}

/* Utility classes */
.text-muted { color: var(--muted); font-size: 12px; }
.center { text-align: center; }

/* Responsive adjustments */
@media (max-width: 700px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  nav .avatar {
    height: 90px;
  }
  header img.logo {
    width: 56px;
    height: 56px;
  }
  .microblog .date { min-width: 64px; font-size: 10px; }
}



/*==============================
  Gallery Grid
==============================*/
/* Masonry via CSS columns (quick, no HTML change) */
.gallery {
  column-count: 3;
  column-gap: 20px;
  margin: 20px 0;
}

/* images behave like blocks inside columns */
.gallery img {
  display: block;               /* removes inline baseline gap */
  width: 100%;
  height: auto;
  margin: 0 0 20px;             /* vertical spacing between items */
  box-sizing: border-box;       /* include border/padding in width */
  border: 3px double #2b2b3d;
  transition: transform 0.2s;
  cursor: pointer;

  /* prevent images from splitting between columns */
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
}

.gallery img:hover {
  transform: scale(1.02);
}

/*===========================================
  Responsive: 1 column for smaller screens
===========================================*/
@media (max-width: 1000px) {
  .gallery {
    column-count: 2;
  }
}



/*====================================================================
  Lightbox styles 
====================================================================*/

.lightbox {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(72, 73, 124, 0.377);
  flex-direction: column;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh; /* Shrink image if too tall */
  border: 4px solid white;
  box-shadow: 0 0 20px black;
  object-fit: contain;
  margin-bottom: 1px;
}



.lightbox-caption {
  margin-top: 0px;
  color: white;
  text-align: center;
  font-size: 1.2em;
  max-width: 80%;
  word-wrap: break-word;
}



/*==========================
  Zoomed-in image styling 
==========================*/

.lightbox-img.zoomed {
  transform: scale(2.9); /* Adjust zoom level here */
  cursor: zoom-out;
  transition: transform 0.3s ease;
  transform-origin: center center;
}

.lightbox-img {
  transition: transform 0.3s ease;
  cursor: zoom-in;
  transform-origin: center center; /* Default, will be overridden */
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
}

.close:hover {
  transform: scale(1.1);
}




/*==========================
  Music player (for buttons)
==========================*/

@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css);
/* Above is the Font Awesome CSS to display the Pause and Play buttons! */

p {
  font-family: monospace;
  margin: 10px 0;
  width: 100%;
  max-width: 500px;
  color: blueviolet;
}

h1 {
  font-family: monospace;
  color: darkblue;
  margin: 0;
}

/* ===== AUTOPLAY ===== */
.buttondiv {
  cursor: pointer;
  position: fixed;
  height: 35px;
  bottom: 5px;
  width: 35px;
  left: 5px;
  color: white;
  z-index: 1;
}

.autoplayer button {
  background: darkblue;
  cursor: pointer;
  color: white;
  border: none;
  padding: 1px 4px 0px 4px;
  font-size: 18px;
  position: fixed;
  height: 35px;
  bottom: 5px;
  width: 35px;
  left: 5px;
}

.autoplayer a {
  background: black;
  color: white;
  text-decoration: none;
  padding: 2px 10px;
  position: fixed;
  font-size: 14px;
  bottom: 5px;
  z-index: 1;
  left: 50px;
  color: white;
}


/*==============
  Footer
==============*/
footer {
  text-align: center;
  font-size: 0.8em;
  color: #888;
  margin-top: 20px;
}
