/* Vintage Newspaper CSS */
:root {
  --paper: #e6dfcc;
  --ink: #1a1a1a;
  --sepia: sepia(0.6) contrast(1.1) brightness(0.9);
  --bg-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMtP1hAAAACHRSTlMAv4+Pj4+Pj17q/yIAAAAlSURBVDjLxY3BDQAwCAM0/7/s2IChT/R3h9B4lA6u0uFVOrhKh1/F6A0F/H+lQAAAAABJRU5ErkJggg==');
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Old Standard TT', serif; color: var(--ink);
  background: #111; overflow: hidden;
}

/* Flipbook Structure */
.book-wrapper {
  position: relative; width: 100vw; height: 100vh; height: 100dvh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  perspective: 2000px; /* 3D perspective */
}
.book {
  position: relative; width: 100%; max-width: 500px; height: 100%;
  transform-style: preserve-3d;
}

/* Page Turns */
.page {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-color: var(--paper);
  background-image: var(--bg-image);
  background-blend-mode: multiply; opacity: 0.95;
  
  transform-origin: left center;
  transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1);
  backface-visibility: hidden;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.1), -5px 0 15px rgba(0,0,0,0.3);
  overflow-y: auto; overflow-x: hidden;
  z-index: 1;
}

/* When flipped, rotate -180deg (disappears because of backface-visibility) */
.page.flipped {
  transform: rotateY(-180deg);
}

.page-content {
  padding: 30px 20px 100px 20px; text-align: justify;
}

/* Typography & Newspaper Styles */
.newspaper-header {
  text-align: center; border-bottom: 2px solid var(--ink); margin-bottom: 15px; padding-bottom: 10px;
}
.newspaper-title {
  font-family: 'Chomsky', 'Playfair Display', serif; font-size: 2.2rem;
  letter-spacing: 1px; font-weight: 900; text-transform: uppercase;
}
.newspaper-meta {
  display: flex; justify-content: space-between; font-size: 0.75rem; font-weight: bold;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  padding: 4px 0; margin-top: 10px; font-family: 'Playfair Display', serif;
}

.headline {
  font-family: 'Playfair Display', serif; font-size: 2.8rem; font-weight: 900;
  text-align: center; line-height: 1.1; margin: 20px 0 10px; text-transform: uppercase;
}
.subheadline {
  text-align: center; font-style: italic; font-size: 1.1rem; margin-bottom: 20px;
}

.section-title {
  font-family: 'Playfair Display', serif; font-size: 1.8rem; border-bottom: 1px solid var(--ink);
  margin: 30px 0 15px; text-transform: uppercase;
}

.article-columns {
  column-count: 2; column-gap: 15px;
}
.article-text, .article-columns p {
  font-size: 0.95rem; line-height: 1.5; margin-bottom: 12px;
}

.divider { border: none; border-bottom: 2px solid var(--ink); margin: 20px 0; }

/* Moving Pictures (Harry Potter effect) */
.moving-picture {
  width: 100%; overflow: hidden; border: 4px solid var(--ink); padding: 4px; background: var(--paper);
}
.moving-picture img {
  width: 100%; display: block;
  filter: var(--sepia); /* Sepia tone */
  transition: transform 15s linear, filter 0.5s;
}
.moving-picture:hover img, .moving-picture:active img {
  transform: scale(1.1); /* Slow zoom effect */
}
.moving-picture.circle {
  border-radius: 50%; width: 120px; height: 120px; margin: 0 auto 10px; padding: 2px;
}
.moving-picture.circle img {
  border-radius: 50%; height: 100%; object-fit: cover;
}

/* Controls */
.nav-controls {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 15px; align-items: center; justify-content: center; z-index: 100;
  background: var(--paper); padding: 8px 20px; border: 1px solid var(--ink); border-radius: 30px;
  white-space: nowrap;
}
.btn-nav {
  background: none; border: none; color: var(--ink); font-weight: bold; font-family: 'Old Standard TT', serif;
  cursor: pointer; font-size: 1rem; transition: opacity 0.3s;
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
}

.btn-read {
  display: block; width: 100%; padding: 12px; margin-top: 20px;
  background: var(--ink); color: var(--paper); border: none; font-family: 'Playfair Display', serif;
  font-weight: bold; letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
}

/* Event & Form Styling */
.event-box {
  border: 1px solid var(--ink); padding: 15px; margin-bottom: 15px; text-align: center;
}
.event-title { font-size: 1.2rem; font-family: 'Playfair Display', serif; margin-bottom: 10px; }

.newspaper-form input, .newspaper-form select, .newspaper-form textarea {
  width: 100%; padding: 10px; margin-bottom: 10px;
  background: transparent; border: 1px solid var(--ink);
  font-family: 'Old Standard TT', serif; color: var(--ink);
}
.newspaper-form input::placeholder, .newspaper-form textarea::placeholder { color: rgba(26,26,26,0.6); }

/* Classifieds (Gifts) */
.classifieds {
  column-count: 2; column-gap: 15px;
}
.bank-item {
  border: 1px dashed var(--ink); padding: 10px; margin-bottom: 10px; text-align: center; break-inside: avoid;
}
.btn-copy {
  display: block; width: 100%; margin-top: 5px; padding: 5px; background: transparent;
  border: 1px solid var(--ink); cursor: pointer; font-family: inherit;
}

.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.ucapan-list {
  column-count: 2; column-gap: 15px; margin-top: 20px;
}
.ucapan-item {
  break-inside: avoid; border-bottom: 1px solid var(--ink); padding-bottom: 10px; margin-bottom: 10px;
}
.ucapan-item strong { display: block; font-family: 'Playfair Display', serif; }
.ucapan-item em { font-size: 0.8rem; display: block; margin-bottom: 4px; }

/* Opening Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-content > * { opacity: 0; }
.page.active-page .page-content > *:nth-child(1) { animation: fadeUp 0.8s ease forwards; animation-delay: 0.1s; }
.page.active-page .page-content > *:nth-child(2) { animation: fadeUp 0.8s ease forwards; animation-delay: 0.2s; }
.page.active-page .page-content > *:nth-child(3) { animation: fadeUp 0.8s ease forwards; animation-delay: 0.3s; }
.page.active-page .page-content > *:nth-child(4) { animation: fadeUp 0.8s ease forwards; animation-delay: 0.4s; }
.page.active-page .page-content > *:nth-child(5) { animation: fadeUp 0.8s ease forwards; animation-delay: 0.5s; }
.page.active-page .page-content > *:nth-child(6) { animation: fadeUp 0.8s ease forwards; animation-delay: 0.6s; }
.page.active-page .page-content > *:nth-child(7) { animation: fadeUp 0.8s ease forwards; animation-delay: 0.7s; }
.page.active-page .page-content > *:nth-child(8) { animation: fadeUp 0.8s ease forwards; animation-delay: 0.8s; }
.page.active-page .page-content > *:nth-child(n+9) { animation: fadeUp 0.8s ease forwards; animation-delay: 0.9s; }

/* Slider Styles */
.newspaper-slider-wrap {
    position: relative;
    border: 2px solid var(--ink);
    padding: 4px;
    background: var(--paper);
    overflow: hidden;
    height: 300px;
}
.newspaper-slider {
    position: relative;
    width: 100%;
    height: 100%;
}
.newspaper-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.newspaper-slide.active { opacity: 1; z-index: 2; }
.newspaper-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: var(--sepia);
}

/* Calendar Styles */
.calendar-wrapper {
    margin: 20px 0;
    padding: 15px;
    border: 2px solid var(--ink);
    position: relative;
}
.calendar-photo img {
    width: 100%;
    height: auto;
    filter: var(--sepia);
    display: block;
}
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}
.calendar-table th, .calendar-table td {
    border: 1px solid var(--ink);
    padding: 8px 4px;
    text-align: center;
    font-size: 0.9rem;
}
.calendar-table th { background: var(--ink); color: var(--paper); font-weight: normal; }
.calendar-table td.marked span {
    display: inline-block;
    border: 2px solid var(--ink);
    border-radius: 50%;
    width: 26px; height: 26px;
    line-height: 22px;
    font-weight: bold;
}

/* Countdown */
.countdown-vintage {
    display: flex;
    justify-content: center;
    gap: 10px;
    border-top: 2px dashed var(--ink);
    padding-top: 15px;
}
.cd-box {
    text-align: center;
    border: 1px solid var(--ink);
    padding: 5px;
    min-width: 50px;
}
.cd-box span {
    display: block;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
}
.cd-box small {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 1px;
}

/* Scroll Hint Animation */
.scroll-hint {
    margin-top: 40px;
    text-align: center;
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    color: var(--ink);
}
.scroll-hint p {
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-weight: bold;
}
.bounce-arrow {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}
