/* --- 1. STATIC CUSTOM CURSOR --- */
html {
  /* A classic pixel-art 'point' cursor */
  cursor:
    url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' stroke='%23000000' stroke-width='1.5' d='M7,2 L7,22 L11,18 L14,24 L17,22 L14,16 L20,16 L7,2 Z'/%3E%3C/svg%3E"),
    auto;
}

/* --- 2. BASE AESTHETICS --- */
body {
  margin: 0;
  padding: 20px;
  /* Classic Tiled Background (Dots) */
  background-image: url("images/bg4.jpeg");
  background-repeat: repeat;

  font-family: "Times New Roman", Times, serif;
  color: #000;
  line-height: 1.4;
}

.footnote {
  font-size: small;
}

.center {
  vertical-align: middle;
}
/* --- 3. THE LAYOUT CONTAINER --- */
.wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  border: 2px solid #000;
  box-shadow: 8px 8px 0px #808080;
  display: flex;
  flex-direction: column;
}

/* Header Area */
header {
  background: #000080; /* Classic Navy Blue */
  color: #fff;
  padding: 20px;
  text-align: center;
  border-bottom: 2px solid #000;
}

header h1 {
  margin: 0;
  font-size: 2.5em;
  letter-spacing: 1px;
  text-transform: none;
}

/* Main Content Split */
.columns {
  display: flex;
  min-height: 400px;
}

/* Sidebar Navigation */
nav {
  width: 180px;
  background: #f0f0f0;
  border-right: 2px solid #000;
  padding: 15px;
}

nav h3 {
  font-size: 1em;
  text-decoration: underline;
  margin-top: 0;
}

nav ul {
  list-style: square;
  padding-left: 20px;
  list-style-type: "☆ ";
}

nav li {
  margin-bottom: 8px;
}

nav a {
  color: #0000ff;
  text-decoration: none;
}

nav a:hover {
  background: #0000ff;
  color: #fff;
}

/* no hover effect for the FC2 clap button */
nav a.clap-button:hover {
  background: none;
}

.nav-icon {
  vertical-align: middle;

  margin-right: 4px;
}
/* Content Area */
main {
  flex: 1;
  padding: 20px;
  background: #fff;
}

h2 {
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
  color: #800080; /* Deep Purple */
}

h3 {
  font-size: 20px;
}

/* Status Box */
.status-box {
  border: 1px inset #ccc;
  background: #fafafa;
  padding: 10px;
  margin: 15px 0;
  font-size: 0.9em;
}

/* File grid */

.file-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.file-icon {
  width: 80px;
  text-align: center;
  text-decoration: none;
}

.file-icon img {
  display: block;
  margin: 0 auto 6px;
}

.file-icon:hover span {
  background: #0000ff;
  color: #fff;
}

/* --- 4. FOOTER & BUTTONS --- */
footer {
  background: #c0c0c0;
  border-top: 2px solid #000;
  padding: 15px;
  text-align: center;
  font-size: 0.8em;
}

.button-grid {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

.button-grid img {
  width: 88px;
  height: 31px;
  image-rendering: pixelated;
  border: 1px solid #000;
}

.post-image {
  padding: 5px;
  text-align: center;
  font-size: 0.8em;
  display: block;
}
.post-image img {
  max-width: 100%;
  max-height: 500px;
  width: auto;
  height: auto;
  margin-bottom: 4px;
  display: block;
}

.post-image.pair {
  /* the container — arranges its children in a row */
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* --- MOBILE TWEAKS --- */
@media (max-width: 600px) {
  .columns {
    flex-direction: column;
  }
  nav {
    width: auto;
    border-right: none;
    border-bottom: 2px solid #000;
  }
}

/* --- GALLERY --- */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.gallery a {
  border: 2px solid #000;
  background: #f0f0f0;
  padding: 5px;
  text-align: center;
  font-size: 0.8em;
}

.gallery a:hover {
  background: #fff;
}
.gallery img {
  max-height: 150px;
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  border: 1px solid #000;
  margin: 0 auto 4px;
}

.gallery-pair {
  display: flex;
  gap: 4px;
  justify-content: center;
}

summary h3 {
  display: inline;
  margin: 0;
}
summary {
  cursor: pointer;
  margin: 1em 0;
}

.gallery img.icon {
  height: auto;
  width: auto;
  display: inline;
  border: none;
  margin: 0;
  vertical-align: middle;
}
