﻿.gallery-section h3 {
  font-family: 'Quicksand', Arial, sans-serif;
  color: #a01919;
  margin: 24px 0 12px 0;
  font-size: 1.15em;
  font-weight: 500;
}
.gallery-images {
  margin-bottom: 16px;
}
@media (min-width: 900px) {
  .gallery-img {
    width: 10vw;
    max-width: 220px;
    min-width: 120px;
    border-radius: 18px;
  }
  .gallery-images {
    gap: 20px;
  }
}
/* Responsive Gallery Section */
.gallery-section {
  margin: 40px 0;
  text-align: center;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}
.gallery-section h2 {
  font-family: 'Quicksand', Arial, sans-serif;
  color: #a01919;
  margin-bottom: 20px;
  font-size: 1.5em;
}
.gallery-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
  justify-items: center;
  align-items: stretch;
  margin-bottom: 32px;
  padding: 0 8px;
}
.gallery-section {
  margin: 40px 0;
  text-align: center;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  background: rgba(255,255,255,0.7);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(160,25,25,0.08);
  padding-bottom: 24px;
}
.gallery-section h2 {
  font-family: 'Quicksand', Arial, sans-serif;
  color: #a01919;
  margin-bottom: 24px;
  font-size: 1.7em;
}
.gallery-section h3 {
  font-family: 'Quicksand', Arial, sans-serif;
  color: #a01919;
  margin: 32px 0 16px 0;
  font-size: 1.2em;
  font-weight: 500;
}
/* Gallery image animation */
/* Gallery image animation */
.gallery-img {
  width: 22vw;
  max-width: 140px;
  min-width: 80px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(160,25,25,0.15);
  background: rgba(255,255,255,0.4);
  border: 2px solid rgba(160,25,25,0.15);
  transition: transform 0.5s cubic-bezier(.4,2,.6,1), box-shadow 0.3s, opacity 0.5s;
  opacity: 0.85;
  animation: fadeInImg 1s ease, floatImg 3s ease-in-out infinite;
}
.gallery-img:hover {
  transform: scale(1.12) rotate(-2deg);
  box-shadow: 0 8px 32px rgba(160,25,25,0.25);
  opacity: 1;
  z-index: 2;
}

@keyframes floatImg {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes fadeInImg {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
}

@media (max-width: 600px) {
  .gallery-img {
    width: 30vw;
    max-width: 90px;
    min-width: 50px;
    border-radius: 10px;
  }
  .gallery-section h2 {
    font-size: 1.1em;
  }
  .gallery-images {
    gap: 8px;
  }
}
body {
  background: #f0f2f5;
  font-family: 'Quicksand', 'Signora', Arial, sans-serif;
  margin: 0;
  padding: 0;
}
.page-container {
  width: 360px;
  margin: 40px auto;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 0;
  position: relative;
}
.header {
  padding: 24px 16px 0 16px;
  text-align: left;
}
.title {
  font-family: 'Quicksand', Arial, sans-serif;
  font-size: 22px;
  font-weight: bold;
  color: #000;
}
.couple {
  font-family: 'Signora', Arial, sans-serif;
  font-size: 18px;
  font-weight: bold;
  color: #000;
  margin-top: 8px;
}
.subtitle {
  font-family: 'Quicksand', Arial, sans-serif;
  font-size: 14px;
  color: #333;
  margin-top: 8px;
}
.date {
  font-size: 15px;
  color: #a01919;
  margin-top: 8px;
}
.announcement {
  font-size: 15px;
  color: #333;
  text-align: right;
  margin-top: 8px;
}
.main-photo {
  width: 100%;
  padding: 16px;
  box-sizing: border-box;
  overflow: hidden;
}
/* xÃ³a dáº¥u Ä‘Ã³ng thá»«a */

.main-photo img {
  width: 100%;
  max-width: 340px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(160,25,25,0.18);
  margin-bottom: 12px;
  opacity: 0.92;
  transition: transform 0.6s cubic-bezier(.4,2,.6,1), box-shadow 0.3s, opacity 0.5s;
  animation: fadeInImgHero 1.2s ease, floatImgHero 3.5s ease-in-out infinite;
}

.main-photo img:hover {
  transform: scale(1.08) rotate(1.5deg);
  box-shadow: 0 12px 40px rgba(160,25,25,0.28);
  opacity: 1;
  z-index: 2;
}
/* xÃ³a dáº¥u Ä‘Ã³ng thá»«a */
  @keyframes floatImgHero {
    0% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-16px);
    }
    100% {
      transform: translateY(0);
    }
  }
  /* xÃ³a dáº¥u Ä‘Ã³ng thá»«a */
  @keyframes fadeInImgHero {
    0% {
      opacity: 0;
      transform: scale(0.97);
    }
    100% {
      opacity: 0.92;
      transform: scale(1);
    }
  }
  /* xÃ³a dáº¥u Ä‘Ã³ng thá»«a */
.couple-names {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: 'Signora', Arial, sans-serif;
  font-size: 18px;
  color: #000;
}
.poetry {
  margin: 16px 16px 24px 16px;
  text-align: left;
}
.poetry-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
}
.poetry-line {
  font-size: 15px;
  color: #333;
  font-family: 'Signora', 'Quicksand', Arial, sans-serif;
  line-height: 1.7;
  letter-spacing: 0.2px;
  transition: color 0.4s, font-weight 0.4s, background 0.6s;
  padding: 4px 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, #fffbe6 0%, #ffe4e1 100%);
  box-shadow: 0 2px 8px rgba(160,25,25,0.07);
  animation: poetryFade 1.2s ease;
}

@keyframes poetryFade {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}
.poetry-line.highlight {
  color: #a01919;
  font-weight: bold;
  font-size: 16px;
  background: linear-gradient(90deg, #ffe4e1 0%, #fffbe6 100%);
  box-shadow: 0 4px 16px rgba(160,25,25,0.13);
}
.poetry-line.emphasis {
  color: #b36b00;
  font-style: italic;
  font-size: 15.5px;
  background: linear-gradient(90deg, #fffbe6 0%, #ffe4e1 100%);
  box-shadow: 0 2px 8px rgba(179,107,0,0.13);
}
.poetry-line.highlight {
  color: #a01919;
  font-weight: bold;
  font-size: 16px;
}
.poetry-line.emphasis {
  color: #b36b00;
  font-style: italic;
  font-size: 15.5px;
}
.calendar-section {
  padding: 0 16px;
  margin-bottom: 16px;
}
.calendar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}
.calendar .month, .calendar .day, .calendar .weekday {
  margin: 0 8px;
  font-size: 16px;
  color: #a01919;
}
.calendar .day {
  font-size: 32px;
  font-weight: bold;
}
.lunar-date {
  font-size: 13px;
  color: #333;
  text-align: center;
}
.venue {
  font-size: 15px;
  color: #333;
  margin: 0 16px 24px 16px;
  text-align: left;
}
.footer-message {
  font-size: 14px;
  color: #a01919;
  margin: 0 16px 24px 16px;
  text-align: center;
}
/* Container chÃ­nh cá»§a bá»™ Ä‘áº¿m */
.countdown-section {
  position: relative;
  margin: 20px 10px;
  padding: 25px 10px;
  background: linear-gradient(135deg, #fff0f3 0%, #ffe4e6 100%);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2);
  text-align: center;
  overflow: hidden;
  border: 1px solid #ffccd5;
}

/* TiÃªu Ä‘á» */
.countdown-title {
  font-family: 'Playfair Display', serif; /* Hoáº·c font báº¡n Ä‘ang dÃ¹ng */
  color: #a01919; /* Äá» Ä‘Ã´ */
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.heart-icon {
  color: #ff4d4f;
  animation: heartbeat 1.5s infinite;
  display: inline-block;
}

/* Flexbox cho cÃ¡c Ã´ thá»i gian */
.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;
}

/* Tá»«ng Ã´ thá»i gian */
.time-box {
  background: #ffffff;
  width: 65px;
  padding: 10px 0;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border-bottom: 3px solid #a01919;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Sá»‘ hiá»ƒn thá»‹ */
.time-number {
  font-size: 24px;
  font-weight: 800;
  color: #a01919;
  font-family: 'Arial', sans-serif;
  line-height: 1.2;
}

/* Chá»¯ NgÃ y/Giá»... */
.time-label {
  font-size: 10px;
  color: #666;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 500;
}

/* Dáº¥u hai cháº¥m ngÄƒn cÃ¡ch */
.separator {
  font-size: 20px;
  font-weight: bold;
  color: #a01919;
  margin-top: 10px;
  opacity: 0.6;
  animation: blink 1s infinite;
}

/* DÃ²ng chá»¯ nhá» bÃªn dÆ°á»›i */
.countdown-footer {
  margin-top: 15px;
  font-size: 12px;
  font-style: italic;
  color: #555;
}

/* --- Hiá»‡u á»©ng Animation --- */

/* Tim Ä‘áº­p */
@keyframes heartbeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(1); }
  75% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Nháº¥p nhÃ¡y dáº¥u : */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* Responsive cho mÃ n hÃ¬nh cá»±c nhá» */
@media (max-width: 340px) {
  .time-box { width: 55px; }
  .time-number { font-size: 20px; }
  .separator { margin-top: 8px; }
}

/* =========================================
   Há»˜P Má»ªNG CÆ¯á»šI (GIFT BOX SECTION)
   ========================================= */
.gift-box-section {
    background: linear-gradient(135deg, #fff8f5 0%, #ffeceb 45%, #fff6df 100%);
    padding: 50px 20px;
    text-align: center;
    color: #5b2a2a;
    font-family: 'Playfair Display', serif;
    border-top: 1px solid #f1d9d6;
    border-bottom: 1px solid #f1d9d6;
}

.gift-box-section h2 {
    font-size: 28px;
    margin-bottom: 40px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8b2f2f;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.gift-cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Khoáº£ng cÃ¡ch giá»¯a 2 tháº» */
    flex-wrap: wrap; /* Cho phÃ©p rá»›t dÃ²ng náº¿u mÃ n hÃ¬nh Ä‘iá»‡n thoáº¡i quÃ¡ nhá» */
}

.gift-card {
    background-color: #ffffff;
    color: #333333;
    padding: 25px 15px;
    width: 140px; /* Äá»™ rá»™ng tháº» */
    border: 12px solid #1a1a1a; /* Viá»n Ä‘en dÃ y táº¡o hiá»‡u á»©ng giá»‘ng khung tranh */
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    box-sizing: content-box;
}

.gift-card .role {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
}

.gift-card .qr-img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.gif/* =========================================
   Há»˜P Má»ªNG CÆ¯á»šI (GIFT CARDS)
   ========================================= */

.gift-card {
    background-color: #ffffff;
    color: #333333;
    padding: 25px 15px;
    width: 160px; /* Chiá»u rá»™ng cá»§a tháº» (báº¡n cÃ³ thá»ƒ tÄƒng giáº£m tÃ¹y Ã½) */
    border: 12px solid #1a1a1a; 
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    box-sizing: content-box;
    
    /* DÃ™NG FLEXBOX Äá»‚ CÄ‚N GIá»®A TUYá»†T Äá»I Má»ŒI THá»¨ BÃŠN TRONG */
    display: flex;
    flex-direction: column;     /* Xáº¿p cÃ¡c pháº§n tá»­ theo chiá»u dá»c tá»« trÃªn xuá»‘ng */
    align-items: center;        /* CÄƒn giá»¯a theo chiá»u ngang */
    justify-content: center;    /* CÄƒn giá»¯a theo chiá»u dá»c */
    text-align: center;         /* Dá»± phÃ²ng Ä‘á»ƒ chá»¯ luÃ´n ra giá»¯a */
}

/* Chá»¯ ChÃº rá»ƒ / CÃ´ dÃ¢u */
.gift-card .role {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
    width: 100%;
}

/* Chá»‰nh riÃªng cho áº¢nh QR */
.gift-card .qr-img {
    display: block;
    margin: 0 auto 15px auto; /* LÃ¹i xuá»‘ng 15px, tá»± Ä‘á»™ng cÄƒn lá» 2 bÃªn (auto) */
    width: 100%;              /* KÃ©o giÃ£n áº£nh ra... */
    max-width: 140px;         /* ...nhÆ°ng tá»‘i Ä‘a chá»‰ 140px Ä‘á»ƒ khÃ´ng bá»‹ trÃ n viá»n */
    height: auto;             /* Tá»‰ lá»‡ áº£nh khÃ´ng bá»‹ mÃ©o */
}

/* TÃªn (Äá»©c NhÃ£ / Thu PhÆ°Æ¡ng) */
.gift-card .acc-name {
    font-weight: bold;
    font-size: 16px;
    width: 100%;
}
.couple-names{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:20px;
    font-size:48px;
    font-weight:bold;
    font-family: 'Dancing Script', cursive;
    margin-top:30px;
}

/* Name style */
.name{
    padding:10px 20px;
    border-radius:20px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Groom color */
.groom{
    background: linear-gradient(45deg,#ff7eb3,#ff758c);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

/* Bride color */
.bride{
    background: linear-gradient(45deg,#7afcff,#00c6ff);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

/* Heart animation */
.heart{
    font-size:50px;
    color:#ff4d6d;
    animation: heartbeat 1.2s infinite;
    text-shadow:0 0 10px rgba(255,0,80,0.6);
}

/* Heart beating */
@keyframes heartbeat{
    0%{
        transform:scale(1);
    }
    25%{
        transform:scale(1.3);
    }
    50%{
        transform:scale(1);
    }
    75%{
        transform:scale(1.3);
    }
    100%{
        transform:scale(1);
    }
}
/* QR transfer verification text */
.gift-card .bank-info {
    width: 100%;
    margin: 0 0 12px 0;
    padding: 8px 10px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background: #fafafa;
    text-align: left;
    box-sizing: border-box;
}

.gift-card .bank-line {
    font-size: 12px;
    line-height: 1.45;
    color: #2f2f2f;
    word-break: break-word;
}

.gift-card .bank-line + .bank-line {
    margin-top: 4px;
}

.gift-card .bank-label {
    font-weight: 700;
    color: #111;
}

.music-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  background: #a01919;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  cursor: pointer;
}

.music-toggle:hover {
  opacity: 0.9;
}

.music-toggle.hidden {
  display: none;
}


/* Fine-tune groom QR centering */
.qr-img-groom {
  display: block;
  margin-left: auto;
  margin-right: auto;
  transform: translateX(4px);
}

