/* ========================================
   CSS RESET & BOX SIZING
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

/* ========================================
   FIXED ELEMENTS LAYER (TIDAK IKUT SCROLL)
   ======================================== */
.fixed-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    z-index: 10000;
    pointer-events: none;
}

.fixed-layer>* {
    pointer-events: auto;
}

/* ========================================
   THEME TOGGLE BUTTON
   ======================================== */
.theme-toggle,
.home-icon,
.blog-icon,
.prev-icon,
.next-icon {
    position: absolute;
    background: rgba(249, 199, 196, 0.6);
    border: 2px solid #a47148;
    z-index: 10001;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    line-height: 1;
    transition: transform 0.15s ease;
    backface-visibility: hidden;
}

body.dark-mode .theme-toggle,
body.dark-mode .home-icon,
body.dark-mode .blog-icon,
body.dark-mode .prev-icon,
body.dark-mode .next-icon {
    background: rgba(58, 58, 78, 0.6);
    border-color: #ff8ab1;
}

.theme-toggle:hover,
.home-icon:hover,
.blog-icon:hover,
.prev-icon:hover,
.next-icon:hover {
    transform: scale(1.1);
}

.home-icon img,
.blog-icon img {
    width: 30px;
    height: 30px;
    display: block;
}

.home-icon span,
.blog-icon span {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    font-size: 12px;
    color: #FFF;
    background-color: rgba(164, 113, 72);
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    transition: all 0.3s ease;
    margin-top: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

body.dark-mode .home-icon span,
body.dark-mode .blog-icon span {
    background-color: #ff8ab1;
}

.home-icon:hover span,
.home-icon:focus span,
.blog-icon:hover span,
.blog-icon:focus span {
    opacity: 1;
    visibility: visible;
}

.home-icon span::before,
.blog-icon span::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(164, 113, 72);
}

body.dark-mode .home-icon span::before,
body.dark-mode .blog-icon span::before {
    border-bottom: 6px solid #ff8ab1;
}

.theme-toggle {
    top: 15px;
    left: 15px;
}

.home-icon {
    top: 15px;
    left: 70px;
}

.blog-icon {
    top: 15px;
    left: 125px;
}

.prev-icon {
    top: 15px;
    right: 70px;
    color: #a47148;
}

.next-icon {
    top: 15px;
    right: 15px;
    color: #a47148;
}

body.dark-mode .prev-icon,
body.dark-mode .next-icon {
    color: #e8e8e8;
}

/* ========================================
   FONT FACE & TYPOGRAPHY
   ======================================== */
@font-face {
    font-family: "Retrogression";
    src: url("/font/RetrogressionRegular.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Rascal";
    src: url("/font/Rascal.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "CutoutPaper";
    src: url("/font/CutoutPaper.ttf") format("truetype");
    font-display: swap;
}

/* ========================================
   BODY & BACKGROUND
   ======================================== */
body {
    margin: 0;
    padding: 10px 0;
    font-family: ui-monospace, 'Cascadia Code', 'JetBrains Mono', 'Fira Code', monospace;
    background-color: #adca6d;
    background-image: url("/image-main/white_maryfran.jpg");
    background-repeat: repeat;
    background-size: 100%;
    background-position: top;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: -1;
}

body.dark-mode::before {
    background-color: rgba(0, 0, 0, 0.3);
}

body.dark-mode {
    background-image: url("/image-main/black_maryfran.jpg");
}

/* ========================================
   MAIN LAYOUT (KONTEN YANG BISA SCROLL)
   ======================================== */
.seluruh {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 20px);
    max-width: 100%;
    position: relative;
    z-index: 1;
}

/* ========================================
   SCROLLBAR STYLES
   ======================================== */
body {
    scrollbar-width: thin;
    scrollbar-color: #f9c7c4 white;
}

body.dark-mode body {
    scrollbar-color: rgba(150, 168, 224, 0.25) #2a2a3e;
}

/* ========================================
   HEADER
   ======================================== */
header {
    width: 66%;
    margin: 4px auto;
    background-position: 0% 50%;
    background-repeat: no-repeat;
    margin-bottom: 0px;
    padding-bottom: 4px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgb(255, 255, 255, 0), rgb(255, 255, 255, 0.8));
}

body.dark-mode header {
    background: linear-gradient(180deg, rgb(255, 255, 255, 0), rgb(0, 0, 0, 0.8));
}

header h1 {
    margin: 0;
    font-family: 'Rascal', 'CutoutPaper', cursive;
    color: #f9c7c4;
    font-weight: bold;
    text-align: center;
    font-size: 55px;
    text-shadow: -1px -1px 0 #ec4899, 1px -1px 0 #ec4899, -1px 1px 0 #ec4899, 1px 1px 0 #ec4899;
}

body.dark-mode header h1 {
    color: #ff8ab1;
    text-shadow: -1px -1px 0 #e8e8e8, 1px -1px 0 #e8e8e8, -1px 1px 0 #e8e8e8, 1px 1px 0 #e8e8e8;
}

/* ========================================
   CONTAINER - MAIN CONTENT
   ======================================== */
.container {
    width: 66%;
    margin: 0px auto 10px auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 0px;
}

.container-1 {
    border: 3px solid #adca6d;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 15px;
    position: relative;
    overflow: hidden;
    overflow: visible !important;
    z-index: 2;
}

body.dark-mode .container-1 {
    border-color: #ff8ab1;
    background: rgb(20, 20, 20, 0.9);
}

.container-1 h2 {
    margin-top: 10px;
    margin-bottom: 4px;
    padding-bottom: 0px;
    padding-bottom: 2px;
    margin-left: -15px;
    margin-right: -15px;
    background: rgb(173, 202, 109, 0.8);
    font-family: 'CutoutPaper', cursive;
    text-align: center;
    font-size: 24px;
    color: #f9c7c4;
    text-shadow: -1px -1px 0 #ec4899, 1px -1px 0 #ec4899, -1px 1px 0 #ec4899, 1px 1px 0 #ec4899;
}

body.dark-mode .container-1 h2 {
    background: rgb(255, 138, 177, 0.8);
    color: #e8e8e8;
    text-shadow: -1px -1px 0 #adca6d, 1px -1px 0 #adca6d, -1px 1px 0 #adca6d, 1px 1px 0 #adca6d;
}

.container-1 p {
    margin-top: 8px;
    margin-bottom: 4px;
    color: #4b3420;
    line-height: 1.4;
    font-size: 14px;
    text-align: justify;
}

body.dark-mode .container-1 p {
    color: #e8e8e8;
}


/* Text content wrapper */
.text-content {
    position: relative;
    z-index: 1;
}

.highlight {
    background: rgb(173, 202, 109, 0.8);
}

/* ========================================
   DECORATIVE COFFEE IMAGES STYLES
   ======================================== */
.plushie {
    float: left;
    width: 190px;
    height: auto;
    margin: 0 0px 0px -15px;
    shape-outside: url('/image-content/decoration-2.png');
    shape-margin: 15px;
    shape-image-threshold: 0.5;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.merlain {
    float: left;
    width: 186px;
    height: auto;
    margin: 0px 15px 0px -50px;
    shape-outside: url('/image-content/decoration-1.png');
    shape-margin: 15px;
    shape-image-threshold: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.passpor {
    float: left;
    width: 160px;
    height: auto;
    margin: 10px 15px 0px 0px;
    shape-outside: url('https://i.ibb.co.com/DHZnMrTt/20251221-104718-0000.png');
    shape-margin: 15px;
    shape-image-threshold: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mrcoconut {
    float: right;
    width: 300px;
    height: auto;
    margin: 10px 0px 15px 15px;
    shape-outside: url('https://i.ibb.co.com/4wGNZpMH/20251221-104718-0002.png');
    shape-margin: 15px;
    shape-image-threshold: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chagee {
    float: right;
    width: 200px;
    height: auto;
    margin: 10px 0px 15px 15px;
    shape-outside: url('https://i.ibb.co.com/BHjxxQD8/20251221-104718-0001.png');
    shape-margin: 15px;
    shape-image-threshold: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.empatlima-potrait {
    float: right;
    width: 200px;
    height: auto;
    margin: 8px 0 0 16px;
    shape-outside: url('https://i.ibb.co.com/0pNRFkyS/20250410-104110.jpg');
    shape-margin: 15px;
    shape-image-threshold: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 2px solid #ec4899;
    outline: 2px dotted #ec4899;
}

.empatlima-landscape {
    float: right;
    width: auto;
    height: 200px;
    margin: 8px 0 0 16px;
    shape-outside: url('https://i.ibb.co.com/0pNRFkyS/20250410-104110.jpg');
    shape-margin: 15px;
    shape-image-threshold: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 2px solid #ec4899;
    outline: 2px dotted #ec4899;
}

.plushie:hover,
.merlain:hover,
.passpor:hover,
.mrcoconut:hover,
.chagee:hover,
.empatlima-potrait:hover,
.empatlima-landscape:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Gaya untuk kontainer scroll horizontal */
.image-scroll {
    width: 100%;
    overflow-x: auto;
    display: flex;
    margin-left: 0px;
    scrollbar-width: thin;
    scrollbar-color: #f9c7c4 rgb(173, 202, 109, 0.2);
    margin-top: 10px;
}

body.dark-mode .image-scroll {
    scrollbar-color: #ff8ab1 rgb(173, 202, 109, 0.2);
}

/* Gaya untuk setiap item (gambar + caption) */
.scroll-item {
    flex: 0 0 auto;
    display: flex;
    border: 1px solid rgba(164, 113, 72, 0.2);
    border-radius: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
    height: 250px;
    max-height: 250px;
    border: 2px dotted #ec4899;
}

body.dark-mode .scroll-item {
    border-color: rgba(255, 138, 177, 0.4);
    background: rgba(30, 30, 46, 0.6);
}

/* Gaya untuk gambar di dalam item */
.scroll-item img {
    width: auto;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-top: 2px solid #ec4899;
    border-bottom: 2px solid #ec4899;
    border-right: 2px solid #ec4899;
}

.scroll-item img:first-child {
    border-left: 2px solid #ec4899;
}



/* ========================================
   TIMELINE STYLES
   ======================================== */
.timeline-container {
    position: relative;
    padding-top: 0px;
    margin: 10px 0 0 0;
}

.timeline-line {
    position: absolute;
    left: 4px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #f9c7c4;
}

body.dark-mode .timeline-line {
    background: #ff8ab1;
}

.timeline-item {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    min-height: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot-id {
    position: absolute;
    left: 0px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f9c7c4;
    border: 3px solid #a47148;
    box-shadow: 0 0 0 3px rgb(164, 113, 72, 0.6);
    z-index: 1;
}

.timeline-dot-sg {
    position: absolute;
    left: 0px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f9c7c4;
    border: 3px solid #ec4899;
    box-shadow: 0 0 0 3px rgb(236, 72, 153, 0.6);
    z-index: 1;
}

.timeline-dot-kl {
    position: absolute;
    left: 0px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f9c7c4;

    border: 3px solid #adca6d;
    box-shadow: 0 0 0 3px rgb(173, 202, 109, 0.6);
    z-index: 1;
}

body.dark-mode .timeline-dot {
    background: #ff8ab1;
    border-color: #96a8e0;
    box-shadow: 0 0 0 3px rgba(255, 138, 177, 0.3);
}

.timeline-place-id,
.timeline-place-sg,
.timeline-place-kl {
    font-family: 'Retrogression', cursive;
    font-size: 20px;
    top: 0px;
    font-weight: bold;
    margin-bottom: 5px;
}

.timeline-place-id {
    color: #a47148;
}

.timeline-place-sg {
    color: #ec4899;
}

.timeline-place-kl {
    color: #adca6d;
}

body.dark-mode .timeline-place {
    color: #ff8ab1;
}

.timeline-description {
    font-size: 13px;
    color: #4b3420;
    line-height: 1.4;
    text-align: justify;
}

body.dark-mode .timeline-description {
    color: #e8e8e8;
}

/* ========================================
   IMAGE ALT TOOLTIP STYLES
   ======================================== */
.alt-tooltip {
    position: fixed;
    background: rgba(255, 255, 255, 0.8);
    border: 2px dotted #adca6d;
    border-radius: 0;
    padding: 8px 12px;
    font-family: ui-monospace, 'Cascadia Code', 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
    color: #ec4899;
    z-index: 10002;
    pointer-events: none;
    white-space: nowrap;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translate(4px, 0px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    backdrop-filter: blur(4px);
}

body.dark-mode .alt-tooltip {
    background: rgba(58, 58, 78, 0.95);
    border-color: #ff8ab1;
    color: #e8e8e8;
}

.alt-tooltip.visible {
    opacity: 1;
    visibility: visible;
}