/* ------------------------------------------------------ 
Hey, there!
My code is a bit messy but I'm working on it hehe
Some parts are in spanish (my 1st language) and some in english...
I just write in whichever I think of first lol 
--------------------------------------------------------- */

/* Importing google font */
@import url('https://fonts.googleapis.com/css2?family=Oxygen:wght@300;400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Amaranth:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gaegu&display=swap');

/* ========================= */
/* 🌱 RESPONSIVE TYPOGRAPHY */
/* ========================= */
:root {
  /* Base text */
  --fs-body: clamp(0.95rem, 2.5vw, 1.05rem);
  --fs-small: clamp(0.8rem, 2.2vw, 0.9rem);

  /* Headings */
  --fs-h1: clamp(1.6rem, 5vw, 2.2rem);
  --fs-h2: clamp(1.2rem, 4vw, 1.6rem);
  --fs-h3: clamp(1.05rem, 3.2vw, 1.3rem);

  /* Decorative / UI text */
  --fs-ui: clamp(0.85rem, 2.5vw, 1rem);
}


:root {
  /* Fonts */
  --primary-font: 'Raleway', sans-serif;
  --heading-font: 'Amaranth', sans-serif;
  --title-font: 'Cinzel Decorative', sans-serif;

  /* Colors */
  --accent: #8d3f3f;
  --accent-2: #ff83a2;
  --background: #4bd6e2;
  --preloader-bg: #ffb75f;
  --divider: #f4d3e8;
  --heading:  #BB5E5E;
  --footer-bg: #793056;
  --footer-text: #c27283;
  --panel-bg: #ffffff;
  --panel-border: #f6c9b9;
  --muted: #6c4f6d;
  --text: #222;
  --link: #3c2a3a;
  --link-hover-bg: #f9f3edcf;
  --dropdown-bg: #ffffff;
  --navtxt: rgb(161, 83, 83);;

  /* Gradients */
  --gradient-left: linear-gradient(360deg, rgb(217, 94, 178) 0%, #fbbf5d 100%);
  --gradient-right: linear-gradient(360deg, #fbbf5d, rgb(217, 94, 178));
  --gradient-btn: linear-gradient(90deg, var(--accent), var(--accent-2));
  --gradient-heading: linear-gradient(0deg, rgb(255, 227, 117) 15%, rgb(255, 90, 107) 100%);

  /* Cursors */
  --cursor-main: url("/assets/cursors/main/hand.cur"), auto;
  --cursor-help: url("/assets/cursors/main/helpsel.cur"), help;
  --cursor-link: url("/assets/cursors/main/link.cur"), pointer;
}

/* ------------------ */
/* GLOBAL RESET */
/* ------------------ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'FancyH1'; 
  src: url('/assets/fonts/PORKYS.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: var(--primary-font);
  color: var(--accent);
  font-size: large;
  overflow-x: hidden;

  background-image: url("https://i.ibb.co/svjJZ6mc/morning-coffee-moment-stockcake-1.jpg");
  background-repeat: no-repeat;
  background-size: cover; 
  background-attachment: fixed;

    /* pattern on top */
    /* url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 40' width='80' height='40'%3E%3Cpath fill='%23e7fff8' fill-opacity='0.13' d='M0 40a19.96 19.96 0 0 1 5.9-14.11 20.17 20.17 0 0 1 19.44-5.2A20 20 0 0 1 20.2 40H0zM65.32.75A20.02 20.02 0 0 1 40.8 25.26 20.02 20.02 0 0 1 65.32.76zM.07 0h20.1l-.08.07A20.02 20.02 0 0 1 .75 5.25 20.08 20.08 0 0 1 .07 0zm1.94 40h2.53l4.26-4.24v-9.78A17.96 17.96 0 0 0 2 40zm5.38 0h9.8a17.98 17.98 0 0 0 6.67-16.42L7.4 40zm3.43-15.42v9.17l11.62-11.59c-3.97-.5-8.08.3-11.62 2.42zm32.86-.78A18 18 0 0 0 63.85 3.63L43.68 23.8zm7.2-19.17v9.15L62.43 2.22c-3.96-.5-8.05.3-11.57 2.4zm-3.49 2.72c-4.1 4.1-5.81 9.69-5.13 15.03l6.61-6.6V6.02c-.51.41-1 .85-1.48 1.33zM17.18 0H7.42L3.64 3.78A18 18 0 0 0 17.18 0zM2.08 0c-.01.8.04 1.58.14 2.37L4.59 0H2.07z'%3E%3C/path%3E%3C/svg%3E"), */
    
    /* gradient underneath */
    /* linear-gradient(
      180deg,
      #4bd6e2 0%,
      #c29ae09c 100%
    ); */

  /* background-repeat: repeat, no-repeat;
  background-position: 0% 100%, center;
  background-size: auto, cover; */

  /* pattern moves, but gradient is fixed to viewport */
  /* background-attachment: scroll, fixed; */

  /* animation: bg-drift 90s linear infinite alternate; */
  /* background-repeat: repeat;
  background-position: 0% 100%;
  animation: bg-drift 90s linear infinite alternate; */
}


/* ------------ custom cursors ------------ */
body {
  cursor: var(--cursor-main)
}

/* link cursor */
a, button {
  cursor: var(--cursor-link)
}

/* help cursor */
.help {
  cursor: var(--cursor-help)
}

@keyframes bg-drift {
  from {
    background-position: 0% 100%, center;
  }
  to {
    background-position: 100% 100%, center;
  }
}

/* ========================= */
/* 🌸 GLOBAL FONT SCALING */
/* ========================= */
body {
  font-size: var(--fs-body);
  line-height: 1.6;
}

p,
li,
.side-txt,
.typewriter {
  font-size: var(--fs-body);
}

small,
.loading {
  font-size: var(--fs-small);
}

/* ========================= */
/* ✨ RESPONSIVE HEADINGS */
/* ========================= */
h1,
.myh1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

.speech-name {
  font-size: clamp(1rem, 3.5vw, 1.25rem);
}

nav,
.nav a,
.nav-dropdown {
  font-size: var(--fs-ui);
}

/* ========================= */
/* 🧁 UI ELEMENTS */
/* ========================= */
button,
.fancy-btn,
textarea {
  font-size: var(--fs-ui);
}


main {
  display: flex;
  justify-content: center;
}

/* ===== Custom Scrollbar ===== */
/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #e8dbb4 #802f57;
}

/* global mute/unmute btn */
.audio-toggle{
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 99999999; /* extremely high so it stays above landing */

  width: 42px;
  height: 42px;

  display:flex;
  align-items:center;
  justify-content:center;

  background: #6f365cb1;
  border-radius: 50%;
  border:none;

  cursor:pointer;
}

.audio-toggle iconify-icon{
  font-size: 24px;
  color: rgb(255, 245, 222);
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #ffb75fa8;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader {
  font-size: 3.12rem;
  color: #fff;
  animation: zoomInOut 1s ease-in-out infinite;
}

@keyframes zoomInOut {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}


/* Landing wrapper------------------ */
#landing {
  background: linear-gradient(to bottom, #15002c, #ff758c);
  position: fixed;   /* cubre toda la pantalla */
  align-items: center; /* centra verticalmente */
  justify-content: center; /* centra horizontalmente */
  inset: 0;
  display: flex;
  z-index: 9999;
}

/* Two columns */
.landing-left,
.landing-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-left {
  flex-direction: column; /* stack vertically */
  gap: 1.2rem; /* space between elements */
  text-align: center;
}

.landing-top {
  font-family: 'FancyH1', sans-serif;
  font-size: 2rem;
  color: white;
  opacity: 0.85;
}

.landing-bottom {
  font-family: var(--heading-font);
  font-size: 0.9rem;
  color: white;
  opacity: 0.75;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.highlight-landing {
  background-color: #f9b76754;
  padding: 0 8px 0 8px;
  border-radius: 8px;
}

/* Typing box */
.type-box {
  max-width: 400px;
  padding: 2rem;
  border: none;
  border-radius: 12px;
  font-family: var(--heading-font);
  font-size: 1.4rem;
  background: rgba(255, 255, 255);
}

/* Image button */
#enter-btn {
  max-width: 80%;
  cursor: var(--cursor-link);
  transition: transform 0.3s ease;
}

#enter-btn:hover {
  transform: scale(1.05);
}

/* Smooth fading */
#landing,
#main-content {
  transition: opacity 0.8s ease;
}

/* Initial states */
#landing {
  opacity: 1;
}

#main-content {
  opacity: 0;
}

/* When leaving landing */
#landing.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* When showing main site */
#main-content.show {
  opacity: 1;
}

/* Popup overlay */
#session-popup {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);

  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

/* Popup box */
.popup-box {
  background: rgba(75, 47, 40, 0.95);
  color: #fff;
  max-width: 420px;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  line-height: 1.6;

  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.popup-box button {
  margin-top: 14px;
  padding: 6px 18px;
  border-radius: 6px;
  border: none;
  cursor: var(--cursor-link);

  background: linear-gradient(90deg, #B169C7, #FFA47F);
  color: white;
  font-size: 0.95rem;
}


/* Fireflies container */
.fireflies {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden; /*keeps random positions inside bounds*/
  pointer-events: none; /*to avoid interfering with clicks*/
  z-index: 2; 
  }
  
  .firefly {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 238, 0.17);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 176, 0.17);
  animation: move 5s linear infinite, glow 2s ease-in-out infinite;
  }
  
  @keyframes move {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(calc(100vw * var(--dx)), calc(100vh * var(--dy)));
  }
  }
  
  @keyframes glow {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
  }



.myh1 {
  position: relative;
  display: block; /* important for shine bounds */
  overflow: hidden; /* keeps shine inside text area */

  font-family: var(--title-font);
  text-align: center;
  background: linear-gradient(90deg, #B169C7, #FFA47F);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent; 
}

.myh1::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;

  width: 120%;
  height: 100%;

  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 40%,
    rgba(255, 255, 255, 0.342) 50%,
    rgba(255,255,255,0) 60%
  );

  transform: skewX(-25deg);
  pointer-events: none;

  /* mask it to the text */
  -webkit-mask-image: linear-gradient(#ffffff 0 0);
  mask-image: linear-gradient(#ffffff 0 0);

  animation: text-shine 3.5s ease-in-out infinite;
}

@keyframes text-shine {
  0% {
    left: -150%;
  }
  60% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}


/* adds an hr element right below */
.myh1::after {
  content: "";
  display: block;
  width: 60%;
  height: 10px;
  margin: 0.6rem auto 1.8rem;

  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10'%3E%3Cpath d='M0 5 Q 5 0 10 5 T 20 5 T 30 5 T 40 5 T 50 5 T 60 5 T 70 5 T 80 5 T 90 5 T 100 5' fill='none' stroke='url(%23grad)' stroke-width='2'/%3E%3Cdefs%3E%3ClinearGradient id='grad' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='100' y2='0'%3E%3Cstop offset='0%25' stop-color='transparent'/%3E%3Cstop offset='20%25' stop-color='%23B169C7'/%3E%3Cstop offset='80%25' stop-color='%23FFA47F'/%3E%3Cstop offset='100%25' stop-color='transparent'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E")
    no-repeat center / contain;
  
}


h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;

  background: linear-gradient(
    to right,
    #ad66dc 0%,
    #ffce7f 100%
    /* rgba(162, 52, 210, 0.85) 0%,
    rgba(255, 247, 235, 0.75) 60%,
    rgba(232, 200, 180, 0) 100% */
  );
  padding: 0.55rem;
  border-radius: 8px;
  margin-top: 18px;
  margin-bottom: 15px;

  transition: transform 0.25s ease;
}

h2:hover,
h3:hover,
h4:hover,
h5:hover,
h6:hover {
  transform: translateX(6px);
}

/* ------------------ */
/* MAIN GRID WRAPPER */
/* ------------------ */
.main-parent {
  width: 100%;
  max-width: 1200px;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-template-areas:
    "banner banner"
    "nav nav"
    "content content"
    "footer footer";
  gap: 1rem;
}

.content-area {
  grid-area: content;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}


/* NAV */
.nav {
  grid-area: nav;
  min-height: 60px;
  border-radius: 12px;
}

.top-nav {
  width: 100%;
  background: var(--panel-bg);
  border-radius: 12px;
  border: none;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;

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

/* LEFT SIDE */
.site-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;

  font-family: var(--title-font);
  color: var(--heading);
}

/* stack name + subtext */
.site-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--footer-text);
}

.site-name {
  font-size: 1.4rem;
  font-weight: 700;
}

.site-subtxt {
  font-family: var(--primary-font);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--footer-text);
  margin-top: 0.15rem;
}

.site-title img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* RIGHT SIDE */
nav {
  display: flex;
  gap: 1.25rem;
  align-items: center; /* align vertically */
}

nav a {
  text-decoration: none;
  color: var(--navtxt);
  font-weight: 500;
  position: relative;
}

/* line below the links */
nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--background);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

#navlinks a {
  font-family: var(--heading-font);
  font-size: larger;
}

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

/* ------------------ */
/* FULL WIDTH BANNER */
/* ------------------ */

.banner {
  margin-top: -1rem; /*remove space from above - Cancels out .main-parent’s padding-top*/

  grid-area: banner;
  position: relative;

  /* height: 350px; */
  height: 400px;
  overflow: hidden;
  border-radius:0px;

  /* Full-bleed banner */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-1 * (100vw - 100%) / 2);

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image */
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 99%;
  display: block;

  transition: transform 0.4s ease;

  /* Fade to transparent at bottom */
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 80%,
    rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 80%,
    rgba(0,0,0,0) 100%
  );
}


/* ------------------ */
/* SOCIAL ICONS */
/* ------------------ */

.banner .socials {
  position: absolute;
  top: 20px;
  right: 65px;

  display: flex;
  gap: 10px;
  z-index: 2;
}

.banner .socials a {
  font-size: 1.9rem;
  color: white;

  transition: transform 0.2s ease, color 0.2s ease;
}

.banner .socials a:hover {
  color: #632243;
  transform: scale(1.2);
}

/* ------------------ */
/* DATE ON BANNER */
/* ------------------ */

.banner .banner-date {
  position: absolute;
  top: 14px;
  left: 65px;
  z-index: 2; /* same level as socials */
}

.banner .date-box {
  background-color: rgba(103, 54, 54, 0.658);
  border-radius: 8px;
  text-align: center;
  /* glass effect */
  backdrop-filter: blur(3px);
}

.banner .date-box p {
  margin: 0;
  color: white;
  font-size: 1rem;
}

/* ------------------ */
/* SAFE SPACE BUTTON  */
/* ------------------ */

.banner .safe-button {
  position: absolute;
  bottom: 25px;
  left: 65px;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 14px;
  border-radius: 25px;

  background: rgba(103, 54, 54, 0.6);
  backdrop-filter: blur(4px);

  color: white;
  font-family: 'Gaegu', sans-serif;
  font-size: 0.95rem;
  text-decoration: none;

  border: 1px solid rgba(255, 255, 255, 0.2);

  transition: all 0.25s ease;
}

.banner .safe-button:hover {
  background: rgba(99, 34, 67, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ------------------ */
/* SECTIONS */
/* ------------------ */
.page-top {
  display: flex;
  gap: 1.25rem;
  align-items: stretch;
  /* max-height: 75vh; */
}

.mybox-side img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.mybox-main,
.mybox-side {
  height: 100%;
  /* min-height: 0; IMPORTANT for scrolling */
}


.mybox-main,
.mybox-side,
.mybox {
  background: var(--panel-bg);
  border-radius: 12px;
  padding: 1.5rem;
  border: none;
}

.mybox-main {
  grid-area: main;
  /* min-height: 300px; */
  flex: 1;
  /* max-height: 100%; */
  /* overflow-y: auto;

  scrollbar-width: thin;
  scrollbar-color: #d99ed1 #802f5700; */
}

.mybox-side {
  grid-area: side;
  min-height: 300px;
  color: var(--footer-text);
  
  width: 280px;
  flex-shrink: 0;
}

.mybox {
  grid-area: box;
  min-height: 180px;
}

.mybox-side img {
  width: 85%;
  border-radius: 8px;
  margin: 0 auto 0.75rem auto;
  display: block;
}

.side-txt {
  text-align: justify;
  color: white;
}

.mybox-main::-webkit-scrollbar {
  width: 9px;
}

.mybox-main::-webkit-scrollbar-thumb {
  background-color: #f4dde2;
  border-radius: 10px;
}

/* ------------------ */
/* CUSTOM LIST ICON   */
/* ------------------ */
.sparkle-list {
  list-style: none; /* remove default bullets */
  padding-left: 0;
}

.sparkle-list li {
  position: relative;
  padding-left: 28px; /* space for icon */
}

.sparkle-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;

  width: 18px;
  height: 18px;

  background-color: currentColor;
  mask: url("https://api.iconify.design/oui/sparkle-filled.svg") no-repeat center;
  -webkit-mask: url("https://api.iconify.design/oui/sparkle-filled.svg") no-repeat center;

  mask-size: contain;
  -webkit-mask-size: contain;
}

/* ------------------ */
/* SPARKLE LIST LINKS */
/* ------------------ */

.sparkle-list li a {
  display: block;              /* full row clickable */
  text-decoration: none;
  color: inherit;              /* sparkle follows link color */

  padding: 4px 6px;
  border-radius: 6px;

  transition: 
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.15s ease;
}

/* Hover */
.sparkle-list li a:hover {
  color: #FEAD80; /* accent color */
  background-color: #fecc8018;
  transform: translateX(2px);
}

/* Click feedback */
.sparkle-list li a:active {
  transform: translateX(1px) scale(0.98);
}

/* make sparkle react when hovering the link */
.sparkle-list li:hover::before {
  transform: scale(1.15);
  opacity: 1;
  transition: transform 0.15s ease, opacity 0.15s ease;
}


/* ------------------ */
/* NAV DROPDOWNS */
/* ------------------ */

.nav-dropdown {
  position: relative;
}

/* Button that looks like your links */
.nav-dropbtn {
  background: none;
  border: none;
  padding: 0;
  cursor: var(--cursor-link);

  font-family: var(--heading-font);
  font-size: larger;
  color: var(--navtxt);

  display: flex;
  align-items: center;
  gap: 0.25rem;
  position: relative;

  margin-bottom: 0;
}

/* underline animation */
.nav-dropbtn::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--background);
  transition: width 0.3s ease;

  margin-bottom: 0;
}

.nav-dropbtn:hover::after {
  width: 100%;
}

.nav-dropbtn:hover {
  color: var(--background);
}

/* caret */
.caret {
  font-size: 1.2rem;
  opacity: 0.7;
}

/* Dropdown panel */
.nav-dropdown-content {
  position: absolute;
  top: 100%; /*anchor it right below the nav button*/
  left: 0;

  background: var(--dropdown-bg);

  border-radius: 12px;

  min-width: 200px;
  padding: 0.4rem 0;

  box-shadow: 0 8px 20px rgba(0,0,0,0.1);

  display: none;
  z-index: 1000;

  margin-top: 0;
}

/* Dropdown links */
.nav-dropdown-content a {
  display: block;
  padding: 0.5rem 1rem;

  font-family: var(--primary-font);
  font-size: 0.95rem;
  color: var(--footer-bg);
  text-decoration: none;
}

.nav-dropdown-content a:hover {
  background: var(--link-hover-bg);
  color: var(--accent);
}

/* animate text only, not bg color */
.nav-dropdown-content a span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.nav-dropdown-content a:hover span {
  transform: translateX(8px);
}

/* Desktop hover */
.nav-dropdown:hover .nav-dropdown-content {
  display: block;
}

/* auto-highlight active */
/* Active nav item */
.nav-active {
  color: var(--background) !important;
}

.nav-active::after {
  width: 100% !important;
}

/* content boxes animation */
/* Page animation */
.page {
  display: none;
}

.page.active {
  display: contents;
}

/* Animate boxes */
.page.active .mybox-main,
.page.active .mybox {
  animation: boxFade 0.35s ease both;
}

.page.active .mybox:nth-child(2) {
  animation-delay: 0.05s;
}

.page.active .mybox:nth-child(3) {
  animation-delay: 0.1s;
}

@keyframes boxFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  grid-area: footer;
  min-height: 80px;
  background-color: #C27283;
  color: white;
  border-radius: 12px;
  padding-top: 1rem;
  border: none;
  text-align: center;
}

.bouncy-text p {
  display: inline-block;
  animation: letter-bounce 1.8s ease-in-out infinite;
}

@keyframes letter-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.speech-name {
  font-family: var(--title-font);
  text-align: center;
  font-size: large;
  color: #fadda2;
}

.speech-bubble {
	position: relative;
	background: #b47c67;
	border-radius: .4em;
  padding: 16px;
  color: white;

  animation: floaty 3s ease-in-out infinite;
}

.speech-bubble:after {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	width: 0;
	height: 0;
	border: 20px solid transparent;
	border-bottom-color: #b47c67;
	border-top: 0;
	margin-left: -20px;
	margin-top: -20px;

  animation: floaty 3s ease-in-out infinite;
}

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

.typewriter {
  display: inline-block;
}

.typewriter::after {
  content: "| ";
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.typewriter.done::after {
  content: "";
  animation: none;
}

  /*txt bounce animation*/
.bounces { 
position: relative;
top: 0;
animation: bounces 0.3s ease infinite alternate;
}

@keyframes bounces {
100% {
top: -.2rem;
}
}

a.fancy-btn {
  display: inline-block;
  border-radius: 6px;
  background: transparent; /* base color */
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease, 
              filter 0.2s ease;
  cursor: var(--cursor-link);
}

a.fancy-btn:hover {
  transform: scale(1.05) rotate(2deg);
  filter: brightness(1.15); /* brighten on hover */
}

.pet-ani {
  display: inline-block;
  transition: transform 0.2s ease;
  cursor: var(--cursor-link);
}


.pet-ani:hover {
  transform: scale(1.05) rotate(4deg); /* Slight zoom + tilt */
}

/* Wobble animation when going back */
.pet-ani:not(:hover) {
  animation: wobbleBack 0.4s ease;
}

@keyframes wobbleBack {
  0%   { transform: scale(1.05) rotate(4deg); }
  25%  { transform: scale(1) rotate(-3deg); }
  50%  { transform: scale(1) rotate(3deg); }
  75%  { transform: scale(1) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); }
}


/* base pagedoll style */
.pagedoll {
  position: fixed;
  bottom: 30px;
  width: 230px; 
  z-index: 1000;
  animation: floaty 3s ease-in-out infinite;
  cursor: var(--cursor-link);
  margin: 0;
}

/* place left and right */
.pagedoll-left {
  left: 0;
}

.pagedoll-right {
  right: 0;
}

/* gentle bouncing animation */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* fun hover wobble */
.pagedoll:hover {
  animation: wobble 0.6s ease;
}

@keyframes wobble {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(-6deg); }
  50%  { transform: rotate(6deg); }
  75%  { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}

/* responsive img */
img {
  max-width: 100%; /* responsive */
  height: auto;
}


/*highlight*/
::selection {
  /* Change highlight background color */
  background: rgb(255, 197, 167);
  /* Change highlight text color */
  color: #FFFFFF;
  }

/* show/hide sections */
.page {
  display: none;
  flex-direction: column;
  gap: 1.25rem; /* spacing between mybox-main & mybox */
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.page.active {
  display: flex;
  transform: translateY(0);
}

.wave-text span {
  display: inline-block;
  animation: letter-wave 1.5s cubic-bezier(.4,0,.2,1) infinite;
}

.wave-text iconify-icon {
  animation-duration: 5s;
}

@keyframes letter-wave {
  0%   { transform: translateY(0px); }

  8%   { transform: translateY(-1px); }
  16%  { transform: translateY(0px); }
  24%  { transform: translateY(1px); }
  32%  { transform: translateY(0px); }
  /* pause */
  100% { transform: translateY(0px); }
}

.section-content img {
  display: block;   /* remove default inline spacing */
  margin: 0;        /* remove default margin */
  padding: 0;       /* remove padding */
}

/* Add top padding to content so it doesn’t overlap the title */
.section-content {
  margin-top: 3em; /* adjust based on title height */
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
}


/* web updates - homepage */
#updates {
  max-width: 600px;
  margin: 4px auto;
  padding: 10px;
  background: #7de3f5;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.update .date {
  display: flex;
  align-items: center;
  gap: 8px;
}

.update .update-icon {
  width: 20px; 
  height: auto;    /* keeps the aspect ratio */
  border-radius: 6px;
}


#updates-feed {
  max-height: 153px; /* makes it scrollable */
  overflow-y: auto;
  padding-right: 10px; /* space for scrollbar */
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Custom scrollbar for #updates-feed */
#updates-feed {
  scrollbar-width: thin;
  scrollbar-color: #FECD80 #ffffff;
}

/* Each update block */
.update {
  background: #ccffff;
  padding: 6px;
  border-radius: 3px;
  transition: transform 0.2s ease;
}

.update:hover {
  transform: scale(1.01);
}

.update .date {
  font-size: 14px;
  color: #FBB184;
  margin-bottom: 5px;
  font-family: var(--heading-font);
}

.update .content {
  font-size: 14px;
  color: rgb(58, 84, 162);
  text-align: justify;
}

/* responsive columns */
.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  width: 100%;
}

.col-box {
  background: var(--panel-bg);
  border-radius: 12px;
  padding: 0.85rem;
}

/* bluesky feed */
.bsky-feed {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 170px; /* makes it scrollable */
  overflow-y: auto;
  overflow-x: hidden;
}

.bsky-post {
  background: #f8e4e0;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
  max-width: 330px;
}

.bsky-post p{
  font-size: 0.85rem;
}

.bsky-post a {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #CE90B7;
  text-decoration: none;
}

.bsky-post a:hover {
  text-decoration: underline;
}

.loading {
  opacity: 0.7;
  font-style: italic;
}


.bsky-header iconify-icon {
  font-size: 1.2rem;
  color: var(--accent);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.bsky-header{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:0.9em;
  opacity:0.8;
}

.bsky-time{
  font-style:italic;
  font-size: 0.7rem;
}

#mybtn_txt_area {
  width: 100%; 
  min-height: 100px; 
  border-radius: 8px; 
  border: none; 
  background-color: blanchedalmond; 
  text-align: left;
}


.mypgbtn {
  background-color: #FFEBCD;
  padding-top: 6px;
  padding-bottom: 2px;
  padding-right: 0px;
  padding-left: 6px;
  border-radius: 5px;
  border: none;
  margin: 2px auto;
}

.mypgbtn a img {
  width: 100%;
}

/* lightbox */
.img-zoom {
  cursor: zoom-in;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.img-zoom:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: var(--cursor-link);
}

/* tooltip */
.tooltip-wrapper {
  position: relative;
  display: inline-block;
}

.tooltip-wrapper::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #B47C67;
  color: white;
  padding: 6px 10px;
  font-size: 15px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tooltip-wrapper:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-12px);
}

.tooltip-wrapper {
  --tooltip: "";
}

.tooltip-wrapper::before {
  content: var(--tooltip);
}


/* Marquee Tooltip */
.marquee-tooltip {
  position: fixed;
  pointer-events: none; /* so it doesn't block hover */
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* glenmusic widget */
@font-face {
font-family: emoji;
src: url(https://dl.dropbox.com/s/miph32gnut3atwk/bmstamp.TTF);
}

/*-------MUSIC PLAYER BY GLENTHEMES-------*/
#glenplayer02 {
position:fixed;
top:0;margin-top:40px;
left:0;margin-left:20px;
display:flex;
z-index:99;
}
#glenplayer02 a {text-decoration:none;}

#glenplayer02 > div {
align-self:center;
-webkit-align-self:center;
}

.music-controls {
user-select:none;
-webkit-user-select:none;
width:20px;
color: #fff9e8;
font-family: emoji;
font-size: 20px;
cursor: var(--cursor-link);
}

.playy, .pausee {
color: #fff9e8;
animation-name: floating;
animation-duration: 3s;
animation-iteration-count: infinite;
animation-timing-function: ease-in-out;
}

@keyframes floating {
0% { transform: translate(0, 0px); }
50% { transform: translate(0, 7px); }
100% { transform: translate(0, -0px); }
} 

.pausee {display:none;}

.sonata {
margin-left:10px;
width:130px;
color:#fff9e8; /* color of music note symbol */
}

.sonata marquee {
  margin-top: 15px;
  font-family: 'FancyH1', sans-serif; 
  font-size: 16px;    
  color: #fff9e8;   
}



/* pixel sterki */
.zoom-img {
  overflow: visible;  
  width: 200px;     
  margin-top: 20px; 
  position: relative;
  cursor: var(--cursor-help); 
}

.zoom-img img {
  width: 100%;
  height: 100%;
  display: block;

  transition: transform 0.35s ease, filter 0.35s ease;
}

.zoom-img:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* Artwork tooltip */
.zoom-img::after {
  content: "I think I had lost my plushie...";
  position: absolute;
  bottom: 105%;
  left: 50%;
  transform: translateX(-50%);
  background: rgb(125, 54, 54);
  color: rgb(255, 242, 225);
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.zoom-img:hover::after {
  opacity: 1;
}

#sticker-drag {
  position: fixed;
  left: 405px;
  top: 240px;
  z-index: 1000;
  cursor: var(--cursor-help); 
  transition: left 0.25s ease, top 0.25s ease, transform 0.2s ease, brightness 0.2s ease; 
}

#sticker-drag:hover {
  transform: scale(1.05); /* Slight zoom on hover */
  filter: brightness(1.1); /* Make it lighter */
}

.art-hint{
  position:absolute;
  bottom:-4px;
  left:10px;
  background:rgb(125, 54, 54);
  color:rgb(255, 242, 225);
  padding:8px;
  border-radius:4px;
  font-size:0.7em;
  pointer-events:none;
  animation: hintFade 0.3s ease;
}

@keyframes hintFade{
  from{opacity:0; transform:translateY(5px);}
  to{opacity:1; transform:translateY(0);}
}

/* Tooltip styling */
#sticker-drag::after {
  content: "Psst! Drag me!"; /* Tooltip text */
  position: absolute;
  bottom: 100%; /* Position above the sticker */
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none; /* Prevent tooltip from interfering with dragging */
}

#sticker-drag:hover::after {
  opacity: 1;
}

/* Idle wiggle animation */
@keyframes idleWiggle {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  20% { transform: translateX(-5px) rotate(-5deg); }
  40% { transform: translateX(5px) rotate(5deg); }
  60% { transform: translateX(-3px) rotate(-3deg); }
  80% { transform: translateX(3px) rotate(3deg); }
}

/* The class JS toggles */
#sticker-drag.idle-animate {
  animation: idleWiggle 0.6s ease-in-out;
}


/* Tumblr posts archive */
#tumblr-archive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.tumblr-post {
  background: #fff8f0;
  padding: 0.8rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.tumblr-post:hover {
  transform: translateY(-4px);
}

.tumblr-post img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 0.5rem;
}



/* DRAWBOX CSS */
#drawboxcanvas {
  border: 2px solid #8d3f3f; 
  border-radius: 8px;       
  background-color: #faf8f6; /* light page-friendly background */
  max-width: 100%;           /* responsive */
  display: block;
  margin: 0 auto 20px;       /* spacing below canvas */
  
}

/* Container */
#drawbox-container {
  text-align: center;
  margin: 20px auto;
  padding: 10px;
  max-width: 550px;
}

/* Toolbar: color picker, slider, buttons in one line */
#drawbox-toolbar {
  display: flex;
  flex-wrap: nowrap;       /* keep all items on one line */
  justify-content: center; /* center the whole toolbar */
  align-items: center;
  gap: 4px;                /* small gap between items, can set to 0 if you want no space */
  margin-bottom: 10px;
}

/* Brush size slider */
#stroke-width {
  accent-color: var(--preloader-bg);    /* page color */
  width: 120px;              
  height: 8px;               
  border-radius: 5px;        
  cursor: var(--cursor-link);
}

/* Color picker */
#stroke-color {
  width: 40px;
  height: 40px;
  border: 2px solid #fff;  /* accent border */  
  padding: 0;
  cursor: var(--cursor-link);
  background-color: #fff;
  transition: transform 0.1s;
}

#stroke-color:hover {
  transform: scale(1.1);
}

/* Buttons */
#drawbox-container button {
  background-color: #B47C67;
  color: white;
  border: none;
  border-radius: 6px;        
  padding: 6px 12px;
  cursor: var(--cursor-link);
  font-weight: bold;
  transition: background-color 0.2s, transform 0.1s;
}

#drawbox-container button:hover {
  background-color: var(--preloader-bg);  
  transform: scale(1.05);
}

/* Labels */
#drawbox-container label {
  display: inline-flex;
  align-items: center;
  font-weight: bold;
  margin: 0;
  color: #BB5E5E; /* text color */
  gap: 4px;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 4px;
  background-color: #faf8f6;
}

.image-container img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.image-container p {
  font-size: 10px;
  margin: 2px 0 0 0;
  color: #555;
  text-align: center;
}

.rules-dbox {
  align-items: center;
  text-align: justify;
  padding-left: 20px;
}

.brush-preview{
  position:absolute;
  pointer-events:none;
  border:2px solid #d19ac8;
  border-radius:50%;
  transform:translate(-50%,-50%);
  z-index:9999;
  mix-blend-mode:difference;
}

#toast {
  position: fixed;    
  left: 0;                /* anchor to left edge */
  width: 100%;            /* full width */

  visibility: hidden;
  opacity: 0;

  background: linear-gradient(120deg, #B06AD9, #FBC982);
  color: #fff;
  text-align: center;
  padding: 12px;
  font-size: 1.2rem;
  font-family: var(--heading-font);
  z-index: 99999;

  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#toast.show {
  visibility: visible;
  opacity: 1;
  animation: toastPop 0.35s ease;
  box-shadow: 0 0 12px #ffd6f5;
}

@keyframes toastPop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  60% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.unlocking {
  animation: sparkleReveal 0.8s ease forwards;
}

@keyframes sparkleReveal {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

#billspc .webring-info {
font-family: var(--title-font);
}
#billspc .webring-prev, .webring-next {
font-weight: bold;
}  

#oc-webring-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
  width: fit-content;
  gap: 0.5em;
  border: none;
  padding: 0.5em;
  border-radius: 8px;
  background-color: #F8E4E0;
}

#oc-webring-widget a {
  color: #C27283;
}

#oc-webring-title {
  font-weight: bold;
  color: #C27283;
}
#oc-webring-controls {
  display: flex;
  gap: 1em;
  color: #C27283;
}



.keychain-cont {
  position: relative;
}

/* keychain positioning */
#keychain {
  position: absolute;
  top: -20px;
  right: -100px; 
  z-index: 900;

  transform-origin: top center;
  transform: rotate(4deg);

  animation: pendulum 2.5s ease-in-out infinite;
  transition: transform 0.25s ease;
}

/* stop swing on hover */
#keychain:hover {
  animation: none;
  transform: translateX(-50%) rotate(0deg) scale(1.08);
}

/* tooltip */
#keychain::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);

  color: #f4dde2;
  background: #88264D;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.85rem;

  max-width: 200px;     /* prevents it from going too wide */
  white-space: normal;  /* allow wrapping (especially for mobile) */
  text-align: center; 

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* show tooltip */
#keychain:hover::before {
  opacity: 1;
}

/* pendulum animation */
@keyframes pendulum {
  0%   { transform: translateX(-50%) rotate(4deg); }
  50%  { transform: translateX(-50%) rotate(-4deg); }
  100% { transform: translateX(-50%) rotate(4deg); }
}

#blinkFace {
  cursor: var(--cursor-link);
  transition: transform 0.2s ease, filter 0.2s ease;
}

#blinkFace:hover {
  transform: scale(1.01);
  filter: brightness(1.08);
}

/* magic 8 ball */
.eightball-container{
    text-align:center;
    margin:20px;
}

#binstructions{
  font-family: "Cinzel Decorative", sans-serif;
}

#eightball{
    font-size:80px;
    cursor: var(--cursor-link);
    transition:transform 0.3s;
}

#eightball:hover{
    transform:scale(1.1);
}

#answer{
    margin-top:10px;
    font-style:italic;
}

#question {
  background-color: #F8E4E0;
  border: none;
  border-radius: 4px;
  padding: 3px;
  color: var(--link);
}

#question:hover {
  background-color:#ffe1b5;
}



/* fortune cookie */
.fortune-container{
  text-align:center;
  margin-bottom: 10px;
}

#cookie{
  width:120px;
  cursor: var(--cursor-link);
  transition:transform 0.3s;
}

#cookie:hover{
  transform:scale(1.1);
}

#fortune-text{
  margin-top:10px;
  font-family: "Cinzel Decorative", sans-serif;
  margin-bottom: 10px;
}

#fortune-message{
  font-size:1.1rem;
  line-height:1.6;
  word-wrap:break-word;
  font-family: "Cinzel Decorative", sans-serif;
}

/* fortune overlay */
#fortune-overlay{
  position:fixed;
  inset:0;
  width:100vw;
  height:100vh;

  background:rgba(0,0,0,0.65);

  display:flex;
  justify-content:center;
  align-items:center;

  opacity:0;
  pointer-events:none;

  transition:opacity .35s ease;

  z-index:9999;
}

#fortune-overlay.active{
  opacity:1;
  pointer-events:auto;
}

/* fortune paper */
.fortune-paper{
  position:absolute;

  left:50%;
  transform:translateX(-50%) scaleX(.8);

  width:calc(100vw - clamp(240px, 36vw, 520px));

  margin-top:22px;
  height:145px;

  background:#fff2cd;

  padding:53px 120px;
  text-align:center;

  font-style:italic;

  box-shadow:0 10px 30px rgba(0,0,0,.35);

  opacity:0;
  transition:all .45s ease;

  z-index:1;
}

#fortune-overlay.active .fortune-paper{
  transform:translateX(-50%) scaleX(1);
  opacity:1;
}

/* close button */
#fortune-close{
  position:absolute;
  top:0px;
  left:50%;
  transform:translateX(-50%);

  border:none;
  background:none;

  font-size:28px;
  cursor: var(--cursor-link);

  z-index:4;

  color: #C27283;
}

#cookie.crack{
  animation:shake 0.4s;
}

@keyframes shake{
0%{transform:rotate(0)}
25%{transform:rotate(10deg)}
50%{transform:rotate(-10deg)}
75%{transform:rotate(6deg)}
100%{transform:rotate(0)}
}

.cookie-side{
  position:absolute;
  top:50%;
  transform:translateY(-50%);

  transition:all .6s cubic-bezier(.25,.8,.25,1);

  z-index:3;
  pointer-events:none;

  width:clamp(120px, 18vw, 260px);
}

/* starting position (near the center) */
.cookie-side.left{
  left:50%;
  transform:translate(-110%, -50%);
}

.cookie-side.right{
  right:50%;
  transform:translate(110%, -50%);
}

/* final position (stuck to screen edges) */
#fortune-overlay.active .cookie-side.left{
  left:0;
  transform:translateY(-50%);
}

#fortune-overlay.active .cookie-side.right{
  right:0;
  transform:translateY(-50%);
}

/* responsive fix for cookie sides */
@media (max-width:900px){

  .cookie-side{
    width:120px;
  }

  .fortune-paper{
    padding:25px 50px;
  }

}

@media (max-width:600px){

  .cookie-side, #fortune-close{
    display:none;
  }

  .fortune-paper{
    width:90vw;
    padding:25px;
  }

}


/* piano container */
.piano-center{
  display:flex;
  justify-content:center;
  text-align:center;
}


#question::placeholder {
    color: #C27283;
    opacity: 1; /* Ensures the color is fully applied in all browsers */
}


/* feather stickers gallery */
.sticker-gallery{
  display: grid;
  grid-template-columns: repeat(auto-fit, 80px);
  gap: 10px;
  justify-content: center;
}

.sticker-slot{
  width:80px;
  height:80px;
  display:flex;
  justify-content:center;
  align-items:center;
  border:1px dashed rgba(255,255,255,0.2);
  border-radius:8px;
}

.sticker-slot img{
  width:70px;
  image-rendering:auto;
  transition:transform .2s;
}

.sticker-slot img.unlocked:hover{
  transform:scale(1.1);
}

.sticker-slot img.locked{
  opacity:0.35;
  filter:grayscale(1);
}

.floating-sticker{
  animation: stickerFloat 3s ease-in-out infinite;
}

@keyframes stickerFloat{
  0%{transform:translateY(0)}
  50%{transform:translateY(-10px)}
  100%{transform:translateY(0)}
}


@keyframes badgePop {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); }
}

.badge-unlock {
  animation: badgePop 0.8s ease-out;
  filter: drop-shadow(0 0 12px gold);
}

/* Badge container positioning */
.badge-slot {
  position: relative;
  display: inline-block;
  /* cursor: help; show that it's interactive! */
  cursor: var(--cursor-help);
}

.badge-slot-hint {
  font-size:0.85rem; 
  color:#888; 
  font-style:italic; 
  cursor: var(--cursor-help); 
  text-decoration:underline dotted; 
  text-decoration-color:#d6cdc5;
}

/* Tooltip styling on container */
.badge-slot[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%; /* above the badge */
  left: 50%;
  transform: translateX(-50%);
  background: #B47C67;
  color: #ffead3;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  z-index: 10;
}

/* Show tooltip on hover */
.badge-slot[data-tooltip]:hover::after {
  opacity: 1;
}

/* Optional: hover effect on the image itself */
.badge-slot img {
  transition: transform 0.3s ease;
}

.badge-slot img:hover {
  transform: scale(1.1);
}


#lembas-bread{
  cursor: var(--cursor-link);
  transition:transform .2s;
}

#lembas-bread:hover{
  transform:scale(1.05);
}

.popup-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.65);

  display:none;
  justify-content:center;
  align-items:center;

  z-index:999;
}
.popup-box{
  background:#653838;
  padding:35px;
  max-width:420px;
  border-radius:8px;
  color:#ffe2b9;

  text-align:justify;

  box-shadow:0 15px 40px rgba(0,0,0,0.2);

  display:flex;
  flex-direction:column;
  align-items:center;
}

.popup-box p{
  width:100%;
}

.popup-box button{
  margin-top:20px;
  padding:10px 18px;
  border:none;
  background:#FCCA82;
  font-weight:bold;
  color:#8d3f3f;
  border-radius:6px;
  cursor: var(--cursor-link);
}

.popup-box button:hover{
  opacity:.8;
}

#doodlering h1,
#doodlering h2,
#doodlering h3,
#doodlering h4,
#doodlering h5,
#doodlering h6 {
  all: revert; /*so it ignores my styles*/
}


/* CAROUSEL */
.carousel {
  width: 100%;
  max-width: 500px;
  height: 230px; 
  margin: auto;
  position: relative;
  text-align: center;
  overflow: hidden;
  padding-bottom: 30px;
}

.carousel-track {
  position: relative;
  height: 100%;
}

/* make items fill that frame */
.carousel-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.carousel-item.active {
  opacity: 1;
  pointer-events: auto;
}

/* images behave nicely inside */
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills nicely, crops if needed! */
  border-radius: 12px;
  display: block;
}

/* overlay layer on top of image */
.carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 244, 231, 0.395);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
  pointer-events: none;
}

/* show overlay on hover */
.carousel-item:hover::before {
  opacity: 1;
}


/* tooltip */
.carousel-item::after {
  content: attr(data-title);
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #802F57;
  color: #FFEBCD;
  /* background: #FFEBCD;
  color: #B47C67; */
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--title-font), sans-serif;
  font-weight: bold;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.carousel-item:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 🌙 dots */
.carousel-dots {
  margin-top: 10px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 8px;

}

.carousel-dots button {
  all: unset; /* this removes default button styles! */
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  opacity: 0.4;
  transition: transform 0.2s ease, opacity 0.2s ease, text-shadow 0.2s ease;
}

.carousel-dots button::before {
  content: "✧"; /* I want stars instead of dots */
}

.carousel-dots button.active {
  opacity: 1;
  transform: scale(1.3);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

.carousel-dots button:hover {
  transform: scale(1.5);
  opacity: 0.8;
}




/*petals*/
@-webkit-keyframes fall {
  0% {
  opacity: 0.9;
  top: 0
  }
  
  100% {
  opacity: 0.2;
  top: 100%
  }
  }
  
  @keyframes fall {
  0% {
  opacity: 0.9;
  top: 0
  }
  
  100% {
  opacity: 0.2;
  top: 100%
  }
  }
  
  @-webkit-keyframes blow-soft-left {
  0% {
  margin-left: 0
  }
  
  100% {
  margin-left: -50%
  }
  }
  
  @keyframes blow-soft-left {
  0% {
  margin-left: 0
  }
  
  100% {
  margin-left: -50%
  }
  }
  
  @-webkit-keyframes blow-medium-left {
  0% {
  margin-left: 0
  }
  
  100% {
  margin-left: -100%
  }
  }
  
  @keyframes blow-medium-left {
  0% {
  margin-left: 0
  }
  
  100% {
  margin-left: -100%
  }
  }
  
  @-webkit-keyframes blow-soft-right {
  0% {
  margin-left: 0
  }
  
  100% {
  margin-left: 50%
  }
  }
  
  @keyframes blow-soft-right {
  0% {
  margin-left: 0
  }
  
  100% {
  margin-left: 50%
  }
  }
  
  @-webkit-keyframes blow-medium-right {
  0% {
  margin-left: 0
  }
  
  100% {
  margin-left: 100%
  }
  }
  
  @keyframes blow-medium-right {
  0% {
  margin-left: 0
  }
  
  100% {
  margin-left: 100%
  }
  }
  
  @-webkit-keyframes sway-0 {
  0% {
  -webkit-transform: rotate(-5deg)
  }
  
  40% {
  -webkit-transform: rotate(28deg)
  }
  
  100% {
  -webkit-transform: rotate(3deg)
  }
  }
  
  @keyframes sway-0 {
  0% {
  -ms-transform: rotate(-5deg);
  transform: rotate(-5deg)
  }
  
  40% {
  -ms-transform: rotate(28deg);
  transform: rotate(28deg)
  }
  
  100% {
  -ms-transform: rotate(3deg);
  transform: rotate(3deg)
  }
  }
  
  @-webkit-keyframes sway-1 {
  0% {
  -webkit-transform: rotate(10deg)
  }
  
  40% {
  -webkit-transform: rotate(43deg)
  }
  
  100% {
  -webkit-transform: rotate(15deg)
  }
  }
  
  @keyframes sway-1 {
  0% {
  -ms-transform: rotate(10deg);
  transform: rotate(10deg)
  }
  
  40% {
  -ms-transform: rotate(43deg);
  transform: rotate(43deg)
  }
  
  100% {
  -ms-transform: rotate(15deg);
  transform: rotate(15deg)
  }
  }
  
  @-webkit-keyframes sway-2 {
  0% {
  -webkit-transform: rotate(15deg)
  }
  
  40% {
  -webkit-transform: rotate(56deg)
  }
  
  100% {
  -webkit-transform: rotate(22deg)
  }
  }
  
  @keyframes sway-2 {
  0% {
  -ms-transform: rotate(15deg);
  transform: rotate(15deg)
  }
  
  40% {
  -ms-transform: rotate(56deg);
  transform: rotate(56deg)
  }
  
  100% {
  -ms-transform: rotate(22deg);
  transform: rotate(22deg)
  }
  }
  
  @-webkit-keyframes sway-3 {
  0% {
  -webkit-transform: rotate(25deg)
  }
  
  40% {
  -webkit-transform: rotate(74deg)
  }
  
  100% {
  -webkit-transform: rotate(37deg)
  }
  }
  
  @keyframes sway-3 {
  0% {
  -ms-transform: rotate(25deg);
  transform: rotate(25deg)
  }
  
  40% {
  -ms-transform: rotate(74deg);
  transform: rotate(74deg)
  }
  
  100% {
  -ms-transform: rotate(37deg);
  transform: rotate(37deg)
  }
  }
  
  @-webkit-keyframes sway-4 {
  0% {
  -webkit-transform: rotate(40deg)
  }
  
  40% {
  -webkit-transform: rotate(68deg)
  }
  
  100% {
  -webkit-transform: rotate(25deg)
  }
  }
  
  @keyframes sway-4 {
  0% {
  -ms-transform: rotate(40deg);
  transform: rotate(40deg)
  }
  
  40% {
  -ms-transform: rotate(68deg);
  transform: rotate(68deg)
  }
  
  100% {
  -ms-transform: rotate(25deg);
  transform: rotate(25deg)
  }
  }
  
  @-webkit-keyframes sway-5 {
  0% {
  -webkit-transform: rotate(50deg)
  }
  
  40% {
  -webkit-transform: rotate(78deg)
  }
  
  100% {
  -webkit-transform: rotate(40deg)
  }
  }
  
  @keyframes sway-5 {
  0% {
  -ms-transform: rotate(50deg);
  transform: rotate(50deg)
  }
  
  40% {
  -ms-transform: rotate(78deg);
  transform: rotate(78deg)
  }
  
  100% {
  -ms-transform: rotate(40deg);
  transform: rotate(40deg)
  }
  }
  
  @-webkit-keyframes sway-6 {
  0% {
  -webkit-transform: rotate(65deg)
  }
  
  40% {
  -webkit-transform: rotate(92deg)
  }
  
  100% {
  -webkit-transform: rotate(58deg)
  }
  }
  
  @keyframes sway-6 {
  0% {
  -ms-transform: rotate(65deg);
  transform: rotate(65deg)
  }
  
  40% {
  -ms-transform: rotate(92deg);
  transform: rotate(92deg)
  }
  
  100% {
  -ms-transform: rotate(58deg);
  transform: rotate(58deg)
  }
  }
  
  @-webkit-keyframes sway-7 {
  0% {
  -webkit-transform: rotate(72deg)
  }
  
  40% {
  -webkit-transform: rotate(118deg)
  }
  
  100% {
  -webkit-transform: rotate(68deg)
  }
  }
  
  @keyframes sway-7 {
  0% {
  -ms-transform: rotate(72deg);
  transform: rotate(72deg)
  }
  
  40% {
  -ms-transform: rotate(118deg);
  transform: rotate(118deg)
  }
  
  100% {
  -ms-transform: rotate(68deg);
  transform: rotate(68deg)
  }
  }
  
  @-webkit-keyframes sway-8 {
  0% {
  -webkit-transform: rotate(94deg)
  }
  
  40% {
  -webkit-transform: rotate(136deg)
  }
  
  100% {
  -webkit-transform: rotate(82deg)
  }
  }
  
  @keyframes sway-8 {
  0% {
  -ms-transform: rotate(94deg);
  transform: rotate(94deg)
  }
  
  40% {
  -ms-transform: rotate(136deg);
  transform: rotate(136deg)
  }
  
  100% {
  -ms-transform: rotate(82deg);
  transform: rotate(82deg)
  }
  }
  
  .sakura {
  background: -webkit-linear-gradient(120deg, rgba(255, 183, 197, 0.9), rgba(255, 197, 208, 0.9));
  background: linear-gradient(120deg, rgba(255, 183, 197, 0.9), rgba(255, 197, 208, 0.9));
  overflow: hidden; /*keeps random positions inside bounds*/
  pointer-events: none; /*to avoid interfering with clicks*/
  position: absolute;
  z-index: -2;
  }

/* ------------------ */
/* HAMBURGER BUTTON */
/* ------------------ */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: var(--cursor-link);

  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ------------------ */
/* MOBILE NAV */
/* ------------------ */

@media (max-width: 900px) {

  .nav-toggle {
    display: flex;
  }

  /* hide nav by default */
  #navlinks {
    display: none;
    width: 100%;

    margin-top: 1rem;
    padding: 1rem;

    background: var(--panel-bg);
    border-radius: 12px;

    flex-direction: column;
    gap: 1rem;
  }

  /* show when active */
  #navlinks.open {
    display: flex;
  }

  nav a,
  .nav-dropbtn {
    font-size: 1.1rem;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-content {
    position: static;
    margin-top: 0.4rem;
  }
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* cursor trail */
.fairy-particle {
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: fairyFade linear forwards;
  z-index: 9999;
  will-change: transform, opacity;
}

@keyframes fairyFade {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(
      calc(-50% + var(--driftX)),
      calc(-50% + var(--driftY))
    ) scale(0.2);
  }
}




/* ------------fix for responsiveness---------- */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

main {
  width: 100%;
  max-width: 100%;
}

.main-parent {
  width: 78%;
  max-width: 100%;
  margin: 0 auto;
}

.content-area {
  width: 100%;
  max-width: 100%;
}
/* ------------------------------------------- */

/* ------------------ */
/* RESPONSIVE */
/* ------------------ */
@media (max-width: 640px) {
  .main-parent {
    grid-template-columns: 1fr;
    grid-template-areas:
      "banner"
      "nav"
      "content"
      "footer";
  }

  .mybox-side img {
    width: 55%;
  }
}

/* ========================= */
/* 📱 MOBILE RESPONSIVENESS */
/* ========================= */
/* hiding some elements on mobile */
@media (max-width: 640px) {
  /* hide side box */
  .mybox-side {
    display: none;
  }

  /* hide keychain */
  .keychain {
    display: none;
  }

/* hide sticker gallery */
.sticker-gallery{
  display: none;
}

  /* Hide page dolls on mobile */
  .pagedoll,
  .pagedoll-left,
  .pagedoll-right {
    display: none !important;
  }

  #sticker-drag {
    display: none;
}

  #glenplayer02 {
    display: none;
  }
}


/* ------------------ */
/* MOBILE DROPDOWN */
/* ------------------ */
@media (max-width: 640px) {
  nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-content {
    position: static;
    margin-top: 0.4rem;
  }
}
/* banner */
@media (max-width: 640px) {
  .banner {
    height: 160px;
  }

  .banner .socials {
    right: 15px;
    bottom: 0px;
    gap: 8px;
  }

  .banner .socials a {
    font-size: 1.6rem;
  }

  .banner img {
  object-position: center 100%;
}

.banner .banner-date {
  display: none;
}

}


/* ------------------ */
/* MOBILE WIDTH FIXES */
/* ------------------ */
@media (max-width: 640px) {

  /* Force full-width layout */
  .main-parent,
  .banner,
  .nav,
  .footer,
  .page,
  .page-top,
  .mybox,
  .mybox-main {
    width: 100%;
    max-width: 100%;
  }

  /* Prevent grid overflow */
  .main-parent {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* Kill horizontal scroll for safety */
  html, body {
    overflow-x: hidden;
  }

}

/* ------------------ */
/* MOBILE BANNER FIX */
/* ------------------ */
@media (max-width: 640px) {

  .banner {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;

    border-radius: 0; /* true edge-to-edge */
  }

  .banner img {
    width: 100%;
    height: 90%;
    object-fit: cover;
    object-position: center 100%;
  }

}

/* ========================= */
/* 📖 GUESTBOOK RESPONSIVE */
/* ========================= */

#gb-frame {
  width: 100%;
  max-width: 100%;
  height: 600px;
  border: none;
}

/* ------------------ */
/* LANDING RESPONSIVE */
/* ------------------ */

@media (max-width: 900px) {

  #landing {
    flex-direction: column;
    padding: 2rem 1.2rem;
    text-align: center;
  }

  .landing-left,
  .landing-right {
    flex: none;
    width: 100%;
  }

  .landing-right {
    margin-top: 1.5rem;
  }

  .landing-top {
    font-size: 1.8rem;
  }

  .type-box {
    max-width: 100%;
    font-size: 1.1rem;
    padding: 1.4rem;
  }

  .landing-bottom {
    font-size: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  #enter-btn {
    max-width: 260px;
    width: 70%;
  }

  .landing-top {
    font-size: 1.4rem;
  }

  .type-box {
    font-size: 1rem;
    padding: 1.2rem;
  }

  #pc-buttons {
    display: none;
  }
}
