/* Jesslair Profile Stylesheet */

/* Load your custom font file */
@font-face {
  font-family: '6809 Chargen';
  src: url('../fonts/6809chargen.otf') format('truetype');
}

body {
  background-color: #FFFFFF;
  /* Force the whole page to use the new font */
  font-family: '6809 Chargen', monospace;
  font-size: 14px; /* Bumped up slightly from 13px because pixel fonts run small */
  color: #000000;
  margin: 0;
  padding: 0;
  /* A tiny blur shadow to make it feel like a glowing old monitor */
  text-shadow: 0px 0px 1px rgba(0,0,0,0.3);
}

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

a:hover {
  color: #FF0000;
  text-decoration: underline;
}

/* Updated layout grid: Left Sidebar + Content + Right Sidebar */
.page-layout {
  display: grid;
  grid-template-columns: 160px 1fr 175px;
  min-height: 100vh;
}

.sidebar-left {
  background-color: #E0E0FF;
  border-right: 2px solid #0000A0;
  padding: 10px;
}

.sidebar-menu {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: bold;
}

.sidebar-menu a {
  display: block;
  padding: 2px;
}

.sidebar-menu a:hover {
  background-color: #D0D0F0;
  text-decoration: none;
  color: #0000A0;
}

.sidebar-right {
  background-image: url('../images/sidebar_blocky_clouds.png');
  background-repeat: repeat-y;
  border-left: 2px solid #0000A0;
}

.content {
  padding: 20px;
  max-width: 650px;
  margin: 0 auto;
}

.header-area {
  display: flex;
  align-items: flex-start; /* Aligns the image and text to the top */
  gap: 20px;
  margin-bottom: 25px;
}

.profile-pic {
  width: 100px;
  height: 100px;
  border: 1px solid #000000;
  display: block;
}

.header-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.user-header {
  margin-bottom: 25px;
}

.username-line {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: bold;
  font-size: 18px;
}

.username-line img {
  width: 16px; /* Typical size for the classic LJ user icon */
  height: 16px;
  image-rendering: pixelated;
}

.username-text {
  color: #0088CC;
}

.main-title {
  font-family: '6809 Chargen', monospace;
  font-size: 36px;
  font-weight: bold;
  color: #333333;
  margin-top: 15px;
  margin-bottom: 0;
  line-height: 1.1;
}

.subtitle {
  font-family: '6809 Chargen', monospace;
  font-size: 14px;
  color: #555555;
  margin-top: 5px;
}

.user-icon img {
  width: 100px;
  height: 100px;
  border: 1px solid #000000;
  display: block;
}

h1 {
  font-size: 20px;
  color: #0000A0;
  margin: 0;
}

.box {
  border: 1px solid #000000;
  margin-bottom: 20px;
}

.box-title {
  background-color: #0000A0;
  color: #FFFFFF;
  font-weight: bold;
  padding: 4px 8px;
  font-size: 13px;
}

.box-content {
  padding: 5px;
}

.info-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 4px;
}

.label {
  background-color: #E0E0FF;
  text-align: right;
  font-weight: bold;
  padding: 4px 8px;
}

.value {
  padding: 4px 8px;
}

.bio-text {
  font-style: italic;
  line-height: 1.4;
}

.comma-list {
  line-height: 1.6;
}

a:link,
a:visited,
a:hover,
a:active,
.tooltip {
  color: #0000EE;
  text-decoration: underline;
}

a:link,
a:visited,
a:hover,
a:active,
.tooltip,
.tooltip:hover {
  color: #0000EE;
  text-decoration: none;
}

.tooltip {
  position: relative;
  display: inline;
  cursor: pointer;
}

.tooltip-bubble {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 4px;
  width: max-content;
  max-width: 260px;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 100;
  text-decoration: none;
}

.tooltip:hover .tooltip-bubble {
  opacity: 1;
}

.tooltip-bubble em {
  font-style: italic;
}

.footer {
  text-align: center;
  font-size: 14px;
  color: #777777;
  margin-top: 50px;
  padding-bottom: 20px;
  font-family: '6809 Chargen', monospace;
  letter-spacing: 1px;
}

/* ─── Neon button flicker ─────────────────────────────────────── */

@keyframes neon-hum {
  0%, 100% {
    filter: drop-shadow(0 0 2px #d45abe) drop-shadow(0 0 5px #d45abe);
    opacity: 1;
  }
  50% {
    filter: drop-shadow(0 0 1px #d45abe) drop-shadow(0 0 2px #d45abe);
    opacity: 0.8;
  }
}

.neon-button {
  animation: neon-hum 1.7s infinite ease-in-out;
  image-rendering: pixelated;
  display: block;
}

/* ─── Hit counter ─────────────────────────────────────────────── */

.hit-counter-wrap {
  text-align: center;
  margin: 40px auto;
}

.hit-counter {
  display: inline-block;
  font-family: 'Courier New', Courier, monospace;
  color: #ffa0f2;
  background: #1a0521;
  padding: 5px 10px;
  border: 2px inset #555;
  text-shadow: 0 0 8px #ffa0f2, 0 0 12px #ffa0f2;
  animation: crt-flicker 0.18s infinite alternate;
  position: relative;
  border-top:    2px solid #ffffff;
  border-left:   2px solid #ffffff;
  border-right:  2px solid #808080;
  border-bottom: 2px solid #808080;
  box-shadow: 2px 2px 0 #000, inset 1px 1px 0 #dfdfdf;
}

@keyframes crt-flicker {
  0%   { opacity: 0.95; }
  100% { opacity: 1; transform: skewX(0.5deg); }
}

.hit-counter-tooltip {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: -30px;
  transform: translateX(-50%);
  font-size: 13px;
  padding: 4px 8px;
  background: #0a0a12;
  color: #ffa0f2;
  border: 1px solid #ffa0f2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
  border-top:    2px solid #ffffff;
  border-left:   2px solid #ffffff;
  border-right:  2px solid #808080;
  border-bottom: 2px solid #808080;
  box-shadow: 2px 2px 0 #000, inset 1px 1px 0 #dfdfdf;
}

.hit-counter:hover .hit-counter-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

/*Jesslair button */

.profile-button-88x31 {
  display: block;
  width: 88px;
  height: 31px;
  image-rendering: pixelated;
  margin: 2px 0;
}

/* Badges and webrings */

.made-by-wrap {
  text-align: center;
  margin: 18px auto 10px auto;
}

.made-by-girl-badge {
  display: block;
  margin: 0 auto;
  image-rendering: pixelated;
}

.surf-club-wrap {
  text-align: center;
  margin: 18px auto 10px auto;
}

.webring-widget {
  margin-top: 14px;
  line-height: 1.5;
}

.retronaut-pixel {
  display: block;
  margin: 0 auto 8px auto;
  width: 125px;
  height: 125px;
  image-rendering: pixelated;
}

.webring-title {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.webring-nav {
  display: block;
  font-size: 13px;
}

.webring-nav span {
  margin: 0 6px;
}

.webring-widget a {
  text-decoration: none;
}

.webring-widget a:hover {
  text-decoration: underline;
}

.jesslair-ring-widget {
  margin-top: 18px;
  text-align: center;
}

/* ░░░ WEBRING STAMP COLLECTION ░░░ */
 
.webring-stamp-box {
    margin-top: 12px;
}
 
.stamp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(199px, 1fr));
    gap: 18px;
    padding: 4px 2px;
    align-items: start;
}
 
/* wide stamp spans 2 columns */
.stamp--wide {
    grid-column: span 2;
}
 
.stamp {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
 
/* the serrated stamp edge via radial-gradient mask */
.stamp-inner {
    position: relative;
    background: #fff;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    width: 100%;
    box-sizing: border-box;
 
    /* perforated stamp border */
    --hole: 7px;
    --gap: 5px;
    mask-image:
        radial-gradient(circle at var(--hole) var(--hole), transparent var(--hole), black calc(var(--hole) + 1px)) 0 0 / calc(var(--hole) + var(--gap)) calc(var(--hole) + var(--gap));
 
    /* thin outer border to make the "paper" visible */
    outline: 1.5px dashed rgba(0,0,0,0.12);
 
    /* slight aged-paper tint */
    background-color: #faf8f2;
 
    /* subtle inner shadow for depth */
    box-shadow: inset 0 0 8px rgba(0,0,0,0.06), 2px 3px 8px rgba(0,0,0,0.15);
 
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
 
.stamp-inner:hover {
    transform: translateY(-2px) rotate(0.4deg);
    box-shadow: inset 0 0 8px rgba(0,0,0,0.06), 4px 6px 14px rgba(0,0,0,0.22);
}
 
/* iframe stamp doesn't need vertical flex centering */
.stamp-inner--iframe {
    padding: 6px;
    min-height: 0;
    overflow: hidden;
    align-items: center;
}

.stamp-inner--iframe iframe {
    transform: scale(0.6);
    transform-origin: top center;
    width: 266px;
    height: 201px;
    margin-bottom: -80px;
}
 
/* retronaut stamp: hand-typed style */
.stamp-inner--retronaut {
    text-align: center;
    gap: 4px;
    font-family: "Courier New", monospace;
    font-size: 11px;
}
 
.stamp-ring-title a {
    font-weight: bold;
    font-size: 11px;
    letter-spacing: 0.03em;
}
 
.stamp-ring-nav {
    display: flex;
    gap: 6px;
    font-size: 10px;
    margin-top: 2px;
    opacity: 0.8;
}
 
.stamp-inner--online {
    padding: 10px 8px;
}
 
/* the tiny typewritten label beneath each stamp */
.stamp-label {
    font-family: "Courier New", monospace;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.55;
    text-align: center;
    line-height: 1;
}
 
/* prevent internal webring widget images from blowing out */
.stamp-inner img {
    max-width: 100%;
    height: auto;
}
 
/* keep the xpace iframe from overflowing its stamp */
.stamp--wide .stamp-inner--iframe iframe {
    max-width: 100%;
    display: block;
}

/* palestine ring: horizontal arrow layout */
#palestinering {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
}
 
#palestinering img {
    display: block;
    max-width: none;
}

.linkme-code {
    width: 100%;
    box-sizing: border-box;
    font-family: "Courier New", monospace;
    font-size: 8px;
    height: 44px;
    margin-top: 6px;
    resize: none;
    border: 2px inset #808080;
}

.wordy-ring-widget {
    width: 100%;
    text-align: center;
}

.wordy-ring-widget .stamp-ring-title {
    margin-top: 6px;
}

.wordy-ring-widget .stamp-ring-nav {
    margin-top: 4px;
}

#cdr {
    text-align: center;
}

.cdr-widget {
    transform: scale(0.8);
    transform-origin: top center;
    margin: 0 auto -40px auto;
    width: fit-content;
}

.bio-text {
    line-height: 1.4;
}

.bio-now {
    font-style: normal;
    margin-bottom: 14px;
}

.bio-then {
    font-style: italic;
}