@import url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_twelve@1.1/Cafe24Oneprettynight.woff');

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

@font-face {
  font-family: 'Cafe24Oneprettynight';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_twelve@1.1/Cafe24Oneprettynight.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'Cafe24Oneprettynight', cursive;
  background-color: #fffdf9;
  color: #202121;
  max-width: 460px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ========== Music Button ========== */
.music-btn {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 200;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(41, 82, 56, 0.8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}

.music-btn.playing {
  animation: music-spin 3s linear infinite;
}

.music-btn.paused {
  opacity: 0.5;
}

@keyframes music-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========== Video Section ========== */
.video-container {
  width: 100%;
  padding: 0 20px;
  margin: 15px auto;
}

.video-container video {
  display: block;
  width: 100%;
  aspect-ratio: 406 / 720;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ========== Flower Rain Animation ========== */
.flower-leaf {
  z-index: 100;
  left: var(--left-position);
  animation-delay: var(--fall-delay), var(--shake-delay);
  position: fixed;
  top: -10%;
  user-select: none;
  cursor: default;
  animation-name: flowerleafs-fall, flowerleafs-shake;
  animation-duration: var(--fall-duration), var(--shake-duration);
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
  pointer-events: none;
}

.flower-leaf img {
  width: 25px;
  height: auto;
}

@keyframes flowerleafs-fall {
  0% { top: -10%; }
  100% { top: 100%; }
}

@keyframes flowerleafs-shake {
  0% { transform: translateX(0) rotate(0deg); }
  50% { transform: translateX(var(--translate-x)) rotate(var(--shake-degree)); }
  100% { transform: translateX(0) rotate(0deg); }
}

/* ========== Intro Section ========== */
.intro-movie {
  width: 100%;
  min-height: 100vh;
  max-height: 780px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  position: relative;
  overflow: hidden;
}

@media (min-width: 461px) {
  .intro-movie {
    min-height: auto;
  }
}

.intro-movie .image {
  width: 100%;
  text-align: center;
}

.intro-movie .image img {
  width: 100%;
  max-width: 460px;
  object-fit: cover;
}

.intro-title-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  padding: 20px;
}

.intro-title-overlay h1 {
  font-size: 2.2em;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.intro-title-overlay p {
  font-size: 1.2em;
  line-height: 1.6;
}

/* ========== Live (Greeting) Section ========== */
.live {
  padding: 60px 30px;
  text-align: center;
  line-height: 2;
}

.live .hands {
  width: 120px;
  margin-bottom: 30px;
}

.live .header {
  font-size: 1.3em;
  color: #295238;
  margin-bottom: 25px;
  font-weight: bold;
}

.live p {
  font-size: 1.05em;
  color: #444;
  line-height: 2;
  word-break: keep-all;
}

.live .h2 {
  margin-top: 30px;
  font-size: 1.1em;
  color: #295238;
}

/* ========== Divider ========== */
.divider {
  text-align: center;
  padding: 15px 0;
}

.divider img {
  width: 160px;
}

/* ========== Calendar Section ========== */
.calendar-section {
  padding: 40px 30px;
  text-align: center;
}

.calendar-label {
  font-size: 0.9em;
  color: #b0a090;
  letter-spacing: 4px;
  margin-bottom: 10px;
}

.calendar-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 6px;
}

.calendar-flower {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.calendar-flower.left {
}

.calendar-flower.right {
}

.calendar-section h3 {
  font-size: 1.6em;
  color: #444;
  letter-spacing: 3px;
  margin: 0;
}

.calendar-datetime {
  font-size: 1.1em;
  color: #888;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.calendar-table {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 20px;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.calendar-table th {
  padding: 10px 4px;
  font-size: 0.9em;
  color: #b0a090;
  font-weight: normal;
  border-bottom: 1px solid #e8e0d8;
  padding-bottom: 12px;
}

.calendar-table th:first-child {
  color: #e0917a;
}

.calendar-table th:last-child {
  color: #7ab0c4;
}

.calendar-table td {
  padding: 10px 4px;
  font-size: 0.95em;
  color: #888;
  text-align: center;
}

.calendar-table td:first-child {
  color: #e0917a;
}

.calendar-table td:last-child {
  color: #7ab0c4;
}

.calendar-table td.today {
  background-color: #e8a990;
  color: #fff !important;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  line-height: 36px;
  padding: 0;
}

.calendar-table td.empty {
  color: transparent;
}

.calendar-dday {
  margin-top: 20px;
  font-size: 1.15em;
  color: #555;
  background: linear-gradient(135deg, #f8f0e3, #fdf6ec);
  display: inline-block;
  padding: 10px 24px;
  border-radius: 30px;
  border: 1px solid #e8d5b8;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.calendar-dday .dday-num {
  color: #c0392b;
  font-size: 1.3em;
  font-weight: bold;
}

/* ========== Gallery (Celebrate) Section ========== */
.celebrate {
  padding: 40px 0;
  text-align: center;
  overflow: hidden;
}

.celebrate .goose {
  width: 80px;
  margin-bottom: 15px;
}

.celebrate h3 {
  font-size: 1.3em;
  color: #295238;
  margin-bottom: 5px;
}

.gallery-label {
  font-size: 0.9em;
  color: #999;
  margin-bottom: 20px;
}

.gallery-hint {
  font-size: 0.78em;
  color: #bbb;
  margin-top: 6px;
  margin-bottom: 0;
}

.gallery-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 50px 0;
}

.gallery-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
  align-items: center;
  padding-left: calc(50% - 75px);
}

.gallery-slide {
  flex-shrink: 0;
  width: 150px;
  margin: 0 8px;
  transition: transform 0.45s ease, opacity 0.45s ease;
  opacity: 0.4;
  transform: scale(0.85);
}

.gallery-slide.active {
  opacity: 1;
  transform: scale(1.4);
  z-index: 2;
}

.gallery-slide.adjacent {
  opacity: 0.7;
  transform: scale(0.95);
  z-index: 1;
}

.arch-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  border-radius: 75px 75px 0 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-slide.active .arch-frame {
  box-shadow: 0 8px 25px rgba(0,0,0,0.18);
}

.arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 15px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.gallery-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ccc;
  transition: background-color 0.3s;
}

.gallery-dots .dot.active {
  background-color: #295238;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  color: #666;
  font-size: 1em;
  cursor: pointer;
  z-index: 5;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cafe24Oneprettynight', cursive;
}

.gallery-arrow:active {
  background: rgba(255, 255, 255, 0.9);
}

.gallery-arrow.left {
  left: 8px;
}

.gallery-arrow.right {
  right: 8px;
}

/* ========== Map Section ========== */
.map-section {
  padding: 40px 30px;
  text-align: center;
}

.map-label {
  font-size: 0.9em;
  color: #b0a090;
  letter-spacing: 4px;
  margin-bottom: 10px;
}

.venue-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 6px;
}

.venue-title {
  font-size: 1.6em;
  color: #444;
  letter-spacing: 3px;
  margin: 0;
}

.map-section .venue-address {
  font-size: 0.95em;
  color: #777;
  margin-bottom: 20px;
  line-height: 1.6;
}

.phone-link {
  color: #555;
  text-decoration: none;
  white-space: nowrap;
}

.phone-icon {
  vertical-align: -2px;
  margin-right: 2px;
}

.map-container {
  width: 100%;
  height: 300px;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-buttons {
  display: flex;
  justify-content: space-between;
  margin: 20px 10% 0;
}

.map-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #295238;
  font-size: 0.85em;
  padding-top: 10px;
  cursor: pointer;
}

.map-btn img {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
}

/* ========== Transport Info ========== */
.transport-info {
  margin-top: 25px;
  text-align: left;
  padding: 20px;
  background: #faf8f5;
  border-radius: 10px;
}

.transport-info h4 {
  font-size: 1em;
  color: #295238;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.transport-info p {
  font-size: 0.9em;
  color: #666;
  line-height: 1.8;
  margin-bottom: 10px;
}

/* ========== Funding Section ========== */
.funding {
  padding: 40px 30px;
  text-align: center;
}

.funding .flower-icon {
  width: 50px;
  margin-bottom: 15px;
}

.funding h3 {
  font-size: 1.3em;
  color: #295238;
  margin-bottom: 15px;
}

.funding .description {
  font-size: 0.95em;
  color: #666;
  line-height: 1.8;
  margin-bottom: 25px;
  word-break: keep-all;
}

/* ========== Button Component ========== */
.button-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
}

.button-container .leaf {
  width: 30px;
}

.button-container button {
  padding: 12px 30px;
  background: #295238;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'Cafe24Oneprettynight', cursive;
  font-size: 1em;
  cursor: pointer;
}

.button-container button:active {
  opacity: 0.8;
}

/* ========== Credit Section ========== */
.credit {
  padding: 40px 30px;
  text-align: center;
}

.credit .description_head {
  font-size: 0.85em;
  color: #aaa;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.credit .h2 {
  font-size: 1.2em;
  color: #295238;
  margin-bottom: 20px;
}

.profile-list {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 25px;
}

.profile {
  text-align: center;
}

.profile .thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  margin: 0 auto 10px;
}

.profile .thumbnail.mom {
  background-image: url('../img/credit/mom.jpg');
}


.profile .name {
  font-size: 0.95em;
  color: #333;
  margin-bottom: 3px;
}

.profile .role {
  font-size: 0.8em;
  color: #999;
}

.credit .description {
  font-size: 0.9em;
  color: #888;
  line-height: 1.8;
  margin-bottom: 20px;
  word-break: keep-all;
}

.credit .recruit {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid #295238;
  border-radius: 20px;
  color: #295238;
  font-size: 0.9em;
  margin-bottom: 25px;
}

.credit audio {
  width: 100%;
  max-width: 300px;
  margin-top: 10px;
}

/* ========== Footer ========== */
.footer {
  padding: 20px;
  text-align: center;
  font-size: 0.8em;
  color: #ccc;
}

/* ========== AOS-like fade animations ========== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Lightbox ========== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.active {
  display: flex;
  animation: lb-fadein 0.25s ease;
}

@keyframes lb-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-content {
  max-width: 90%;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  animation: lb-zoom 0.25s ease;
}

@keyframes lb-zoom {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  z-index: 1001;
  opacity: 0.8;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1001;
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

.lightbox-prev:active,
.lightbox-next:active {
  background: rgba(255,255,255,0.3);
}

.lightbox-counter {
  color: rgba(255,255,255,0.7);
  font-size: 0.9em;
  margin-top: 15px;
  letter-spacing: 2px;
}

/* ========== Responsive ========== */
@media (max-width: 460px) {
  body {
    max-width: 100%;
  }
}
