/* Markdown */
@import url(webmention.css);
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,400;1,100&display=swap');

:root {
  --maincolor: #6B3FA0;
  --textcolor: #231B1B;
  --bordercl: #6B3FA0;
  --calloutcolor: #EAE2F3;
  --hovercolor: #6B3FA0;
  --darkMaincolor: #6B3FA0;
  --testColor: black;
}

html {
  color: var(--textcolor);
  background-color: #fafafa;
  font-family: et-book, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
  font-size: 18px;
  line-height: 1.6em;
}

body {
  display: block;
  margin: 8px;
}

* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.goat {
  display: block;
  margin: 0 auto;
  border: solid var(--maincolor);
}

::selection {
  background: var(--maincolor);
  color: #fafafa;
}

p {
  font-family: et-book, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
  line-height: 1.5;
}

hr {
  border: 0;
  border-top: 3px dotted var(--bordercl);
  margin: 1em 0;
}

/* Reading Progress Bar Styles */
.reading-progress-bar {
  position: fixed;
  top: 20%;
  left: 50px;
  width: 4px;
  height: 60%;
  background-color: rgba(107, 63, 160, 0.2);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.reading-progress-bar.visible {
  opacity: 1;
}

.reading-progress-fill {
  width: 100%;
  height: 0%;
  background-color: var(--maincolor);
  transition: height 0.1s ease;
}

/* Header markers on progress bar */
.progress-header-markers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.progress-header-marker {
  position: absolute;
  left: -8px;
  width: 20px;
  height: 2px;
  background-color: var(--maincolor);
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s ease;
}

.progress-header-marker::before {
  content: '';
  position: absolute;
  left: -6px;
  top: -8px;
  width: 32px;
  height: 18px;
  background: transparent;
  cursor: pointer;
}

.progress-header-marker:hover {
  background-color: var(--textcolor);
  width: 24px;
  left: -10px;
}

.progress-header-marker::after {
  content: attr(data-title);
  position: absolute;
  left: 28px;
  top: -8px;
  background: var(--textcolor);
  color: #fafafa;
  padding: 2px 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  font-family: inherit;
}

.progress-header-marker:hover::after {
  opacity: 1;
}

/* Previous reading position indicator */
.progress-position-indicator {
  position: absolute;
  right: -12px;
  width: 0;
  height: 0;
  border-right: 8px solid #888;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
  pointer-events: auto;
}

.progress-position-indicator.visible {
  opacity: 1;
}

.progress-position-indicator:hover {
  border-right-color: #555;
}

/* Hide progress bar on mobile */
@media (max-width: 768px) {
  .reading-progress-bar {
    display: none;
  }
}

/* Continue Reading Section Styles */
.continue-reading-section {
  margin: 1.5rem 0;
  padding: 0;
}

.continue-reading-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.25rem 0;
  font-size: 0.95rem;
}

.continue-reading-info {
  flex: 1;
}

.continue-reading-title {
  margin: 0;
  font-weight: normal;
  color: var(--textcolor);
}

.continue-reading-progress {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
  margin: 0;
}

.continue-reading-link {
  color: var(--maincolor);
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: 1rem;
  white-space: nowrap;
}

.continue-reading-link:hover {
  text-decoration: underline;
}

blockquote {
  border-left: 3px solid var(--bordercl);
  color: #737373;
  margin: 0;
  padding-left: 1em;
}

a {
  border-bottom: 2px solid var(--maincolor);
  color: inherit;
  text-decoration: none;
}

.logo a:hover {
  background-color: #fafafa;
  color: #fafafa;
}

.dream {
  font-family: 'Nice Dream Come True', "sans-serif"
}

a:hover {
  background-color: var(--hovercolor);
  color: #fafafa;
}

.posts {
  list-style: none;
  padding-left: 2ch;
}

.miniposts {
  text-indent: -2ch;
}

/* Images */
img {
  max-width: 100%;
}

main img {
  display: block;
  margin: 0 auto;
  border: solid var(--maincolor);
}

.loader {
  animation-name: spin;
  animation-duration: 5000ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.logo img {
  border: none;
  opacity: 1;
}

.icon {
  max-height: 1.3em;
  border: none;
  display: inline-flex;
  position: relative;
  top: 7px;
}

.float {
  position: fixed;
  bottom: 70px;
  right: 20px;
}

.navbox {
  text-align: right;
  line-height: 2;
}

@media (max-width:500px) {
  .float {
    display: none;
  }

  .logo img {
    display: none;
  }

  .navbox {
    text-align: center;
    margin: auto;
  }
}

@media (max-width: 520px) {
  div#lbwrapper {
    display: none;
  }

  .weather {
    display: none;
  }

  .list-date {
    display: none;
  }
  
  /* Ensure consistent code font size on mobile */
  code, pre code, .highlight pre code[class*="language-"]::before {
    font-size: 13px !important;
  }
}

.logo img {
  max-width: 100%;
  border-bottom: 2px solid #fafafa;
}

.logo img:hover {
  margin-bottom: 0px;
  border-bottom: 2px solid var(--maincolor);
}

.logo a {
  border-bottom: none;
}

figure {
  box-sizing: border-box;
  display: inline-block;
  margin: 0;
  max-width: 100%;
}

figure img {
  max-height: 500px;
}

@media screen and (min-width: 600px) {
  figure {
    padding: 0 40px;
  }
}

figure h4 {
  font-size: 1rem;
  margin: 0;
  margin-bottom: 1em;
}

figure h4::before {
  content: "↳ ";
}

/* Code blocks */
code {
  background-color: #f1f1f1;
  font-family: 'Source Code Pro', monospace;
  font-size: 13px;
  padding: 0.1em 0.2em;
}

pre {
  background-color: #ececec;
  line-height: 1.4;
  overflow-x: auto;
  padding: 1em;
}

.highlight pre ::selection {
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
}

pre code {
  background-color: transparent;
  color: inherit;
  font-size: 13px;
  padding: 0;
}

/* Containers */
.content {
  margin-bottom: 4em;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
  position: relative;
  padding: 0 1ch;
  word-wrap: break-word;
}

/* Header */
header {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  margin: 1em 0;
}

header .main {
  font-size: 1.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 1.2rem;
  margin-top: 2em;
}

.commentSection h2 {
  margin-top: 1em;
}

h1::before {
  color: var(--maincolor);
  content: "// ";
}

h2::before {
  color: var(--maincolor);
  content: "↳  ";
}

h3::before {
  color: var(--maincolor);
  content: "// ";
}

h4::before {
  color: var(--maincolor);
  content: "// ";
}

h5::before {
  color: var(--maincolor);
  content: "// ";
}

h6::before {
  color: var(--maincolor);
  content: "// ";
}

/* Footer */
footer {
  margin-top: 1em;
}

/* Common */
.title h1 {
  margin-bottom: 0;
}

time {
  color: grey;
}

/* Posts */
article .title {
  margin-bottom: 1em;
}

/* Paginator */
.page-next {
  float: right;
}

.page-prev {
  float: left;
}

.paginator {
  margin-top: 2em;
}

/* Callout */
.callout {
  background-color: var(--calloutcolor);
  color: var(--textcolor);
  padding: 0.1em;
  margin-top: 1em;
  text-align: center;
}

.callout p {
  font-family: "IBM Plex Mono", monospace;
  margin: 0;
}

.callout a {
  border-bottom: 3px solid var(--maincolor);
}

.callout a:hover {
  color: #fafafa;
  background-color: var(--maincolor);
}

/* Donation widget */
.post-donations {
  margin: 1.5em 0;
}

.post-donations > details > summary {
  cursor: pointer;
  font-weight: 600;
}

.donation-networks {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  margin-top: 0.6em;
}

.donation-network {
  padding: 0.25em 0.75em;
}

.donation-network > summary {
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  list-style: none;
  margin: 0;
  padding: 0.1em 0 0.1em 1em;
  position: relative;
}

.donation-summary-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  white-space: nowrap;
}

.donation-summary-text {
  white-space: nowrap;
}

.donation-summary-label .icon {
  display: inline-block;
  max-height: 1em;
  position: static;
}

.donation-network > summary::before {
  content: '▸';
  left: 0;
  position: absolute;
  top: 0.3em;
}

.donation-network[open] > summary::before {
  content: '▾';
}

.donation-network-body {
  display: flex;
  gap: 1em;
  margin-top: 0.5em;
  align-items: center;
  flex-wrap: wrap;
}

.donation-qr {
  border: 1px solid var(--bordercl);
  max-width: 96px;
}

.donation-info {
  flex: 1 1 220px;
}

.donation-info p {
  margin: 0 0 0.35em;
}

.donation-info p:last-child {
  margin-bottom: 0;
}

.donation-info code {
  display: block;
  font-size: 0.9em;
  margin-bottom: 0.25em;
  word-break: break-all;
}

.donation-info span a[data-copy-address] {
  border-bottom: 1px solid var(--bordercl);
}

.copy-feedback {
  display: inline-block;
  font-size: 0.85rem;
  font-style: italic;
  margin-left: 0.4em;
  min-width: 0;
  color: var(--bordercl);
}

@media (max-width: 640px) {
  .donation-network-body {
    flex-direction: column;
    align-items: flex-start;
  }

  .donation-qr {
    max-width: 128px;
  }
}

.tags a {
  border-bottom: 3px solid var(--maincolor);
}

.tags a:hover {
  color: white;
  background-color: var(--hovercolor);
}

.feather {
  max-height: 15px;
}

applause-button svg {
  max-height: none;
}

.soc:hover {
  color: white;
}

.draft-label {
  color: var(--bordercl);
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 4px;
  margin-left: 6px;
  background-color: #f9f2f4;
}

.highlight {
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.highlight pre code[class*="language-"] {
  -webkit-overflow-scrolling: touch;
}

.highlight pre code[class*="language-"]::before {
  background: black;
  border-radius: 0 0 0.25rem 0.25rem;
  color: white;
  font-size: 13px;
  letter-spacing: 0.025rem;
  padding: 0.1rem 0.5rem;
  position: absolute;
  right: 1rem;
  text-align: right;
  text-transform: uppercase;
  top: 0;
}

.highlight pre code[class="language-javaScript"]::before,
.highlight pre code[class="language-js"]::before {
  content: "js";
  background: #f7df1e;
  color: black;
}

.highlight pre code[class*="language-yml"]::before,
.highlight pre code[class*="language-yaml"]::before {
  content: "yaml";
  background: #f71e6a;
  color: white;
}

.highlight pre code[class*="language-shell"]::before,
.highlight pre code[class*="language-bash"]::before,
.highlight pre code[class*="language-sh"]::before {
  content: "shell";
  background: green;
  color: white;
}

.highlight pre code[class*="language-json"]::before {
  content: "json";
  background: dodgerblue;
  color: #000000;
}

.highlight pre code[class*="language-python"]::before,
.highlight pre code[class*="language-py"]::before {
  content: "py";
  background: blue;
  color: yellow;
}

.highlight pre code[class*="language-css"]::before {
  content: "css";
  background: cyan;
  color: black;
}

.highlight pre code[class*="language-go"]::before {
  content: "Go";
  background: cyan;
  color: royalblue;
}

.highlight pre code[class*="language-md"]::before,
.highlight pre code[class*="language-md"]::before {
  content: "Markdown";
  background: royalblue;
  color: whitesmoke;
}

.smalltext {
  font-size: 11px;
  text-align: right;
}

/* Wine Stuff */
.wine-label {
  color: var(--bordercl);
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 4px;
  background-color: #f9f2f4;
}

.wine-header::before {
  color: var(--maincolor);
  content: "";
}

.slug {
  font-style: italic;
}

/* Forms */

input[type=email] {
  width: 80%;
  padding: 0.2rem;
  border: 2px solid black;
}

input[type=submit] {
  font-family: et-book, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
  font-size: 18px;
  width: 10%;
  border: none;
  background: none;
  border-bottom: 2px solid var(--maincolor);
  background-color: none;
  color: black;
}

input[type=submit]:hover {
  background-color: var(--maincolor);
  color: #fafafa;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  border: none;
}

/* CSS extracted from inline styles */
#split-mini {
  display: flex;
  flex-wrap: wrap;
}

.introduction {
  float: left;
  width: 45%;
}

.indiewebMain {
  float: right;
  padding-bottom: 1rem;
  width: 55%;
}

/* Extension for smaller viewports */
@media screen and (max-width: 800px) {
  #split-mini {
    flex-direction: column;
  }

  .introduction,
  .indiewebMain {
    width: 100%;
    float: none;
  }

  #cal-box {
    display: none;
  }
}

.clearfix:after {
  content: "";
  display: block;
  clear: both;
}

#cal-box {
  border: solid var(--maincolor);
  text-align: center;
  width: 50%;
  margin: 20px auto;
}

#cal-box #calendar-navigation {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

#cal-box input[type="button"] {
  background-color: none;
  background: none;
  color: black;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 5px 10px;
}

#cal-box table {
  width: 100%;
  table-layout: fixed;
}

#cal-box th,
#cal-box td {
  padding: 5px;
  text-align: center;
  width: calc(100% / 10);
  /* Equal width for 10 columns */
  box-sizing: border-box;
}

#cal-box th {
  font-size: 22px;
}

#cal-box td {
  font-size: 18px;
}

#cal-box td:hover::after {
  content: attr(data-gregorian);
  position: absolute;
  background-color: #fff;
  padding: 2px;
  font-size: 18px;
}

#cal-box .current-day {
  text-decoration: underline 2px var(--maincolor);
  color: var(--maincolor);
}

#cal-box .fixed-box {
  position: relative;
  text-align: center;
  left: 10rem;
  width: 300px;
  outline: solid 2px var(--maincolor);
}

#cal-box .fixed-box.collapsed {
  height: 0;
  overflow: hidden;
}

sup,
sub {
  vertical-align: baseline;
  position: relative;
  top: -0.4em;
}

sub {
  top: 0.4em;
}

a.footnote-ref::before {
  content: '[';
}

a.footnote-ref::after {
  content: ']';
}

.footnotes hr {
  display: none
}

.bookshelf {
  margin: 40px;
  margin-bottom: 20px;
  text-align: center;
}

.bookshelf .book {
  width: 180px;
  /* reduced from 226px */
  height: 275px;
  /* reduced from 346px */
  display: inline-block;
  margin: 0 10px 16px;
  /* reduced margins */
  box-shadow: 1px 3px 12px rgba(0, 0, 0, 0.12);
  /* reduced shadow */
  position: relative;
  vertical-align: top;
  transition: all ease-in-out 0.2s;
  border-radius: 0 5px 5px 0;
  /* slightly reduced border-radius */
  overflow: hidden;
}

@media screen and (max-width: 600px) {
  .bookshelf .book {
    width: 21vw;
    height: calc(1.53 * 21vw);
  }
}

.bookshelf .book:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  transform: scale(1.01);
}

.bookshelf .book .meta {
  position: absolute;
  bottom: 0;
  padding: 12px 16px;
  background: linear-gradient(0deg,
      rgba(2, 0, 36, 0.6) 0%,
      rgba(2, 0, 36, 0) 100%);
  color: #ffffff;
}

.bookshelf .book .meta .title {
  display: block;
  font-size: 16px;
  font-weight: 500;
}

.bookshelf .book .meta .author {
  font-size: 12px;
  opacity: 0.6;
}

.bookshelf .book .link {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right,
      rgba(0, 0, 0, 0.02) 0%,
      rgba(0, 0, 0, 0.05) 0.75%,
      rgba(255, 255, 255, 0.5) 1%,
      rgba(255, 255, 255, 0.6) 1.3%,
      rgba(255, 255, 255, 0.5) 1.4%,
      rgba(255, 255, 255, 0.3) 1.5%,
      rgba(255, 255, 255, 0.3) 2.4%,
      rgba(0, 0, 0, 0.05) 2.7%,
      rgba(0, 0, 0, 0.05) 3.5%,
      rgba(255, 255, 255, 0.3) 4%,
      rgba(255, 255, 255, 0.3) 4.5%,
      rgba(244, 244, 244, 0.1) 5.4%,
      rgba(244, 244, 244, 0.1) 99%,
      rgba(144, 144, 144, 0.2) 100%);
  box-shadow: inset 0 -1px 4px rgba(0, 0, 0, 0.12);
}

.bookshelf .book .cover {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  border-radius: 0 6px 6px 0;
  overflow: hidden;
}

.bookshelf .book .cover img {
  min-width: 100%;
  min-height: 100%;
}

.bookshelf .game {
  width: 200px;
  height: 275px;
  display: inline-block;
  margin: 0 10px 16px;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.5);
  /* Thicker shadow for depth */
  position: relative;
  vertical-align: top;
  transition: transform 0.5s;
  border-radius: 5px;
  overflow: hidden;
  background: linear-gradient(to bottom right, #ddd 0%, #aaa 100%);
  /* Gradient background for reflective surface */
  perspective: 1000px;
  transform-style: preserve-3d;
}

.bookshelf .game::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: inherit;
  /* inherit the background of the parent */
  border-radius: inherit;
  /* inherit the border-radius of the parent */
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.5);
  /* the same box-shadow */
  transition: box-shadow 0.5s ease;
  /* transition for smooth shadow movement */
  z-index: -1;
  /* place it behind the original box */
}

.bookshelf .game:hover {
  /* remove the box-shadow line here */
  transform: rotateY(20deg);
}

.bookshelf .game:hover::before {
  box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.5);
  /* add this line - adjust as needed */
}

.bookshelf .game:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  transform: rotateY(20deg);
}

.bookshelf .game a:hover {
  background-color: initial;
  color: initial;
}


.bookshelf .game .cover {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  border-radius: 5px;
  /* adjust as needed */
  overflow: hidden;
}

.bookshelf .game .cover img {
  min-width: 100%;
  min-height: 100%;
}

.bookshelf .game .meta {
  position: absolute;
  bottom: 0;
  padding: 12px 16px;
  background: linear-gradient(0deg,
      rgba(2, 0, 36, 0.6) 0%,
      rgba(2, 0, 36, 0) 100%);
  color: #ffffff;
}

.bookshelf .game .meta .title {
  display: block;
  font-size: 16px;
  font-weight: 500;
}

.bookshelf .game .meta .author {
  font-size: 12px;
  opacity: 0.6;
}

.bookshelf .game .link {
  /* The same styles as the book class */
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  /* The same gradient as the book class */
  /* Adjust as needed for game box style */
  box-shadow: inset 0 -1px 4px rgba(0, 0, 0, 0.12);
}

.custom-details {
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 1rem 0;
}

.custom-details summary {
  padding: 1rem;
  background-color: #f5f5f5;
  cursor: pointer;
  user-select: none;
}

.custom-details summary:hover {
  background-color: #eee;
}

.details-content {
  padding: 1rem;
}

/* Remove the default triangle marker in most browsers */
.custom-details>summary {
  list-style: none;
}

/* Remove the default triangle marker in Safari */
.custom-details>summary::-webkit-details-marker {
  display: none;
}

/* Add a custom marker */
.custom-details>summary::after {
  content: '▼';
  float: right;
  transform: rotate(0);
  transition: transform 0.2s ease;
}

.custom-details[open]>summary::after {
  transform: rotate(180deg);
}

.photo-stack-container {
  pointer-events: none;
  /* Prevent interaction with the container */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
}

.photo-stack-container img,
.photo-stack-container .card-back {
  border: none !important;
  position: absolute;
  cursor: move;
  transform-style: preserve-3d;
  transition: transform 0.6s ease-in-out;
  backface-visibility: hidden;
  user-select: none;
  max-width: 300px;
  pointer-events: auto;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.photo-stack-container .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #f8f8f8;
  transform: rotateY(180deg);
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Satisfy', cursive;
  font-size: 1.5em;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
  color: #333;
  border-radius: 2px;
}

.photo-stack-container .photo-wrapper {
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), z-index 0s 0.3s;
}

.photo-stack-container .photo-wrapper.dragging {
  transition: transform 0.1s linear;
  z-index: 1000;
}

.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-top: 5px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@font-face {
  font-family: 'Satisfy';
  src: url('https://fonts.googleapis.com/css2?family=Satisfy&display=swap');
}

/* Add a class to conceal the images while loading */
.photo-stack-container.loading img {
  visibility: hidden;
  /* Hide the images */
}

.photo-stack-container.loading .loading-spinner {
  display: block;
  /* Keep the spinner visible */
}

.photo-stack-container img {
  visibility: visible;
  /* Show images once loaded */
}

/* Open Heart Carrot Reaction Styles */
.carrot-button {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  color: inherit;
  border-bottom: 2px solid var(--maincolor);
}

.carrot-button:hover {
  background-color: var(--hovercolor);
  color: #fafafa;
}

.carrot-button .emoji {
  font-size: 1em;
}

.carrot-button .count {
  font-size: 0.9em;
}

/* Animation states */
.carrot-button.clicked .emoji {
  animation: carrotBounce 0.6s ease;
}

/* Floating emoji animation */
.floating-emoji {
  position: fixed;
  font-size: 1.2em;
  pointer-events: none;
  z-index: 1000;
  animation: floatUp 1s ease-out forwards;
  transform: translateX(-50%);
}

@keyframes carrotBounce {
  0% { transform: scale(1); }
  25% { transform: scale(1.3) rotate(-5deg); }
  50% { transform: scale(1.1) rotate(5deg); }
  75% { transform: scale(1.2) rotate(-3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-50px) rotate(20deg);
  }
}

/* Mobile responsiveness */
@media (max-width: 520px) {
  .carrot-button {
    font-size: 0.9em;
  }
}

/* Columns Shortcode Styles */
.burrow-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
}

.burrow-column {
  flex: 1 1 calc(50% - 1rem);
  min-width: 0;
}

/* Remove top margin from first element in each column */
.burrow-column > *:first-child {
  margin-top: 0;
}

/* Remove bottom margin from last element in each column */
.burrow-column > *:last-child {
  margin-bottom: 0;
}

/* Mobile responsive - stack columns */
@media screen and (max-width: 768px) {
  .burrow-column {
    flex: 1 1 100%;
  }
  
  .burrow-columns {
    gap: 1.5rem;
  }
}

/* LLMS.txt Link Animation */
.llms-link, .llms-full-link {
  display: inline-block;
}

.llms-link:hover, .llms-full-link:hover {
  background-color: transparent !important;
  color: grey !important;
}

.llms-letter {
  display: inline-block;
  transition: transform 0.2s ease;
}

.llms-link:hover .llms-letter, .llms-full-link:hover .llms-letter {
  animation: jumpLetter 0.6s ease infinite;
}

.llms-link:hover .llms-letter:nth-child(1), .llms-full-link:hover .llms-letter:nth-child(1) { animation-delay: 0s; }
.llms-link:hover .llms-letter:nth-child(2), .llms-full-link:hover .llms-letter:nth-child(2) { animation-delay: 0.05s; }
.llms-link:hover .llms-letter:nth-child(3), .llms-full-link:hover .llms-letter:nth-child(3) { animation-delay: 0.1s; }
.llms-link:hover .llms-letter:nth-child(4), .llms-full-link:hover .llms-letter:nth-child(4) { animation-delay: 0.15s; }
.llms-link:hover .llms-letter:nth-child(5), .llms-full-link:hover .llms-letter:nth-child(5) { animation-delay: 0.2s; }
.llms-link:hover .llms-letter:nth-child(6), .llms-full-link:hover .llms-letter:nth-child(6) { animation-delay: 0.25s; }
.llms-link:hover .llms-letter:nth-child(7), .llms-full-link:hover .llms-letter:nth-child(7) { animation-delay: 0.3s; }
.llms-link:hover .llms-letter:nth-child(8), .llms-full-link:hover .llms-letter:nth-child(8) { animation-delay: 0.35s; }
.llms-link:hover .llms-letter:nth-child(9), .llms-full-link:hover .llms-letter:nth-child(9) { animation-delay: 0.4s; }
.llms-link:hover .llms-letter:nth-child(10), .llms-full-link:hover .llms-letter:nth-child(10) { animation-delay: 0.45s; }
.llms-link:hover .llms-letter:nth-child(11), .llms-full-link:hover .llms-letter:nth-child(11) { animation-delay: 0.5s; }
.llms-link:hover .llms-letter:nth-child(12), .llms-full-link:hover .llms-letter:nth-child(12) { animation-delay: 0.55s; }
.llms-link:hover .llms-letter:nth-child(13), .llms-full-link:hover .llms-letter:nth-child(13) { animation-delay: 0.6s; }

@keyframes jumpLetter {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Color Theme Picker Modal Styles */
.color-theme-picker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-theme-picker.hidden {
  display: none;
}

.color-theme-modal {
  background: #fafafa;
  border: 2px solid var(--maincolor);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.color-theme-header {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--textcolor);
}

.color-theme-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.color-theme-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.color-theme-option:hover {
  background-color: #f8f8f8;
  border-color: var(--maincolor);
  transform: translateY(-1px);
}

.color-preview {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ddd;
  flex-shrink: 0;
}

.color-theme-option span {
  font-size: 0.85rem;
  color: var(--textcolor);
  font-weight: 500;
}

#color-theme-button {
  border-bottom: 2px solid var(--maincolor);
}

#color-theme-button:hover {
  background-color: var(--hovercolor);
  color: #fafafa;
}

.color-theme-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--textcolor);
  padding: 0.25rem;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-theme-close:hover {
  background-color: #f0f0f0;
}

/* Mobile responsiveness for color picker modal */
@media (max-width: 520px) {
  .color-theme-modal {
    padding: 1rem;
    max-width: 90%;
  }
  
  .color-theme-menu {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .color-theme-option span {
    font-size: 0.8rem;
  }
  
  .color-preview {
    width: 20px;
    height: 20px;
  }
}
