:root {
  --header-height: 100px;
  --text-color: #f3f3f3;
  --background-color: pink;
  --title-card-border: 10px;
  --subsection-border: 5px;
  --small-border: 2px;
  --universal-border-radius: 8px;
  --text-background-color: #ffbffcb9;
  --small-font: 8pt;
  --medium-font: 16pt;
  --large-font: 24pt;
  --xl-font: 32pt
}

@font-face {
  font-family: Minecraft;
  src: url(minecraft_font.woff) format('woff');
  font-weight: 400;
  font-style: normal
}

body {
  font-family: Minecraft, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  scroll-behavior: smooth;
  font-size: 16px;
  /* Base font size */
}

html {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  scroll-behavior: smooth
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1
}

.bg-home::before {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: .35;
  background: url(/images/Facefucking.gif) no-repeat 60% center / cover;
  filter: blur(17px);
  background-position: 100% 32%
}

.main-header,
header {
  height: var(--header-height)
}

footer {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: var(--medium-font);
  background-color: var(--text-background-color);
  margin-top: auto;
  border-top: var(--small-border) solid var(--text-color)
}

footer a {
  text-decoration: none
}

#curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
  z-index: 20000;
  opacity: 1;
  transition: opacity .35s ease
}

.centered-title {
  font-family: Minecraft;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  margin-bottom: 2%;
  margin-top: 5%;
  color: var(--text-color)
}

.landing-page {
  padding-top: 15vh;
  font-size: 12vw;
  color: rgb(255, 106, 131);
}

.home-background,
.home-no-background {
  display: flex;
  justify-content: center;
  align-items: center;
  height: fit-content;
  flex-direction: column;
  background-color: var(--background-color);
  border-top: var(--title-card-border) solid var(--text-color);
  padding: 30px;
}

.characters-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: fit-content;
  flex-direction: column;
}

#contact .section-label {
  transform: translate(0, -30%)
}

.intro-container {
  flex-direction: row;
  border-radius: var(--universal-border-radius);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60%
}

.intro-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px
}

.intro-text {
  border: var(--title-card-border) solid var(--background-color);
  margin-right: 5%;
  background-color: var(--text-background-color);
  border-radius: var(--universal-border-radius);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  max-height: 80vh;
  padding-block: 30px;
}

.intro-text p,
h3 {
  padding: 20px;
  font-size: var(--medium-font);
  max-width: fit-content
}

.intro-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  position: relative;
}

#aboutSplit {
  margin-inline: 5%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 98vh;
}

h3 {
  width: fit-content
}

#loadPinnedPost {
  display: flex;
  align-items: center;
  flex-direction: column;
  max-height: 90%;
  height: auto
}

#loadPinnedPost img {
  height: 50vh;
  max-width: 45vw;
}

.blanc-logo {
  width: 125px;
  filter:hue-rotate(180deg)
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  z-index: 100;
  text-align: center;
  background-color: var(--background-color);
  border-bottom: var(--small-border) solid var(--text-color)
}

.page-content {
  text-align: center;
  transition: margin-left .3s ease-in-out;
  flex: 1 0 auto
}

h2 {
  font-size: var(--large-font);
  max-width: fit-content
}

.modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, .5);
  backdrop-filter: blur(20px);
  z-index: 20000
}

.modal-content {
  background-image: var(--gradient-background);
  padding: 2vh;
  border-radius: var(--universal-border-radius);
  text-align: center;
  height: fit-content;
  width: 60%;
  display: grid;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  box-shadow: 0 0 20px rgba(0, 0, 0, .5);
  border: 2px solid var(--text-color)
}

.modal-content #ageText {
  margin: 0 auto;
  text-align: center;
  border: var(--subsection-border) solid var(--text-color);
  background-color: var(--background-color);
}

.modal-content button {
  margin: 1vh;
  padding: 1vh 2vw;
  font-size: 1.5vw
}

.hidden {
  display: none
}

.social-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px;
  justify-content: center;
  align-items: center
}

.buttons {
  max-height: var(--header-height);
  display: flex;
  flex-direction: row;
  padding-right: 2%;
  width: 65%;
  height: auto
}

.buttons a {
  transition: transform .4s ease-in-out;
  transform-origin: center center
}

.buttons a:hover {
  animation: buttonPivotScale .25s linear infinite
}

@keyframes buttonPivotScale {

  0%,
  100%,
  49% {
    transform: scale(1.2) rotate(-2deg)
  }

  50%,
  99% {
    transform: scale(1.2) rotate(2deg)
  }
}

.fa,
.fa-brands {
  padding: 2vw;
  margin: 1vw;
  font-size: var(--xl-font);
  width: 50px;
  height: 50px;
  text-align: center;
  text-decoration: none;
  border: var(--subsection-border) solid var(--background-color);
  border-radius: var(--universal-border-radius);
  transition: scale .2s ease
}

.fa img,
.fa-brands img {
  display: inline-block;
  width: 50px;
  height: auto;
  transition: scale .2s ease
}

.fa-brands:hover,
.fa:hover {
  scale: 1.05
}

.fa-paw {
  background-color: #353b45;
  color: #fff
}

.fa-bluesky {
  background-color: #161e27;
  color: #0085ff
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(5, auto);
  justify-content: center;
  align-items: center
}

.button-featured {
  font-size: 30pt;
  border-radius: 10px;
  font-family: Minecraft;
}

.button-container {
  position: relative;
  margin: 30px
}

.image-button {
  cursor: pointer;
  border: 8px solid var(--background-color);
  border-radius: var(--universal-border-radius);
  background-color: var(--background-color);
  transition: transform .3s ease;
  width: 12vw;
  height: 18vw;
  object-fit: cover
}

.image-button:hover {
  transform: scale(1.05)
}

.container {
  display: flex;
  align-content: center;
  justify-content: center
}

.footer {
  flex-shrink: 0;
  height: 10%
}

.back-button {
  flex-shrink: 0
}

.back-button a img {
  width: 75px;
  height: 75px;
  transition: transform .2s ease;
  padding-top: 10px
}

main {
  height: fit-content
}

#main {
  background: linear-gradient(var(--color1), var(--color2));
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  min-height: 100vh;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

.modal-content h2 {
  color: var(--text-color)
}

.modal-content p {
  align-content: center;
  background-color: #245170;
  border-radius: var(--universal-border-radius);
  font-size: var(--large-font);
  height: fit-content;
  padding: 25px
}

.section-label {
  font-size: var(--xl-font)
}

.gallery-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 10px;
  border-radius: var(--universal-border-radius);
  top: 30%;
}

#confirmButton,
#denyButton {
  height: fit-content;
  width: auto;
  font-size: var(--large-font);
  transition: transform .2s ease;
  border-radius: var(--universal-border-radius);
  color: var(--text-color);
  cursor: pointer;
}

#confirmButton {
  background-color: var(--text-background-color);
}

#denyButton {
  background-color: red;
}

#confirmButton:hover,
#denyButton:hover {
  transform: scale(1.05);
}

.back-button img:hover {
  transform: scale(1.05);
}

.gallery {
  display: grid;
  gap: 5vw;
  padding-top: 60px;
  padding-bottom: 50px;
  justify-content: center;
  align-items: center;
  padding-inline: 5%;
  grid-template-columns: repeat(6, 1fr);
}

.featured-image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.featured-image-container .image-info {
  max-width: 100%;
  max-height: 100%;
  background-color: var(--background-color);
  border: 2px solid var(--text-color);
  border-radius: var(--universal-border-radius);
}

.image-item {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  background-color: var(--background-color);
  cursor: pointer;
  border: 12px solid var(--text-color);
  border-radius: var(--universal-border-radius);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: var(--medium-font);
  color: var(--text-color);
  padding: 2%;
}

.image-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .3s ease, filter .3s ease;
  border: 4px solid var(--text-color);
  border-radius: var(--universal-border-radius);
  object-fit: cover;
}

.image-item:hover {
  transform: scale(1.02);
}

.image-item:hover img {
  transform: scale(.95);
}

.image-item h2 {
  text-align: center;
}

#downloadLink {
  text-decoration:none; 
  color:var(--text-color); 
  margin-top: 5px;
  padding: 5px;
  border: 4px solid var(--text-color);
  border-radius: var(--universal-border-radius);
  text-align: center;
}

.gallery-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .9);
  opacity: 0;
  transition: opacity .5s ease-in-out;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery-modal-content {
  max-height: 75vh;
  min-height: 70vh;
  width: auto;
  margin: 0;
  opacity: 0;
  transition: opacity .5s ease-in-out;
  object-fit: contain;
}

.gallery-modal-content #fullImage {
  border: 8px solid var(--background-color);
  border-radius: var(--title-card-border);
}

.gallery-modal em,
.gallery-modal p {
  padding: 10px;
  font-size: var(--medium-font);
  color: var(--text-color);
  margin: 5px 0;
  max-width: 80%;
  text-align: center;
}

.close {
  position: relative;
  top: 0;
  right: 0;
  color: #fff;
  font-size: var(--xl-font);
  font-weight: 700;
  padding: 10px;
  cursor: pointer;
  z-index: 1000;
  width: 100%;
  text-align: center;
}

h1,
h2 {
  display: flex;
  color: var(--text-color);
  background-color: var(--background-color);
  padding: 20px;
  width: fit-content;
  max-width: 70%;
  border-radius: var(--universal-border-radius);
  border: var(--subsection-border) solid var(--text-color);
}

.date-text {
  color: var(--text-color);
  background-color: var(--background-color);
  border: var(--small-border) solid var(--text-color);
  border-radius: var(--universal-border-radius);
  padding: 10px;
  margin: 20px;
}

.gallery a {
  text-decoration: none;
}

@keyframes floatSway {

  0%,
  100% {
    transform: rotate(-2deg) scale(1.05);
  }

  50% {
    transform: rotate(2deg) scale(0.95);
  }
}

.sway-animation {
  animation: floatSway 15s ease-in-out infinite;
  filter: drop-shadow(0 5px rgba(0,0,0,0.3));
  transform-origin: center center;
}

.characters-container {
  display: flex;
  flex-direction: column;
  width: 80%;
  min-height: fit-content;
  position: relative;
}

.character-banner {
  height: 20vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  transition: height .3s ease;
  margin-top: 12px;
  border: 5px solid var(--text-color);
  border-radius: var(--universal-border-radius);
}

.character-banner:hover {
  height: 30vh
}

.character-link {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  text-decoration: none;
  padding-left: 20px;
}

.character-name {
  color: #fff;
  font-size: 2.5em;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, .5);
  margin-bottom: 10px;
  transition: transform .3s ease;
}

.character-banner:hover .character-name {
  transform: scale(1.1);
}

.modal-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, .7);
  color: #fff;
  padding: 10px;
  text-align: center;
}

#imageTitle {
  font-size: 1.2em;
  margin-bottom: 5px;
}

#imageArtist {
  font-size: 1em;
  color: #ccc;
}

.mode-toggle {
  flex-shrink: 0;
  text-align: center;
  margin: 20px 0;
}

.mode-toggle a {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 10px;
  text-decoration: none;
  background-color: #444;
  color: #fff;
  border-radius: 5px;
}

.mode-toggle a.active {
  background-color: red;
}

.mode-toggle a:hover {
  background-color: #666;
}

.container-404 {
  padding: 20px;
  max-width: 600px;
}

.home-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #f08149;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color .3s;
}

.home-button:hover {
  background-color: #ba3400;
}

.header-title {
  flex: 1;
  text-align: center;
}

.image-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  /* Adjust font size for better readability */
  color: var(--text-color);
  padding: 10px;
  width: fit-content;
  text-align: center;
}

/* Styles moved from gallery.php */

#main {
  background: linear-gradient(var(--color1), var(--color2));
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-button {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-button-text {
  color: var(--text-color);
  font-size: 20pt;
  text-decoration: none;
  padding: 10px;
  text-align: center;
  border: 2px solid var(--text-color);
  border-radius: var(--universal-border-radius);
}

.mode-toggle {
  flex-shrink: 0;
  text-align: center;
  margin: 20px 0;
}

.mode-toggle a {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 10px;
  text-decoration: none;
  background-color: #444;
  color: white;
  border-radius: 5px;
}

.mode-toggle a.active {
  background-color: #f00;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 32px 24px;
  padding: 32px 0;
  justify-items: center;
  justify-content: center;
}

.character-grid {
  /* Use auto-flow dense to fill rows and center last row if not full */
  grid-auto-flow: row dense;
}

.character-grid > .character-tile {
  justify-self: center;
}

/* If fewer than 4 tiles in last row, center them */
.character-grid:has(.character-tile:nth-last-child(3)):not(:has(.character-tile:nth-last-child(4))) {
  justify-content: center;
}

.character-rows {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  width: 100%;
  padding-bottom: 10vh;
}

.character-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  width: 100%;
}

.character-tile {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
  cursor: pointer;
  display: block;
  text-decoration: none;
  width: 15vw;
  height: 30vh;
  z-index: 1;
  border: 4px solid var(--text-color);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  background: rgba(0,0,0,0.05);
  background-size: cover;
  background-repeat: no-repeat;
}

.character-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0;
  color: white;
  border-radius: 12px;
  position: relative;
}

.character-img {
  width: 150%;
  height: 120%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  box-shadow: none;
  border: none;
}

.small-text {
  color: rgb(255, 106, 131); 
  font-size: 3vw; 
  padding-bottom: 20vh;
}

.character-name {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 91%;
  background-color: rgba(0,0,0,0.6);
  padding: 0.5rem 1rem;
  border-radius: 0 0 12px 12px;
  font-weight: bold;
  text-align: center;
  font-family: Minecraft, sans-serif;
  font-size: 1.5em;
}

.character-tile:hover {
  transform: scale(1.08);
  z-index: 2;
}

/* Stagger every even row */
.character-tile:nth-child(5),
.character-tile:nth-child(6),
.character-tile:nth-child(7),
.character-tile:nth-child(8) {
  margin-top: 40px;
  margin-left: 60px;
}

@media (max-width: 900px) {
  .character-row {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .character-row {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .character-tile {
    width: 80vw;
  }

  .character-name {
    width: 91%;
  }

  .bg-home::before {
    background-position: 40% 20%;
  }

  .small-text {
    padding-bottom: 10px;
  }

  .gallery-modal-content {
    max-width: 98vw;
  }
}