/* =========================
   VARIABLES & THEMES
   ========================= */
:root {
  /* Standard theme (default) */
  --blue: #233355;
  --aqua: #39A481;
  --white: #dbd1b1;
  --deep-white: #62777a;
  --yellow: #e0961f;
  --orange: #D44A02;
  --red: #D44A02;
  --deep-orange: #993b08;
  --brown: #2c2422;
  --font-body: "Aleo";
  --font-display: "RockoFLF";
}

/* Dark theme */
[data-theme="dark"] {
  --blue: #000c26;
  --aqua: #24795D;
  --white: #ccc5ab;
  --deep-white: #43666c;
  --yellow: #ac7318;
  --orange: #8C3000;
  --red: #8C3000;
  --deep-orange: #000000;
  --brown: #000000;
}

/* Light theme */
[data-theme="light"] {
  --blue: #fff;
  --aqua: #3b6bbf;
  --white: #2f2e2a;
  --deep-white: #b9b9b9;
  --yellow: #959595;
  --orange: #646464;
  --red: #646464;
  --deep-orange: #fff;
  --brown: #c4c4c4;
}

/* Classic theme */
[data-theme="classic"] {
  --blue: #1e2c4c;
  --aqua: #d73333;
  --white: #FFF;
  --deep-white: #96e1ff;
  --yellow: #4070D0;
  --orange: #121d34;
  --red: #d73333;
  --deep-orange: #1e2c4c;
  --brown: #121d34;
  --font-display: "sans-serif";
  --font-body: "sans-serif";
}

/* ShowBiz theme */
[data-theme="funnet"] {
  --blue: #006bad;
  --aqua: #3333ff;
  --white: #000000ff;
  --deep-white: #993399;
  --yellow: #cccc66;
  --orange: #ffef08;
  --red: #ff0033;
  --deep-orange: #b594bd;
  --brown: #d94d04;
  --font-display: "Sylvar";
  --font-body: "helvetica";
}

/* ShowBiz theme */
[data-theme="showbiz"] {
  --blue: #201f1f;
  --aqua: #A66332;
  --white: #dbd1b1;
  --deep-white: #716666;
  --yellow: #d2c72a;
  --orange: #d29400;
  --red: #df221c;
  --deep-orange: #df221c;
  --brown: #171515;
}

/* FNaF theme */
[data-theme="fnaf"] {
  --blue: #101010ff;
  --aqua: #acce18ff;
  --white: #c6c6c6;
  --deep-white: #5b5b5bff;
  --yellow: #4a4a4aff;
  --orange: #2a2a2aff;
  --red: #cd0000ff;
  --deep-orange: #000;
  --brown: #000;
  --font-display: "Stalker";
}

/* Italy/Pasqually theme */
[data-theme="pasqually"] {
  --blue: #6D1A1F;
  --aqua: #009047;
  --white: #d9d7d1;
  --deep-white: #9b6767;
  --yellow: #d9d7d1;
  --orange: #CD2F3A;
  --red: #CD2F3A;
  --deep-orange: #009047;
  --brown: #2f1515;
}

/* Winter theme */
[data-theme="winter"] {
  --blue: #1c3d4d;
  --aqua: #47AEB3;
  --white: #ccc;
  --deep-white: #47757b;
  --yellow: #3c8636;
  --orange: #376A3C;
  --red: #ce293aff;
  --deep-orange: #4a7e86;
  --brown: #1a1e37;
}

/* Halloween theme */
[data-theme="halloween"] {
  --blue: #0e0611;
  --aqua: #CE2929;
  --white: #f2de73;
  --deep-white: #795677;
  --yellow: #9f5620;
  --orange: #DF7426;
  --red: #a20606ff;
  --deep-orange: #24172f;
  --brown: #220902;
  --font-display: "Unutterable";
}

/* Pride theme */
[data-theme="pride"] {
  --blue: #7d0c4c;
  --aqua: #ff7fc4;
  --white: #dbd1b1;
  --deep-white: #da62a3;
  --yellow: #e38d59;
  --orange: #de2d1e;
  --red: #de2d1e;
  --deep-orange: #b33227;
  --brown: #2c2422;
}

/* Anniversary theme */
[data-theme="anniversary"] {
  --blue: #404040;
  --aqua: #888;
  --white: #d9d9d9;
  --deep-white: #737373;
  --yellow: #a2a2a2;
  --orange: #686868;
  --red: #464646ff;
  --deep-orange: #2f2f2f;
  --brown: #222;
}

/* =========================
   FONT-FACES
   ========================= */
@font-face {
  font-family: "Aleo";
  src: url('/Fonts/Aleo-Regular.otf') format('opentype');
}

@font-face {
  font-family: "RockoFLF";
  src: url('/Fonts/RockoFLF-Bold.ttf') format('truetype');
}

@font-face {
  font-family: "Stalker";
  src: url('/Fonts/stalker1.ttf') format('truetype');
}

@font-face {
  font-family: "Sylvar";
  src: url('/Fonts/Sylvar.ttf') format('truetype');
}

@font-face {
  font-family: "Octobre";
  src: url('/Fonts/Octobre-Regular.otf') format('opentype');
}

@font-face {
  font-family: "Unutterable";
  src: url('/Fonts/Unutterable.ttf') format('truetype');
}

/* =========================
   HIDDEN / UTILITY SELECTORS
   ========================= */
[name=":0"],
[name=":1"],
[name=":2"],
[name=":3"],
[name=":4"],
[name=":5"],
[name=":6"],
[name=":7"],
[name=":8"],
[name=":9"],
[name=":10"],
[name=":11"],
[name=":12"],
[name=":13"],
[name=":14"],
[name=":15"],
[name=":16"],
[name=":17"],
[name=":18"],
[name=":19"],
[name=":20"] {
  display: none;
}

/* =========================
   GLOBAL / BASE
   ========================= */
html {
  background-color: var(--deep-orange);
}

[data-theme="funnet"] {
  background-image: url(/UI/Backgrounds/funnet.avif);
  background-size: 20rem;
  image-rendering: crisp-edges;
}

body {
  color: var(--white);
  background-color: var(--blue);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 65rem;
  min-width: 30rem;

  border-color: var(--yellow);
  border-style: solid;
  border-width: 3rem;
  border-radius: 8rem;
  padding-left: 5rem;
  padding-right: 5rem;
  padding-top: 3rem;
  padding-bottom: 3rem;

  outline-color: var(--white);
  outline-width: 1.5rem;
  outline-style: solid;

  box-shadow: 0 0 0 2rem var(--brown), inset 0 0 0 0.5rem var(--brown);

  text-wrap: pretty;
  word-wrap: anywhere;
}

[data-theme="fnaf"] body {
  outline-style: none;
  box-shadow: none;
  border-width: 0.5rem;
  border-radius: 0rem;
  border-color: var(--white);
}


[data-theme="funnet"] body {
  outline-style: none;
  box-shadow: none;
  border-width: 0rem;
  border-radius: 0rem;
  background-color: transparent;
}


[data-theme="classic"] body {
  outline-style: none;
  box-shadow: none;
  border: none;
}

[data-theme="classic"] h1 {
  color:var(--white);
  font-family: 'Linux Libertine','Georgia','Times',serif;
}

[data-theme="funnet"] h1,
[data-theme="funnet"] h2,
[data-theme="funnet"] h3{
  color:var(--deep-orange)
}


[data-theme="classic"] .tag-chip-container {
  color:var(--white);
  background-color:var(--brown);
  border-radius: 0rem;
}

[data-theme="funnet"] .tag-chip-container {
  color:var(--white);
  background-color: var(--deep-orange);
  border-color: var(--blue);
  font-family: var(--font-body);

}
[data-theme="funnet"] .tag-input {
  color:var(--white);
  font-family: var(--font-body);
}

[data-theme="funnet"] .tag-input::placeholder {
  color:var(--white);
  font-family: var(--font-body);
}

[data-theme="classic"] .fun-text {
  border: 0.125rem solid var(--white);
  padding: 0.5rem;
  border-left-color: var(--yellow);
  border-left-width: 0.75rem;
}



[data-theme="classic"] h2,h3,h4 {
  color:var(--deep-white)
}

[data-width="wide"] body {
  max-width: 80rem;
}


a {
  color: var(--aqua);
  text-decoration: none;
}

hr {
  border: .2rem solid var(--brown);
  border-radius: 5rem;
  margin-bottom: 1rem;
  margin-top: 1rem;
  color: transparent;
}

[data-theme="classic"] hr {
  border: 0.05125rem solid var(--white);
}


code {
  background-color: var(--brown);
  border-color: var(--brown);
  border-radius: 1rem;
  padding: 0.5rem;
}

caption {
  font-weight: bold;
  margin-bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

table,
th,
td {
  border: .25rem solid var(--brown);
  min-width: 5rem;
}

th {
  background-color: var(--orange);
  color: var(--white);
  padding: 0.5rem;
}

td {
  padding: 0.5rem;
}

/* =========================
   TYPOGRAPHY
   ========================= */
h1 {
  font-family: var(--font-display);
  letter-spacing: .2rem;
  font-size: 2rem;
  color: var(--yellow);
  margin: 0;
}

h2 {
  font-size: 1.5rem;
  color: var(--yellow);
}

.linkerror {
  color: var(--red);
}

.transcription-content strong,
.transcription-content h2 {
  color: var(--yellow);
  line-height: 2rem;
  margin-left: -2rem;
}

.transcription-content {
  line-height: 1rem;
  margin-left: 2rem;
}

/* =========================
   FORMS & CONTROLS
   ========================= */
select {
  margin: 0.5rem;
  font-family: var(--font-display);
  letter-spacing: .1rem;
  color: var(--white);
  background-color: var(--orange);
  font-size: 1rem;
  border-color: var(--brown);
  border-style: solid;
  border-width: .25rem;
  border-radius: 8rem;
  padding-left: 1rem;
  padding-right: 2rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  outline-color: var(--white);
  outline-width: 0.25rem;
  outline-style: solid;
  box-shadow: inset 0 0 0 0.25rem var(--yellow);
  line-height: normal;
  flex-shrink: 1;
  appearance: none;
  background-image: url(/UI/Emojis/wrench.svg);
  background-repeat: no-repeat;
  background-position-x: calc(100% - .75rem);
  background-size: 1rem;
  background-position-y: center;
}

select:hover {
  background-color: var(--yellow);
}

[data-theme="fnaf"] select{
  box-shadow: none;
  outline-style: none;
  border-radius: 0rem;
  border-color: var(--white);
}

/* =========================
   BUTTONS & INTERACTIVE
   ========================= */
.button {
  font-family: var(--font-display);
  letter-spacing: .1rem;
  color: var(--white);
  font-size: 1rem;
  max-width: 40vw;
  border-color: var(--brown);
  border-style: solid;
  border-width: .25rem;
  border-radius: 8rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  outline-color: var(--yellow);
  outline-width: 0.25rem;
  outline-style: solid;
  float: right;
  line-height: normal;
  background-color: var(--orange);
}


.button:hover{
  background-color: var(--aqua);
}

[data-theme="fnaf"].button,
[data-theme="fnaf"].ev-tab,
[data-theme="fnaf"]#ev-reset {
  border-radius: 0rem;
  outline: none;
  margin:0.5rem;
  background-color: var(--orange);
}

.button-dropdown {
  background-color: var(--orange);
  color: var(--white);
  border-radius: 0;
  border: solid;
  border-color: var(--yellow);
  border-top-width: 0;
  border-bottom-width: 0;
  border-left-width: 0.5rem;
  border-right-width: 0.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 0;
  padding-right: 0;
  font-size: 1rem;
  letter-spacing: .1rem;
  font-family: var(--font-display);
  flex: 1;
  margin-left: 0.25rem;
  margin-right: 0.25rem;
  margin-top: 0;
  margin-bottom: 0;
  outline-style: none;
  cursor: pointer;
  text-align: center;
  box-shadow: none;
}

.button-dropdown:hover {
  background-color: var(--aqua);
}

[data-theme="fnaf"] .button-dropdown:hover {
  color: var(--brown);
}

.article-button,
.article-editpage-button,
.ev-tab,
#ev-reset {
  background-color: var(--orange);
  color: var(--white);
  border: solid;
  border-color: var(--yellow);
  border-top-width: 0;
  border-bottom-width: 0;
  border-left-width: 0.5rem;
  border-right-width: 0.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 1rem;
  letter-spacing: .1rem;
  font-family: var(--font-display);
  flex: 1;
  margin-left: 0.25rem;
  margin-right: 0.25rem;
  cursor: pointer;
}

.article-button:hover,
.ev-tab:hover,
#ev-reset:hover{
  background-color: var(--yellow);
  outline-color: var(--white);
}

/* =========================
   LIST / RESULT BLOCKS
   ========================= */

/* Outer card */
.alt-list-page-block,
.alt-list-page-empty-block {
  background: var(--blue);
  border-radius: 1rem;
  overflow: hidden;
  min-width: 12.5rem;
  max-width: 12.5rem;
  transition: transform 0.15s ease;
  border-color: var(--brown);
  border-style: solid;
  border-width: .25rem;
  box-shadow: 0 0 0 0.25rem var(--orange);
}

[data-theme="fnaf"] .alt-list-page-block,
.alt-list-page-empty-block {
  border-radius: 0rem;
}

.alt-list-page-block:hover,
.list-page-block:hover,
.list-page-block-video:hover,
.list-page-empty-block:hover {
  transform: translateY(-0.25rem);
}

/* Container becomes vertical */
.alt-list-page-container {
  display: flex;
  flex-direction: column;
  height: 12.5rem;
  position: relative;
}

/* Image on top */
.alt-list-image {
  height: 100%;
  overflow: hidden;
}

.alt-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content section */
.alt-list-page-content {
  padding: 0.75rem 0.75rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--deep-white);
}

/* Title */
.alt-list-page-content a {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--aqua);
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
  display: block;
  position: relative;
}

.alt-list-page-content a span {
  display: inline-block;
  padding-right: 2rem;
  transform: translateX(0);
  transition: none;
}

.alt-list-page-content a {
  mask-image: linear-gradient(to right,
      black 0%,
      black 90%,
      transparent 100%);
}

.alt-list-page-block:hover .alt-list-page-content a span {
  transition: transform 2s linear;
  transform: translateX(-75%);
}

.alt-list-page-content a:hover {
  text-decoration: underline;
}

/* Optional emoji */
.alt-list-page-content .emoji {
  height: 1em;
  vertical-align: middle;
}

/* Date / meta text */
.alt-list-page-date {
  font-size: 0.85rem;
  color: var(--yellow);
  margin-top: auto;
}

.emoji {
  width: 1rem;
  margin-right: 0.5em;
}

.horizontal-pagebox-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5rem;
  padding-bottom: 1.5rem;
  scroll-behavior: smooth;
  white-space: nowrap;
}

.horizontal-pagebox-scroll::-webkit-scrollbar {
  height: 0.5rem;
}

.horizontal-pagebox-scroll::-webkit-scrollbar-track {
  background: var(--deep-orange);
  border-radius: 1rem;
}

.horizontal-pagebox-scroll::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 1rem;
}

/* Mobile polish */
@media (max-width: 600px) {
  .alt-list-page-content {
    padding: 0.625rem 0.75rem 0.75rem;
  }

  .alt-list-page-content a {
    font-size: 1rem;
  }
}

.list-page-block,
.list-page-empty-block,
.list-page-block-video {
  display: flex;
  flex-direction: row;
  position: relative;
  align-content: space-between;
  color: var(--yellow);
  background-color: var(--blue);
  font-family: var(--font-display);
  font-size: .9rem;
  line-height: 1.5;
  max-width: 100%;
  max-height: 4.5rem;
  min-height: 4.5rem;
  border-color: var(--brown);
  border-style: solid;
  border-width: .25rem;
  border-radius: 5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: transform 0.15s ease;
}

.list-page-block-video {
  min-height: 12.5rem;
  width: 100%;
  border-radius: 2.5rem;
}

.list-page-block,
.list-page-block-video {
  box-shadow: 0 0 0 0.25rem var(--orange);
}

.list-page-empty-block {
  box-shadow: 0 0 0 0.25rem var(--deep-white);
}

.list-review-block {
  display: flex;
  flex-direction: row;
  position: relative;
  align-content: space-between;
  color: var(--yellow);
  background-color: var(--blue);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 100%;
  min-height: 5.5rem;
  border-color: var(--brown);
  border-style: solid;
  border-width: .25rem;
  border-radius: 2.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 0 0.25rem var(--orange);
  overflow: hidden;
  padding: 1.5rem;
}

.list-review-body {
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.5;
  text-wrap: pretty;
  word-wrap: anywhere;
}

.list-page-container,
.list-review-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.list-page-content,
.list-page-video-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  font-size: 1.15rem;
  align-self: center;
  margin-right: 1rem;
}

.list-review-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  align-self: center;
  margin-right: 1rem;
}

.list-review-content a {
  font-size: 1.15rem;
}

.list-page-video-content {
  font-family: var(--font-body);
  line-height: 1.5;
}

.list-page-date {
  color: var(--yellow);
  font-size: 1rem;
  font-family: var(--font-display);
}

.list-review-date {
  color: var(--deep-white);
  font-size: 1rem;
  font-family: var(--font-display);
}

.list-review-date a {
  font-size: 1rem;
}

.edit-button-container {
  align-self: center;
  min-width: 10rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  margin-right: 1rem;
}


.list-page-block:hover,
.alt-list-page-block:hover,
.list-page-empty-block:hover {
  box-shadow: 0 0 0 0.25rem var(--aqua);
}

/* =========================
   IMAGES, GALLERY & MEDIA
   ========================= */
.remoji {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  vertical-align: middle;
}

img.remoji {
  width: 1rem;
  height: 1rem;
  vertical-align: middle;
  transition-duration: 100ms;
  transform: scale(1);
  z-index: 1;
  position: relative;
  transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
}

img.remoji:hover {
  transform: scale(2.25);
  z-index: 10000;
}

.list-image img {
  border-radius: 1rem;
  max-width: 8rem;
  min-width: 8rem;
  overflow: hidden;
  margin-right: 1rem;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.list-video img {
  border-radius: 1rem;
  max-width: 20rem;
  min-width: 20rem;
  overflow: hidden;
  margin-right: 1rem;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-around;
}

.gallery-image-box {
  max-width: 14rem;
  min-width: 14rem;
  margin: .5rem;
  display: block;
  align-content: flex-start;
  align-self: stretch;
}

.article-photo-image {
  max-width: 14rem;
  max-height: 14rem;
  min-width: 14rem;
  min-height: 14rem;
  display: block;
  overflow: hidden;
  border-width: 0.25rem;
  border-color: var(--white);
  border-style: solid;
  border-radius: 0.5rem;
  align-content: center;
  background-color: var(--brown);
}

.article-photo-image img {
  width: 14rem;
  height: 14rem;
  object-fit: contain;
  border-radius: 0.5rem;
}

.article-store-thumbnail {
  max-height: 100%;
  border-radius: 1rem;
  width: auto;
  overflow: hidden;
  margin-bottom: 2rem;
  margin-left: -4.75rem;
  margin-right: -4.75rem;
}

.article-store-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-bottom: .5rem;
  border-color: var(--brown);
  border-style: solid;
}

.article-photo-thumbnail {
  border-radius: 1rem;
  width: auto;
  height: auto;
  overflow: hidden;
  margin-top: 1rem;
  margin-bottom: 1rem;
  margin-left: -4.5rem;
  margin-right: -4.5rem;
}

.article-photo-thumbnail img {
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.article-thumbnail img {
  height: auto;
  max-width: 20rem;
  min-width: 20rem;
  border-width: .25rem;
  border-radius: .5rem;
  border-color: var(--white);
  border-style: solid;
}

.article-photo-description {
  margin: 0.5rem;
  text-align: center;
}

.article-video iframe {
  width: 100%;
  aspect-ratio: 16/9;
  margin-top: 1rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
}

/* =========================
   ARTICLE / INFOBOX
   ========================= */
.article-section {
  width: 100%;
  display: inline-block;
}

.article-topbar {
  margin-bottom: 1.5rem;
  margin-top: 1rem;
  margin-left: -5rem;
  margin-right: -5rem;
  color: var(--brown);
  background-color: var(--white);
  border: solid;
  border-top-width: 0.5rem;
  border-bottom-width: 0.5rem;
  border-left-width: 0.5rem;
  border-right-width: 0.5rem;
  border-color: var(--brown);
  width: auto;
  flex: auto;
  justify-content: space-evenly;
  display: flex;
  flex-wrap: wrap;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.article-infobox,
.article-infobox-location {
  float: right;
  margin-bottom: 1rem;
  margin-left: 1rem;
  color: var(--brown);
  background-color: var(--yellow);
  border: solid;
  border-radius: 1rem;
  border-width: 0.5rem;
  border-top-width: 0rem;
  border-right-width: 0rem;
  border-bottom-right-radius: 0rem;
  border-top-left-radius: 0rem;
  border-top-right-radius: 0rem;
  border-color: var(--brown);
  padding: 1rem;
  max-width: 20.5rem;
  min-width: 20.5rem;
}

[data-theme="classic"] .article-infobox{
  background-color: var(--blue);
  color: var(--white);
  border-color: var(--white);
  border-width: 0.125rem;
  border-radius: 0rem;
}

.article-infobox {
  margin-top: -1.5rem;
  margin-right: -4.5rem;
}

.article-infobox-location {
  margin-top: -4.5rem;
  margin-right: -4.5rem;
  padding-top: 3.5rem;
}

.article-infobox-linkbox {
  background-color: var(--brown);
  padding: 0.5rem;
  border-radius: 1rem;
  color: var(--white);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.article-infobox-linkbox ul {
  margin: 0;
}

/* =========================
   GRAPHS
   ========================= */
.hugochart-svg {
  color: var(--yellow);
}

.hugochart .axis {
  stroke: var(--yellow);
  stroke-width: 1;
}

.hugochart .grid {
  stroke: var(--white);
  stroke-width: 1;
  stroke-dasharray: 2 3;
  opacity: 0.9;
}

.hugochart .tick-label {
  fill: var(--yellow);
}

.hugochart .chart-title {
  fill: var(--yellow);
}

.hugochart-area .tick-label,
.hugochart-area .chart-title {
  fill: var(--yellow);
}

.hugochart-line {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hugochart-point {
  stroke: none;
}

.hugochart-legend {
  max-height: 9.5rem;
  overflow-y: auto;
  margin-left: 5rem;
  width: 20rem;
}

.hugochart-pie-inline-label {
  font-size: 0.75rem;
  fill: var(--brown);
  font-weight: 600;
  pointer-events: none;
}

.hugochart-empty-label {
  font-size: 0.875rem;
  fill: var(--deep-white);
}

.hugochart-pie-center-label {
  fill: var(--brown);
  pointer-events: none;
}

.series-total {
  stroke-width: 2 !important;
}

.x-tick-label {
  font-size: 0.625rem;
  letter-spacing: 0.0125rem;
  color: var(--yellow);
}

.x-tick {
  stroke: var(--yellow);
  stroke-width: 1;
  color: var(--yellow);
}


/* =========================
   TABS
   ========================= */
.tabs {
  margin-top: 1.5rem;
  width: 100%;
}

.tab-buttons {
  display: flex;
  gap: 2rem;
  border-bottom: 0.125rem solid var(--brown);
  padding-bottom: 0.25rem;
  margin-bottom: 1rem;
}

.tab-button {
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .1rem;
  color: var(--white);
  opacity: 0.6;
  padding: 0.25rem 0;
  cursor: pointer;
  position: relative;
  text-wrap: nowrap;
}

.tab-button:hover {
  opacity: 0.85;
}

.tab-button.active {
  opacity: 1;
}

.tab-button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.4rem;
  height: 0.1875rem;
  background-color: var(--yellow);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* =========================
   SEARCH / UI HELPERS
   ========================= */
.page-itrem {
  margin-left: 1rem;
  margin-right: 1rem;
  margin-top: 1rem;
}

.pagination {
  font-size: 1.5rem;
  letter-spacing: 1rem;
}

.pagination.pagination-default {
  display: flex;
  justify-content: center;
  padding-left: 0;
  list-style: none;
  margin: 1rem 0;
}

.pagination.pagination-default .page-itrem {
  margin: 0 0.25rem;
}

.pagination.pagination-default .page-link {
  display: block;
}

.loading-text {
  visibility: visible;
  text-align: center;
  margin-top: 1rem;
  color: var(--yellow);
  letter-spacing: 1rem;
  animation: pulse-spacing 1.5s ease-in-out infinite;
}


/* =========================
   GALLERY / FUN / LOGO
   ========================= */
.fun-logo img{
  width: 100%;
  margin-top: -1.5rem;
  margin-bottom: -2.5rem;
}

[data-theme="funnet"] .fun-logo {
  width:100%;
}

[data-width="wide"] .fun-logo img {
  width: 80%;
  margin-left: auto;
  margin-right:auto;
  display:block;
}

.tri-column {
  column-count: 3;
}

.fun-text {
  text-align: center;
  margin: 0;
  font-size: 1.25rem;
  font-family: var(--font-display);
  letter-spacing: .1rem;
  color: var(--white);
}

[data-theme="funnet"] .fun-text strong {
  color: var(--blue);
}

.fun-text strong {
  color: var(--yellow);
  display: inline-block;
  animation: wave 3s ease-in-out infinite;
}

/* =========================
   MISC HELPERS
   ========================= */

/* Profile Header */
.profile-header {
  margin-top: 1rem;
}

.profile-banner {
  width: 100%;
  height: 10rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.profile-info-container {
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.profile-avatar-section {
  flex-shrink: 0;
}

.profile-avatar {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  object-fit: cover;
  margin-top: -2rem;
  
}

.profile-info {
  flex: 1;
  min-width: 0; 
}

.profile-name {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.2;
}

.profile-rank {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.profile-rank .gradient-text {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 100%;
  display: inline-block;
}

.profile-rank sup {
  font-size: 0.8em;
  margin-left: 0.25rem;
  opacity: 0.8;
}

.profile-bio {
  margin-bottom: 1rem;
}

.profile-links {
  margin-top: 1rem;
}

.profile-forum-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--aqua);
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background 0.2s;
  color: var(--white);
}

.profile-forum-link svg {
  flex-shrink: 0;
}

/* Github Pulls */
.add-images-button {
  padding: 0.625rem 1.25rem;
  background-color: var(--aqua);
  color: var(--white);
  border: 0.25rem solid var(--brown);
  border-radius: 0.75rem;
  cursor: pointer;
  font-family: var(--font-display);
}

.add-images-button:hover {
  background-color: var(--yellow);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: var(--blue);
  color: var(--white);
  margin: 5% auto;
  padding: 1.875rem;
  border: 0.0625rem solid var(--brown);
  border-radius: 0.5rem;
  width: 90%;
  max-width: 37.5rem;
  max-height: 80vh;
  overflow-y: auto;
}

.close {
  color: var(--deep-white);
  float: right;
  font-size: 1.75rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1.25rem;
}

.close:hover,
.close:focus {
  color: var(--brown);
}

.step h3 {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.step button {
  margin-top: 0.9375rem;
  margin-right: 0.625rem;
  padding: 0.5rem 1rem;
  border: 0.0625rem solid var(--brown);
  border-radius: 0.375rem;
  cursor: pointer;
  background-color: var(--deep-white);
  color: var(--white);
  font-family: var(--font-display);
}

.step button:hover {
  background-color: var(--aqua);
  color: var(--white);
  border-color: var(--aqua);
}

#image-files {
  width: 100%;
  padding: 0.625rem;
  border: 0.125rem dashed var(--brown);
  border-radius: 0.375rem;
}

#image-description {
  width: 100%;
  padding: 0.625rem;
  border: 0.0625rem solid var(--brown);
  border-radius: 0.375rem;
  font-family: var(--font-body);
}

.date-inputs {
  display: flex;
  gap: 0.625rem;
}

.date-inputs select {
  flex: 1;
  padding: 0.5rem;
  border: 0.0625rem solid var(--brown);
  border-radius: 0.375rem;
}

.citation-input {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.625rem;
  border: 0.0625rem solid var(--brown);
  border-radius: 0.375rem;
}

.hint {
  font-size: 0.75rem;
  color: var(--deep-white);
  margin-top: 0.3125rem;
}

#instructions-content {
  background-color: var(--deep-white);
  border: 0.0625rem solid var(--brown);
  border-radius: 0.375rem;
  padding: 1.25rem;
}

#instructions-content h4 {
  margin-top: 0;
}

#instructions-content pre {
  background-color: var(--white);
  border: 0.0625rem solid var(--brown);
  border-radius: 0.25rem;
  padding: 0.625rem;
  overflow-x: auto;
  font-size: 0.75rem;
}

#instructions-content code {
  background-color: var(--brown);
  color: var(--white);
  padding: 0.125rem 0.375rem;
  border-radius: 0.1875rem;
}

.download-link {
  display: inline-block;
  margin: 0.625rem 0.625rem 0.625rem 0;
  padding: 0.5rem 1rem;
  background-color: var(--aqua);
  color: var(--white);
  text-decoration: none;
  border-radius: 0.375rem;
  font-family: var(--font-display);
}

.download-link:hover {
  background-color: var(--yellow);
}

.github-link {
  display: inline-block;
  margin: 1.25rem 0;
  padding: 0.75rem 1.5rem;
  background-color: var(--aqua);
  color: var(--white);
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: bold;
  font-family: var(--font-display);
}

.github-link:hover {
  background-color: var(--yellow);
}

/* Reviews Section */
.reviews-section {
  margin: 1rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-info-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .profile-avatar {
    margin-top: -3.75rem;
  }
  
  .profile-name {
    font-size: 1.5rem;
  }
  
  .profile-banner {
    height: 9.375rem;
  }
}

/* Existing gradient-text class support */
.gradient-text {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 100%;
}

.contributor-avatar {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 0.5rem;

}

.contributors {
  color: var(--yellow);
  word-wrap: break-word;
}

.contributors sup {
  color: var(--brown);
}

sup {
  color: var(--yellow);
}

.news-content {
  width: auto;
  margin-left: 6rem;
  margin-right: 6rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.gradient-text {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline-block;
}
.tw-video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  margin-bottom: 1.5rem;
}

.tw-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.tw-evidence-tabs{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  width: 100%;
}

.tw-evidence-controls {
    width: 100%;
  }
.tw-evidence-wrap {
    width: 100%;
    margin-bottom: 1.5em;
  }
  .ocr-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
    font-size: 0;
    max-width: 100%;
  }
  .ocr-wrap img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
  }
  .ocr-region {
    position: absolute;
    cursor: crosshair;
    box-sizing: border-box;
    transition: background 0.15s;
    transform-origin: top left;
  }
  .ocr-region:hover {
    background: rgba(255, 230, 50, 0.25);
    outline: 1px solid rgba(255, 220, 0, 0.7);
  }
  .tw-tag-strip {
    margin-top: 1.2em;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35em;
  }
  .tw-tag {
    display: inline-block;
    background: #2a2a2a;
    color: #ddd;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: monospace;
  }
  .tw-ocr-tooltip {
    position: fixed;
    background: #111;
    color: #f5f5f5;
    font-size: 0.78rem;
    font-family: monospace;
    line-height: 1.4;
    white-space: pre-wrap;
    max-width: 280px;
    padding: 6px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
    z-index: 9999;
    pointer-events: none;
    display: none;
  }

/* =========================
   Tracklist (page content)
   ========================= */

.segments {
  list-style: none;
  padding-left: 1.5rem;
  width: 60%;
}

.segment {
  margin-bottom: 0.75rem;
}

.segment-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--yellow);
}

.segment-items {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
}

.track {
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.track:hover {
  background: rgba(0, 0, 0, 0.03);
}

.track.active {
  background: rgba(0, 0, 0, 0.07);
  font-weight: 700;
}

.medley-title {
  font-style: italic;
  margin-bottom: 0.25rem;
}

.active-parent > .segment-title,
.active-parent > .medley-title {
  text-decoration: underline;
}

.track-time {
  opacity: 0.7;
  margin-left: 1rem;
  white-space: nowrap;
}

/* =========================
   Persistent player
   ========================= */

.persistent-player {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 30rem;
  max-width: calc(100% - 3rem);
  background: var(--yellow);
  color: var(--brown);
  border: 0.0625rem solid var(--brown);
  box-shadow: 0 0.375rem 1.5rem rgba(0, 0, 0, 0.12);
  border-radius: 0.5rem;
  z-index: 1200;
  padding: 0.75rem;
}

.pp-header a {
  color: var(--brown);
}

.persistent-player.hidden {
  display: none;
}

/* header: title left, close button right */
.persistent-player .pp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.persistent-player .pp-title {
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* close button */
.persistent-player .pp-controls button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem 0.375rem;
  line-height: 1;
  color: inherit;
}

.persistent-player .pp-controls button:hover {
  opacity: 0.7;
}



/* =========================
   LAZY IMAGES
   ========================= */
.lazy-photo {
  filter: blur(0.2rem);
  opacity: 0.6;
  animation: pulseOpacity 3s ease-in-out infinite;
  transition: filter 1s ease, opacity 1s ease;
}

@keyframes pulseOpacity {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 0.9;
  }
}

.lazy-photo.loaded {
  filter: blur(0);
  opacity: 1;
  animation: none;
}

/* =========================
   NEW SEARCH 
   ========================= */

.search-collapsible {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.search-collapsible.expanded {
  max-height: 20000rem;
}

.search-ui-container {
  margin: 1rem 0;
  font-family: var(--font-display), var(--font-body);
}

.search-controls {
  margin-bottom: 1rem;
}

.search-fuzzy-wrapper {
  margin-left: 1rem;
  margin-right: 1rem;
}

.search-fuzzy {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border-radius: 1rem;
  border: 0.25rem solid var(--brown);
  background-color: var(--deep-white);
  color: var(--white);
  outline: none;
  font-family: var(--font-display);
}

.search-fuzzy::placeholder {
  color: var(--white);
}

.search-tags-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.tag-chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border: 0.25rem solid var(--brown);
  border-radius: 1rem;
  min-height: 3rem;
  cursor: text;
  background-color: var(--deep-white);
}

.tag-input {
  border: none;
  outline: none;
  padding: 0.5rem;
  font-size: 0.95rem;
  background: transparent;
  color: var(--white);
  font-family: var(--font-display);
}

.tag-input::placeholder {
  color: var(--white);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 999rem;
  font-size: 1rem;
  background-color: var(--orange);
  color: var(--white);
}

.tag-chip-neg {
  background-color: var(--deep-orange);
  color: var(--yellow);
}

.tag-chip-pos {
  background-color: var(--aqua);
  color: var(--blue);
}

.tag-chip-close {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.tag-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.5rem;
  z-index: 80;
  max-height: 15rem;
  overflow-y: auto;
  border: 0.25rem solid var(--brown);
  border-radius: 1rem;
  background-color: var(--blue);
  box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.1);
  display: none;
}

.tag-suggestion {
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  color: var(--white);
  font-family: var(--font-display);
}

.tag-suggestion.active,
.tag-suggestion:hover {
  background-color: var(--orange);
  color: var(--white);
}

.suggest-count {
  font-size: 0.75rem;
  color: var(--yellow);
  margin-left: 0.5rem;
}

.search-layout {
  display: block;
  gap: 1rem;
  align-items: flex-start;
}

.search-results-col {
  flex: 1;
}

.predef-scroll {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.25rem;
  max-height: 40rem;
  overflow-y: auto;
  scrollbar-width: thin;
}

.predef-scroll::-webkit-scrollbar {
  width: 0.375rem;
}

.predef-scroll::-webkit-scrollbar-thumb {
  background-color: var(--brown);
  border-radius: 0.1875rem;
}

.predef-tags {
  color: var(--yellow);
}

.predef-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.predef-tag-btn {
  white-space: nowrap;
  display: flex;
  color: var(--brown);
  padding: 0.5rem 0.75rem;
  border-radius: 1rem;
  border: 0.25rem solid var(--brown);
  background-color: var(--tag-bg, var(--deep-white));
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
}

.tag-count,
.predef-tag-btn sup {
  opacity: .5;
  font-size: .75em;
  margin-left: .35em;
  color: var(--brown);
}


[data-theme="fnaf"] .predef-tag-btn{
  border-radius: 0rem;
  border-color: var(--white);
}

[data-theme="funnet"] .predef-tag-btn{
  color: var(--white);
  font-family: var(--font-body);
}

.results-summary {
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--yellow);
}

.results-section {
  margin-bottom: 1rem;
}

.results-list>* {
  margin: 1rem;
}

.alt-list-text-preview {
  width: 100%;
  height: 100%;
  padding: 0.6rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--deep-white);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  box-sizing: border-box;
  text-wrap: auto;
}

.gallery-btn {
  background: var(--yellow);
  color: var(--brown);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 1rem;
  display: block;
}

.gallery-btn:hover {
  opacity: 0.8;
}

#custom-toolbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
}

.toolbar-btn {
  padding: 0.5rem 1rem;
  background: var(--orange);
  border-radius: 1rem;
  border: 0.25rem solid var(--brown);
  color: var(--white);
  cursor: pointer;
}

[data-theme="fnaf"] .toolbar-btn{
  border-radius: 0rem;
}

[data-theme="fnaf"] #editor-actions button{
  border-radius: 0rem;
}
[data-theme="fnaf"] #auth-and-load{
  border-radius: 0rem;
}


.toolbar-btn:hover {
  background: var(--yellow);
}

#editor-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

#editor-actions button{
  padding: 0.5rem 1rem;
  background: var(--orange);
  border-radius: 1rem;
  border: 0.25rem solid var(--brown);
  color: var(--white);
  cursor: pointer;
}

#editor-actions button:hover {
  background: var(--yellow);
}

.modal {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  background-color: var(--brown);
  margin: 10% auto;
  padding: 2rem;
  border: 2px solid var(--yellow);
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  color: var(--deep-white);
}

.progress-item {
  padding: 0.5rem 0;
  font-size: 14px;
}

.github-link {
  display: inline-block;
  background: var(--yellow);
  color: var(--brown);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  margin: 1rem 0;
  font-weight: bold;
}

.github-link:hover {
  opacity: 0.8;
}

#edit-github-token {
  width: 100%;
  padding: 0.75rem;
  margin: 0.5rem 0;
  border-radius: 1rem;
  border: 0.25rem solid var(--brown);
  background-color: var(--deep-white);
  color: var(--white);
  font-family: var(--font-display);
}

[data-theme="classic"] #edit-github-token {
  background-color: var(--brown);
}

#auth-and-load {
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  border: 0.25rem solid var(--brown);
  background-color: var(--orange);
  font-weight: bold;
  cursor: pointer;
  margin-top: 1rem;
}

#auth-and-load:hover{
  background-color: var(--yellow)
}

details {
  background: var(--blue);
  border-radius: 1rem;
  border: 0.25rem solid var(--brown);
  padding: 1rem;
}

details summary {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

details ol {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

details li {
  margin: 0.5rem 0;
}

details a {
  color: var(--yellow);
}

.date-inputs {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.date-inputs select {
  flex: 1;
  padding: 0.5rem;
  background: var(--brown);
  border: 1px solid var(--deep-white);
  color: var(--deep-white);
  border-radius: 4px;
}

.step {
  margin-bottom: 1rem;
}

.step button {
  background: var(--yellow);
  color: var(--brown);
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 0.5rem;
}

.step textarea, .step input[type="file"] {
  width: 100%;
  padding: 0.5rem;
  margin: 0.5rem 0;
  background: var(--brown);
  border: 1px solid var(--deep-white);
  color: var(--deep-white);
  border-radius: 4px;
}

.close-gallery {
  color: var(--deep-white);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-gallery:hover {
  color: var(--yellow);
}

/* =========================
   SPLASH
   ========================= */
.splash-text {
  position: relative;
  color: var(--white);
  text-align: center;
  transform: translate(0%, -4.25rem);
  font-family: var(--font-display);
  letter-spacing: .1rem;
  margin: -1rem;
}

[data-theme="classic"] .splash-text {
  margin-top:2rem;
  margin-bottom:-3rem;
}

[data-theme="fnaf"] .splash-text {
  margin-top:2rem;
  margin-bottom:-3rem;
  color:var(--aqua)
}

/* =========================
   SNOW & ANIMATIONS
   ========================= */
.snow_wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.snow,
.snow:after,
.snow::before {
  content: '';
  position: absolute;
  top: -40.625rem;
  right: 0;
  bottom: 0;
  left: 0;
  background-image:
    radial-gradient(0.25rem 0.25rem at 6.25rem 3.125rem, var(--white), transparent),
    radial-gradient(0.375rem 0.375rem at 12.5rem 9.375rem, var(--white), transparent),
    radial-gradient(0.1875rem 0.1875rem at 18.75rem 15.625rem, var(--white), transparent),
    radial-gradient(0.25rem 0.25rem at 25rem 21.875rem, var(--white), transparent),
    radial-gradient(0.375rem 0.375rem at 31.25rem 6.25rem, var(--white), transparent),
    radial-gradient(0.1875rem 0.1875rem at 3.125rem 12.5rem, var(--white), transparent),
    radial-gradient(0.25rem 0.25rem at 9.375rem 18.75rem, var(--white), transparent),
    radial-gradient(0.375rem 0.375rem at 15.625rem 25rem, var(--white), transparent),
    radial-gradient(0.1875rem 0.1875rem at 21.875rem 31.25rem, var(--white), transparent),
    radial-gradient(0.25rem 0.25rem at 34.375rem 34.375rem, var(--white), transparent);
  background-size: 40.625rem 40.625rem;
  animation: SnowAnim 3s linear infinite;
}

.snow:after {
  margin-left: -15.625rem;
  opacity: 0.5;
  filter: blur(0.125rem);
  animation-direction: reverse;
  animation-duration: 6s;
}

.snow::before {
  margin-left: -21.875rem;
  opacity: 0.7;
  filter: blur(0.0625rem);
  animation-direction: reverse;
  animation-duration: 9s;
}

/* =========================
   FNaF CAMERA SYSTEM
   ========================= */
.fnaf_camera {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.fnaf_background {
  position: absolute;
  top: 0;
  left: 0;
  width: 120%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 40%;
}

.fnaf_static {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/UI/static.avif');
  background-size: 50rem,50rem;
  background-repeat: repeat;
  opacity: 0.2;
  transition: opacity 0.3s;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* =========================
   SETTINGS BUTTON & MODAL
   ========================= */
.settings-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: var(--orange);
  color: var(--white);
  border: 0.25rem solid var(--brown);
  outline: 0.25rem solid var(--yellow);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="fnaf"] .settings-button{
  box-shadow: none;
  outline-style: none;
  border-radius: 0rem;
  border-color: var(--white);
}

.settings-button:hover {
  background-color: var(--yellow);
}

.settings-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.settings-modal-content {
  background-color: var(--blue);
  border: 0.5rem solid var(--brown);
  border-radius: 2rem;
  outline: 0.25rem solid var(--yellow);
  max-width: 35rem;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 0 2rem rgba(0, 0, 0, 0.5);
}

[data-theme="fnaf"] .settings-modal-content {
  border-radius: 0rem;
  outline-style: none;
  box-shadow: none;
  border-color: var(--white);
}

.settings-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 0.25rem solid var(--brown);
}

.settings-modal-header h2 {
  margin: 0;
  color: var(--yellow);
  font-family: var(--font-display);
}

.settings-modal-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.settings-modal-close:hover {
  color: var(--orange);
}

.settings-modal-body {
  padding: 2rem;
}

.setting-group {
  margin-bottom: 1.5rem;
}

.setting-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1rem;
}

.setting-group select {
  width: 100%;
  margin: 0;
}

.settings-modal-footer {
  padding: 1.5rem 2rem;
  border-top: 0.25rem solid var(--brown);
  background-color: rgba(0, 0, 0, 0.2);
}

@keyframes SnowAnim {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(40.625rem);
  }
}

@keyframes getbig {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(100);
  }
}

@keyframes swing {
  0% {
    transform: rotate(-30deg);
  }

  50% {
    transform: rotate(30deg);
  }

  100% {
    transform: rotate(-30deg);
  }
}

@keyframes wave {

  0%,
  100% {
    transform: translateY(-.15rem);
  }

  50% {
    transform: translateY(.15rem);
  }
}

@keyframes pulse-spacing {
  0% {
    letter-spacing: 0.8rem;
  }

  50% {
    letter-spacing: 1.4rem;
  }

  100% {
    letter-spacing: 0.8rem;
  }
}

/* =========================
   MEDIA / RESPONSIVE
   ========================= */
@media (max-width: 800px) {
  body {
    padding-left: 2rem;
    padding-right: 2rem;
    border-width: 2rem;
    outline-width: 1.25rem;
  }

  .article-topbar {
    margin-left: -2rem;
    margin-right: -2rem;
  }

  .article-infobox {
    margin-right: -1.5rem;
    max-width: 15rem;
    min-width: 15rem;
  }

  .article-thumbnail img {
    max-width: 15rem;
    min-width: 15rem;
  }

  .article-store-thumbnail img {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
  }

  .news-content {
    margin-left: 0;
    margin-right: 0;
  }

  .splash-text {
    transform: translate(0%, -4rem);
  }

  .tab-buttons {
    gap: 0.5rem;
  }

  .tab-button {
    font-size: 0.9rem;
  }

  .tri-column {
    column-count: 1;
  }

  .list-page-content,
  .list-review-content,
  .list-page-video-content {
    margin: auto;
  }

  .list-video img {
    max-width: 10rem;
    min-width: 10rem;
  }

  .edit-button-container {
    min-width: 6rem;
  }

  .fun-logo img {
    margin-top: -1.25rem;
    margin-bottom: 0;
  }
}