/* Neocities-friendly CSS (older-browser safe) */

body {
  background-color: #120712;
  background-image: url("Gothback.jpg");
  background-repeat: repeat;
  background-position: left top;
  background-size: 360px auto;
  background-attachment: fixed;
  color: #241224;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  padding: 40px 18px;
}

/* left-side decoration (in the space before sidebar) */
#left-deco {
  position: fixed;
  left: 0;
  bottom: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: calc(100vh - 80px);
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.45));
  border: 0;
  outline: none;
}

/* right-side decoration (in the space after content) */
#right-deco {
  position: fixed;
  right: 0;
  bottom: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: calc(100vh - 80px);
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.45));
  border: 0;
  outline: none;
}

/* keep main UI above the decoration */
#banner,
#container {
  position: relative;
  z-index: 10;
}

/* emoji images in text should not warp lines */
img.emoji {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin: 0 0.1em;
  vertical-align: -0.15em;
  border: 0;
  outline: none;
  box-shadow: none;
  border-radius: 0;
}

/* center "Explore" */
#sidebar h3 {
  text-align: center;
}

/* homepage hero image (Sunny.webp) */
img.hero-img {
  width: auto;
  height: auto;
  max-width: 100%;
  border: 0;
  outline: none;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.35));
}

/* center homepage header */
body.home #content h1 {
  text-align: center;
}

/* hide decoration on smaller screens to prevent overlap */
@media (max-width: 1280px) {
  #left-deco {
    display: none;
  }
  #right-deco {
    display: none;
  }
}

/* banner */
#banner {
  max-width: 1000px;
  margin: 0 auto 18px auto;
  border: 3px solid #2b142b;
  border-radius: 18px;
  background-color: #1a0d1a; /* fallback */
  background-image: url("RiichiCityBanner.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: 0 10px 26px rgba(20, 6, 20, 0.35);
  position: relative;
  overflow: hidden;
}

#banner:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: #120712; /* fallback */
  background: linear-gradient(rgba(18, 7, 18, 0.75), rgba(18, 7, 18, 0.45));
}

#banner-inner {
  padding: 22px 18px;
  text-align: center;
  position: relative;
  z-index: 1;
}

#site-title {
  font-size: 44px;
  letter-spacing: 1px;
  color: #fff2fb;
  text-shadow:
    0 2px 0 #000,
    0 0 18px rgba(255, 160, 220, 0.35);
}

#site-subtitle {
  margin-top: 6px;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f0cfe6;
  text-shadow: 0 1px 0 #000;
}

/* layout */
#container {
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
  gap: 18px;
  align-items: flex-start;
}

/* sidebar */
#sidebar {
  width: 220px;
  background: #ead6ee;
  padding: 18px;

  border-radius: 18px;
  border: 3px solid #2b142b;

  box-shadow: 0 8px 18px rgba(75, 46, 75, 0.18);
  position: relative;
  overflow: hidden;
}

/* subtle texture on sidebar only */
#sidebar:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-image: url("DiamondCheckerPattern.png");
  background-repeat: repeat;
  background-position: center top;
  background-size: 260px auto;
  opacity: 0.14;
  pointer-events: none;
}

/* content */
#content {
  flex: 1;
  background: #f7d6e6;
  padding: 26px;

  border-radius: 18px;
  border: 3px solid #2b142b;

  box-shadow: 0 8px 18px rgba(75, 46, 75, 0.18);
  position: relative;
  overflow: hidden;
}

/* repeating texture inside content panel (won't "break" as it grows) */
#content:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-image: url("DiamondCheckerPattern.png");
  background-repeat: repeat;
  background-position: center top;
  background-size: 320px auto;
  opacity: 0.10;
  pointer-events: none;
}

/* keep content text above the texture */
#content > * {
  position: relative;
  z-index: 1;
}

/* keep sidebar text above its texture */
#sidebar > * {
  position: relative;
  z-index: 1;
}

/* active nav item */
#sidebar a.active {
  background: #2a132a; /* fallback */
  background: linear-gradient(#3a1a3a, #1a0d1a);
  border-color: #120712;
  color: #fff2fb;
  text-shadow: 0 1px 0 #000;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 3px 0 rgba(0, 0, 0, 0.25);
}

#sidebar a.disabled {
  opacity: 0.75;
  cursor: default;
}

/* headers */
h1, h2, h3 {
  color: #2b142b;
  line-height: 1.2;
}

/* slightly more ornate main header */
#content h1 {
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #2b142b;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

/* nicer text rhythm */
p {
  margin: 0.8em 0;
}

/* links (global) */
a {
  color: #6a1f57;
  text-decoration: underline;
}
a:hover {
  color: #8a246f;
}
a:focus {
  outline: 2px dotted #2b142b;
}

/* sidebar links (Web 2.0 glossy buttons; scoped so content links stay inline) */
#sidebar a {
  display: block;
  margin: 10px 0;
  padding: 10px 12px;
  text-decoration: none;
  border-radius: 14px;
  border: 2px solid #2b142b;
  color: #2b142b;

  background: #f6e9f5; /* fallback */
  background: linear-gradient(#ffffff, #f6e9f5 45%, #e6c2dd);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 3px 0 rgba(75, 46, 75, 0.25);
}

#sidebar a:hover {
  background: #fff0fb; /* fallback */
  background: linear-gradient(#ffffff, #fff0fb 45%, #f0bfe0);
}

/* sidebar divider */
#sidebar h3 {
  border-bottom: 2px solid #2b142b;
  padding-bottom: 5px;
}

/* images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 2px solid #b691b6;
  box-shadow: 0 10px 24px rgba(75, 46, 75, 0.14);
  margin: 14px 0;
}

/* lists */
ul {
  padding-left: 1.2em;
}
li {
  margin: 0.4em 0;
}

/* blog */
.blog-intro {
  margin-bottom: 14px;
}

.note {
  padding: 10px 12px;
  border-radius: 14px;
  border: 2px dashed rgba(43, 20, 43, 0.55);
  background: rgba(255, 255, 255, 0.35);
}

.blog-intro .note {
  margin: 10px 0 0 0;
}

.blog-form {
  padding: 14px;
  border-radius: 16px;
  border: 2px solid #2b142b;
  background: #fff0fb; /* fallback */
  background: linear-gradient(#ffffff, #fff0fb 55%, #f0bfe0);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.field-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.field {
  display: block;
  flex: 1;
  margin: 10px 0;
}

.field-date {
  flex: 0 0 170px;
}

.label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2b142b;
  margin-bottom: 6px;
}

input, textarea {
  width: 100%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  color: #241224;
  padding: 10px 10px;
  border-radius: 12px;
  border: 2px solid #2b142b;
  background: #ffffff;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
}

input:focus, textarea:focus {
  outline: 2px dotted #2b142b;
  outline-offset: 2px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn {
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 2px solid #2b142b;
  color: #2b142b;
  background: #f6e9f5; /* fallback */
  background: linear-gradient(#ffffff, #f6e9f5 45%, #e6c2dd);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 3px 0 rgba(75, 46, 75, 0.25);
}

.btn:hover {
  background: #fff0fb; /* fallback */
  background: linear-gradient(#ffffff, #fff0fb 45%, #f0bfe0);
}

.btn:active {
  position: relative;
  top: 1px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 2px 0 rgba(75, 46, 75, 0.25);
}

.btn-ghost {
  background: transparent;
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.35);
}

.posts-title {
  margin-top: 18px;
}

.posts .empty {
  padding: 14px;
  border: 2px dashed #2b142b;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.35);
}

.post {
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 2px solid #2b142b;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 18px rgba(75, 46, 75, 0.14);
}

.post-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid rgba(43, 20, 43, 0.35);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.post-title {
  font-size: 20px;
  color: #2b142b;
  font-weight: bold;
}

.post-date {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2b142b;
  opacity: 0.9;
  white-space: nowrap;
}

.post-body {
  white-space: normal;
}

.post-media {
  margin: 10px 0 12px 0;
}

.post-img {
  display: block;
  max-width: 100%;
  height: auto;
}

.emoji {
  width: auto;
  height: 1em;
  vertical-align: middle;
}

/* gallery */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.back-btn {
  display: inline-block;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 14px;
  border: 2px solid #2b142b;
  color: #2b142b;
  background: #f6e9f5; /* fallback */
  background: linear-gradient(#ffffff, #f6e9f5 45%, #e6c2dd);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 3px 0 rgba(75, 46, 75, 0.25);
}

.back-btn:hover {
  background: #fff0fb; /* fallback */
  background: linear-gradient(#ffffff, #fff0fb 45%, #f0bfe0);
}

.folder-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.folder {
  display: block;
  width: 280px;
  max-width: 100%;
  text-decoration: none;
  border-radius: 16px;
  border: 2px solid #2b142b;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 18px rgba(75, 46, 75, 0.12);
  padding: 14px 14px;
}

.folder:hover {
  background: rgba(255, 255, 255, 0.60);
}

.folder-icon {
  font-size: 28px;
  line-height: 1;
}

.folder-title {
  margin-top: 6px;
  font-size: 22px;
  font-weight: bold;
  color: #2b142b;
}

.folder-sub {
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2b142b;
  opacity: 0.85;
}

.img-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.img-item {
  width: 220px;
}

.img-tile {
  display: block;
  width: 220px;
  height: 160px;
  border-radius: 16px;
  border: 2px solid #2b142b;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 18px rgba(75, 46, 75, 0.12);
}

.img-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.img-tile:hover {
  border-color: #120712;
  box-shadow:
    0 0 0 2px rgba(255, 240, 251, 0.9),
    0 0 18px rgba(255, 160, 220, 0.6),
    0 8px 18px rgba(75, 46, 75, 0.25);
}

.img-meta {
  margin-top: 6px;
  font-size: 13px;
  color: #2b142b;
}

.img-name {
  font-weight: bold;
}

.img-date {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.85;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.thumb {
  display: block;
  width: 240px;
  max-width: 100%;
  text-decoration: none;
  border-radius: 16px;
  border: 2px solid #2b142b;
  background: rgba(255, 255, 255, 0.40);
  box-shadow: 0 8px 18px rgba(75, 46, 75, 0.12);
  overflow: hidden;
}

.thumb:hover {
  border-color: #120712;
  box-shadow:
    0 0 0 2px rgba(255, 240, 251, 0.9),
    0 0 18px rgba(255, 160, 220, 0.6),
    0 8px 18px rgba(75, 46, 75, 0.25);
}

.thumb img {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.cap {
  padding: 10px 12px;
  color: #2b142b;
  font-weight: bold;
}

/* links page */
.links-list {
  margin-top: 16px;
}

.link-item {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 16px;
  border: 2px solid #2b142b;
  background: rgba(255, 255, 255, 0.45);
}

.link-name {
  font-weight: bold;
  color: #2b142b;
}

.link-url {
  margin-top: 4px;
}

.link-note {
  margin-top: 4px;
  font-size: 14px;
}

/* faq */
.faq {
  margin-top: 12px;
}

.qa {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 2px solid #2b142b;
  background: rgba(255, 255, 255, 0.45);
}

.q {
  font-weight: bold;
  margin-bottom: 6px;
  color: #2b142b;
}

.a code {
  font-family: "Courier New", monospace;
  font-size: 0.95em;
}

/* guestbook */
.sign {
  padding: 12px 14px;
  border-radius: 16px;
  border: 2px solid #2b142b;
  background: linear-gradient(#ffffff, #fff0fb 55%, #f0bfe0);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
  margin-top: 12px;
}

.sign-title {
  font-weight: bold;
  color: #2b142b;
  margin-bottom: 6px;
}

.gb-entry {
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 2px solid #2b142b;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 18px rgba(75, 46, 75, 0.14);
}

.gb-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid rgba(43, 20, 43, 0.35);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.gb-name {
  font-size: 18px;
  font-weight: bold;
  color: #2b142b;
}

.gb-date {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2b142b;
  opacity: 0.9;
  white-space: nowrap;
}

.gb-body {
  white-space: normal;
}

/* guestbook embed */
.gb-embed {
  margin-top: 12px;
  border-radius: 16px;
  border: 2px solid #2b142b;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
}

.gb-embed iframe {
  display: block;
  width: 100%;
  height: 900px;
  border: 0;
}

/* mobile */
@media (max-width: 820px) {
  #container {
    flex-direction: column;
  }
  #sidebar {
    width: auto;
  }
  body {
    padding-top: 22px;
  }
  #site-title {
    font-size: 36px;
  }
  .field-row {
    flex-direction: column;
    align-items: stretch;
  }
  .field-date {
    flex: 1;
  }
}

