* {
	scrollbar-color: #260d1c #e4dbba;	
}

body {
    background-color: #260d1c;
    background-image: url('assets/clean-gray-paper.png');
    color: white;
    height: 100%;
    cursor: url(assets/mgpix1.png), default;
}

a {
    cursor: url(assets/mgpix2.png), pointer;
    color: #4f3a54 ;
}

/* Gift cursor */
.gift-cursor {
    cursor: url('assets/cursor.gif') 16 16, auto;
}

/* Optional: clickable elements inside gift layer */
.gift-cursor a,
.gift-cursor button {
    cursor: url('assets/cursor.gif') 16 16, pointer;
}

.sidebar-right {
    height: 500px;
    width: 175px;
    padding: 7px;
    width: 250px; /* Increase the width as needed */
    margin-right: 30px; /* Add some spacing between the right sidebar and the edge of the page */
}

/* spacing classes ======================================= */
.no-margin {
    margin: 0px;
}

/* div section classes =================================== */
.content-box {
    background-color: #e4dbba;
    background-image: url('assets/pinstripe-dark.png');
    margin: 5px;
    border: 5px double #260d1c;
}
/* Hero content box positioning context */
.hero-box {
    position: relative;
}

.container {
    display: flex;
    flex-direction: column;
    height: 609px;
    margin: 0px 150px;
    position: relative;
}

.content-container {
    display: flex;
    justify-content: center;
    font-size: 16px;
}

.header {
    font-size: 45px;
    text-align: center;
}

.header h1{
    font-style: italic;
    font-weight: 900;
    margin: 0px;
}

.nav {
    display: flex;
    justify-content: center;
}
.nav ul {
    font-family: "TypeWrite";
    list-style-type: none;
}

.nav li {
    display: inline;
    margin: 0px 10px;
    font-size: 24px;
}

.nav a {
    text-decoration: none;
    color: #e4dbba ;
}

.nav a:hover {
    color: #a4929a ;
    font-size: 25px;
}

.sidebar-left {
    height: 500px;
    width: 175px;
    padding: 7px;
    width: 200px; /* Increase the width as needed */
    margin-left: 20px; /* Add some spacing between the right sidebar and the edge of the page */
}

.main {
    padding: 7px;
    width: 875px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
}

.main p {
  text-align: justify;
  width: 500px;
}

.linked-sites {
    display: flex; 
    flex-direction: column;
    align-items: center;
}

.linked-sites a, img{
    display: block; 
}

/* Positioning context for this specific box */
.site-visits-box {
    position: relative;
}

/* Music gif base */
.music-gif {
    position: absolute;
    bottom: 10px;
    right: 12px;
    width: 80px; /* adjust if needed */
    pointer-events: none;
}

/* Optional micro-polish */
.music-bottom-right {
    filter: drop-shadow(2px 2px 0 #260d1c);
}


.footer {
    margin-top: 25px;              /* space from content above */
    height: 200px;                 /* slightly taller than before */
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;                   /* full width */
}

/* Ensures visual alignment with main containers */
.container .footer {
    max-width: calc(100% - 300px); /* matches your 150px side margins */
    margin-left: auto;
    margin-right: auto;
}

/* Car gif container */
.footer-car {
    display: flex;
    flex-direction: row;
    gap: 12px;              /* small space between cars */
    margin-bottom: 10px;
}

/* Car gif sizing */
.footer-car img {
    max-width: 700px;              /* wider presence */
    height: auto;
}

/*===== CURRENT READ SECTION =====*/
.current-read {
    height: 250px;
    padding: 10px;
    margin-bottom: 25px;
}

.current-read-book {
    height: 180px;
    width: 120px;
    margin-left: 33px;
}

.current-read-book:hover {
    animation:tilt 1s forwards;
}

@keyframes tilt {
  0%   {
    transform: rotate(0deg);
    height: 180px;
    width: 120px;
  }
  100% {
    transform: rotate(-5deg);
    height: 190px;
    width: 130px;
  }
}

/*===== MUSIC PLAYER SECTION =====*/
.music-player {
    height: 180px;
    padding: 10px;
}

.track-name {
    margin: 2px; 
    background-color: #4f3a54; 
    color: #a4929a;
}

.player-buttons {
    display: flex;
    flex-direction: row;
    gap: 5px; 
    font-size: 32px;
}

.player-buttons div {
    margin: 0px 10px;
    cursor: url(assets/mgpix2.png), pointer;
}

.player-buttons :hover{
    color: #a4929a;
}

.record {
    height: 180px;
    width: 180px;
}
/* infinite-marquee reference: https://codepen.io/klingat/pen/MWbqdQw */
.infinite-marquee {
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  width: 537px;
  white-space: nowrap;
}

.inner-content {
  display: block;
  width: 200%;
  position: absolute;
  animation: marquee 10s linear infinite;
  &:hover {
    animation-play-state: paused; }
}

.inner-content div {
  float: left;
  width: 50%;
  overflow: hidden;
}

@keyframes marquee {
  0% {
    left: 0;
  }
  100% {
    left: -100%;
  }
}

.lauren {
    height: 152px; 
    width: 173px;
    background-size: contain;
    background-image: url(assets/guestbook.gif);
}

/* custom scrollbar=================================== */

 /* width */
::-webkit-scrollbar {
  width: 5px;
  padding: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: none;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #260d1c;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #4f3a54;
} 
/* Up Down Buttons */
::-webkit-scrollbar-button {
    background: cyan;
} 
/* font color classes =================================== */
.primary {
    color: #260d1c;
}

.primary-light {
    color: #e4dbba ;
}


/* font family classes ===================================== */
.typewrite {
    font-family: 'TypeWrite';
}

.screenplay {
    font-family: 'ScreenPlay';
}

/*===== BOOKS PAGE =====*/

/* Detective selector */
.detectives-container {
    display: flex;
    flex-direction: row;
    margin:5px;
    margin-bottom: 0px;
    justify-content: center;
}
#detective-content p{
    width: auto;
    text-align: justify;
}

.show-item-container h2 {
    color: #e4dbba;
    font-family: "TypeWrite";
    margin: 0px;
}

.show-opinion-container {
    background: #e4dbba;
    background-image: url('assets/pinstripe-dark.png');
    border: double 5px #260d1c;  
    padding: 10px;
    width: auto;
    overflow-y: scroll;

}

/*===== ABOUT PAGE =====*/
.paper-div {
    background-image: url(https://file.garden/aXHsl-1cKApJSa-W/about/paper.jpg);
    background-color: #e4dbba;
    height: 250px;
    width: 250px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    box-shadow:  0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    transform: rotate(7deg);
}

.paper {
    background-image: url(assets/paper2.jpg);
    background-color: #e4dbba;
    color: white;
    height: 250px;
    width: 250px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    box-shadow:  0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    transform: rotate(7deg);
}


/* Move these pls to the proper section =========================================== */
.detective-paper-div {
    background-image: url(assets/paper.jpg);
    background-color: #e4dbba;
    height: 235px;
    width: 200px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    box-shadow:  0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    width: fit-content;
    height: fit-content;
}

.detective-paper-art {
    margin: 5px;
    height: 200px; 
    width: 200px;
}

.detective-paper-div:hover {
    animation: shake 1s forwards; 
}

.detective-paper-div a{
    text-decoration: none;
}

.detective-paper-div span {
  height: 200px;
  width: 200px;
  opacity: 0;
  display: flex;
  align-items: end;
  margin-top: -200px;
  text-align: center;
  z-index: 99;
  font-size: 37px;
  color: #FFF;
  filter: drop-shadow(1px 1px 0 #260d1c) 
    drop-shadow(-1px 1px 0 #260d1c)
    drop-shadow(1px -1px 0 #260d1c)
    drop-shadow(-1px -1px 0 #260d1c);
}
.detective-paper-div span:hover{
  opacity: 1;
}

@keyframes shake {
  0%   {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-3deg);
  }

  50% {
    transform: rotate(3deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@font-face {
    font-family: 'TypeWrite';
    src: url('fonts/OldNewspaperTypes.ttf');
}

@font-face {
    font-family: 'ScreenPlay';
    src: url('fonts/CourierScreenplay.ttf');
}
/* ================================================================================ */

.games-section {
    display: grid; 
    margin: 0px 70px;
    margin-bottom: 10px;
    grid-template-columns: 200px 200px 200px; 
    gap: 27px;
}

.movies-section {
    display: flex;
    margin: 5px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    height: 200px;
}

.anime-section {
    display: grid; 
    margin: 0px 70px;
    grid-template-columns: auto auto auto; 
    justify-content: center;
}

.anime-item {
    height: 100px;
    width: 209px;
    background-size: cover;
}

.anime-item span{
    font-family: 'Arial';
    display: flex;
    justify-content: center;
    color: white;
    height: 100%;
    align-items: center;
    font-size: 16px;
    background-color: rgba(0,0,0,.7);
    text-align: center;
    transition-property: opacity;
    transition-duration: .5s;
    opacity: 0;
  &:hover {
    opacity: 1;
  }
}

.music-section {
    display: flex;
    flex-direction: row;
}

.music-container {
    display: flex;
    flex-direction: column;
    margin-right: 10px;
}

.music-item {
    height: 170px;
    width: 170px;
    background-size: cover;
}

.music-sticker {
    margin-top: -70px;
    align-self: end;
    margin-right: -20px;
}

/*================== TV/MOVIES PAGE =======================*/

.tvmovie-screenshot-left {
    float: left;
    margin-top: 0px;
    margin-right: 20px;
    margin-bottom: 20px;
    border: 5px double #260d1c;
    max-width: 265px;
    height: auto;
    width: min-content;
}

.tvmovie-screenshot-left span{
    font-size: 10px;
    margin: 5px;
    display: flex;
}

.tvmovie-screenshot-right {
    float: right;
    margin-top: 0px;
    margin-left: 20px;
    margin-bottom: 20px;
    border: 5px double #260d1c;
    max-width: 265px;
    height: auto;
    width: min-content;
}

.tvmovie-screenshot-right span{
    font-size: 10px;
    margin: 5px;
    display: flex;
}

.tvmovie-gifwall-gif {
    height: 130px;
    width: 200px;
    transition: .5s ease;
  &:hover {
    transform: scale(1.3);
    z-index: 10;
  }
}

hr {
  border-color: #260d1c; /* Set the color of the horizontal rule */
}

.side-left {
    position: absolute; /* removed from document flow */
    top: 400px;          /* below header + nav */
    display: flex;
    flex-direction: column;
    gap: 300px;
    pointer-events: none; /* prevents blocking clicks */
    left: 0;
    margin-left: 50px;
}

.side-right {
    position: absolute; /* removed from document flow */
    top: 20px;          /* below header + nav */
    display: flex;
    flex-direction: column;
    gap: 250px;
    pointer-events: none; /* prevents blocking clicks */
    right: 0;
    margin-right: 0px;
}

/* Clock base style */
.clock {
    position: absolute;
    width: 150px;
    opacity: 0.95;
    filter: drop-shadow(2px 2px 0 #260d1c);
    pointer-events: none; /* purely decorative */
}

/* Bottom-left placement (under Sherlock) */
.clock-bottom-left {
    bottom: 0px;
    left: 5x;
}

/* Optional alternative if you ever want right side 
.clock-bottom-right {
    bottom: 5px;
    right: 20px;
}
*/


/* Decorative buttons */
.decor-btn,
.decor-btn img {
    display: inline-block;
    pointer-events: auto;
    cursor: url(assets/click.gif), pointer, auto !important;
}

/* Optional hover polish */
.decor-btn:hover img {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.side-decor {
    pointer-events: auto;
}

/* Ensure side decor buttons stack vertically */
.side-decor a {
    margin-bottom: 10px;
}

.movies-section {
    display: flex;
    margin: 5px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    height: 200px;
}

.movie-poster {
    height: 150px;
    width: 109px;
    background-size: cover;
    transition-duration: .5s;
  &:hover {
    height: 180px;
    width: 129px;

  }
}

.movie-poster span{
    font-family: 'Arial';
    display: flex;
    justify-content: center;
    color: white;
    height: 100%;
    align-items: center;
    font-size: 16px;
    background-color: rgba(0,0,0,.7);
    text-align: center;
    transition-property: opacity;
    transition-duration: .5s;
    opacity: 0;
  &:hover {
    opacity: 1;
  }
}

/* =========================
   DETECTIVES GRID SECTION
   ========================= */

.detectives-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 10px 5px 20px;
  justify-items: center;
}


/* =========================
   DETECTIVE CARD
   ========================= */

.detective-poster {
  position: relative;
  width: 109px;
  height: 150px;
  background-size: cover;
  background-position: center;
  transition: all 0.5s ease;
}

.detective-poster:hover {
  transform: scale(1.15);
  z-index: 2;
}


/* =========================
   TITLE OVERLAY
   ========================= */

.detective-poster span {
  position: absolute;
  inset: 0;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  font-family: Arial, sans-serif;
  font-size: 16px;
  color: white;

  background-color: rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.detective-poster:hover span {
  opacity: 1;
}


/* =========================
   THUMBTACK
   ========================= */

.detective-poster .thumbtack {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 26px;
  height: 26px;
  pointer-events: none;
}


/* =========================
   RESPONSIVE (OPTIONAL)
   ========================= */

@media (max-width: 1100px) {
  .detectives-section {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .detectives-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fun-facts-section {
  margin-bottom: 20px;
}

.fun-facts-text {
  font-size: 16px;              /* ⬅ bigger, readable */
  line-height: 1.6;
  max-width: max-content;             /* ⬅ better than 190px */
  text-align: left;

  font-family: 'Arial', sans-serif; /* keep playful, readable */
}

.fun-facts-text img {
  display: inline-block;
  height: 40px;                 /* ⬅ bigger icons */
  width: auto;
  vertical-align: middle;       /* ⬅ critical for inline alignment */
  margin: 0 3px;
}

.fun-facts-text a {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
}

.fun-facts-text a:hover {
  text-decoration: underline;
}

.fun-facts-section h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fun-facts-section h2 img {
  height: 32px;          /* scale relative to title */
  width: auto;
  vertical-align: middle;
}

.fun-facts-text .big {
  height: 65px;          /* visibly larger */
  margin-top: -50px; 
  margin-bottom: -20px;
}

/* =========================
   MAIN GIF GRID
   ========================= */

.gif-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 20px auto;
}

/* Each cell is identical */
.gif-cell {
  width: 100%;
  /*aspect-ratio: 1 / 1;            /* ⬅ keeps harmony */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* GIF behavior */
.gif-cell img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;            /* ⬅ no distortion */
}

.gif-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 20px 0 30px;
}

.gif-bottom img {
  height: 60px;
  width: auto;
}

/* Sidebar container */
.sidebar-pics {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 420px;                 /* ⬅ NORMAL vertical spacing */
  padding-top: 0;

  margin-left: 20px;         /* ⬅ SPACE from main content */
  width: fit-content;        /* ⬅ sidebar stays slim */
}

/* All sidebar images — normalized */
.sidebar-pics img {
  width: 200px;               /* ⬅ SAME width for all */
  height: 200px;              /* ⬅ SAME height for all */

  object-fit: contain;       /* ⬅ no distortion */
  display: block;
}

/* Move FIRST image higher (near header) */
.sidebar-pics img:first-child {
  margin-top: -40px;         /* ⬅ align with header */
}


.corner-left-top {
  position: fixed;
  top: 0;
  left: 0;

  width: 300px;          /* adjust size */
  height: auto;

  z-index: 9999;        /* stays above everything */
  pointer-events: none; /* ⬅ won't block clicks */
}

.inline-gif {
    width: 3em;
    height: 3em;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    margin: 0 4px;
    image-rendering: pixelated;
}

.big-gif {
    transform: scale(1.5);
}

/* ===============================
   Case Progress Indicator
   =============================== */

.case-progress {
    display: flex;
    gap: 14px;
    margin: 20px 0;
    font-family: monospace;
}

.case-progress span {
    padding: 6px 12px;
    border: 2px dashed #999;
    opacity: 0.4;
    transition: all 0.3s ease;
    background: #111;
    color: #aaa;
}

/* Completed task */
.case-progress span.done {
    border-color: palevioletred;
    color: palevioletred;
    opacity: 1;
    /*background: pink;*/
}

/* Optional little glow */
.case-progress span.done {
    box-shadow: 0 0 6px rgba(233, 88, 189, 0.4);
}

/* ===============================
   Gift Lock Logic
   =============================== */

#gift-lock .unlocked {
    display: none;
}

#gift-lock.unlocked .locked {
    display: none;
}

#gift-lock.unlocked .unlocked {
    display: block;
} 

#openGift:hover {
    cursor: url('cursor.gif') 16 16, pointer;
}
.gift-layer,
.gift-layer * {
    cursor: url('cursor.gif') 16 16, auto !important;
}

.gift-layer button,
.gift-layer a {
    cursor: url('cursor.gif') 16 16, pointer;
}


/* =============================== 
   Gift Overlay
=============================== */

#gift-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#gift-overlay.active {
    display: flex;
}

/* Card */
.gift-card {
    background: #111;
    color: #fff;
    padding: 40px;
    max-width: 900px;
    width: 90vw;
    text-align: center;
    position: relative;
    animation: popIn 0.6s ease;
    border: 2px dashed gold;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

/* Close button */
.close-gift {
    position: absolute;
    top: 10px;
    right: 14px;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.7;
}

.close-gift:hover {
    opacity: 1;
}

/* Text */
.gift-card h1 {
    margin-bottom: 16px;
}

.gift-card p {
    line-height: 1.8;
    font-family: monospace;
    font-size: 15px;
}

/* Entry animation */
@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Optional sparkles */
.gift-effect {
    margin-top: 20px;
    font-size: 24px;
    animation: sparkle 1.5s infinite alternate;
}

@keyframes sparkle {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* ===============================
   Overlay Enhancements
   =============================== */

#confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 9998;
}

/* Confetti pieces */
.confetti {
    position: absolute;
    width: 8px;
    height: 14px;
    opacity: 0.8;
    animation: fall 3s linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

/* ===============================
   Floating Gifs
   =============================== */

.floating-gifs img {
    position: absolute;
    width: 100px;
    height: 100px;
    opacity: 0.9;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* Random placement handled by JS */

/* ===============================
   Typewriter
   =============================== */

#typewriter-text {
    white-space: pre-line;
    font-family: monospace;
    min-height: 140px;
}
/* Prevent gifs from covering the gift card */
.floating-gifs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9997;
}

/* Transparent romantic overlay */
#gift-overlay {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
}

/* Confetti canvas must not block clicks */
#confetti-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9996;
}

/* ===============================
   Heart Particles
   =============================== */

.heart {
    position: fixed;
    font-size: 18px;
    color: rgb(248, 42, 77);
    pointer-events: none;
    animation: heartFloat 1.5s ease-out forwards;
    z-index: 10001;
}

@keyframes heartFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-40px) scale(1.4);
        opacity: 0;
    }
}

/* ===============================
   Corner Confetti (Burst)
   =============================== */

#corner-confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
}

.corner-confetti {
    position: absolute;
    width: 12px;
    height: 22px;
    opacity: 0.95;
    animation: cornerFall 2.2s cubic-bezier(0.15, 0.7, 0.3, 1) forwards;
}

@keyframes cornerFall {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--dx), var(--dy)) rotate(720deg);
        opacity: 0;
    }
}

/* ===============================
   FINAL STACKING & VISIBILITY FIX
   =============================== */

/* Ensure floating gifs are positioned relative to viewport */
.floating-gifs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10002; /* above confetti, below card */
}

/* Make sure each gif is visible */
.floating-gifs img {
    opacity: 1;
}

/* Confetti canvas must stay visible but behind content */
#confetti-canvas {
    z-index: 9995;
}

/* Corner confetti bursts must sit above canvas */
#corner-confetti {
    z-index: 9999;
}

/* Gift card ALWAYS on top */
.gift-card {
    position: relative;
    z-index: 10003;
}

.inline-gif1 {
    width: 2em;
    height: 2em;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    margin: 0 -4px;
    image-rendering: pixelated;
}

/* Hero paragraph override (isolated) */
.hero-paragraph {
    width: 900px;          /* wider but still elegant */
    line-height: 1.6;      /* fixes uneven vertical spacing */
    word-spacing: 0.03em;  /* subtle fix for odd gaps */
    margin-bottom: 30px;
}
.hero-paragraph img.inline-gif1 {
    vertical-align: -1em;
}
/* ===============================
   Final Reveal Images (Centered)
   =============================== */

.final-image {
    display: inline-block;
    width: 110px;              /* adjust if you want bigger */
    max-width: 50%;
    margin: 10px;
    vertical-align: middle;
    max-height: 130px;
}

/* Center the final images container effect */
.gift-card .final-image {
    margin-top: 20px;
}

/* Force horizontal alignment + centering */
.gift-card img.final-image {
    display: inline-block;
}

.gift-card {
    text-align: center;
}

/* ===============================
   Inline GIFs inside Letter
   =============================== */

.inline-gif2 {
    height: 1.6em;              /* target text height */
    min-height: 1.6em;          /* forces small gifs up */
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: -0.25em;
    margin: 0 6px;
    image-rendering: auto;
}
/* Extra boost for tiny gifs */
.inline-gif2.tiny {
    height: 2.5em;
    vertical-align: middle;
}

