/* ==========================================================
   brunafernandes.org — early-2000s HTML heavy stylesheet
   ========================================================== */

:root {
  --pink: #ff5fb4;
  --hotpink: #ff1493;
  --purple: #7b2cbf;
  --lilac: #c77dff;
  --yellow: #fff275;
  --gold: #e6c34a;
  --gold-dark: #b8901c;
  --sky: #7fdbff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Comic Neue", cursive;
  color: #fff;
  overflow-x: hidden;
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><text y='20' font-size='20'>💖</text></svg>") 4 4, auto;
  /* tiled hearts + gradient */
  background-color: #b5179e;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'><text x='4' y='20' font-size='14' opacity='0.18'>♥</text><text x='26' y='42' font-size='10' opacity='0.14'>♥</text></svg>"),
    linear-gradient(180deg, #ff5fb4 0%, #b5179e 40%, #7b2cbf 100%);
  background-attachment: fixed;
}

.comic { font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Comic Neue", cursive; }
.tiny { font-size: 12px; }
a { color: var(--yellow); }
a:visited { color: #ffb3e6; }
a:hover { color: #fff; text-decoration: none; background: var(--hotpink); }

/* ---------- blink (RIP <blink>) ---------- */
.blink { animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* ---------- SPLASH ---------- */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(circle at 50% 40%, #ff8fd0 0%, #b5179e 45%, #3c096c 100%);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 20px;
}
#splash.hidden { display: none; }
.splash-box {
  background: rgba(0,0,0,0.25);
  border: 4px ridge var(--gold);
  padding: 30px 26px;
  max-width: 640px;
  box-shadow: 0 0 40px rgba(255,255,255,0.35);
}
.splash-title { font-size: clamp(38px, 8vw, 72px); margin-bottom: 8px; }
.splash-sub { color: var(--yellow); font-size: 22px; margin: 6px 0 14px; letter-spacing: 2px; }
.splash-warn { font-size: 13px; color: #ffe0f5; margin-bottom: 20px; }
.enter-btn {
  font-family: inherit;
  font-size: clamp(16px, 3vw, 24px);
  font-weight: bold;
  color: #3c096c;
  background: linear-gradient(#fff9c4, #ffd23f 50%, #ffb703);
  border: 4px outset #ffd23f;
  padding: 14px 26px;
  cursor: pointer;
  text-shadow: 1px 1px 0 #fff;
  animation: pulse 1.2s ease-in-out infinite;
}
.enter-btn:hover { background: linear-gradient(#ffd23f, #fff9c4); border-style: inset; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.splash-tiny { font-size: 12px; color: #ffe0f5; margin-top: 14px; }
.splash-loading { font-family: "Courier New", monospace; font-size: 12px; margin-top: 8px; color: #ffe0f5; }

/* ---------- WORDART ---------- */
.wordart {
  font-family: "Impact", "Arial Black", "Haettenschweiler", sans-serif;
  font-weight: 900;
  letter-spacing: 1px;
  display: inline-block;
  transform: skewX(-8deg);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0,0,0,0.35);
  filter: drop-shadow(3px 3px 0 #000) drop-shadow(0 0 6px rgba(255,255,255,0.6));
  line-height: 1.05;
  margin: 0;
}
h1.wordart { font-size: clamp(44px, 9vw, 92px); }
h2.wordart { font-size: clamp(28px, 5vw, 44px); margin: 0 0 14px; }
.wordart-rainbow {
  background-image: linear-gradient(90deg, #ff004c, #ff8a00, #ffe600, #2bff00, #00d0ff, #7a00ff, #ff00d4);
  background-size: 300% 100%;
  animation: rainbow-slide 6s linear infinite;
}
@keyframes rainbow-slide { to { background-position: 300% 0; } }
.wordart-blue { background-image: linear-gradient(180deg, #d0f4ff 0%, #2f80ed 45%, #0b3d91 55%, #7fdbff 100%); }
.wordart-gold { background-image: linear-gradient(180deg, #fff6b0 0%, #ffd23f 45%, #b8901c 55%, #fff1a8 100%); }
.wordart-pink { background-image: linear-gradient(180deg, #ffe0f5 0%, #ff5fb4 45%, #c9184a 55%, #ffb3e6 100%); }
.bounce { animation: rainbow-slide 6s linear infinite, bounce 2.4s ease-in-out infinite; }
@keyframes bounce {
  0%,100% { transform: skewX(-8deg) translateY(0) rotate(-2deg); }
  50% { transform: skewX(-8deg) translateY(-8px) rotate(2deg); }
}

/* ---------- LAYOUT ---------- */
.topbar {
  background: #3c096c;
  color: var(--yellow);
  border-bottom: 3px ridge var(--gold);
  font-size: 14px;
  padding: 3px 0;
  position: relative; z-index: 3;
}
.visitor-inline { font-family: "Courier New", monospace; background: #000; padding: 0 3px; color: #0f0; }
table.page {
  width: 800px; max-width: 100%;
  position: relative; z-index: 2;
  margin: 12px auto 80px;
}
.page-cell {
  padding: 16px 12px 24px;
  background: rgba(60, 9, 108, 0.35);
  border: 4px double rgba(255,255,255,0.7);
  box-shadow: 0 0 25px rgba(0,0,0,0.3);
}
.header { text-align: center; padding: 6px 0 10px; }
.subtitle {
  color: var(--yellow);
  font-size: clamp(18px, 3.4vw, 28px);
  text-shadow: 2px 2px 0 #7b2cbf, 0 0 10px #ff5fb4;
  margin-top: 6px;
}
.new-badge { margin-top: 10px; }
.badge-new {
  display: inline-block;
  background: #ff0000; color: #fff;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 13px; padding: 1px 6px;
  border: 2px solid #ffff00; transform: rotate(-6deg);
  margin-right: 6px;
}

/* ---------- HERO ---------- */
.hero { margin: 16px auto 8px; text-align: center; }
.goldframe {
  display: inline-block;
  padding: 10px;
  background: linear-gradient(135deg, #fff1a8, #e6c34a 30%, #b8901c 50%, #e6c34a 70%, #fff1a8);
  border: 3px solid #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45), inset 0 0 0 2px #b8901c;
  animation: frame-glow 3s ease-in-out infinite;
}
@keyframes frame-glow {
  0%,100% { box-shadow: 0 6px 20px rgba(0,0,0,0.45), 0 0 0 rgba(255,255,255,0); }
  50% { box-shadow: 0 6px 20px rgba(0,0,0,0.45), 0 0 26px rgba(255,255,255,0.7); }
}
.goldframe img { display: block; width: 420px; max-width: 76vw; height: auto; border: 2px solid #3c096c; }
.caption { color: var(--yellow); font-size: 15px; margin-top: 8px; text-shadow: 1px 1px 0 #3c096c; }

/* ---------- PHOTO ROW ---------- */
table.photo-row { margin: 10px auto 0; width: 100%; }
table.photo-row td { width: 33.33%; text-align: center; vertical-align: top; }
.whiteframe {
  display: inline-block;
  background: #fff; padding: 6px;
  border: 2px ridge #ddd;
  transition: transform .2s;
}
.whiteframe:hover { transform: rotate(-3deg) scale(1.05); }
.whiteframe img { display: block; width: 100%; height: auto; border: 1px solid #999; }
.whiteframe .caption { color: #7b2cbf; text-shadow: none; font-size: 13px; margin: 4px 0 0; }

/* ---------- HR ---------- */
hr.rainbow-hr {
  border: 0; height: 6px; margin: 26px 10px;
  background: linear-gradient(90deg, #ff004c, #ff8a00, #ffe600, #2bff00, #00d0ff, #7a00ff, #ff00d4);
  box-shadow: 0 2px 0 #000;
}

/* ---------- SECTIONS ---------- */
.section { text-align: center; padding: 6px 8px; }
table.infobox {
  margin: 0 auto 18px;
  border-color: var(--gold);
  background: #fff0fa;
  color: #3c096c;
  font-size: 15px;
  max-width: 100%;
  border-style: ridge;
}
table.infobox th { background: var(--hotpink); color: #fff; font-size: 17px; letter-spacing: 1px; text-shadow: 1px 1px 0 #7b2cbf; }
table.infobox td { border: 1px dotted #c77dff; text-align: left; }
table.infobox td.k { font-weight: bold; color: var(--hotpink); white-space: nowrap; }
.why {
  text-align: left; display: inline-block; max-width: 560px;
  background: rgba(255,255,255,0.12); border: 2px dashed var(--yellow);
  padding: 12px 18px; font-size: 15px;
}
.why ol { margin: 8px 0 0; padding-left: 26px; }
.why li { margin: 4px 0; }

/* ---------- POEM PAPER ---------- */
.paper {
  display: inline-block;
  text-align: left;
  color: #2b1a4a;
  background:
    linear-gradient(90deg, transparent 38px, #ffb3c6 38px, #ffb3c6 40px, transparent 40px),
    repeating-linear-gradient(#fffdf5, #fffdf5 27px, #cfe3ff 27px, #cfe3ff 28px);
  padding: 20px 24px 20px 56px;
  border: 1px solid #ccc;
  box-shadow: 4px 4px 0 #3c096c, 8px 8px 0 rgba(0,0,0,0.25);
  font-size: 16px; line-height: 28px;
  transform: rotate(-1deg);
  max-width: 100%;
}
.paper p { margin: 0 0 28px; }
.paper .dots { color: #999; margin: 0 0 28px; }
.paper .author { font-style: italic; color: #7b2cbf; margin: 0; }

/* ---------- POLAROIDS ---------- */
.polaroids { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 12px; }
.polaroid {
  background: #fff; padding: 10px 10px 8px;
  width: 190px;
  box-shadow: 3px 4px 10px rgba(0,0,0,0.4);
  color: #3c096c; font-size: 13px;
  transition: transform .2s;
  position: relative;
}
.polaroid::before { /* tape */
  content: ""; position: absolute; top: -10px; left: 50%; width: 70px; height: 20px;
  margin-left: -35px; background: rgba(255,255,150,0.75); transform: rotate(-3deg);
  border-left: 1px dashed rgba(0,0,0,0.15); border-right: 1px dashed rgba(0,0,0,0.15);
}
.polaroid img { width: 100%; height: 220px; object-fit: cover; display: block; border: 1px solid #ccc; margin-bottom: 6px; }
.tilt-l { transform: rotate(-4deg); } .tilt-r { transform: rotate(3deg); }
.tilt-l2 { transform: rotate(-2deg); } .tilt-r2 { transform: rotate(5deg); }
.polaroid:hover { transform: rotate(0) scale(1.08); z-index: 5; }
.polaroid:active { animation: wiggle .3s linear infinite; }
@keyframes wiggle { 0%,100% { transform: rotate(-4deg) scale(1.08);} 50% { transform: rotate(4deg) scale(1.08);} }

/* ---------- NOTE ---------- */
.note {
  display: inline-block; text-align: left; max-width: 560px;
  background: #fff0fa; color: #3c096c;
  border: 6px ridge var(--pink);
  padding: 14px 20px; font-size: 15px;
}
.note p { margin: 0 0 12px; }
.note .tiny { color: #999; margin: 0; }

/* ---------- FOOTER ---------- */
.footer { text-align: center; margin-top: 30px; font-size: 13px; color: #ffe0f5; }
.footer > div { margin: 10px 0; }
.counter-box { display: block; }
.counter { display: inline-flex; gap: 2px; margin-top: 4px; }
.counter span {
  display: inline-block; width: 22px; height: 30px; line-height: 30px;
  background: #000; color: #39ff14; font-family: "Courier New", monospace;
  font-weight: bold; font-size: 20px; border: 2px inset #666;
}
.construction {
  display: inline-block; padding: 6px 14px; font-weight: bold; color: #000;
  background: repeating-linear-gradient(45deg, #ffd23f 0 12px, #111 12px 24px);
  text-shadow: 0 0 4px #ffd23f, 0 0 8px #ffd23f, 1px 1px 0 #fff;
  border: 2px solid #000;
}
.construction span { animation: pulse 0.8s infinite; display: inline-block; }
.buttons88 { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.btn88 {
  display: inline-block; width: 88px; height: 31px; font-size: 9px; line-height: 11px;
  font-family: Verdana, Arial, sans-serif; font-weight: bold; padding-top: 4px;
  border: 1px solid #000; color: #fff; text-align: center;
}
.b1 { background: linear-gradient(#1a5fb4, #062a5c); }
.b2 { background: linear-gradient(#333, #000); color: #0f0; }
.b3 { background: linear-gradient(#ff5fb4, #c9184a); }
.b4 { background: linear-gradient(#ffd23f, #b8901c); color: #000; }

/* ---------- WINAMP-ish PLAYER ---------- */
.winamp {
  position: fixed; right: 10px; bottom: 10px; z-index: 50;
  width: 250px; background: #2b2b3a; border: 2px outset #8a8aa0;
  color: #39ff14; font-family: Verdana, Arial, sans-serif; font-size: 11px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.winamp-title { background: linear-gradient(90deg, #0b0b60, #3a3aa0); color: #ffd23f; padding: 2px 6px; font-weight: bold; text-align: center; letter-spacing: 1px; }
.winamp-screen { background: #000; margin: 4px; padding: 3px; border: 1px inset #666; }
.winamp-controls { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 6px; }
#mute-btn {
  font-family: Verdana, Arial, sans-serif; font-size: 11px; font-weight: bold;
  background: #c0c0c0; border: 2px outset #fff; padding: 3px 8px; cursor: pointer; color: #000;
}
#mute-btn:active { border-style: inset; }
.winamp-eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 18px; }
.winamp-eq i { width: 4px; background: #39ff14; display: inline-block; animation: eq 0.6s ease-in-out infinite; }
.winamp-eq i:nth-child(2) { animation-delay: .1s; } .winamp-eq i:nth-child(3) { animation-delay: .25s; }
.winamp-eq i:nth-child(4) { animation-delay: .05s; } .winamp-eq i:nth-child(5) { animation-delay: .35s; } .winamp-eq i:nth-child(6) { animation-delay: .15s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 18px; } }
.winamp.muted .winamp-eq i { animation: none; height: 3px; background: #555; }
#yt-holder { position: fixed; left: -9999px; top: -9999px; width: 200px; height: 113px; opacity: 0.01; pointer-events: none; }

/* ---------- SPARKLES / FALLING ---------- */
#sparkles, #falling { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.sparkle {
  position: absolute; width: 14px; height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M10 0 L11.5 8.5 L20 10 L11.5 11.5 L10 20 L8.5 11.5 L0 10 L8.5 8.5 Z' fill='white'/></svg>") no-repeat center/contain;
  animation: twinkle var(--d, 2s) ease-in-out var(--dl, 0s) infinite;
  filter: drop-shadow(0 0 4px #fff);
}
@keyframes twinkle { 0%,100% { opacity: 0; transform: scale(0.3) rotate(0deg);} 50% { opacity: 1; transform: scale(1.1) rotate(45deg);} }
.fall {
  position: absolute; top: -30px; font-size: 18px;
  animation: fall var(--d, 9s) linear var(--dl, 0s) infinite;
  opacity: 0.85;
}
@keyframes fall {
  0% { transform: translateY(0) rotate(0deg) translateX(0); }
  50% { transform: translateY(50vh) rotate(180deg) translateX(30px); }
  100% { transform: translateY(105vh) rotate(360deg) translateX(-20px); }
}

/* ---------- CURSOR TRAIL ---------- */
.trail {
  position: fixed; pointer-events: none; z-index: 9998; font-size: 16px;
  animation: trail 0.9s ease-out forwards;
}
@keyframes trail { to { transform: translateY(-40px) scale(0.3); opacity: 0; } }

/* ---------- PIXEL SPRITES ---------- */
.sprite-row { display: flex; justify-content: center; gap: 30px; margin: 10px 0; }
.px-sprite { display: inline-block; position: relative; }
.px-sprite .px { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.px-sprite[data-sprite="heart"] { animation: heartbeat 1s ease-in-out infinite; }
@keyframes heartbeat { 0%,100% { transform: scale(1);} 30% { transform: scale(1.2);} 60% { transform: scale(0.95);} }
.px-sprite[data-sprite="star"] { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.px-sprite[data-sprite="butterfly"] { animation: flutter 1.6s ease-in-out infinite; }
@keyframes flutter { 0%,100% { transform: translateY(0) rotate(-6deg);} 50% { transform: translateY(-10px) rotate(6deg);} }
.px-sprite[data-sprite="flower"] { animation: sway 2s ease-in-out infinite; transform-origin: bottom center; }
@keyframes sway { 0%,100% { transform: rotate(-8deg);} 50% { transform: rotate(8deg);} }
#cat-walk {
  position: fixed; bottom: 0; left: 0; z-index: 40; pointer-events: none;
  animation: catwalk 28s linear infinite;
}
@keyframes catwalk {
  0% { left: -80px; transform: scaleX(1); }
  49% { left: calc(100vw + 10px); transform: scaleX(1); }
  50% { left: calc(100vw + 10px); transform: scaleX(-1); }
  99% { left: -80px; transform: scaleX(-1); }
  100% { left: -80px; transform: scaleX(1); }
}
#cat-walk .px-sprite { animation: catbob 0.4s steps(2) infinite; }
@keyframes catbob { 0% { transform: translateY(0);} 100% { transform: translateY(-3px);} }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
  table.photo-row td { display: block; width: 100%; margin-bottom: 12px; }
  .whiteframe { width: 70%; }
  .winamp { width: 200px; right: 6px; bottom: 6px; }
  .paper { transform: none; padding-left: 48px; font-size: 14px; }
  .polaroid { width: 150px; }
  .polaroid img { height: 170px; }
}

/* ---------- ANIMATED GIFS (home-made) ---------- */
.gif { image-rendering: pixelated; image-rendering: crisp-edges; width: 64px; height: auto; vertical-align: middle; }
.sprite-row { flex-wrap: wrap; align-items: center; }
.sprite-row.small .gif { width: 48px; }
.sprite-row .gif:hover { transform: scale(1.3) rotate(-8deg); }
.hero { position: relative; }
.hero-side {
  position: absolute; top: 20px; display: none; flex-direction: column; gap: 22px; align-items: center;
}
.hero-left { left: 8px; } .hero-right { right: 8px; }
@media (min-width: 720px) { .hero-side { display: flex; } }
.hero-side .gif { animation: floaty 3s ease-in-out infinite; }
.hero-side .gif:nth-child(2) { animation-delay: .7s; }
.hero-side .gif:nth-child(3) { animation-delay: 1.4s; }
@keyframes floaty { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-8px);} }

.side-col {
  position: fixed; top: 60px; z-index: 1; display: none; flex-direction: column; gap: 26px; align-items: center;
  width: 130px; pointer-events: none;
}
.side-left { left: 10px; } .side-right { right: 10px; }
@media (min-width: 1150px) { .side-col { display: flex; } }
.side-col .gif { animation: floaty 3.5s ease-in-out infinite; }
.side-col .gif:nth-child(odd) { animation-delay: 1s; }

#bird-fly {
  position: fixed; top: 46px; left: -100px; z-index: 40; pointer-events: none;
  animation: birdfly 22s linear infinite;
}
@keyframes birdfly {
  0% { left: -100px; top: 46px; }
  25% { top: 90px; }
  50% { top: 40px; }
  75% { top: 110px; }
  100% { left: calc(100vw + 20px); top: 60px; }
}
#dog-walk {
  position: fixed; bottom: 0; right: -100px; z-index: 40; pointer-events: none;
  animation: dogwalk 34s linear infinite; animation-delay: -12s;
}
@keyframes dogwalk {
  0% { right: -100px; transform: scaleX(1); }
  49% { right: calc(100vw + 10px); transform: scaleX(1); }
  50% { right: calc(100vw + 10px); transform: scaleX(-1); }
  99% { right: -100px; transform: scaleX(-1); }
  100% { right: -100px; transform: scaleX(1); }
}
@media (max-width: 640px) { .gif { width: 44px; } .sprite-row { gap: 14px; } }

/* ---------- section titles/content always on their own line (mobile fix) ---------- */
h2.wordart { display: table; margin-left: auto; margin-right: auto; }
.paper { display: block; width: fit-content; margin: 0 auto; }
table.infobox { display: table; }
.section .sprite-row { clear: both; }
@media (max-width: 640px) {
  .paper { padding: 16px 14px 16px 44px; font-size: 14px; line-height: 26px; }
  .paper p, .paper .dots { margin-bottom: 26px; }
  .paper { background: linear-gradient(90deg, transparent 30px, #ffb3c6 30px, #ffb3c6 32px, transparent 32px), repeating-linear-gradient(#fffdf5, #fffdf5 25px, #cfe3ff 25px, #cfe3ff 26px); }
  h2.wordart small { display: block; font-size: 60%; }
}
