/* =========================
   Fonts
========================= */
@font-face {
  font-family: 'pixelthin';
  src: 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:url(https://64.media.tumblr.com/179de0f393cc90fb96e05f29236fcc82/1ca01790d8fffe0a-66/s75x75_c1/a069f613b3a3bd4c1ec431178a189d71219b41ea.gifv), auto; 
}

body {
  margin: 0;
  font-family: 'pixelthin', sans-serif;
  font-size: 30px;
  color: #d3d3d3;
  background-image: url("https://cdn.fastly.steamstatic.com/steamcommunity/public/images/items/2861720/386c658bc267ea1a1973abd8f40990d66233caae.jpg");
  -webkit-background-size: 100%;
  -moz-background-size: 100%;
  -o-background-size: 100%;
  background-size: 100%;
  padding-bottom: 50px;
}

body.theater {
  background-image:  url('https://i.imgur.com/bYa5e48.jpg');
}

a { color:#d3d3d3; text-decoration:none; }
a:hover { opacity:.85; }

p, blockquote { margin: 0; }
mark { background-color: purple; color: white; }

#top_button{
            display: none;
            flex-direction: column;
            align-items: center;
            position: fixed;
            bottom: 20px;
            right: 30px;
            z-index: 105;
            border: none;
            outline: none;
            cursor: pointer;
            padding: 10px;
            font-size: 25px;
            background-color: transparent;
            box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, .2);}
           

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

#ufo img { margin-bottom:1.05rem; display:inline-block; }

#desc {
  max-width:700px;
  background: #6b49d1;
}

/* UFO + Title row */
#header-text {
  display: inline-flex;
  align-items: baseline;
  background: #6b49d1;
  border: double 3px #f2f2f2;
  margin-bottom: 0.1rem;
  gap: 0.2rem;
}
#header-text img {
  height: clamp(24px, 4vw, 35px);
  width: auto;
  position: relative;
  top: 1em;
}
h1, h2, h3, h4, h5, h6,
ul, ol, p {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  line-height: 30px;
}
#header-text #title {
  font-size: clamp(40px, 8vw, 105px);
  margin: 0;
  line-height: 0.6;
  text-transform: uppercase;
}

/* Combined header box (desc + nav) */
#header-box {
  font-size: 38px;
  margin: 0.2rem auto;
  padding: 0 10px;
  background: #6b49d1;
  border: double 3px #f2f2f2;
  max-width: 830px;

  display: flex;
  flex-direction: column;
}

#header-box > * {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.1 !important;
}

#desc-container {
  margin: 0!important; 
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}
#header-box #desc {
  background: none;
  border: none;
  line-height: 1.1;
  margin: 0!important;
}
#header-box #dni {
  margin: 0!important;
  padding: 0;
}
#header-box #dni img {
  max-width: 100%;
  height: auto;
  display: block;
  line-height: 0;
}

/* =========================
   Navigation + Search
========================= */
#header-box nav {
  margin: 0!important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.20rem;
  flex-wrap: wrap;
  background: none;
  border: none;
  padding: 0;
}

/* Search input */
#header-box nav input[type="text"] {
  font-family: 'pixelthin', sans-serif;
  font-size: 30px; 
  height: 40px;
  line-height: 40px;
  padding: 0 10px;
  background: #ffffff;
  border-right: none;
  color: #000000;
  min-width: 220px;
  box-sizing: border-box;
}
#header-box nav input[type="text"]::placeholder {
  color: #666666;
  opacity: 1;
}

/* Search button */
#header-box nav button {
  font-family: 'pixelthin', sans-serif;
  font-size: 30px;
  height: 40px;
  line-height: 40px;
  padding: 0 15px;
  background: #b0b0b0;
  border-left: none;
  color: #000000;
  cursor: pointer;
  margin: 0;
}
#header-box nav button:hover { opacity: 0.85; }

/* Toplinks */
.toplinks {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Header helpers */
.profile-info {
  text-align: left;
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}
.header-bottom {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: 0.5rem;
}

/* =========================
   Posts + Layout
========================= */
main#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: #ffffff;
  cursor: pointer;
  text-decoration: underline;
  background: transparent;
  border: none;
  padding: 0;
}

article.post {
  break-inside: avoid;
  margin-bottom:1rem;
  border: double 3px #f2f2f2;
  background: transparent;
  overflow: visible;
}
article.pinned { border: double 10px gold; }

/* =========================
   Embeds + Media
========================= */
.post video {
  max-width: 100% !important;
  height: auto !important;
  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; }
}

/* Force Tumblr embeds 4:3 */
figure.tmblr-full.tmblr-embed {
  position: relative;
  width: 100% !important;
  padding-bottom: 75%;
  height: 0 !important;
  overflow: hidden;
}
figure.tmblr-full.tmblr-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

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

.caption {
  background: rgba(101,84,138,0.85);
  padding:6px;
}
.date {
  font-size: 0.9em;
  opacity: 0.85;
  margin-bottom: 0.25rem;
  text-align: left;
}
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}
.tags {
  margin-top: 0.5rem;
  font-size: 0.9em;
  opacity: 0.9;
  flex: 1;
}
.tags .tag {
  margin-right: 0.3rem;
  color: #f2f2f2;
  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;
  background: #444;
  color: #f2f2f2;
  cursor: pointer;
}
.share button:hover {
  background: #666;
}
/* Photosets */
.photoset {
  display: grid;
  width:100%;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 4px;
}
.photoset img {
  width: 100%;
  height: 200px; /* uniform row height */
  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% !important;
  height:auto !important;
}

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

/* single images (shrink, no crop) */
.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;
}

/* =========================
   Tarot Section
========================= */
#tarot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
#tarot img,
#tarot iframe { height: auto; }

@media (max-width: 768px) {
  #tarot { flex-direction: column; align-items: center; }
  #tarot iframe { width: 100% !important; max-width: 320px; }
  #tarot img { width: 100%; max-width: 250px; }
  #tarot iframe[src*="cbox.ws"] { height: 500px !important; }
  #tarot iframe[src*="gifypet.neocities.org"] {
    width: 100% !important;
    max-width: 320px;
    aspect-ratio: 310 / 325;
    height: auto;
  }
}

.content-block { display:inline-block; vertical-align: top; width:auto; height:auto; overflow: visible; }
#tarot-card { height: 325px; width: auto; display: block; }
.fixer img{ max-width: 50px; height: auto; display: inline-block; }

#youtube iframe{height: 900px; width: 100%;}
@media (max-width: 768px) {#youtube iframe{height: 315px; width: 100%;}}
/* =========================
   Extra Header Styling
========================= */
#header { color: #fff; font-size: 300px; text-align: center; position: relative; }
.imgiconfixer img { width: auto; height: 30px; margin: 0; }

/* =========================
   Forms
========================= */
.sfm input {
  background-color: #f5f5f5; 
  font-size: 200px; 
  border: 0px; 
  margin-top: 0px; 
  color: #999; 
  letter-spacing: 1px; 
  padding: 0px 5px;
}

.form-wrapper {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(242, 243, 244, 0.6);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(242, 243, 244, 0.5);
}
.form-wrapper iframe { width: 100% !important; min-height: 600px; border: none; }

/* =========================
   Tabs
========================= */
.tab { overflow: hidden; border: 1px solid #ccc; }
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 30px;
  color: white;
}
.tab button:hover { background-color: #ddd; }
.tab .active { background-color: #ccc; }
.tabcontent { display: none; padding: 6px 12px; border: 1px solid #ccc; border-top: none; }
.tab button.tablinks { font-size: 1.2rem; padding: 0.5rem 1rem; }
@media (max-width: 768px) {
  .tab button.tablinks { font-size: 0.9rem !important; padding: 0.4rem 0.8rem; }
}
@media (max-width: 480px) {
  .tab button.tablinks { font-size: 0.8rem !important; padding: 0.3rem 0.6rem; }
}

/* =========================
   Theater Mode
========================= */
body.theater iframe {
  width: 90%;
  height: 600px;
  max-width: 1200px;
  display: block;
  margin: 0 auto;
}
/* =========================
   Footer
========================= */
footer { text-align:center; margin:1.5rem 0; font-size:1.25rem; }
footer button { margin:0 .5rem; }

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

  #header-box nav { flex-direction: column; align-items: stretch; }
  #header-box nav input[type="text"],
  #header-box nav button {
    width: 100%;
    margin-bottom: 0.3rem;
  }

  .toplinks { justify-content: center; flex-wrap: wrap; gap: 0.5rem; }
  .toplinks a { flex: 1 1 auto; text-align: center; }

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

.searchbar {
  display: flex;
  flex: 1;
  align-items: center;
}

