/* ========================= 
   Variables
========================= */ 
:root{/*Pastel Goth*/
  --text-color: #d3d3d3;/*Never changes*/
  --primary-color: #483fb1;
  --accent-color: #ff7bff;
  --overlay-color: rgba(101, 84, 138, 0.8);
  --background-image: url("https://i.imgur.com/5KOvzzJ.gif");
  --cursor-image: url(https://pomesa.neocities.org/assets/img/cursor.png);
  --header-graphic: url("https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/cf2836cb-5893-4a6c-b156-5a89d94fc721/db47g1s-95961fde-f942-438a-bdae-7171b5e8d9e9.gif?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7InBhdGgiOiIvZi9jZjI4MzZjYi01ODkzLTRhNmMtYjE1Ni01YTg5ZDk0ZmM3MjEvZGI0N2cxcy05NTk2MWZkZS1mOTQyLTQzOGEtYmRhZS03MTcxYjVlOGQ5ZTkuZ2lmIn1dXSwiYXVkIjpbInVybjpzZXJ2aWNlOmZpbGUuZG93bmxvYWQiXX0.3bgRz4wDId0g4v4zGCpts7yFlZRlm_TpvP6XotJgVA8");
  }
  
/* ========================= 
Alternate Themes
========================= */ 
#theme-selector {
    position: absolute;
    top: 10px;
    right: 10px;
}
.trad {
  --primary-color: #330000;
  --accent-color: #99001A;
  --overlay-color: rgba(102, 0, 17, 0.8);
  --background-image: url("https://i.imgur.com/2hG5V5e.gif");
  --cursor-image: url(https://cur.cursors-4u.net/cursors/cur-1/cur7.cur);
  --header-graphic: url("https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/cf2836cb-5893-4a6c-b156-5a89d94fc721/dbj7j9k-c8d2af92-7629-4377-8a85-bf822ce47974.gif?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7InBhdGgiOiIvZi9jZjI4MzZjYi01ODkzLTRhNmMtYjE1Ni01YTg5ZDk0ZmM3MjEvZGJqN2o5ay1jOGQyYWY5Mi03NjI5LTQzNzctOGE4NS1iZjgyMmNlNDc5NzQuZ2lmIn1dXSwiYXVkIjpbInVybjpzZXJ2aWNlOmZpbGUuZG93bmxvYWQiXX0.5Jeumvro8M1jSErgS7PAFI0Vl4_cxku2oxkJh7xYuGg");
}
.cyber {
  --primary-color: #001A00;
  --accent-color: #199b00;
  --overlay-color: rgba(29, 58, 4, 0.8);
  --background-image: url("https://i.imgur.com/mzs1HBZ.gif");
  --cursor-image: url(https://64.media.tumblr.com/3299f20cbf736e7c10f9ca697c8b48f1/a41ee8cc7a0dde03-e9/s75x75_c1/ba4f0ff1808885f44267dde7a72dc6c87c318720.gifv);
  --header-graphic: url("https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/cf2836cb-5893-4a6c-b156-5a89d94fc721/dcoc09d-295a44be-020c-4040-9eaf-cfd11eacb757.gif?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7InBhdGgiOiIvZi9jZjI4MzZjYi01ODkzLTRhNmMtYjE1Ni01YTg5ZDk0ZmM3MjEvZGNvYzA5ZC0yOTVhNDRiZS0wMjBjLTQwNDAtOWVhZi1jZmQxMWVhY2I3NTcuZ2lmIn1dXSwiYXVkIjpbInVybjpzZXJ2aWNlOmZpbGUuZG93bmxvYWQiXX0.91MkmNCpJ7wvj_9DH-czu9xSby4Mp00zNCxGBM0ypNk");
}

.classic {
  --primary-color: #000000;
  --accent-color: #e54812;
  --overlay-color: rgba(145,95,18, 0.8);
  --background-image: url("https://i.imgur.com/fJF89FO.gif");
  --cursor-image: url(https://cur.cursors-4u.net/cursors/cur-1/cur15.png);
  --header-graphic: url("https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/cf2836cb-5893-4a6c-b156-5a89d94fc721/dcoimsz-a11d0c24-f200-457b-a6ed-b61c359bd74f.gif?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7InBhdGgiOiIvZi9jZjI4MzZjYi01ODkzLTRhNmMtYjE1Ni01YTg5ZDk0ZmM3MjEvZGNvaW1zei1hMTFkMGMyNC1mMjAwLTQ1N2ItYTZlZC1iNjFjMzU5YmQ3NGYuZ2lmIn1dXSwiYXVkIjpbInVybjpzZXJ2aWNlOmZpbGUuZG93bmxvYWQiXX0.MQHxZeHE92Ak8Qw1Rov_flT0fjc_iBUdY1VmMf_xH9Y");
}

/* ========================= 
   Fonts  
========================= */ 
@font-face {
  font-family: 'pixelthin';
  src: url('https://dl.dropboxusercontent.com/s/5rhx0odgk2ibhim/thin_pixel-7.eot'); /* IE9 Compat Modes */
  src: url('https://dl.dropboxusercontent.com/s/5rhx0odgk2ibhim/thin_pixel-7.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('https://dl.dropboxusercontent.com/s/5rhx0odgk2ibhim/thin_pixel-7.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
/* =========================
   Base + Global
========================= */
body, *, a, a:hover { 
  cursor: var(--cursor-image), auto; 
}
body {
  margin: 0;
  font-family: 'pixelthin', sans-serif;
  font-size: 25px;
  color: var(--text-color);
  background-attachment: fixed;
  background-image: var(--background-image);
  -webkit-background-size: 100%;
  -moz-background-size: 100%;
  -o-background-size: 100%;
  background-size: 100%;
  padding-bottom: 50px;
}
a { color:var(--text-color); text-decoration:none; }
a:hover { opacity:.85; }
p, blockquote { margin: 0; }
mark {background-color: var(--primary-color); all: unset;}
/*==Quick way to remove presets==*/

#top_button{
            display: none;
            flex-direction: column;
            align-items: center;
            position: fixed;
            bottom: 20px;
            right: 30px;
            z-index: 4; 
            border: none;
            cursor: pointer;
            font-size: 25px;
            background-color: transparent;}
.navbar, .navbarabout {
  position: fixed;
  top: 0px;
  line-height: 0.5;
  padding:5px;
  z-index: 4; 
  background-color: var(--primary-color);
}
.shake:hover {
  animation: shake 1s;
  animation-iteration-count: infinite;
}

@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

/* =========================
   Header: General
========================= */
#blog-header {
  text-align:center;
  padding:0.25rem;
  background-position:center;
  background-size:cover;
  font-size:16px;
}

#desc {
  max-width:666px;
  background: var(--primary-color);
  text-wrap: balance;
  padding-top: 10px;
}

/* UFO + Title row */
#header-text {
  display: inline-flex;
  background: var(--primary-color);
  border: double 3px var(--text-color);
  margin-bottom: 0.1rem;
  gap: 0.2rem;
  max-width: 666px;
  align-items: center;
  padding: 5px;
}

.headergraphic {
  content: var(--header-graphic);
}

#header-text img {
  height:38pt;
  height: clamp(20px, 2vw, 40px); 
  width: auto;
  position: relative;
}

h1, h2, h3, h4, h5, h6,
ul, ol, p {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  line-height: 24px;
  word-wrap: break-word;
}
button {
  background-color: var(--accent-color);
  color: var(--text-color);
}
select {
  background-color: var(--accent-color);
  color: var(--text-color);
}
input[type=checkbox] {
  background-color: var(--accent-color);
  color: var(--text-color);
}
#header-text #title {
  position: relative;
  font-size:60pt; 
  font-size: clamp(30px, 6vw, 80px);
  margin: 0;
  line-height: 0.5;
  text-transform: uppercase;
}
@media (max-width: 768px) {
.navbarabout {
  width:100%;}
  
  #header-text #title {
    text-wrap: balance;
  }
}
details > summary {
   all: unset;
}
#play-audio-btn {
  position: absolute;
  z-index: 3;
  cursor: pointer;
}
#youtube-audio iframe {
  display: none;
}

/* Combined header box (desc + nav) */
#header-box {
  min-height: 150px;
  height: auto;
  justify-content: flex-start;
  align-items: stretch;
  position: relative;
  font-size: 30px;
  margin: 0.2rem auto;
  background: var(--primary-color);
  border: double 3px var(--text-color);
  width: 96%;
  max-width: 666px;
  display: flex;
  flex-direction: column;
  max-height: none;
  padding-bottom: 3px;
}


#header-box > * {
  margin: 0 ;
  padding: 0 ;
  line-height: 0.9 ;
}

#desc-container {
  margin: 0; 
  display: inline-flex;
  padding-left: 10px;
  align-items: baseline;
  gap: 0.5rem;
}
#header-box #desc {
  background: none;
  border: none;
  line-height: 1.1;
  margin: 0;
}
#header-box #dni {
  margin: 0;
  padding: 0;
  position: absolute;
  top: 20%;
}
#header-box #dni img {
  max-width: 100%;
  height: auto;
  display: block;
  line-height: 0;
}
.motif {
width: 30%;
display: block;
margin-left: 30%;
}
/* =========================
   Navigation + Search aspect-ratio: 4.32 / 1;
========================= */
#header-box nav {
  position: relative;
  top: calc(8px + 6vw);
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 0.20rem;
  flex-wrap: wrap;
  background: none;
  border: none;
  padding: 0;
  flex-direction: column;
  align-items: stretch;
}

@media (min-width: 730px) {
  #header-box nav {
    top: 50px;
  }
}

/* Search input */
#header-box nav input[type="text"] {
  font-family: 'pixelthin', sans-serif;
  font-size: 30px; 
  height: 30px;
  line-height: 30px;
  padding: 0 5px;
  background: var(--primary-color);
  border-right: none;
  color: var(--text-color);
  width: 185px;
  max-width: 185px;
  box-sizing: border-box;
}
#header-box nav input[type="text"]::placeholder {
  color: var(--text-color);
  opacity: 1;
}

/* Search button */
#header-box nav button {
  font-family: 'pixelthin', sans-serif;
  font-size: 30px;
  height: 30px;
  width: 60px;
  max-width: 60px;
  line-height: 20px;
  background: var(--accent-color);
  color: var(--text-color);
  cursor: pointer;
  margin: 0;
}

/* Toplinks */
.toplinks {
  order: 2;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-right: 20px;
  margin-left: 20px;
}


/* Header helpers */
.column1 {
  padding-bottom: 30px;
}

@media (min-width: 600px) {
.column1,
.column2 {
  float: left;
  width: 50%;
}
.column2 img {
  position: absolute;
  right: 30px;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}
}

.profile-info {
  text-align: left;
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}
.header-bottom {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin-top: 0.5rem;
}

.artgalleryuserbox {
  column-count: 2;
  column-gap: 0.2rem;
}

.artgallery {
  column-count: 3;
  column-gap: 0.5rem;
}

.artgalleryuserbox a {
  display: inline-block;
  width: 100%;
}

.artgallery a {
  display: inline-block;
  margin-bottom: 0.2rem;
  width: 100%;
}

.artgalleryuserbox img,
.artgallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.artgallerybuttons a {
  display: inline-block;
  width: 100%;
}

.artgallerybuttons img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
}

.artgallerybuttons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  align-items: center;
  width: 100%;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery a {
  display: block;
  width: 100%;
}
.gallery img {
  width: 100%;
  height: auto;
  display: block;
}
.gallerystamp {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  align-items: center;
  width: 100%;
}

.gallerystamp img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 600px) {
  .motif {
    width: 70%;
    margin-left: 10%;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallerystamp {
  grid-template-columns: repeat(2, 1fr);
  }
  .artgalleryuserbox {
  column-count: 1;
  }
  .artgallery {
  column-count: 2;
  }
  .artgallerybuttons {
  grid-template-columns: repeat(2, 1fr);
}
}
/* =========================
   Posts + Layout
========================= */
#posts { width:100%; margin:1rem auto; }

#columns {
  column-count: 3;
  column-gap: 1rem;
  width: 96%;
  margin:0 auto;
}
@media (max-width:1100px){ #columns{column-count:2} }
@media (max-width:800px){ #columns{column-count:1} }

.read-more-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease;
}
.read-more-link {
  display: inline-block;
  color: var(--text-color);
  cursor: pointer;
  text-decoration: underline;
  background: transparent;
  border: none;
  padding: 0;
}

article.post {
  break-inside: avoid;
  margin-bottom:1rem;
  border: double 3px var(--text-color);
  background: transparent;
  overflow: visible;
}
.post.pinned { border: double 10px var(--accent-color); }

.ao3-link {
  border: 4px solid var(--accent-color);
  border-radius: 8px;
}

.ao3-title {
  font-weight: bold;
  display: block;
}


/* =========================
   Embeds + Media
========================= */
.post video {
  max-width: 100% ;
  height: auto ;
  display: block;
}

.video-embed,
.spotify-embed {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.video-embed iframe,
.spotify-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

iframe[src*="spotify.com"],
iframe[src*="soundcloud.com"],
iframe[src*="bandcamp.com"],
iframe[src*="youtube.com"],
iframe[src*="youtu.be"],
iframe[src*="vimeo.com"],
video,
audio {
  display: block;
  max-width: 100%;
  width: 100%;
  border: none;
  margin: 0 auto;
}

iframe[src*="soundcloud.com"] { height: 166px; }
iframe[src*="bandcamp.com"] { height: 472px; }
video { height: auto; }
audio { height: 40px; }

@media (max-width: 1024px) {
  iframe[src*="soundcloud.com"] { height: 140px; }
  iframe[src*="bandcamp.com"] { height: 400px; }
}
@media (max-width: 600px) {
  iframe[src*="soundcloud.com"] { height: 120px; }
  iframe[src*="bandcamp.com"] { height: 320px; }
  audio { height: 36px; }
}
.tumblr-post iframe {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
/* Force Tumblr embeds 4:3 */
figure.tmblr-full.tmblr-embed {
  position: relative;
  width: 100% ;
  padding-bottom: 75%;
  height: 0 ;
  overflow: hidden;
}
figure.tmblr-full.tmblr-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% ;
  height: 100% ;
  border: 0;
}

figure.tmblr-full, figure.tmblr-full img {
  max-width: 100% ;
  margin: 0;
  display: block;
}

.caption {
  background: var(--overlay-color);
  padding:6px;
}
.date {
  font-size: 0.9em;
  text-align: left;
}
.meta-row {
  line-height: 0.7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tags {
  font-size: 0.9em;
  opacity: 0.9;
  flex: 1;
}
.tags .tag {
  margin-right: 0.3rem;
  color: var(--text-color);
  cursor: pointer;
}
.tags .tag:hover {
  text-decoration: underline;
  opacity: 0.85;
}
.share button {
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  border: none;
  border-radius: 4px;
  color: var(--text-color);
  cursor: pointer;
}
/* Photosets */
.photoset {
  display: grid;
  width:100%;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 4px;
}
.photoset img {
  width: 100%;
  height: 200px; 
  object-fit: cover;
  display: block;
  border-radius: 4px;
}
.photoset-row, .npf_row {
  display:flex;
  gap:0;
  width:100%;
  align-items:stretch;
  overflow:hidden;
  box-sizing:border-box;
}
.photoset-row img, .npf_row img {
  display:block;
  object-fit:cover;
  margin:0;
  padding:0;
  border-radius:0;
  max-width:none;
}

.single-img, figure.tmblr-full img {
  display:block;
  max-width:100% ;
  height:auto ;
}

.post iframe {
  max-width: 100% ;
  width: 100% ;
  height: auto ;
  display: block;
  border: 0;
}

/* single images */
.single-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.photoset-row {
  display: flex;
  gap: 4px;
}

/* crop inside row */
.photoset-img {
  flex: 1;
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
/* =========================
   Arcade
========================= */
.dbd-container {
  width: 450px;
  display: flex;
}
.scroll-container {
  height: 80%;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}
.scroll-container img {
  flex: 0 0 auto;
  height: 100%;
  object-fit: contain;
}
.stats-container {
  display: flex; 
  margin-top: 20px;
  align-items: flex-start;
}
.steam-embed embed {
  height: 285px;
  width: 340px;
  display: block;
}
.steam-embed {
  width: 340px;
  height: 285px;
  display: block;
  padding-right: 8pt;
}
.cosmetics-container {
  border: 2px solid var(--accent-color);
  background-color: var(--primary-color);
  margin: 8px 12px 8px 8px;
  padding-top: 3pt;
  height: 262px;
  overflow: hidden;
  flex: 4;
  max-width: 195px;
}
.stats-box {
  width: 100%;
  height: 262px;
  margin: 8px;
  flex: 5;
  max-width: 230px;
}
.stats-box p {
  padding: 8px;
  height: 250px;
  border: 2px solid var(--accent-color);
  background-color: var(--primary-color);
  color: var(--text-color);
}

.grid-container {
  margin-left: 8px;
  margin-right: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 800px;
  background-color: var(--primary-color);
  padding: 3px;
}

.grid-container > div {
  padding: 5px;
  text-align: center;
}

.grid-container img {
  display: block;
  width: 100%;
  height: auto;
}
.fangoria-row {
  margin: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

details {
  display: block;
  box-sizing: border-box;
  max-width: 100%;
}
details .cosmetics-container {
  width: 60%;
  max-width: calc(100vw - 1rem);
  box-sizing: border-box;
  height: auto;
  overflow: visible;
}
details[open] .scroll-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: calc(100vw - 1rem);
  min-width: 0;
  box-sizing: border-box;
}
details[open] .scroll-container > * {
  flex: 0 0 auto;
  min-width: 0;
  box-sizing: border-box;
}
details[open] .scroll-container img {
  display: block;
  height: auto;
  max-height: 220px;
  width: auto;
  object-fit: contain;
  flex: 0 0 auto;
}
@media (max-width: 680px) {
  details[open] .scroll-container {
    max-width: calc(100vw - 0.75rem);
  }
  details[open] .scroll-container img {
    max-height: 160px;
  }
}
@media (max-width: 400px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Diary & Blog
========================= */
.breakup {
  column-count: 4;
  column-gap: 24px;
  gap: 5px;
}

.breakup label {
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 0.75;
}

@media (max-width: 900px) {
  .breakup {
    column-count: 3;
  }
}

@media (max-width: 650px) {
  .breakup {
    column-count: 2;
  }
}

@media (max-width: 450px) {
  .breakup {
    column-count: 1;
  }
}


summary {
  line-height: 1.5;
  font-size: 30pt;
  font-weight: bold;
  cursor: pointer;
}

.colortext a {color: var(--accent-color);}

.falling-layer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1; 
  pointer-events: none;
}
.falling-item {
  position: absolute;
  top: -100px;
  animation: fall linear infinite;
}
.falling-item img {
  width: 50px;
  pointer-events: none;
  opacity: 0.9;
}

/* Randomize positions, speeds, and delays */
.falling-item:nth-child(1) { left: 10%; animation-duration: 8s;  animation-delay: 0s; }
.falling-item:nth-child(2) { left: 30%; animation-duration: 12s; animation-delay: 2s; }
.falling-item:nth-child(3) { left: 60%; animation-duration: 10s; animation-delay: 4s; }
.falling-item:nth-child(4) { left: 80%; animation-duration: 14s; animation-delay: 1s; }
.falling-item:nth-child(5) { left: 20%; animation-duration: 11s; animation-delay: 3s; }
.falling-item:nth-child(6) { left: 50%; animation-duration: 9s;  animation-delay: 5s; }
.falling-item:nth-child(7) { left: 70%; animation-duration: 13s; animation-delay: 2s; }
.falling-item:nth-child(8) { left: 40%; animation-duration: 15s; animation-delay: 6s; }
.falling-item:nth-child(9) { left: 90%; animation-duration: 12s; animation-delay: 4s; }

@keyframes fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0.7; }
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

.contentchurch,
.contentpc, 
.content {
  align: center;
  position: relative;
  align-items: flex-start;
  z-index: 3;
  background-color: var(--overlay-color); 
  max-width: 800px; 
  margin: 2rem auto; 
  padding: 2rem; 
  border-radius: 12px; 
  box-shadow: 0 4px 20px var(--overlay-color);
}

.contentchurch {
  position:absolute;
  transform:translate(-50%,-50%);
  left:50%;
  top:25%;
  width: 80vw;
  font-family: Garamond;
  background-color:transparent;
  box-shadow: none;
  text-align:center;
  text-shadow: 
  -3px -3px 0 var(--primary-color), 
  3px -3px 0 var(--primary-color), 
  -3px 3px 0 var(--primary-color), 
  3px 3px 0 var(--primary-color), 
  -2px -2px 0 var(--primary-color), 
  2px -2px 0 var(--primary-color), 
  -2px 2px 0 var(--primary-color), 
  2px 2px 0 var(--primary-color), 
  -1px -1px 0 var(--primary-color), 
  1px -1px 0 var(--primary-color), 
  -1px 1px 0 var(--primary-color), 
  1px 1px 0 var(--primary-color);
}

.contentchurch p {
  line-height: 24px;
}

.contentpc {
  background: linear-gradient(var(--primary-color), rgba(211, 211, 211, 0.3)), url("https://64.media.tumblr.com/fd0cc633bd9fce6dafe96cbc009482da/05e24254f0f077ef-ce/s1280x1920/a2a6b680642da7bee1acd3f2cac1d4aa37db9523.jpg");
}
/* =========================
   Church
========================= */
.bg {
  width: 100%; 
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 0;
}

.fg {
  width: 100%; 
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 1;
}

.carousel-wrapper {
  position: absolute;
  bottom: 5%;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: 2;
  height: 20vh; /* 1/4 of viewport height */
}

.carousel {
  display: flex;
  gap: 20px;
  animation: scroll var(--scroll-duration, 30s) linear infinite;
}

.carousel img {
  height: 20vh;
  width: auto;
  flex-shrink: 0;
  border-radius: 5px;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(var(--scroll-distance, -50%)); }
}
@media (max-width: 890px) {
.bg {
  height: 100%;
  object-fit: cover;
}

.fg {
  height: 100%;
  object-fit: cover;
}

}
/* =========================
   Tarot Section
========================= */
#copyButton {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-block;
}

#copyButton img {
  display: block;
  width: auto;
}
#copyButton:hover img {
  opacity: 0.85;
}
.banners {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 10px;
  gap: 8px;
}
.banners a,
.banners button {
  display: inline-flex;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
#randomWord a {
  background-color: var(--primary-color); 
  line-height:31px;
}
.tarot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}
#tarot-card {
  max-height: 300px;
  height: auto;
  width: auto;
  display: block;
  object-fit: contain;
}
.iframe-wrapper-gifypet,
.iframe-wrapper {
  width: 250px;
  height: 300px;
  overflow: hidden;
}
.iframe-wrapper-gifypet iframe,
.iframe-wrapper iframe {
  width: calc(100% / 0.75);
  height: calc(100% / 0.75);
  border: none;
  transform: scale(0.75);
  transform-origin: top left;
}
.content-block {
  display: inline-block;
  vertical-align: top;
  width: auto;
  height: auto;
  overflow: visible;
}
#youtube iframe {
  height: 690px;
  width: 95%;
}
@media (max-width: 498px) {
  #tarot-card {
  max-height: 350px;
  width: 250px;
  height: auto;
  }
}
@media (min-width: 500px) {
.iframe-wrapper-gifypet {
  width: 234px;
  }
}
@media (max-width: 768px) {
  #youtube iframe {
    height: 315px;
    width: 98%;
  }
}
/* =========================
   Extra Header Styling
========================= */
#header { color: var(--text-color); font-size: 300px; text-align: center; position: relative; }
.imgiconfixer img { width: auto; height: 50px; margin: 0; }

/* =========================
   Forms
========================= */
.sfm input {
  background-color: var(--text-color); 
  font-size: 200px; 
  border: 0px; 
  margin-top: 0px; 
  color: var(--overlay-color); 
  letter-spacing: 1px; 
  padding: 0px 5px;
}

.form-wrapper {
  max-height: 500px;
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--overlay-color);
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--overlay-color);
}
.form-wrapper iframe { width: 100% ; min-height: 450px; border: none; }

/* =========================
   Tabs
========================= */
.tab { overflow: hidden; border: 1px solid var(--text-color);
background-color: var(--overlay-color);}
.tab button {
  background-color: var(--primary-color);
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 30px;
  color: var(--text-color);
}
.tab button:hover { background-color: var(--primary-color); }
.tab .active:not(.escape) { background-color: var(--accent-color); }

.tabcontent { display: none; padding: 6px 12px; border: 1px solid var(--text-color); border-top: none; background-color:var(--primary-color); font-size: 50px;}
.tabcontent p { line-height: 0.8; }
.tab button.tablinks, button.escape { font-size: 0.9rem;padding: 0.5rem 1rem; }
@media (max-width: 768px) {
  .tab button.tablinks, button.escape { font-size: 0.9rem ; padding: 0.4rem 0.8rem; }
}
@media (max-width: 480px) {
  .tab button.tablinks, button.escape { font-size: 0.8rem ; padding: 0.3rem 0.6rem; }
}

/* =========================
   Theater Mode
========================= */
.theaterclipart {
max-width: 10%;}

@media (max-width: 768px){
  .theaterclipart{
    max-width: 50%;}}
    
@media (max-width: 480px){
  .theaterclipart{
    max-width: 80%;}}

body.theater iframe {
  width: 90%;
  height: 600px;
  max-width: 1200px;
  display: block;
  margin: 0 auto;
}
/* =========================
   Footer
========================= */
footer {  
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 40px;
  text-align:center; 
  text-wrap: balance;
  text-shadow: -1px -1px 0 var(--primary-color), 
  1px -1px 0 var(--primary-color), 
  -1px 1px 0 var(--primary-color), 
  1px 1px 0 var(--primary-color);
}
footer button { 
  margin: 0.3rem; 
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  body {
    background-repeat: repeat-y;
    background-size: 100% auto;
    background-position: top center;
  }
  
  footer {
  height: 65px;
  }

  #header-box nav input[type="text"],
  #header-box nav button {
    width: 100%;
    margin-bottom: 0.3rem;
  }
  .cosmetics-container,
  .stats-box {
  flex: 1;
  width: 95%;
  max-width: 100%;
}
  .cosmetics-container {
  width: 94%;  
}
  .stats-container {
  flex-wrap: wrap;
}
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
}
.steam-embed embed {
  width: 98%;
}
.steam-embed {
  width: 98%;
}
.dbd-container {
  flex-direction: column;
  }

  .searchbar input,
  .searchbar button { flex: 1; border-radius: 0; }
      .dbd-container {
  width: 100%;
}
}

.searchbar {
  flex-direction: row;
  display: flex;
  width: 100%;
  padding-left: 10px;
  flex: 1;
  align-items: center;
}
.searchbar input {
  flex: 1;
  min-width: 0;
}

.searchbar button {
  flex: 0 0 auto;
}

#show_image_popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  transition: opacity 0.2s ease;
}

#show_image_popup.active {
  display: flex;
}

#show_image_popup img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

#close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  font-weight: bold;
  color: white;
  cursor: pointer;
}

#lightbox-prev,
#lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 0 15px;
  transition: opacity 0.2s;
}

#lightbox-prev:hover,
#lightbox-next:hover {
  opacity: 0.7;
}

#lightbox-prev { left: 20px; }
#lightbox-next { right: 20px; }



