
@font-face {
  font-family: 'HyliaSerif'; /* Choose any name you like */
  src: url('/fonts/HyliaSerif.otf') format('truetype'); /* Point to your uploaded file */
  font-weight: normal;
  font-style: normal;
}


@font-face {
  font-family: 'HyliaSerif'; /* Choose any name you like */
  src: url('/fonts/HyliaSerif.otf') format('truetype'); /* Point to your uploaded file */
  font-weight: bold;
  font-style: bold;
}

@font-face {
  font-family: 'Goudy';
  src: url('/fonts/Goudy.otf') format('truetype');
  font-weight: normal;
}

@font-face {
  font-family: 'RocknRoll';
  src: url('/fonts/RocknRoll.ttf');
  font-weight: normal;
}

@font-face {
  font-family: 'CloisterBlack';
  src: url('/fonts/CloisterBlack.ttf');
  font-weight: normal;
}

* {
  box-sizing: border-box;
}

a:link, a:visited, a:active { 
font-weight:bold;
color:#2A5F6F;text-decoration:none;}
a:hover {
color:#F8F5BF;}
a[href^="#"]:link, a[href^="#"]:visited, a[href^="#"]:active {
font-weight:normal;
color:#111111;text-decoration:none;}
a[href^="#"]:hover {
color:#F8F5BF;}


/* MEAT of the Site */

body {
  background:#111 url(/background.jpg);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  font-family: Goudy;
  word-spacing: 0.25em;
  line-height: 1.2;
  font-size: 19px;
  font-weight: 500;
}

#layout {
    margin: 0px auto;
    width: 80%;}

.menu {
  font-family: 'HyliaSerif', sans-serif;
  padding: 6px;
  text-align: center;
  color: #111;
  font-size: 16px;
  width: 75%;
  margin: 0 auto;
  font-weight: normal;
  padding-top: 1px;
}

.header {
  font-family: 'HyliaSerif', sans-serif;
  padding: 18px;
  text-align: center;
  color: #111;
  font-size: 58px;
  width: 75%;
  margin: 0 auto;
  font-weight: normal;
}
.headerbg {
  height: 180px;
  padding-top: 18px;
  background: #938265CC url() no-repeat center;
  margin: 0px auto;
  border-radius: 6px 6px 6px 6px;
}

.content {
  background: #dbd2c1CC;
  width: 85%;
  float: left;
  padding: 12px;
  margin: 0 auto;
  border-radius: 6px 6px 6px 6px;
}
.left {
  position:relative;
  background: #7b684aCC;
  width: 15%;
  float: left;
  padding: 12px;
  margin: 0 auto;
  /* top-left | top-right | bottom-right | bottom-left */
  border-radius: 6px 6px 6px 6px;
}
.right {
  background: #7b684aCC;
  width: 15%;
  float: left;
  padding: 12px;
  margin: 0 auto;
  border-radius: 6px 6px 6px 6px;
}
/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}
.footer {
  background-color: #beb29c95;
  padding: 10px;
  text-align: center;
  margin-bottom: 62px;
  border-radius: 6px 6px 6px 6px;
}

/* SPECIAL TEXTS */
.title {font:bold 24px Goudy;color:#111;letter-spacing:2.3px;text-align:left;padding:0px;margin-bottom:0px;}
.title2 {font:bold 20px Goudy;color:#111;letter-spacing:2.1px;text-align:left;padding:0px;margin-bottom:0px;}
.title3 {font:bold 18px Goudy;color:#111;letter-spacing:1.8px;text-align:left;padding:0px;margin-bottom:0px;}
.smalltxt {font:14px Goudy;text-align: center; word-spacing: 0.1em;}

/* THE LITTLE GALLERIES */
.gallery2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-left: 1px;      /* Force space on the left side of the gallery */
  padding-right: 1px;     /* Force space on the right side of the gallery */
  padding: 2px;
}
div.gallery2-item {
  margin: 3px;
  border: double 4px;
  width: 172px;
  margin-left: 4px;
  margin-right: 4px;
  display: inline-block;
  overflow: hidden; 
}
div.gallery2-item:hover {
  border: double 4px #EFEDCA;
}
div.gallery2-item img {
  width: 100%;
  height: auto;
  position: relative;
  cursor: pointer;
}
.gallery2-item .desc {
  padding: 2px;
  padding-bottom: 1px;
  text-align: center;
  font-size: 21px;
  font-weight: bold;
  color: #111;
  word-spacing: 0.12em;
}
.gallery2-item .desc2 {
  padding: 1.5px;
  text-align: center;
  font-size: 14px;
  word-spacing: 0.1em;
  margin-bottom: 1px;
}

.gallery3 {
  display: flex;
  flex-wrap: wrap;
}
div.gallery3-item {
  margin: 2px;
  border: solid 1px;
  width: 112px;
  flex: 1;                /* Allows boxes to grow, but keeps shape uniform */
  aspect-ratio: 1 / 1.6;    /* FIX: Automatically matches height to whatever width is */
  box-sizing: border-box;
}
div.gallery3-item img {
  width: 100%;
  height: 100%;           /* 2. Forces image to match container height */
  display: block;         /* 3. FIX: Removes the baseline font gap at the bottom */
  object-fit: cover;
}
.gallery2-item .desc {
  padding: 2px;
  padding-bottom: 1px;
  text-align: center;
  font-size: 21px;
  font-weight: bold;
  color: #111;
  word-spacing: 0.12em;
}
.gallery3-item .desc2 {
  padding: 1.5px;
  text-align: center;
  font-size: 14px;
  word-spacing: 0.1em;
  margin-bottom: 1px;
}

/* MINOR CHANGES TO IMPORTANT LITTLE THINGS */
/* table tings */
  table, th, td {
  border:2.5px solid black;
}

.invis-button {
  padding: 12px 24px;           /* Adds space inside the button (top/bottom left/right) */
  font-size: 16px;              /* Changes text size */
  background: transparent;
  border: none;                 /* Removes the default ugly browser border */
  cursor: pointer;              /* Changes mouse cursor to a hand tool on hover */
}

summary {
  list-style: none;
}

.compact-list {
margin-top: 0px; /* Adjust the negative value as needed */
}

.soft-edges {
  border-radius: 6px;
  width: 100%;
}

.soft-edgeswip {
  width: 100%;
  max-width: 400px;
  -webkit-mask-image: radial-gradient(circle, black 60%, transparent 100%);
  mask-image: radial-gradient(circle, black 60%, transparent 100%);
}

  .zoom-check {
    display: none;
  }
  .zoomable-img {
    width: 300px;
    cursor: pointer;
    transition: transform 0.3s ease; /* Smooth transition */
  }
  .zoom-check:checked + .zoomable-img {
    transform: scale(2.0); /* Makes the image twice its original size */
    position: relative;
    z-index: 999; /* Brings it above other text/elements */
  }
  
/* Base grid image styles */
.clickable-image {
    width: 100%;
    height: auto;
    cursor: zoom-in;
}
/* Full-page background container */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    /* Start hidden and invisible */
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
/* Image inside the container */
.overlay img {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
}
/* Trigger class to fade everything in */
.overlay.active {
    pointer-events: auto;
    opacity: 1;
}

        .blur-target {
    filter: blur(15px);
    transition: filter 0.4s ease;
    max-width: 100%;
    height: auto;
    display: block; /* Removes unwanted bottom spacing in some browsers */
        }

        /* This utility class removes the blur filter */
        .unblurred {
            filter: blur(0px);
        }

@keyframes fade-out {
  from {
    opacity: 100%;
  }
  to {
    opacity: 0%;
  }
}

@keyframes fade-in {
  from {
    opacity: 0%;
  }
  to {
    opacity: 100%;
  }
}

summary::-webkit-details-marker {
  display: none;
}
summary {
  list-style: none; /* Required for Firefox */
  display: flex;
  align-items: center; 
  cursor: pointer;
  gap: 10px; 
}
details:not(.no-arrow) > summary::before {
  content: "▷"; 
  display: inline-block; /* CRITICAL: Enables transform animations */
  transition: transform 0.2s ease; 
}
/* 4. Rotate arrow when the details are open */
details:not(.no-arrow)[open] > summary::before {
  transform: rotate(90deg); 
}
details.no-arrow > summary {
  list-style: none;
}
details.no-arrow > summary::-webkit-details-marker {
  display: none;
}

/* CHARACTER EELSTIONSHIPS */
.relationship-body {
  display: block; 
}
.relationship-profile {
  float: left;
  width: 280px; 
  height: auto;
  border-radius: 6px;
  margin-right: 12px;  /* Creates the gap between image and text */
  margin-bottom: 4px; /* Creates a clean gap before text wraps underneath */
}
.relationship-body::after {
  content: "";
  display: table;
  clear: both;
}
.relationship-divider {
  height: 1px;
  border-width: 0;
  color: gray;
  background-color: #7e6b4f;
  margin: 6px 0;
}
/* ENND CHRHCTER RELLATIONSHPS */

/* INFOBOX!!!!!!!!!!! */
.infobox {
  margin: 0;
  border: 0;
  box-sizing: border-box;
  float: right;
  max-width: 290px;
  color: #111;
  border: 2px solid #111111;
  border-radius: 4px;
  background-color: #87765999;
  padding: 6px;
  word-spacing: 0.1em;
  line-height: 1.2;
  font-size: 18;
  margin-left: 18px;
}
/* Margin between blocks */
.infobox > *:not(:last-child) {
  margin-bottom: 6px;
}
/* Defines header container */
.infobox .heading {
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
/* Infobox main header */
.infobox .heading h2 {
  margin: 0;
  line-height: .5;
  font-size: 20px;
}
/* Infobox block header */
.infobox .heading h3 {
  margin: 0;
  line-height: .2;
  font-size: 17px;
}
.infobox-img {
  display: block;
  width: 100%;
}
/* Row inside a block*/
.infobox-datarow {
  font-size: 15px;
}
/* Block heading margin */
.infobox-group .heading {
  margin-bottom: 8px;
}
/* Defines data display */
.infobox-datarow .data-heading,
.infobox-datarow .data-content {
  display: inline-block;
  margin: 2px;
  vertical-align: top;
  margin-bottom: 5px;
}
.infobox-datarow .data-heading {
  width: 82px;
  font-weight: bold;
}
.infobox-datarow .data-content {
  list-style-type: none !important;
  padding-left: 0;
}
.infobox-datarow .data-content * {
  white-space: pre-wrap;
}

/* TEXT BUBBLE SENT FROM HELL!!!! */
.bubble {
    position: relative;
    background: #655137CC;
    color: #070707;
    font-size: 22px;
    line-height: 35px;
    text-align: center;
    border-radius: 10px;
     display: block;          /* Change from inline-block to block */
     margin-left: 31px;
     margin-right: 430px;      /* Crucial: Creates a right margin slightly wider than the infobox (290px + spacing) */
     width: auto;             /* Let it naturally calculate width */
     padding: 12px 20px;
     box-sizing: border-box;
}
.bubble:after {
    content: '';
    position: absolute;
    display: block;
    width: 0;
    z-index: 1;
    border-style: solid;
    border-width: 0 33px 25px 0;
    border-color: transparent #655137CC transparent transparent;
    top: 51%;
    left: -33px;
    margin-top: -17.5px;
}

/* drop cap */
.intro-text::first-letter {
  -webkit-initial-letter: 2; /* Required for Safari support */
  initial-letter: 2;          /* Spans exactly 3 lines of text */
  margin-right: 2px;
  font-family: "CloisterBlack";
}



/* dumb phone stupid idiot bitch fucking phone stupid */

@media (max-width: 1070px) {
div.gallery2-item {
  margin: 3px;
  border: double 4px;
  width: 152px;
  margin-left: 4px;
  margin-right: 4px;
}

.header {
  font-family: 'HyliaSerif', sans-serif;
  padding: 18px;
  text-align: center;
  color: #111;
  font-size: 58px;
  width: 85%;
  margin: 0 auto;
  font-weight: normal;
}
.headerbg {
  height: 180px;
  padding-top: 18px;
  background: #938265CC url() no-repeat center;
  margin: 0px auto;
}

.bubble {
    position: relative;
    background: #655137CC;
    color: #070707;
    font-size: 22px;
    line-height: 35px;
    text-align: center;
    border-radius: 10px;
     display: block;          /* Change from inline-block to block */
     margin-left: 31px;
     margin-right: 330px;      /* Crucial: Creates a right margin slightly wider than the infobox (290px + spacing) */
     width: auto;             /* Let it naturally calculate width */
     padding: 12px 20px;
     box-sizing: border-box;
}
}


#pagedoll-fairy {
  position: fixed;
  height: 31vh; 
  top: 2%;
  left: 79%;
} 
#pagedoll-sprite {
  position: absolute;
  top: 0;             /* Locks to the exact top edge of .left */
  left: 0;            /* Locks to the exact left edge of .left */
  height: 100px;       /* Maintains original image proportions */
  transform: translateY(-100%) translateY(3px); 
  display: block; 
  image-rendering: pixelated; 
}
#pagedoll-se {
  position: fixed;
  height: 40vh; 
  top: 58%;
  left: 81%;
} 
#pagedoll-sw {
  position: fixed;
  height: 40vh; 
  top: 58%;
  right:81%;
}  


/* The fheight thchart */
.chart-wrapper {
  background: #7a6851;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  width: 100%;
  transform-origin: top left;
  zoom: .8;
  margin-bottom: 42px;
  overflow: visible;
}
.chart-title {
  position: relative;
  text-align: center;
  margin-top: 0;
  margin-bottom: 30px;
  letter-spacing: 2px;
  z-index: 1;
}
/* Main Chart Area */
.height-chart {
  height: 608px;
  min-height: 608px;
  max-height: 608px;
  overflow-y: visible;
  position: relative;
  width: 100%;
  border-bottom: 8px solid #3D3836;
  background: rgba(255, 255, 255, 0.02);
  overflow: visible !important; /* Keeps the rightmost character safe from container clipping */
}
.chart-wrapper,
.height-chart,
.lineup-scroll,
.lineup-row,
.character-card {
  overflow: visible;
}

/* Background Measurement Lines */
.measurement-lines,
.measurement-lines-half {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Let clicks pass through */
}
.measurement-lines .line,
.measurement-lines-half .line {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
}
.measurement-lines .line::before,
.measurement-lines-half .line::before {
  content: '';
  position: absolute;
  left: 10px;
  top: -1.1em;
  color: rgba(0, 0, 0, 0.9);
  font-size: 14px;
  white-space: nowrap;
  pointer-events: none;
}
.measurement-lines .line::after,
.measurement-lines-half .line::after {
  content: '';
  position: absolute;
  left: 10px !important;
  top: 1.1em;
  color: rgba(0, 0, 0, 0.9);
  font-size: 14px;
  white-space: nowrap;
  pointer-events: none;
}
.measurement-lines .line::after,
.measurement-lines-half .line::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}
.measurement-lines .line::after {
  border-top: 1px solid rgba(0, 0, 0, 0.3);
}
.measurement-lines-half .line::after {
  border-top: 1px dashed rgba(0, 0, 0, 0.15);
}
.measurement-lines .line:nth-child(1) { top: 0%; }
.measurement-lines .line:nth-child(2) { top: 10%; }
.measurement-lines .line:nth-child(3) { top: 20%; }
.measurement-lines .line:nth-child(4) { top: 30%; }
.measurement-lines .line:nth-child(5) { top: 40%; }
.measurement-lines .line:nth-child(6) { top: 50%; }
.measurement-lines .line:nth-child(7) { top: 60%; }
.measurement-lines .line:nth-child(8) { top: 70%; }
.measurement-lines .line:nth-child(9) { top: 80%; }
.measurement-lines .line:nth-child(10) { top: 90%; }
.measurement-lines .line:nth-child(11) { top: 100%; transform: translateY(-100%); }

.measurement-lines .line:nth-child(1)::before { content: '300 cm'; }
.measurement-lines .line:nth-child(2)::before { content: '270 cm'; }
.measurement-lines .line:nth-child(3)::before { content: '240 cm'; }
.measurement-lines .line:nth-child(4)::before { content: '210 cm'; }
.measurement-lines .line:nth-child(5)::before { content: '180 cm'; }
.measurement-lines .line:nth-child(6)::before { content: '150 cm'; }
.measurement-lines .line:nth-child(7)::before { content: '120 cm'; }
.measurement-lines .line:nth-child(8)::before { content: '90 cm'; }
.measurement-lines .line:nth-child(9)::before { content: '60 cm'; }
.measurement-lines .line:nth-child(10)::before { content: '30 cm'; }
.measurement-lines .line:nth-child(11)::before { content: '0 cm'; }

.measurement-lines .line:nth-child(1)::after { content: '9.10ft'; }
.measurement-lines .line:nth-child(2)::after { content: '8.10ft'; }
.measurement-lines .line:nth-child(3)::after { content: '7.10ft'; }
.measurement-lines .line:nth-child(4)::after { content: '6.10ft'; }
.measurement-lines .line:nth-child(5)::after { content: '5.11ft'; }
.measurement-lines .line:nth-child(6)::after { content: '4.11ft'; }
.measurement-lines .line:nth-child(7)::after { content: '3.11ft'; }
.measurement-lines .line:nth-child(8)::after { content: '2.11ft'; }
.measurement-lines .line:nth-child(9)::after { content: '2ft'; }
.measurement-lines .line:nth-child(10)::after { content: '1ft'; }
.measurement-lines .line:nth-child(11)::after { border-top: none;}

.measurement-lines-half .line:nth-child(1) { top: 5%; }
.measurement-lines-half .line:nth-child(2) { top: 15%; }
.measurement-lines-half .line:nth-child(3) { top: 25%; }
.measurement-lines-half .line:nth-child(4) { top: 35%; }
.measurement-lines-half .line:nth-child(5) { top: 45%; }
.measurement-lines-half .line:nth-child(6) { top: 55%; }
.measurement-lines-half .line:nth-child(7) { top: 65%; }
.measurement-lines-half .line:nth-child(8) { top: 75%; }
.measurement-lines-half .line:nth-child(9) { top: 85%; }
.measurement-lines-half .line:nth-child(10) { top: 95%; }

/* Characters!!!!! */
.lineup-scroll {
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  bottom: -22px; /* push the scrollbar 12px lower */
  overflow-x: auto;
  overflow-y: visible;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  background: transparent;
  scrollbar-width: none;         /* Firefox */
  -ms-overflow-style: none;      /* IE 10+ */
  scrollbar-color: rgba(255,255,255,0.35) transparent;
}
.lineup-scroll::-webkit-scrollbar {
  height: 10px;
}
.lineup-scroll::-webkit-scrollbar-track {
  background: transparent;
}
/* Character Rows */
.lineup-row {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end; /* Snaps character cards to the floor */
  gap: 90px;
  flex-wrap: nowrap;
  padding: 0 48px;
  box-sizing: border-box;
}
/* Individual Character Sizing */
.character-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 180px;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
  background-color: transparent !important;
  min-height: calc(var(--char-height) * 2px + 52px);
  padding-top: 8px;
  margin-bottom: var(--floor-offset, 0px);
  cursor: grab;
  user-select: none;
}
.character-card:hover {
  transform: translateY(-4px) scale(1.03);
}
.image-box {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(var(--char-height) * 2px);
  max-height: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.character-image {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
}
.character-badge {
  position: absolute;
  top: -84px;
  left: 5px;
  width: 100px;
  height: auto;
  z-index: 2;
}
/* Character Info Box */
.character-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -21px;
  margin-bottom: 8px;
  text-align: center;
  background: rgba(180, 180, 180, 0.4);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  position: static;
  bottom: auto;
}
.content details {
  margin-bottom: 0;
}
.character-info .name {
  font-size: 21px;
  font-weight: bold;
  color: #000000;
}
.character-info .height-text {
  font-size: 16px;
  opacity: 0.8;
}
