/* ===== Hill House Style - Pink Aesthetic Personal Website ===== */

/* Custom Font Faces - matching original Hill House */
@font-face {
  font-family: 'Latin Modern Mono';
  src: url('fonts/LMM-reg.otf');
}
@font-face {
  font-family: 'Latin Modern Mono';
  font-weight: bold;
  src: url('fonts/LMM-b.otf');
}
@font-face {
  font-family: 'Latin Modern Mono';
  font-style: italic;
  src: url('fonts/LMM-i.otf');
}
@font-face {
  font-family: 'Latin Modern Mono';
  font-weight: bold;
  font-style: italic;
  src: url('fonts/LMM-bi.otf');
}
@font-face {
  font-family: 'nyquil';
  src: url('fonts/NyQuil.ttf');
}
@font-face {
  font-family: 'connie';
  src: url('fonts/Connie-LGWE.ttf');
}

:root {
  --black: #5b3a53;
  --dark: #a63356;
  --med: #ef5077;
  --pink: #FD94BD;
  --gray: #a58292;
  --light: #fdc6d3;
  --lighter: #FFDBEB;
  --white: #FFF3F4;
  --blackrgb: 91, 58, 83;
  --darkrgb: 166, 51, 86;
  --medrgb: 239, 80, 119;
  --lightrgb: 255, 219, 235;
  --whitergb: 255, 232, 225;
  --cursive: 'nyquil';
  --secondaryfont: serif, inherit;
}

/* ===== Base Reset & Scrollbar ===== */
* {
  box-sizing: border-box;
  scrollbar-color: var(--med) transparent;
}

html {
  min-width: 1000px;
}

body::-webkit-scrollbar {
  width: 10px;
}
body::-webkit-scrollbar-track {
  background-color: var(--light);
}
body::-webkit-scrollbar-thumb {
  background-color: var(--med);
  outline: 1px solid var(--dark);
  border-radius: 5px;
}

/* ===== Body Background ===== */
body {
  background-color: var(--light);
  background-image: 
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="6" height="6"><circle cx="3" cy="3" r="0.7" fill="%23f0a0b8" opacity="0.3"/></svg>');
  background-attachment: fixed;
  font-family: 'Latin Modern Mono', monospace;
  letter-spacing: -0.3px;
  font-size: 15px;
  line-height: 1.1em;
  color: black;
  min-width: 1000px;
  overflow-x: auto;
  z-index: 0;
  margin: 0;
  padding: 0;
}

/* ===== Container ===== */
#container {
  width: 950px;
  min-width: 950px;
  max-width: 950px;
  margin: 0 auto;
  padding-top: 10px;
  position: relative;
  z-index: 0;
}

main {
  min-height: 100vh;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 0;
}

/* ===== Roof ===== */
img.roof {
  margin: 0 auto;
  margin-bottom: -5px;
  max-height: 450px;
  width: 100%;
  display: block;
}

/* ===== House Interior ===== */
.house {
  background-color: var(--light);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 19px,
      rgba(239, 80, 119, 0.08) 19px,
      rgba(239, 80, 119, 0.08) 20px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 19px,
      rgba(239, 80, 119, 0.08) 19px,
      rgba(239, 80, 119, 0.08) 20px
    );
  color: black;
  height: auto;
  min-height: 200px;
  width: 88.7%;
  margin: 0 5.5%;
  display: inline-block;
  border-radius: 0px 0px 5px 5px;
  border-bottom: 20px var(--med) solid;
  border-left: 10px #201a0b solid;
  border-right: 10px #201a0b solid;
  padding: 25px 3%;
  padding-top: 40px;
  z-index: -5;
  position: relative;
}

/* Lace top border for house */
.house::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: repeating-linear-gradient(
    90deg,
    var(--med) 0px,
    var(--med) 3px,
    transparent 3px,
    transparent 6px
  );
  opacity: 0.3;
  mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="30"><path d="M0,30 Q10,0 20,30 Q30,0 40,30" fill="white"/></svg>');
  mask-size: 40px 30px;
  mask-repeat: repeat-x;
}

/* ===== Flex Layout System ===== */
.flex {
  display: flex;
  flex-flow: row wrap;
  max-width: 100%;
  justify-content: center;
  align-items: center;
  align-content: center;
}

.med, .small, .extra.small, .big {
  position: relative;
  max-width: 100%;
}

.min {
  max-width: fit-content;
  width: fit-content;
  padding: 10px 20px;
  position: relative;
}

.flex .med { flex: 2 1 50%; }
.flex .small {
  flex: 1 1 45%;
  min-width: 200px;
  max-width: 100%;
  align-self: center;
}
.flex .extra.small {
  flex: 1 3 30%;
  margin: 0px;
  padding: 10px;
  min-width: 150px;
}
.flex .big { flex: 3 0 100%; }
.flex .bottom {
  align-self: flex-end !important;
  justify-self: flex-end !important;
}
.flex img { object-fit: contain; }

/* ===== Articles ===== */
article {
  background-image:
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="6" height="6"><circle cx="3" cy="3" r="0.5" fill="%23f0a0b8" opacity="0.15"/></svg>');
  background-color: var(--white);
  color: var(--black);
  border: 1px var(--med) solid;
  border-radius: 4px;
  padding: 10px 20px;
  margin: 30px 10px;
  max-width: 350px;
  position: relative;
  z-index: 10;
}

article.pink, #updates article:first-of-type {
  background-color: var(--lighter);
  color: black;
}
article.pink a, #updates article:first-of-type a {
  text-decoration-color: var(--white);
}
article.pink b, #updates article:first-of-type b {
  color: var(--black);
}

article.note {
  background-color: var(--light);
  width: 130px;
  max-width: 130px;
  max-height: 140px;
  padding: 2px;
  text-align: center;
  position: absolute;
  bottom: -85px;
  right: 0;
  margin: -30px;
  font-size: .9em;
  line-height: 1em;
  z-index: 1;
  color: black;
}

/* ===== Typography ===== */
.cursive {
  font-family: var(--cursive);
  font-size: 19px;
}
.cursive img { max-height: 15px; }

.secondary { font-family: var(--secondaryfont); }

h1 {
  font-family: 'connie';
  color: var(--med);
  margin: 20px;
}

a {
  color: var(--med);
  text-decoration: underline wavy var(--light);
  text-decoration-thickness: 1.5px;
  padding: 1px 3px;
  margin: 0px -3px;
  transition: all 0.2s ease;
}
a:hover {
  background: transparent;
  color: var(--dark);
  text-decoration-color: var(--med);
}

b {
  color: var(--med);
  font-size: 1.1em;
}
i { color: var(--dark); }
u {
  color: var(--dark);
  font-style: italic;
  text-decoration: underline dashed var(--med);
}

hr {
  border: none;
  margin: 10px auto;
  height: 18px;
  width: 226px;
  max-width: 100%;
  display: block;
  background: linear-gradient(90deg, transparent 0%, var(--pink) 20%, var(--med) 50%, var(--pink) 80%, transparent 100%);
  mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="226" height="18"><text x="50%25" y="14" text-anchor="middle" font-size="16">♥ ─── ♡ ─── ♥ ─── ♡ ─── ♥</text></svg>');
  mask-size: contain;
  mask-repeat: no-repeat;
}

img {
  max-width: 100%;
  position: relative;
}

.center { text-align: center; }

/* ===== Shadow ===== */
.shadow {
  filter: drop-shadow(0px 0px 5px rgba(var(--darkrgb), 0.5));
}

/* ===== Title Image Area ===== */
.titleimg {
  position: absolute;
  z-index: -18;
  height: 400px;
  max-height: 510px;
  max-width: 500px;
  width: 400px;
  top: -50px;
  left: -40px;
  transform: rotate(-13deg);
}
.titleimg.doily { z-index: -18; }
.titleimg.title { z-index: 1000; }
.titleimg img {
  position: relative;
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.titleimg h1 {
  position: absolute;
  line-height: 1.3em;
  letter-spacing: .05em;
  margin: 0 auto;
  text-transform: uppercase;
  color: var(--med);
  text-align: center;
  text-shadow:
    0.5px 0.5px 0 var(--black),
    -0.5px -0.5px 0 var(--black),
    0.5px -0.5px 0 var(--black),
    -0.5px 0.5px 0 var(--black),
    -1px -1px 0 var(--white),
    1px -1px 0 var(--white),
    -1px 1px 0 var(--white),
    1px 1px 0 var(--white);
  left: 15%;
  font-size: 36px;
  top: 28%;
  width: 70%;
  transition: text-shadow .9s ease-out;
}
.titleimg h1:hover {
  text-shadow:
    1px 1px 0 var(--black),
    -1px -1px 0 var(--black),
    1px -1px 0 var(--black),
    -1px 1px 0 var(--black),
    -1px -1px 0 var(--white),
    1px -1px 0 var(--white),
    -1px 1px 0 var(--white),
    1px 1px 0 var(--white),
    0 0 15px var(--pink);
}

/* ===== Doily Heart (Title Background) ===== */
.doily-heart {
  width: 350px;
  height: 350px;
  position: relative;
}
.doily-heart svg {
  width: 100%;
  height: 100%;
}

/* ===== Stickers (Side Decorations) ===== */
.stickers {
  position: absolute;
  max-width: 20%;
  height: 95%;
  max-height: 95%;
  text-align: center;
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  align-items: center;
  align-content: space-between;
}
.stickers.left {
  left: -8%;
  top: 140px;
}
.stickers.right {
  right: -8%;
}
.stickers img {
  max-height: 200px;
  object-fit: contain;
  position: relative;
  filter: drop-shadow(-2px 5px 5px rgba(var(--darkrgb), 0.7));
  z-index: 1;
}
.stickers img.big {
  max-height: 350px;
  margin: -5px;
  max-width: 250px;
}
.stickers img.small {
  max-height: 160px;
  margin: -40px -50px;
}

img.behind, .behind { z-index: -10 !important; }
.lefter { left: -50px; }
.leftest { left: -100px; top: 10px; }
.righter { right: -30px; }
.rightest { right: -75px; bottom: -20px; }

.sticker { position: absolute; }
.sticker.rightside {
  height: 170px;
  right: -50px;
  bottom: -75px;
  z-index: 1;
}
.sticker.leftside {
  height: 180px;
  left: -50px;
  bottom: 17px;
  z-index: 100;
}
.sticker.bottom { bottom: -10px; }
.sticker.tilted, img.tilted { transform: rotate(-10deg); }

img.tape {
  position: absolute;
  max-height: 60px;
  top: -43px;
  right: 0px;
  z-index: 1;
  filter: drop-shadow(0px 2px 1px rgba(var(--darkrgb), 0.5));
}

/* ===== Hover Effects ===== */
.hovertilt:hover { transform: rotate(-2deg); }
.hovertiltimg:hover > img { transform: rotate(-2deg); }
.hoverglow img { transition: .3s; }
.hoverspin:hover {
  transform: rotate(360deg);
  transition: .7s ease;
}
.hoverswing {
  animation-name: swing;
  animation-duration: 2s;
  animation-iteration-count: 1;
  animation-timing-function: ease;
  transform-origin: top center;
}
@keyframes swing {
  20% { transform: rotate(10deg); }
  40% { transform: rotate(-11deg); }
  60% { transform: rotate(5deg); }
  80% { transform: rotate(-6deg); }
  100% { transform: rotate(0deg); }
}

/* ===== Lace Border for articles ===== */
.slace {
  border-color: var(--pink);
  border-width: 8px;
  border-style: double;
  border-image: none;
  box-shadow: 
    inset 0 0 0 1px var(--lighter),
    0 0 0 2px var(--pink);
}

.lacehr {
  display: inline-block;
  height: 30px;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 8px,
    var(--pink) 8px,
    var(--pink) 10px,
    transparent 10px,
    transparent 18px
  );
  opacity: 0.4;
}

/* ===== Intro Section ===== */
article.intro {
  font-size: 1.1em;
  margin-bottom: 70px !important;
  margin-top: 30px !important;
}

/* ===== Buttons ===== */
.buttons img {
  margin: 5px;
  image-rendering: pixelated;
}
.buttons a:hover {
  filter: drop-shadow(0px 0px 5px rgba(var(--darkrgb), 0.5));
}

/* ===== Navigation ===== */
#navimg img:hover {
  transform: rotate(6deg);
}
#navimg img:hover, .hoverglow img:hover {
  transition: .2s;
  filter: drop-shadow(0px 0px 5px var(--med));
}

article#homenav {
  flex: 1 0 180px;
  padding: 5px 10px;
  padding-bottom: 0px;
  border: 2px var(--med) dashed;
  background-color: var(--light);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 19px,
      rgba(239, 80, 119, 0.1) 19px,
      rgba(239, 80, 119, 0.1) 20px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 19px,
      rgba(239, 80, 119, 0.1) 19px,
      rgba(239, 80, 119, 0.1) 20px
    );
}

#homenav h1 {
  position: absolute;
  font-size: 35px;
  line-height: 1em;
  top: -55px;
  left: -20px;
  width: 100%;
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-character;
}

#navimg {
  flex: 1 10 50px;
  align-self: baseline;
  padding-top: 40px;
  text-align: center;
}
#navimg > img { max-width: 100px; }
#navimg img {
  max-width: 90px;
  height: 120px;
  object-fit: contain;
  vertical-align: middle;
  margin: 10px auto;
  filter: drop-shadow(0px 0px 2px var(--white));
  position: relative;
  cursor: pointer;
}

#nav > div:not(#nav > div.navme, details.return #nav > div) {
  display: none;
}
#nav {
  max-height: 370px;
  overflow-y: scroll;
}
#nav a {
  display: block;
  width: 100%;
  max-width: 100%;
  word-wrap: break-word;
  break-inside: avoid;
  background: var(--light);
  color: var(--dark);
  text-decoration: none;
  padding: 5px;
  text-align: center;
  margin: 8px auto;
  transition: all 0.2s ease;
}
#nav a:hover {
  color: var(--lighter);
  background: var(--gray);
  font-style: italic;
}

.navcontent img, img.navplaceholderimg {
  max-width: 60px;
  display: block;
  margin: 15px auto;
}

#nav h4 {
  display: block;
  color: var(--dark);
  font-family: var(--cursive);
  font-size: 1.5em;
  text-align: center;
  margin: 10px auto;
}

/* ===== Nav Container ===== */
.navcontainer.flex {
  flex-flow: row;
  flex: 2 1 380px;
  position: relative;
  z-index: 20;
}

/* ===== Top Flex ===== */
.topflex {
  padding: 20px 15%;
  align-content: space-between;
  justify-content: space-between;
  align-items: space-between;
}

/* ===== Home Sweet Home ===== */
.homesweethome {
  text-align: right;
  z-index: 2;
}
.homesweethome img {
  margin: 20px -20px;
  margin-left: auto !important;
  display: block;
  max-width: 200px;
}

/* ===== Currently Section ===== */
.currently {
  line-height: 1.5em;
  flex: 1 4 200px;
  max-width: 350px;
  margin-left: 20px;
  position: relative;
  margin-bottom: 40px;
}
.currently::before {
  content: " ";
  display: block;
  height: 100%;
  width: 2px;
  position: absolute;
  top: 20px;
  left: 1px;
  z-index: -9;
  border-left: var(--med) 30px solid;
  outline: 1px solid var(--light);
  outline-offset: -20px;
}
.currently .cursive {
  color: var(--med);
  font-size: 2em;
  line-height: .2em;
  margin-bottom: -.7em;
  z-index: 2;
  position: relative;
  display: block;
}
.currently u { margin-left: 40px; }
.currently span, .nowplaying {
  background: var(--white);
  display: table;
  border: 1px var(--lighter) solid;
  border-radius: 5px;
  line-height: 1em;
  padding: 2px 5px;
  width: auto;
  margin: 5px;
  z-index: 10;
}
.currently span:nth-of-type(even), .nowplaying {
  background: var(--lighter);
  border: 1px var(--white) solid;
}
.currently span:hover { background: var(--pink); }
.currently i {
  font-family: var(--secondaryfont);
  margin: 0 .5em;
}

/* ===== Now Playing ===== */
.nowplaying {
  text-transform: lowercase;
  position: absolute;
  bottom: 155px;
  right: -20px;
  max-width: 300px;
  background: var(--light);
  border-color: var(--pink);
  box-shadow: 2px 2px var(--pink);
}
.nowplaying > *, .nowplaying a {
  display: inline;
  text-decoration-color: var(--black);
  text-underline-offset: 5px;
}
.nowplaying i {
  font-family: var(--cursive);
  margin: 0 .5em;
}
.nowplaying img {
  max-height: 1em;
  vertical-align: middle;
}

/* ===== Status ===== */
article.status {
  margin: 0px;
  margin-left: -10px;
  max-width: 280px !important;
  padding: 10px;
  border: 2px double white;
  outline: 8px dotted white;
  outline-offset: -4px;
  background-color: var(--lighter);
  background-image: 
    radial-gradient(circle at 30% 40%, rgba(253, 148, 189, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(239, 80, 119, 0.15) 0%, transparent 50%);
}
article.statusinside {
  margin: 0;
  padding: 15px;
  min-width: 150px;
  color: var(--dark);
  line-height: 1em;
  border: dashed var(--med) 1px;
  background: rgba(var(--whitergb), .9);
  position: relative;
}
article.statusinside::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background-color: inherit;
  border-top: inherit;
  border-right: inherit;
  border-radius: 2px;
  border-bottom-left-radius: 50%;
  rotate: -135deg;
  position: absolute;
  top: calc(50% - 10px);
  left: -10px;
}

#statuscafe-username, .statuscafe-more {
  display: inline;
  position: absolute;
  background: var(--light);
  color: var(--dark);
  padding: 2px 10px;
  font-family: var(--cursive);
}
#statuscafe-username {
  left: 0;
  top: 5px;
  border-radius: 0px 4px 4px 0px;
  max-width: 200px;
}
.statuscafe-more {
  right: 0;
  bottom: 5px;
  border-radius: 4px 0px 0px 4px;
  width: 150px;
}

/* ===== Updates Section ===== */
#updates article { margin: 5px; }
#updates article h2 {
  display: inline;
  font-size: 1.3em;
  padding: 0 .5em;
  font-weight: normal;
  font-family: var(--cursive);
  background: var(--pink);
  color: var(--white);
}
#updates.index ul li:first-of-type { display: block; }
#updates.index ul { margin: 0px auto; padding: 0px; }
#updates li { list-style: none; }

/* ===== Museum / Gallery covers ===== */
.covers {
  margin: 20px 20%;
  text-decoration: none;
}
.covers:hover img {
  filter: brightness(.9) sepia(1) hue-rotate(-65deg) saturate(1.3) drop-shadow(1px 2px var(--med));
}
.covers img {
  flex: 1 1 100px;
  max-width: 30%;
  max-height: 200px;
  padding: 2px;
  border: 3px solid var(--white);
  box-shadow: 2px 2px 5px rgba(var(--darkrgb), 0.3);
  transition: all 0.3s ease;
}
.covers img:nth-of-type(even) {
  bottom: 13px;
  transform: rotate(1deg);
}
.covers img:nth-of-type(odd) {
  top: 10px;
  transform: rotate(-2deg);
}

/* ===== Webrings Grid ===== */
.grid {
  display: inline-grid;
  width: 100%;
  max-width: 100%;
  grid-auto-flow: dense;
  min-height: 200px;
  grid-template-rows: repeat(auto-fill, 70px);
  grid-template-columns: repeat(auto-fill, 130px);
  justify-content: center;
  align-items: center;
  justify-items: center;
}
.grid-long { grid-column-end: span 2; }
.grid-tall { grid-row-end: span 2; }

.webring {
  z-index: 10;
  min-width: 80px;
}

/* ===== Webring Specific Styles ===== */
#barbie {
  width: 100px;
  padding: 0px;
  margin-right: 5px;
  border-radius: 5px;
  display: block;
  text-align: center;
  font-size: .9em;
  line-height: 1em;
}
#barbie i {
  background: var(--pink);
  margin: 2px;
  display: block;
}

#jellyworld {
  background-color: var(--pink);
  outline: 3px dotted orange;
  outline-offset: -5px;
  max-width: 110px;
  padding: 10px 5px;
  color: black;
  font-size: 12px;
  text-align: center;
  line-height: 1em;
  margin: 5px;
}

#safont {
  background-color: rgba(var(--blackrgb), 1);
  color: white;
  padding: 2px;
  width: 88px;
  font-size: .9em;
  text-align: center;
  margin: 5px;
}

#noai img {
  filter: invert(1) grayscale(.5) brightness(1.5) hue-rotate(330deg);
  min-width: 88px;
}

#virtupets {
  text-align: center;
}

#code-collective {
  font-size: 12px;
  line-height: 13px;
  width: 100%;
}
#code-collective textarea {
  display: inline-block;
  background: var(--white);
  color: var(--dark);
  max-width: 120px;
  font-size: 9px;
  text-align: center;
  padding: 2px;
  border-width: 1px;
  height: 60px;
  overflow: hidden;
  pointer-events: none;
  border-color: var(--pink);
}
#code-collective a {
  color: var(--black);
  background: var(--pink);
  margin: 1px;
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
}
#code-collective a:first-of-type,
#code-collective a:last-of-type {
  background: var(--white);
}
#code-collective a:hover {
  background: var(--lighter);
  font-style: italic;
}

/* ===== Footer ===== */
footer {
  font-size: 1.3em;
  padding: 0.3em 1em;
  font-weight: normal;
  font-family: var(--cursive);
  background: var(--white);
  color: var(--med);
  display: table;
  text-align: center;
  margin: 10px auto;
}

/* ===== Intro Click (Windows) ===== */
#introclick {
  color: black;
  text-align: justify;
  font-family: var(--cursive);
  font-size: 18px;
  z-index: 50;
}

/* ===== Featured Page ===== */
.featured-page {
  background: var(--lighter);
  border: 2px dashed var(--pink);
  padding: 8px 15px;
  text-align: center;
  margin: 10px auto;
  max-width: 300px;
}
.featured-page .cursive {
  color: var(--med);
  font-size: 1.5em;
}

/* ===== Currently span icons ===== */
.currently span img {
  max-height: 1em;
  vertical-align: middle;
}

/* ===== Custom Decorative Elements ===== */

/* Bow ribbon decoration */
.bow-deco {
  position: absolute;
  max-width: 200px;
  transform: rotate(20deg);
  z-index: -1;
}

/* Heart decorations */
.heart-deco {
  color: var(--med);
  font-size: 24px;
  animation: heartbeat 2s infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Sparkle animation */
@keyframes sparkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.sparkle { animation: sparkle 1.5s infinite; }

/* Float animation for decorative elements */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
.float-anim { animation: float 3s ease-in-out infinite; }

/* ===== Pixel Art Style Counter ===== */
.counter-area {
  font-family: var(--secondaryfont);
  font-size: 14px;
  color: var(--dark);
  text-align: center;
  margin: 15px auto;
}
.counter-area span {
  margin: 0 10px;
}
.counter-num {
  background: var(--white);
  border: 1px solid var(--pink);
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: bold;
  letter-spacing: 2px;
}

/* ===== Guestbook link ===== */
.guestbook-link {
  text-align: center;
  margin: 20px auto;
}
.guestbook-link .cursive {
  color: black;
  background: var(--white);
  padding: 2px;
  display: table;
  margin: 0 auto;
}

/* ===== Pages in progress ===== */
.pages-progress {
  background: rgba(var(--lightrgb), 0.7);
  max-width: 180px;
  max-height: 100px;
  overflow-x: scroll;
  margin-left: auto;
  padding: 10px;
  border: 1px solid var(--pink);
  border-radius: 4px;
}

/* ===== Steban banner ===== */
.steban-banner {
  position: relative;
  max-width: 600px;
  max-height: 200px;
  margin: 0 auto;
}
.steban-banner img {
  width: 100%;
  border-radius: 4px;
}
.steban-caption {
  font-family: var(--cursive);
  font-style: italic;
  background: var(--dark);
  color: var(--white);
  padding: 3px 8px;
  position: absolute;
  bottom: 30px;
  right: 30px;
  border-radius: 3px;
}

/* ===== Chatbox area ===== */
.chatbox-area {
  padding: 0;
  margin: 10px;
  width: 200px;
  position: relative;
}
.chatbox-wrapper {
  padding: 0;
  width: 200px;
  border: 2px solid var(--pink);
  border-radius: 5px;
  overflow: hidden;
  background: var(--white);
}

/* ===== Banner Buttons Row ===== */
.banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
  image-rendering: pixelated;
}
.banner-buttons img {
  height: 31px;
  width: 88px;
}
.banner-buttons a {
  text-decoration: none;
  margin: 1px;
}

/* ===== Val Girl (Right side character) ===== */
.val-girl-area {
  margin: -80px -70px -10px -100px;
  flex: 1 5 290px;
}
.val-girl-area img {
  width: 100%;
  max-width: 400px;
}

/* ===== Window Interactive ===== */
.window-interactive {
  cursor: pointer;
  transition: all 0.3s ease;
}
.window-interactive:hover {
  filter: drop-shadow(0 0 8px var(--pink));
}
.window-text {
  display: none;
  font-family: var(--cursive);
  font-size: 16px;
  text-align: justify;
  padding: 15px;
  background: var(--white);
  border: 1px solid var(--pink);
  border-radius: 5px;
  margin: 10px;
}

/* ===== Extra Decorative Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Gentle rotate for decorative images */
@keyframes gentleRotate {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

/* ===== Tooltip ===== */
.tooltip {
  z-index: 100;
  margin: 20px -10px 0px 20px;
  padding: 4px 10px;
  background: var(--dark);
  border-radius: 8px;
  outline: 1px dashed var(--white);
  outline-offset: 4px;
  color: var(--white);
  font-style: italic;
  font-size: .9em;
  box-shadow: 3px 3px var(--black);
  max-width: 300px;
  position: absolute;
  display: none;
}

/* ===== Pride banner (top decoration) ===== */
.pride-banner {
  height: 6px;
  width: 100%;
  background: linear-gradient(
    180deg,
    #D52D00 0%, #D52D00 16.66%,
    #EF7627 16.66%, #EF7627 33.33%,
    #FF9A56 33.33%, #FF9A56 50%,
    #FFFFFF 50%, #FFFFFF 66.66%,
    #D162A4 66.66%, #D162A4 83.33%,
    #B55690 83.33%, #B55690 100%
  );
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

/* ===== Top decorative hearts border ===== */
.hearts-border {
  width: 100%;
  height: 20px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 15px,
    var(--med) 15px,
    var(--med) 17px
  );
  mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="30" height="20"><text x="15" y="15" text-anchor="middle" font-size="12">♥</text></svg>');
  mask-size: 30px 20px;
  mask-repeat: repeat-x;
  margin-bottom: 10px;
  opacity: 0.6;
}
